:root {
  --primary: #193c4c;
  --accent: #c98563;
  --background: #f4f1ea;
  --surface: #fffdf8;
  --text: #183039;
  --muted: color-mix(in srgb, var(--text) 68%, transparent);
  --line: color-mix(in srgb, var(--text) 18%, transparent);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: min(1280px, calc(100vw - 64px));
  --header-height: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--background);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
[id] { scroll-margin-top: calc(var(--header-height) + 24px); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: white;
  background: var(--primary);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: var(--header-height);
  padding: 14px max(24px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--primary);
  background: color-mix(in srgb, var(--background) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--surface);
  background: var(--primary);
  font-family: var(--serif);
  font-size: 18px;
  border-radius: 50% 50% 42% 58%;
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.brand-copy small { margin-top: 4px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a, .footer-links a { text-decoration: none; font-size: 14px; }
.site-header nav a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.icon-link svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-link .fill { fill: currentColor; stroke: none; }

.button {
  min-height: 54px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 2px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .2s ease, background-color .2s ease;
}
.button:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--primary) 88%, white); }
.button-small { min-height: 42px; padding: 10px 17px; font-size: 13px; }
.button-light { color: var(--primary); background: var(--surface); border-color: var(--surface); }
.button-light:hover { background: color-mix(in srgb, var(--surface) 90%, var(--accent)); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.hero {
  width: var(--page);
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 112px) 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}
.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h1 { max-width: 800px; margin-bottom: 30px; font-size: clamp(3rem, 3vw + 1.5rem, 5.2rem); line-height: .99; }
.hero-intro { max-width: 640px; margin-bottom: 34px; color: var(--muted); font-size: clamp(1rem, .3vw + .95rem, 1.2rem); }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.text-link { font-size: 14px; font-weight: 700; text-underline-offset: 5px; }
.microcopy { max-width: 530px; margin: 20px 0 0; color: var(--muted); font-size: 12px; }
.hero-visual { position: relative; }
.portrait-frame {
  position: relative;
  aspect-ratio: .78;
  overflow: hidden;
  background: #b9c8cd;
  border-radius: 47% 47% 3px 3px;
}
.portrait-frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.5); border-radius: 47% 47% 2px 2px; pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.portrait-caption { margin: 15px 0 0; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

.recognition {
  padding: clamp(80px, 11vw, 160px) max(24px, calc((100vw - 1080px) / 2));
  color: var(--surface);
  background: var(--primary);
  text-align: center;
}
.recognition p { margin-bottom: 25px; color: color-mix(in srgb, var(--surface) 70%, transparent); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.recognition h2 { margin: 0 auto; font-size: clamp(2.3rem, 4.4vw, 4.7rem); line-height: 1.08; }
.recognition em { color: #e8bd9f; font-weight: 400; }

.about, .gallery-section, .faq { width: var(--page); margin: 0 auto; padding: clamp(88px, 11vw, 150px) 0; }
.section-index { padding-bottom: 18px; display: flex; justify-content: space-between; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.section-index.light { color: rgba(255,255,255,.62); border-color: rgba(255,255,255,.22); }
.about-layout { padding-top: 64px; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(50px, 10vw, 150px); align-items: start; }
.about-layout h2, .gallery-heading h2, .faq h2 { font-size: clamp(2.45rem, 4vw, 4.6rem); line-height: 1.04; }
.about-layout p { max-width: 640px; font-size: 1.08rem; }
.professional-details { margin: 34px 0 0; border-top: 1px solid var(--line); }
.professional-details div { padding: 14px 0; display: grid; grid-template-columns: 110px 1fr; gap: 18px; border-bottom: 1px solid var(--line); }
.professional-details dt { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.professional-details dd { margin: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.35; }
.professional-registration { margin: 26px 0 18px; color: var(--primary); font-size: .8rem !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.credential-note { padding: 20px 0 0 24px; color: var(--muted); border-left: 2px solid var(--accent); font-size: .9rem !important; }

.process { padding: clamp(88px, 10vw, 140px) max(24px, calc((100vw - 1280px) / 2)); color: white; background: var(--primary); }
.section-heading h2 { max-width: 900px; margin: 64px 0 80px; font-size: clamp(2.6rem, 5vw, 5.2rem); line-height: 1.02; }
.process-item { padding: 34px 0; display: grid; grid-template-columns: 80px .8fr 1fr; gap: 36px; border-top: 1px solid rgba(255,255,255,.2); }
.process-item:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.process-number { color: #e8bd9f; font-family: var(--serif); font-size: 24px; }
.process-item h3 { margin-bottom: 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2.25rem); font-weight: 400; line-height: 1.2; }
.process-item p { max-width: 640px; margin-bottom: 0; color: rgba(255,255,255,.72); }
.mid-cta { margin-top: 90px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; color: var(--primary); background: var(--accent); }
.mid-cta .eyebrow { color: var(--primary); }
.mid-cta h2 { max-width: 700px; margin: 0; font-size: clamp(2.2rem, 3.5vw, 4rem); line-height: 1.04; }

.gallery-heading { padding: 56px 0; display: grid; grid-template-columns: 1fr .6fr; gap: 60px; align-items: end; }
.gallery-heading h2 { margin: 0; }
.gallery-heading p { max-width: 480px; margin: 0; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery figure { min-height: 270px; margin: 0; overflow: hidden; background: #d8dcda; }
.gallery figure:nth-child(6n+1), .gallery figure:nth-child(6n+4) { grid-column: span 7; }
.gallery figure:nth-child(6n+2), .gallery figure:nth-child(6n+3) { grid-column: span 5; }
.gallery figure:nth-child(6n+5), .gallery figure:nth-child(6n+6) { grid-column: span 6; }
.gallery img { width: 100%; height: 100%; min-height: 270px; max-height: 560px; object-fit: cover; }

.faq { border-top: 1px solid var(--line); }
.faq-layout { padding-top: 64px; display: grid; grid-template-columns: .8fr 1fr; gap: clamp(60px, 9vw, 130px); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 25px 38px 25px 0; position: relative; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 22px; color: var(--accent); font-family: var(--sans); font-weight: 300; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 45px 24px 0; color: var(--muted); }

.closing { padding: clamp(90px, 12vw, 170px) max(24px, calc((100vw - 980px) / 2)); color: var(--surface); background: #112f3c; text-align: center; }
.closing h2 { margin-bottom: 30px; font-size: clamp(2.7rem, 5.5vw, 5.7rem); line-height: 1; }
.closing > p:not(.eyebrow) { max-width: 680px; margin: 0 auto 36px; color: rgba(255,255,255,.72); font-size: 1.05rem; }
footer { padding: 50px max(24px, calc((100vw - 1280px) / 2)); display: grid; grid-template-columns: 1fr auto; gap: 36px 60px; background: var(--background); }
.footer-brand { display: grid; line-height: 1.2; }
.footer-brand strong { font-family: var(--serif); font-size: 27px; font-weight: 400; }
.footer-brand span { color: var(--muted); font-size: 11px; letter-spacing: .17em; text-transform: uppercase; }
.footer-links { display: flex; gap: 28px; align-items: center; }
.disclaimer { grid-column: 1 / -1; max-width: 850px; margin: 0; color: var(--muted); font-size: 12px; }
.portfolio-credit { grid-column: 1 / -1; margin: -22px 0 0; display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); font-size: 11px; }
.portfolio-credit strong { color: var(--text); }
.portfolio-credit a { text-underline-offset: 3px; }
.floating-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 40; min-height: 52px; padding: 10px 17px; display: flex; align-items: center; gap: 9px; color: white; background: #197a4a; border-radius: 40px; box-shadow: 0 8px 28px rgba(0,0,0,.2); text-decoration: none; font-size: 13px; font-weight: 800; }
.floating-whatsapp svg { width: 23px; fill: currentColor; }
.noscript { padding: 18px; color: #fff; background: #8b2f2f; text-align: center; }

@media (max-width: 900px) {
  :root { --page: min(100% - 40px, 680px); --header-height: 74px; }
  .site-header { padding: 12px 20px; }
  .site-header nav, .header-actions .button { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 58px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; max-width: 520px; }
  .about-layout, .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .process-item { grid-template-columns: 54px 1fr; gap: 20px; }
  .process-item p { grid-column: 2; }
  .mid-cta { padding: 38px; grid-template-columns: 1fr; }
  .gallery-heading { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 600px) {
  :root { --page: calc(100% - 32px); }
  body { line-height: 1.58; }
  .brand-copy strong { font-size: 18px; }
  .brand-mark { width: 40px; height: 40px; }
  .icon-link { border: 0; }
  h1 { font-size: clamp(2.65rem, 13vw, 3.55rem); }
  .hero { gap: 52px; padding-bottom: 54px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .hero-actions .button { width: 100%; }
  .text-link { text-align: center; }
  .recognition { padding-inline: 20px; }
  .about, .gallery-section, .faq { padding-block: 78px; }
  .about-layout, .gallery-heading, .faq-layout { padding-top: 38px; }
  .process { padding-inline: 16px; }
  .section-heading h2 { margin-block: 46px 58px; font-size: 2.65rem; }
  .process-item { padding: 28px 0; grid-template-columns: 38px 1fr; gap: 14px; }
  .process-item p { font-size: .96rem; }
  .mid-cta { margin-top: 64px; padding: 30px 24px; }
  .mid-cta .button { width: 100%; }
  .gallery { display: grid; grid-template-columns: 1fr; }
  .gallery figure:nth-child(n) { grid-column: auto; min-height: 300px; }
  .faq-layout { gap: 22px; }
  footer { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; flex-direction: column; gap: 13px; }
  .disclaimer, .portfolio-credit { grid-column: 1; }
  .floating-whatsapp span { display: none; }
  .floating-whatsapp { width: 54px; height: 54px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
