:root {
  --bg: #f5f2ee;
  --surface: #ffffff;
  --surface-alt: #efe8e1;
  --primary: #172a36;
  --primary-soft: #314f60;
  --accent: #b9895a;
  --button-hover: #d1d5d8;
  --text: #1b1c1e;
  --muted: #5d6167;
  --line: rgba(23, 42, 54, 0.12);
  --shadow: 0 18px 45px rgba(20, 29, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

body {
  margin: 0;
  font-family: 'Tenor Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 20px;
  width: 100%;
  background: var(--surface-alt);
}

.menu-toggle {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 26px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.logo-mark {
  display: none;
}

.logo-text {
  display: none;
}

.Cat {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 2px solid rgba(23, 42, 54, 0.12);
  background: rgba(255, 255, 255, 0.72);
  padding: 4px;
  box-shadow: 0 12px 26px rgba(20, 29, 35, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.Cat:hover,
.Cat:focus-visible {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 14px 26px rgba(20, 29, 35, 0.15);
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.5s ease, font-size 0.5s ease, text-decoration 0.5s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
  font-size: 1.05rem;
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  padding: 32px 0 40px;
}

.eyebrow,
.section-tag {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.78rem;
}

.hero-copy h1,
.section-copy h2,
.content-section h2 {
  margin: 0 0 18px;
  color: var(--primary);
  line-height: 1.1;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  max-width: 620px;
}

.lead {
  max-width: 560px;
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

button {
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

button:hover,
button:focus-visible,
.btn:hover,
.btn:focus-visible {
  background-color: var(--button-hover);
  border-color: var(--button-hover);
  color: var(--primary);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--primary);
}

.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  padding: 0;
  margin: 0;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.hero-stats strong {
  font-size: 1.5rem;
  color: var(--primary);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
  color: var(--accent);
}

.hero-stats .stars span {
  display: inline-block;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.hero-stats .stars span.half-star {
  position: relative;
  color: rgba(23, 42, 54, 0.25);
  overflow: hidden;
}

.hero-stats .half-star::before {
  content: "\2605";
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  color: var(--accent);
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-image img {
  height: min(38vw, 480px);
  min-height: 0;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.content-section {
  padding: 90px 0;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.section-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-copy .section-tag{
   color: var(--accent); 
}

.image-stack {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
}

.image-stack img {
  height: auto;
  min-height: 0;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.alt-bg {
  background: var(--surface-alt);
}

.content-section h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.service-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: 0 10px 24px rgba(20, 29, 35, 0.05);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.35rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.gallery-carousel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.gallery-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--button-hover);
  border-color: var(--button-hover);
  color: var(--primary);
}

.gallery-feature {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(20, 29, 35, 0.08);
}

.gallery-feature-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surface-alt);
  cursor: zoom-in;
}

.gallery-feature-image {
  width: 100%;
  height: clamp(260px, 40vw, 460px);
  object-fit: contain;
  border-radius: 0;
}

.gallery-feature figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--primary);
}

.gallery-counter {
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.gallery-dialog {
  width: min(1120px, calc(100% - 28px));
  max-width: none;
  height: min(90vh, 960px);
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}

.gallery-dialog::backdrop {
  background: rgba(16, 25, 30, 0.72);
}

.gallery-dialog-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.gallery-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.gallery-dialog-header h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1.35rem;
}

.gallery-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 14px;
  padding: 18px;
  overflow: auto;
}

.gallery-grid[hidden],
.gallery-image-viewer[hidden] {
  display: none;
}

.gallery-thumb {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--primary);
  cursor: zoom-in;
  text-align: left;
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  background: var(--surface-alt);
  transition: transform 0.25s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.03);
}

.gallery-thumb span {
  display: block;
  padding: 9px 11px;
  font-weight: 700;
}

.gallery-image-viewer {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 14px 18px 18px;
}

.viewer-back {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
}

.viewer-stage {
  display: grid;
  flex: 1;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  min-height: 0;
}

.viewer-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
}

.viewer-figure img {
  width: 100%;
  height: calc(100% - 34px);
  min-height: 0;
  object-fit: contain;
  border-radius: 4px;
  background: var(--surface-alt);
}

.viewer-figure figcaption {
  color: var(--primary);
  font-weight: 700;
}

.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.88);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
}

