:root {
  color-scheme: light;
  --ivory: #fbf7f0;
  --porcelain: #fffdf8;
  --champagne: #e9d7ba;
  --sand: #c9a976;
  --ink: #22201d;
  --muted: #6f6760;
  --teal: #1f7b75;
  --teal-dark: #14534f;
  --rose: #b76f6a;
  --line: rgba(34, 32, 29, 0.13);
  --shadow: 0 24px 70px rgba(58, 47, 35, 0.16);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(251, 247, 240, 0.86);
  backdrop-filter: blur(18px);
  transition:
    box-shadow 180ms ease,
    background 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 36px rgba(34, 32, 29, 0.08);
  background: rgba(251, 247, 240, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(31, 123, 117, 0.26);
  border-radius: 50%;
  color: var(--teal-dark);
  background: linear-gradient(145deg, #ffffff, #efe2cd);
  box-shadow: 0 8px 20px rgba(31, 123, 117, 0.12);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.brand-text {
  font-size: 1.04rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: #423d37;
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.nav-cta {
  padding: 0 18px;
  color: #fff;
  background: var(--teal-dark);
  box-shadow: 0 12px 24px rgba(20, 83, 79, 0.16);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.button {
  width: fit-content;
  padding: 0 20px;
}

.button-primary {
  color: #fff;
  background: var(--teal-dark);
  box-shadow: 0 16px 34px rgba(20, 83, 79, 0.18);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.button svg,
.nav-cta svg,
.menu-toggle svg {
  width: 18px;
  height: 18px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(251, 247, 240, 0.95) 0%, rgba(251, 247, 240, 0.84) 36%, rgba(251, 247, 240, 0.25) 66%),
    url("/assets/hero-dr-rigi.jpg") center right / cover no-repeat;
}

.hero-overlay {
  z-index: -1;
  background:
    radial-gradient(circle at 18% 84%, rgba(31, 123, 117, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(251, 247, 240, 0.22));
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-content {
  display: flex;
  min-height: calc(100svh - 76px);
  flex-direction: column;
  justify-content: center;
  padding: 74px 0 90px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  max-width: 710px;
  margin-bottom: 22px;
  font-size: clamp(3.15rem, 8vw, 6.75rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.05rem, 4.4vw, 4.25rem);
}

h3 {
  font-size: 1.36rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 630px;
  margin-bottom: 30px;
  color: #4c453e;
  font-size: clamp(1.04rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

section:not(.hero) {
  padding: clamp(74px, 10vw, 128px) 0;
}

.about-preview {
  background: var(--porcelain);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.65fr;
  gap: clamp(28px, 7vw, 90px);
  align-items: stretch;
}

.about-portrait {
  position: relative;
  width: 100%;
  max-width: 350px;
  min-height: 0;
  margin: 0;
  isolation: isolate;
}

.about-portrait::before {
  position: absolute;
  inset: 22px -18px -18px 22px;
  z-index: -1;
  border: 1px solid rgba(31, 123, 117, 0.22);
  border-radius: var(--radius);
  content: "";
  background: #efe2cd;
}

.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center 22%;
  box-shadow: var(--shadow);
}

.about-copy p,
.experience-copy p,
.split-section p {
  color: var(--muted);
  font-size: 1.05rem;
}

blockquote {
  margin: 28px 0 0;
  padding: 28px;
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  color: #38332d;
  background: #f7efe4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.45;
}

blockquote cite {
  display: block;
  margin-top: 16px;
  color: var(--teal-dark);
  font-family: inherit;
  font-size: 0.96rem;
  font-style: normal;
}

.credentials,
.experience {
  background:
    linear-gradient(90deg, rgba(31, 123, 117, 0.08), transparent 58%),
    #f2e8d8;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}

.credential-copy {
  display: grid;
  gap: 18px;
}

.credential-copy p {
  margin: 0;
}

.contact-details a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #3e3933;
}

.contact-details svg,
.service-icon svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--teal-dark);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card,
.case-card,
.testimonial-grid figure,
.booking-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.8);
  box-shadow: 0 18px 48px rgba(58, 47, 35, 0.08);
}

.service-card {
  min-height: 100%;
  padding: clamp(24px, 4vw, 36px);
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 123, 117, 0.12);
}

.service-card p,
.service-card li,
.case-card p,
.contact-intro p {
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 24px;
  padding-left: 19px;
}

.text-link {
  display: inline-flex;
  color: var(--teal-dark);
  font-weight: 800;
}

.digital-scanning {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 18%, rgba(31, 123, 117, 0.13), transparent 28%),
    linear-gradient(135deg, #f2e8d8 0%, #fbf7f0 64%);
}

.digital-scanning-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}

.digital-scanning-copy p:not(.eyebrow) {
  color: var(--muted);
}

.digital-scanning-lead {
  max-width: 560px;
  margin-bottom: 22px;
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  line-height: 1.35;
}

.digital-scanning-signoff {
  margin: 28px 0;
  color: var(--teal-dark) !important;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.digital-scanning-media {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid rgba(31, 123, 117, 0.15);
  border-radius: calc(var(--radius) + 8px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.digital-scanning-media::after {
  position: absolute;
  inset: 14px -18px -18px 18px;
  z-index: -1;
  border: 1px solid rgba(31, 123, 117, 0.24);
  border-radius: calc(var(--radius) + 8px);
  content: "";
}

.digital-scanning-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.gallery-section {
  background: var(--porcelain);
}

.gallery-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.gallery-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.gallery-carousel::-webkit-scrollbar {
  display: none;
}

.case-card {
  flex: 0 0 calc((100% - 40px) / 3);
  overflow: hidden;
  scroll-snap-align: start;
}

.case-image-placeholder {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  gap: 10px;
  color: var(--teal-dark);
  background:
    linear-gradient(135deg, rgba(31, 123, 117, 0.13), rgba(183, 111, 106, 0.11)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.32) 0 12px, transparent 12px 24px);
  text-align: center;
}

.case-image-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #171512;
}

.case-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-image-cover {
  object-fit: cover;
}

.case-image-hollywood {
  object-position: center bottom;
}

.case-image-placeholder svg {
  width: 34px;
  height: 34px;
}

.case-card h3,
.case-card p {
  padding: 0 22px;
}

.case-card h3 {
  margin: 22px 0 8px;
}

.case-card p {
  margin-bottom: 24px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.testimonial-grid figure {
  margin: 0;
  padding: 28px;
}

.testimonial-grid blockquote {
  padding: 0;
  margin: 0 0 22px;
  border: 0;
  background: transparent;
  font-size: 1.08rem;
}

.testimonial-grid figcaption {
  color: var(--teal-dark);
  font-weight: 800;
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(31, 123, 117, 0.1), transparent 70%),
    #eee0ca;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.booking-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
  background: rgba(255, 253, 248, 0.95);
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-form label {
  display: grid;
  gap: 8px;
  color: #3e3933;
  font-weight: 700;
}

.booking-form [hidden] {
  display: none;
}

.booking-form input,
.booking-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(34, 32, 29, 0.17);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

.booking-form input:focus,
.booking-form select:focus,
.menu-toggle:focus-visible,
.icon-button:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(31, 123, 117, 0.24);
  outline-offset: 3px;
}

.booking-form .button {
  width: 100%;
  margin-top: 6px;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1f7b75;
  box-shadow: var(--shadow);
}

.whatsapp-float svg {
  width: 25px;
  height: 25px;
}

.site-footer {
  padding: 52px 0 28px;
  color: #ebe2d7;
  background: #1f2826;
}

.thanks-page {
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(31, 123, 117, 0.1), transparent 70%),
    var(--ivory);
}

.thanks-main {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 40px 0;
}

.thanks-panel {
  max-width: 760px;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow);
}

.thanks-panel .brand {
  margin-bottom: 44px;
}

.thanks-panel h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.thanks-panel p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
}

.thanks-panel .preview-note {
  padding: 14px 16px;
  border: 1px solid rgba(183, 111, 106, 0.24);
  border-radius: var(--radius);
  color: #76413d;
  background: rgba(183, 111, 106, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-brand .brand-mark {
  background: #efe2cd;
}

.site-footer p {
  max-width: 330px;
  margin: 16px 0 0;
  color: rgba(235, 226, 215, 0.74);
}

.site-footer nav {
  display: grid;
  gap: 9px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(235, 226, 215, 0.22);
  border-radius: 50%;
}

.footer-social svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 34px;
  margin-top: 34px;
  border-top: 1px solid rgba(235, 226, 215, 0.16);
  color: rgba(235, 226, 215, 0.68);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    order: 3;
  }

  .nav-cta {
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 18px 22px 26px;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 247, 240, 0.97);
    box-shadow: 0 22px 42px rgba(34, 32, 29, 0.11);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(34, 32, 29, 0.08);
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(251, 247, 240, 0.94) 0%, rgba(251, 247, 240, 0.75) 58%, rgba(251, 247, 240, 0.42) 100%),
      url("/assets/hero-dr-rigi.jpg") center right / cover no-repeat;
  }

  .about-grid,
  .split-section,
  .digital-scanning-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .digital-scanning-copy {
    max-width: 720px;
  }

  .digital-scanning-media {
    width: min(100% - 18px, 760px);
  }

  .about-portrait {
    width: min(100% - 18px, 350px);
    aspect-ratio: 4 / 5;
    margin: 0 auto 24px;
  }

  .service-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    flex-basis: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 10px;
    min-height: 70px;
    padding: 10px 14px;
  }

  .brand-text {
    font-size: 0.96rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-cta {
    padding: 0 12px;
  }

  .nav-cta span {
    display: none;
  }

  .site-nav {
    top: 70px;
  }

  .section-inner {
    width: min(100% - 30px, 1120px);
  }

  .hero,
  .hero-content {
    min-height: calc(100svh - 70px);
  }

  .hero-content {
    padding: 56px 0 74px;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 4.6rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  section:not(.hero) {
    padding: 66px 0;
  }

  blockquote {
    padding: 22px;
  }

  .gallery-heading {
    align-items: start;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .footer-bottom {
    display: grid;
  }
}