.logo-footer {
  width: min(220px, 100%);
  max-width: 220px;
  justify-content: flex-start;
  margin-bottom: 0;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--surface);
}

.logo-footer img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  mix-blend-mode: multiply;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer h3 {
  margin-top: 0;
  margin-bottom: 14px;
  color: #fff;
  font-size: 1.1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.contact-list a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0 28px;
}

.footer-bottom p {
  margin: 0;
  text-align: center;
}

@media (min-width: 901px) {
  .hero-copy h1 {
    font-size: clamp(2rem, 3.8vw, 3.45rem);
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .hero {
    gap: 24px;
    padding: 24px 0 28px;
  }

  .hero-copy h1 {
    margin-bottom: 14px;
  }

  .lead {
    margin-bottom: 22px;
  }

  .hero-actions {
    margin-bottom: 24px;
  }
}

@media (max-width: 1100px) {
  .image-stack img {
    height: min(48vw, 360px);
    min-height: 0;
  }

  .gallery-feature-image {
    height: min(40vw, 380px);
  }
}

@media (max-width: 900px) {
  .hero,
  .two-column,
  .footer-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    padding-top: 48px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-image img {
    height: min(56vw, 420px);
    min-height: 0;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 136px) minmax(0, 1fr);
    column-gap: 24px;
    row-gap: 24px;
    align-items: start;
  }

  .footer-grid > div:first-child {
    grid-row: span 2;
  }

  .logo-footer {
    width: min(136px, 100%);
    max-width: 136px;
  }
}

@media (max-width: 640px) {
  .navbar {
    position: relative;
    justify-content: space-between;
    min-height: 64px;
    padding: 8px 16px;
  }

  .navbar .logo {
    width: 88px;
  }

  .Cat {
    width: 60px;
    height: 60px;
    margin-right: 10px;
  }

  .hero {
    gap: 12px;
    padding: 16px 0;
  }

  .hero-copy h1 {
    margin-bottom: 14px;
    font-size: 1.85rem;
  }

  .lead {
    margin-bottom: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .hero-actions {
    gap: 12px;
    margin-bottom: 14px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-stats li {
    min-width: 0;
  }

  .hero-stats strong {
    font-size: 1.2rem;
  }

  .hero-stats li > span {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .hero-stats .stars span {
    font-size: 1rem;
  }

  .rating-row {
    gap: 4px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 21px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .navbar.is-menu-open .menu-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.is-menu-open .menu-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--surface-alt);
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 18px rgba(20, 29, 35, 0.08);
  }

  .navbar.is-menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
  }

  .image-stack {
    grid-template-columns: 1fr;
  }

  .hero-image img,
  .image-stack img,
  .gallery-feature-image {
    width: 100%;
    max-width: 100%;
    height: min(74vw, 280px);
    min-height: 0;
    aspect-ratio: auto;
    margin-inline: auto;
    object-fit: contain;
  }

  .logo-footer {
    width: min(148px, 100%);
    max-width: 148px;
  }

  .gallery-carousel {
    position: relative;
    display: block;
  }

  .gallery-carousel > .gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
  }

  .gallery-carousel > .gallery-arrow:first-child {
    left: 8px;
  }

  .gallery-carousel > .gallery-arrow:last-child {
    right: 8px;
  }

  .gallery-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
  }

  .gallery-dialog {
    width: calc(100% - 16px);
    height: 92vh;
    max-height: 92vh;
  }

  .gallery-dialog-header {
    padding: 12px 14px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

  .gallery-image-viewer {
    padding: 12px;
  }

  .viewer-stage {
    position: relative;
    display: block;
  }

  .viewer-stage > .gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
  }

  .viewer-stage > .gallery-arrow:first-child {
    left: 8px;
  }

  .viewer-stage > .gallery-arrow:last-child {
    right: 8px;
  }

  .viewer-figure {
    width: 100%;
  }

  .hero-stats {
    gap: 10px;
  }

  .content-section {
    padding: 72px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
