@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Fraunces:ital,opsz,wght@1,9..144,500&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* =========================================================
   EXPLICA FQA — sistema de design "caderno de laboratório"
   ========================================================= */

:root{
  --paper:      #f2efe5;
  --paper-2:    #ece7d8;
  --grid-line:  rgba(20,32,43,.08);
  --grid-line-2:rgba(20,32,43,.14);

  --ink:        #16232f;
  --ink-soft:   #46545f;
  --muted:      #7c8a92;

  --line:       #d8d2bf;
  --line-strong:#c3bca4;

  --flame:      #d94f2b;
  --flame-dark: #b73c1d;
  --flame-tint: #fbe6dd;

  --copper:     #1f6f63;
  --copper-dark:#144e45;
  --copper-tint:#dfeeea;

  --white:      #fffdf8;

  --shadow-card: 0 1px 0 rgba(20,32,43,.05), 0 12px 30px rgba(20,32,43,.07);

  --radius-sm: 3px;
  --radius:    6px;

  --container: 1180px;
  --margin-col: 64px;

  --ease: 220ms cubic-bezier(.2,.7,.2,1);
}

/* =========================================================
   RESET
   ========================================================= */

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; scroll-padding-top: 96px; }

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family:"IBM Plex Sans", Arial, sans-serif;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;

  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
}

img{ display:block; width:100%; height:100%; object-fit:cover; }
a{ color:inherit; text-decoration:none; }
button,input,select,textarea{ font:inherit; }
button{ cursor:pointer; }

.container{
  width:min(var(--container), calc(100% - 48px));
  margin-inline:auto;
  position:relative;
}

::selection{ background:var(--flame); color:var(--white); }

/* margin rule — runs the length of the page like a notebook binding,
   only inside sections that opt in via .ruled */
.ruled{ position:relative; }
.ruled::before{
  content:"";
  position:absolute;
  left: calc(50% - (var(--container) / 2) + var(--margin-col));
  top:0; bottom:0;
  width:1px;
  background: var(--line-strong);
}
.ruled::after{
  content:"";
  position:absolute;
  left: calc(50% - (var(--container) / 2) + var(--margin-col) - 5px);
  top:0; bottom:0;
  width:1px;
  background: var(--flame);
  opacity:.35;
}
@media (max-width:1080px){
  .ruled::before,.ruled::after{ display:none; }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link{
  position:fixed; left:20px; top:-100px; z-index:9999;
  background:var(--ink); color:var(--white);
  padding:10px 16px; border-radius:var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus{ top:20px; }

:focus-visible{
  outline: 2px solid var(--flame);
  outline-offset: 3px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header{
  position:sticky; top:0; z-index:1000;
  height:84px;
  background: rgba(242,239,229,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line-strong);
}

.nav{
  height:84px;
  display:flex; align-items:center; gap:28px;
}

.brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }

.brand-mark{ width:38px; height:38px; color:var(--ink); flex-shrink:0; }
.brand-mark svg{ width:100%; height:100%; }

.brand strong{
  display:block;
  font-family:"Fraunces", serif;
  font-weight:600;
  font-size:1.32rem;
  line-height:1.1;
  letter-spacing:-.01em;
  color:var(--ink);
}
.brand small{
  display:block; margin-top:2px;
  font-family:"IBM Plex Mono", monospace;
  color:var(--muted);
  font-size:.66rem;
  letter-spacing:.03em;
}

.menu{
  display:flex; align-items:center; gap:30px;
  margin-left:auto;
  font-size:.87rem; font-weight:500;
}
.menu a{
  position:relative; padding:6px 0; color:var(--ink-soft);
  transition: color var(--ease);
}
.menu a::after{
  content:""; position:absolute; left:0; right:0; bottom:1px;
  height:6px;
  background: var(--flame-tint);
  z-index:-1;
  transform: scaleX(0);
  transform-origin:left;
  transition: transform var(--ease);
}
.menu a:hover{ color:var(--ink); }
.menu a:hover::after{ transform:scaleX(1); }

.menu-toggle{
  display:none; margin-left:auto;
  width:44px; height:44px;
  border:1px solid var(--line-strong); border-radius:var(--radius-sm);
  background:var(--white); color:var(--ink);
  font-size:1.2rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.button{
  min-height:48px;
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:12px 22px;
  border-radius: var(--radius-sm);
  border:1px solid transparent;
  font-size:.86rem; font-weight:600;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
}

.button-primary{
  background: var(--flame);
  color: var(--white);
  box-shadow: 0 3px 0 var(--flame-dark);
}
.button-primary:hover{ background:var(--flame-dark); transform: translateY(2px); box-shadow:0 1px 0 var(--flame-dark); }

.button-secondary{
  background:transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.button-secondary:hover{ background:var(--ink); color:var(--white); }

.button-dark{
  background:var(--ink); color:var(--white);
}
.button-dark:hover{ background:#0c1922; }

.button-small{ min-height:42px; padding:9px 16px; font-size:.78rem; }

.button svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; }
.button svg path:first-child{ fill:currentColor; stroke:none; }

/* =========================================================
   TYPE / SECTION SCAFFOLDING
   ========================================================= */

.tag{
  display:inline-flex; align-items:center; gap:8px;
  margin:0;
  font-family:"IBM Plex Mono", monospace;
  color:var(--copper);
  font-size:.78rem;
  font-weight:500;
}
.tag::before{
  content:"";
  width:7px; height:7px;
  background:var(--flame);
  border-radius:1px;
}

.section{ padding:120px 0; position:relative; }

.section-heading{ margin-bottom:60px; max-width:640px; }
.section-heading.centered{ margin-inline:auto; text-align:center; }

.section-heading h2,
.section-intro h2,
.exam-copy h2,
.location-layout h2,
.contact-intro h2{
  margin:14px 0 0;
  color:var(--ink);
  font-family:"Fraunces", serif;
  font-weight:600;
  font-size:clamp(2.1rem, 3.6vw, 3.4rem);
  line-height:1.08;
  letter-spacing:-.015em;
}
.section-heading h2 em,
.exam-copy h2 em,
.location-layout h2 em,
.contact-intro h2 em{
  font-style:italic;
  font-weight:500;
  color: var(--flame);
}

/* =========================================================
   HERO
   ========================================================= */

.hero{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--line-strong);
}

.hero-grid{
  position:relative; z-index:2;
  min-height:660px;
  display:grid;
  grid-template-columns: minmax(0,1.05fr) minmax(400px, .95fr);
  align-items:center;
  gap:70px;
  padding-top:60px; padding-bottom:60px;
}

.hero-copy{ max-width:600px; }

.hero-tag{
  display:flex; align-items:center; gap:10px;
  margin-bottom:24px;
  font-family:"IBM Plex Mono", monospace;
  color:var(--copper);
  font-size:.78rem;
}
.hero-tag span{ width:26px; height:1px; background:var(--flame); }

.hero h1{
  margin:0;
  color:var(--ink);
  font-family:"Fraunces", serif;
  font-weight:600;
  font-size:clamp(2.9rem, 5.4vw, 4.7rem);
  line-height:1.02;
  letter-spacing:-.02em;
}
.hero h1 em{
  font-style:italic;
  font-weight:500;
  color:var(--flame);
}

.hero-subtitle{
  max-width:480px;
  margin:28px 0 34px;
  color:var(--ink-soft);
  font-size:1.05rem;
  line-height:1.75;
}
.hero-subtitle strong{ color:var(--ink); font-weight:600; }

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

.trust-row{
  display:flex; gap:0;
  margin-top:48px;
  border-top:1px solid var(--line-strong);
}
.trust-row div{
  flex:1;
  padding:20px 20px 0 0;
  border-right:1px solid var(--line);
}
.trust-row div:last-child{ border-right:0; }
.trust-row strong{
  display:block;
  font-family:"Fraunces", serif;
  font-weight:600;
  color:var(--ink);
  font-size:1.5rem;
  letter-spacing:-.02em;
}
.trust-row span{
  display:block; margin-top:4px;
  color:var(--muted);
  font-size:.74rem;
  line-height:1.4;
}

/* Hero visual: a lab notebook page with hand-drawn diagrams */

.hero-visual{
  position:relative;
  height:520px;
}

.notebook-page{
  position:absolute; inset:0;
  background:
    repeating-linear-gradient(var(--grid-line) 0 1px, transparent 1px 34px),
    var(--white);
  border:1px solid var(--line-strong);
  border-radius:2px;
  box-shadow: var(--shadow-card);
  overflow:hidden;
}

.notebook-page::before{
  content:"";
  position:absolute; left:46px; top:0; bottom:0; width:1px;
  background: rgba(217,79,43,.28);
  pointer-events:none;
}

.notebook-inner{
  position:relative;
  z-index:1;
  padding: 32px 30px 30px 66px;
}

.notebook-caption{
  font-family:"IBM Plex Mono", monospace;
  font-size:.68rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.notebook-diagram{ width:100%; height:auto; }

/* Diagram line/fill helpers — shared by every hand-drawn SVG on the
   page (hero notebook, modality illustrations, exam graph) */
.ink{ stroke:var(--ink); fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.flame{ stroke:var(--flame); fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.copper{ stroke:var(--copper); fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.fill-copper{ fill:var(--copper); stroke:none; }
.fill-flame{ fill:var(--flame); stroke:none; }
svg text{
  font-family:"IBM Plex Mono", monospace;
  fill: var(--ink-soft);
}

.notebook-photo{
  margin:0;
  border:1px solid var(--line-strong);
  overflow:hidden;
  aspect-ratio: 16 / 10;
}
.notebook-photo img{
  width:100%; height:100%; object-fit:cover;
  filter: grayscale(.4) sepia(.08) contrast(1.05);
}
.notebook-photo-wide{ aspect-ratio: 16 / 7; }

.hero-badge{
  position:absolute; z-index:5;
  right:-18px; top:-18px;
  width:100px; height:100px;
  display:grid; place-items:center;
  background: var(--ink);
  color: var(--white);
  border-radius:50%;
  text-align:center;
  font-family:"IBM Plex Mono", monospace;
  font-size:.62rem;
  line-height:1.35;
  transform: rotate(8deg);
  box-shadow: var(--shadow-card);
}
.hero-badge strong{
  display:block;
  font-family:"Fraunces", serif;
  font-size:1.5rem;
  font-weight:600;
}

/* =========================================================
   SECTION INTRO (used by sobre / servicos)
   ========================================================= */

.section-intro{
  display:grid;
  grid-template-columns: var(--margin-col) 1fr;
  gap:24px;
  margin-bottom:70px;
}
.section-intro > div:first-child{ padding-top:10px; }

.section-number{
  display:block;
  font-family:"IBM Plex Mono", monospace;
  color: var(--muted);
  font-size:.78rem;
}

.section-intro h2{ max-width:760px; }

.section-intro.light .tag{ color:#8fd4c5; }
.section-intro.light .tag::before{ background: var(--flame); }
.section-intro.light .section-number{ color: rgba(255,255,255,.4); }
.section-intro.light h2{ color:var(--white); }
.section-intro.light h2 em{ color:#ff9a76; }

/* =========================================================
   SOBRE
   ========================================================= */

.about-layout{
  display:grid;
  grid-template-columns: var(--margin-col) 1.05fr .95fr;
  gap:40px;
  align-items:start;
}

.about-main{ max-width:640px; }

.about-main p{ margin:0 0 19px; color:var(--ink-soft); font-size:.96rem; }

.about-main .large-text{
  margin-bottom:26px;
  color:var(--ink);
  font-family:"Fraunces", serif;
  font-weight:500;
  font-size:1.5rem;
  line-height:1.5;
  letter-spacing:-.01em;
}
.about-main strong{ color:var(--ink); font-weight:600; }

.about-cards{ display:grid; gap:1px; background:var(--line-strong); border:1px solid var(--line-strong); }

.info-card{
  position:relative;
  padding:28px;
  background: var(--white);
}

.card-icon{
  width:40px; height:40px;
  display:grid; place-items:center;
  margin-bottom:20px;
  color: var(--flame);
  border:1px solid var(--line-strong);
  border-radius:50%;
}
.card-icon.green{ color: var(--copper); }
.card-icon svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }

.card-label{
  display:block; margin-bottom:6px;
  font-family:"IBM Plex Mono", monospace;
  color:var(--muted);
  font-size:.68rem;
}

.info-card h3{ margin:0 0 8px; color:var(--ink); font-size:1.1rem; font-weight:600; letter-spacing:-.01em; }
.info-card p{ margin:0; color:var(--muted); font-size:.8rem; line-height:1.6; }

/* =========================================================
   SERVIÇOS (dark)
   ========================================================= */

.section-dark{
  position:relative;
  background: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:34px 34px;
  color:var(--white);
}
.section-dark .container{ position:relative; z-index:2; }
.section-dark.ruled::before{ background: rgba(255,255,255,.16); }

.year-grid{
  display:grid;
  grid-template-columns: var(--margin-col) repeat(3,1fr);
  gap: 0 1px;
  background: rgba(255,255,255,.14);
  border-top:1px solid rgba(255,255,255,.14);
  border-bottom:1px solid rgba(255,255,255,.14);
}
.year-grid > div:first-child{ background:transparent; }

.year-card{
  position:relative;
  min-height:230px;
  display:flex; flex-direction:column; justify-content:space-between;
  padding:30px 26px;
  background: var(--ink);
}

.year{
  font-family:"Fraunces", serif;
  color: rgba(255,255,255,.3);
  font-weight:600;
  font-size:2.6rem;
  line-height:1;
}
.year-card h3{ margin:22px 0 6px; font-size:1.15rem; font-weight:600; letter-spacing:-.01em; }
.year-card p{ max-width:260px; margin:0; color:#a9b6bd; font-size:.78rem; line-height:1.6; }

.method-row{
  display:grid;
  grid-template-columns: var(--margin-col) repeat(3,1fr);
  margin-top:0;
}
.method-row > div{ padding:26px 26px 0 0; }
.method-row > div:first-child{ padding:0; }

.method-number{
  display:block; margin-bottom:12px;
  font-family:"IBM Plex Mono", monospace;
  color:#8fd4c5;
  font-size:.72rem;
}
.method-row strong{ display:block; font-size:1.02rem; font-weight:600; }
.method-row p{ max-width:250px; margin:6px 0 0; color:#9aabba; font-size:.76rem; }

/* =========================================================
   MODALIDADES
   ========================================================= */

.modality-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:1px;
  background: var(--line-strong);
  border:1px solid var(--line-strong);
}

.modality-card{
  background: var(--white);
  padding:44px 40px;
  display:flex; flex-direction:column;
}

.modality-illustration{
  width:100%; height:200px;
  margin-bottom:28px;
  border:1px solid var(--line);
  background:
    repeating-linear-gradient(var(--white) 0 33px, var(--grid-line) 33px 34px);
  display:grid; place-items:center;
}
.modality-illustration svg{ width:70%; height:70%; }

.modality-top{
  display:flex; align-items:center; gap:12px;
  margin-bottom:16px;
}
.modality-icon{
  width:34px; height:34px;
  display:grid; place-items:center;
  border:1px solid var(--flame);
  color: var(--flame);
  border-radius:50%;
  font-family:"IBM Plex Mono", monospace;
  font-size:.7rem; font-weight:600;
}
.modality-icon.blue{ border-color:var(--copper); color:var(--copper); }

.modality-top span:last-child{
  font-family:"IBM Plex Mono", monospace;
  color:var(--muted);
  font-size:.72rem;
}

.modality-content h3{
  margin:0 0 10px;
  color:var(--ink);
  font-family:"Fraunces", serif;
  font-weight:600;
  font-size:1.6rem;
  letter-spacing:-.015em;
}
.modality-content > p{ margin:0; color:var(--ink-soft); font-size:.86rem; line-height:1.65; }

.modality-content ul{
  display:grid; gap:9px;
  margin:24px 0 0; padding:20px 0 0;
  border-top:1px solid var(--line);
  list-style:none;
}
.modality-content li{
  position:relative; padding-left:20px;
  color:var(--ink-soft);
  font-size:.82rem;
}
.modality-content li::before{
  content:"";
  position:absolute; left:0; top:.55em;
  width:8px; height:1px;
  background: var(--flame);
}

/* =========================================================
   PREÇOS — tabela de laboratório
   ========================================================= */

.pricing-section{ background: var(--paper-2); }

.section-description{ margin:14px 0 0; color:var(--muted); font-size:.88rem; max-width:520px; }
.section-heading.centered .section-description{ margin-inline:auto; }

.price-table{
  border-top:1px solid var(--line-strong);
}

.price-row{
  display:grid;
  grid-template-columns: 1.4fr .8fr 1.1fr 1.7fr auto;
  align-items:center;
  gap:24px;
  padding:26px 4px;
  border-bottom:1px solid var(--line-strong);
}

.price-row.featured{
  background: var(--white);
  box-shadow: inset 3px 0 0 var(--flame);
  padding-left:20px;
}

.price-row-label{
  font-family:"IBM Plex Mono", monospace;
  color:var(--muted);
  font-size:.72rem;
}

.price-row h3{ margin:0; color:var(--ink); font-family:"Fraunces", serif; font-weight:600; font-size:1.15rem; }

.price-value{ display:flex; align-items:baseline; gap:5px; }
.price-value strong{ font-family:"Fraunces", serif; font-weight:600; color:var(--ink); font-size:1.9rem; letter-spacing:-.02em; }
.price-value span{ color:var(--muted); font-size:.72rem; }

.price-row p{ margin:0; color:var(--ink-soft); font-size:.82rem; line-height:1.55; }

.price-row .button{ justify-self:end; }

/* =========================================================
   EXAMES
   ========================================================= */

.exam-section{ background: var(--paper); }

.exam-layout{
  display:grid;
  grid-template-columns: var(--margin-col) 1fr .95fr;
  align-items:start;
  gap:50px;
}

.exam-copy{ max-width:560px; }

.exam-lead{ margin:24px 0 34px; color:var(--ink-soft); font-size:.92rem; line-height:1.7; }

.exam-list{ display:grid; gap:0; border-top:1px solid var(--line-strong); }
.exam-list > div{
  display:grid; grid-template-columns:42px 1fr;
  padding:18px 0;
  border-bottom:1px solid var(--line-strong);
}
.exam-list span{ font-family:"IBM Plex Mono", monospace; color:var(--flame); font-size:.74rem; }
.exam-list strong{ color:var(--ink); font-size:.85rem; font-weight:600; }
.exam-list p{ grid-column:2; margin:4px 0 0; color:var(--muted); font-size:.76rem; }

.exam-visual{
  position:relative;
  height:520px;
  background: var(--white);
  border:1px solid var(--line-strong);
  overflow:hidden;
}
.exam-visual::before{
  content:"";
  position:absolute; inset:0;
  background-image: repeating-linear-gradient(var(--white) 0 33px, var(--grid-line) 33px 34px);
}
.exam-visual-inner{
  position:absolute; inset:0;
  padding:36px;
  display:flex; flex-direction:column; justify-content:space-between;
}
.exam-visual-caption{ font-family:"IBM Plex Mono", monospace; font-size:.7rem; color:var(--muted); }

.exam-photo{
  margin:0;
  border:1px solid var(--line-strong);
  overflow:hidden;
  aspect-ratio: 16 / 9;
}
.exam-photo img{
  width:100%; height:100%; object-fit:cover;
  filter: grayscale(.4) sepia(.08) contrast(1.05);
}

.exam-badge{
  align-self:flex-start;
  display:flex; align-items:center; gap:14px;
  padding:14px 18px;
  background: var(--ink);
  color:var(--white);
}
.exam-badge span{
  width:38px; height:38px;
  display:grid; place-items:center;
  background: var(--flame);
  font-family:"IBM Plex Mono", monospace;
  font-size:.62rem; font-weight:600;
}
.exam-badge strong{ font-size:.78rem; line-height:1.35; font-weight:500; }

/* =========================================================
   LOCALIZAÇÃO
   ========================================================= */

.location-section{ background: var(--paper-2); }

.location-layout{
  display:grid;
  grid-template-columns: var(--margin-col) .78fr 1.22fr;
  align-items:center;
  gap:50px;
}
.location-layout p{ color:var(--ink-soft); font-size:.9rem; }
.location-layout .muted{ margin-top:16px; font-size:.76rem; color:var(--muted); }
.location-layout .button{ margin-top:20px; }

.map-wrap{
  height:440px;
  border:1px solid var(--line-strong);
  filter: grayscale(.25) contrast(1.02);
}
.map-wrap iframe{ width:100%; height:100%; display:block; border:0; }

/* =========================================================
   CONTACTO
   ========================================================= */

.contact-section{ background: var(--paper); }

.contact-layout{
  display:grid;
  grid-template-columns: var(--margin-col) .82fr 1.18fr;
  align-items:start;
  gap:60px;
}

.contact-intro{ max-width:480px; }
.contact-intro > p:not(.tag){ margin:24px 0 0; color:var(--ink-soft); font-size:.9rem; }

.contact-methods{ display:grid; gap:0; margin-top:36px; border-top:1px solid var(--line-strong); }
.contact-methods a{
  display:flex; align-items:center; gap:14px;
  padding:16px 0;
  border-bottom:1px solid var(--line-strong);
  transition: gap var(--ease);
}
.contact-methods a:hover{ gap:20px; }

.contact-icon{
  width:40px; height:40px;
  display:grid; place-items:center;
  border:1px solid var(--flame); color:var(--flame);
  border-radius:50%;
  font-family:"IBM Plex Mono", monospace;
  font-size:.68rem; font-weight:600;
}
.contact-icon.email{ border-color:var(--copper); color:var(--copper); }

.contact-methods small{ display:block; font-family:"IBM Plex Mono", monospace; color:var(--muted); font-size:.66rem; }
.contact-methods strong{ display:block; margin-top:2px; color:var(--ink); font-size:.88rem; font-weight:600; }

.contact-form{
  padding:40px;
  background: var(--white);
  border:1px solid var(--line-strong);
}

.form-header{ margin-bottom:26px; padding-bottom:20px; border-bottom:1px solid var(--line-strong); }
.form-header span{ font-family:"IBM Plex Mono", monospace; color:var(--copper); font-size:.72rem; }
.form-header h3{ margin:6px 0 0; color:var(--ink); font-family:"Fraunces", serif; font-weight:600; font-size:1.5rem; }

.contact-form label{ display:block; margin:14px 0; color:var(--ink-soft); font-size:.78rem; font-weight:500; }
.contact-form label > span{ color:var(--muted); font-weight:400; }

input,select,textarea{
  width:100%; margin-top:7px; padding:12px 14px;
  background: var(--paper);
  color:var(--ink);
  border:1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline:none;
  font-size:.85rem;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
input::placeholder,textarea::placeholder{ color:var(--muted); }
input:focus,select:focus,textarea:focus{
  background:var(--white);
  border-color:var(--flame);
  box-shadow: 0 0 0 3px var(--flame-tint);
}
textarea{ resize:vertical; min-height:110px; }

.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }

.contact-form button{ width:100%; margin-top:10px; }

.form-note{ margin:12px 0 0; color:var(--muted); font-size:.68rem; text-align:center; }

/* =========================================================
   FOOTER
   ========================================================= */

footer{
  padding:70px 0 26px;
  background: var(--ink);
  color:#c9d3d9;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:34px 34px;
}

.footer-grid{
  display:grid;
  grid-template-columns: var(--margin-col) 1fr .7fr .9fr;
  gap:40px;
}
.footer-grid > div:first-child{ background:transparent; }

.footer-brand{ color:var(--white); }
.footer-brand .brand-mark{ color:#8fd4c5; }
.footer-brand small{ color:#8fa0ac; }

.footer-main p{ max-width:320px; margin:20px 0 0; color:#8fa0ac; font-size:.78rem; line-height:1.6; }

.footer-column{ display:flex; flex-direction:column; gap:10px; font-size:.8rem; }
.footer-column strong{ margin-bottom:6px; color:var(--white); font-size:.78rem; font-weight:600; }
.footer-column a,.footer-column span{ color:#9fb0ba; transition:color var(--ease); }
.footer-column a:hover{ color:var(--white); }

.copyright{
  display:flex; gap:10px;
  margin-top:56px; padding-top:22px;
  border-top:1px solid rgba(255,255,255,.12);
  color:#71889b;
  font-family:"IBM Plex Mono", monospace;
  font-size:.68rem;
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width:1080px){
  .container{ width:min(var(--container), calc(100% - 40px)); }
  .menu{ gap:18px; }

  .hero-grid{ grid-template-columns:1fr .9fr; gap:44px; }
  .hero-visual{ height:460px; }

  .about-layout{ grid-template-columns:1fr 1fr; gap:44px; }
  .about-layout > div:first-child{ display:none; }

  .section-intro{ grid-template-columns:1fr; gap:10px; }
  .section-intro > div:first-child{ padding-top:0; }

  .year-grid,.method-row{ grid-template-columns:repeat(3,1fr); }
  .year-grid > div:first-child,.method-row > div:first-child{ display:none; }

  .exam-layout{ grid-template-columns:1fr .95fr; gap:44px; }
  .exam-layout > div:first-child{ display:none; }

  .location-layout{ grid-template-columns:.8fr 1.2fr; gap:44px; }
  .location-layout > div:first-child.margin-col{ display:none; }

  .contact-layout{ grid-template-columns:.85fr 1.15fr; gap:44px; }

  .price-row{ grid-template-columns:1.3fr .9fr 1.2fr; }
  .price-row p,.price-row .button{ display:none; }

  .footer-grid{ grid-template-columns:1.4fr .7fr .9fr; }
  .footer-grid > div:first-child.margin-col{ display:none; }
}

/* =========================================================
   RESPONSIVE — 900px
   ========================================================= */

@media (max-width:900px){
  .site-header,.nav{ height:72px; }
  .nav{ gap:14px; }
  .nav > .button-small{ display:none; }
  .menu-toggle{ display:grid; place-items:center; }

  .menu{
    display:none;
    position:absolute; left:0; right:0; top:72px;
    margin:0; padding:12px 24px 20px;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--white);
    border-bottom:1px solid var(--line-strong);
  }
  .menu.open{ display:flex; }
  .menu a{ padding:14px 0; border-bottom:1px solid var(--line); }
  .menu a:last-child{ border-bottom:0; }
  .menu a::after{ display:none; }

  .hero-grid{ grid-template-columns:1fr; min-height:auto; padding-top:60px; padding-bottom:60px; }
  .hero-copy{ max-width:640px; }
  .hero-visual{ max-width:600px; width:100%; height:420px; }

  .section{ padding:80px 0; }
  .section-heading{ margin-bottom:40px; }

  .about-layout{ grid-template-columns:1fr; }
  .about-cards{ grid-template-columns:1fr 1fr; }

  .year-grid{ grid-template-columns:1fr 1fr; }
  .year-card:last-child{ grid-column:1 / -1; }
  .method-row{ grid-template-columns:1fr; }
  .method-row > div{ padding:22px 0; border-bottom:1px solid rgba(255,255,255,.12); }
  .method-row > div:last-child{ border-bottom:0; }

  .modality-grid{ grid-template-columns:1fr; }

  .exam-layout{ grid-template-columns:1fr; }
  .exam-visual{ max-width:640px; height:400px; }

  .location-layout{ grid-template-columns:1fr; gap:36px; }
  .map-wrap{ height:360px; }

  .contact-layout{ grid-template-columns:1fr; gap:44px; }

  .price-row{ grid-template-columns:1fr auto; }
  .price-row-label{ display:none; }

  .footer-grid{ grid-template-columns:1fr 1fr; gap:40px; }
  .footer-main{ grid-column:1 / -1; }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width:620px){
  .container{ width:calc(100% - 32px); }

  .brand-mark{ width:32px; height:32px; }
  .brand strong{ font-size:1.1rem; }

  .hero-grid{ padding-top:48px; padding-bottom:48px; gap:36px; }
  .hero h1{ font-size:clamp(2.5rem, 11vw, 3.4rem); }
  .hero-subtitle{ margin:22px 0 26px; font-size:.94rem; }
  .hero-actions{ flex-direction:column; }
  .hero-actions .button{ width:100%; }

  .trust-row{ flex-wrap:wrap; }
  .trust-row div{ flex:1 1 40%; padding-bottom:16px; }

  .hero-visual{ height:340px; }
  .hero-badge{ width:76px; height:76px; font-size:.55rem; right:-10px; top:-10px; }
  .hero-badge strong{ font-size:1.1rem; }

  .section{ padding:64px 0; }
  .section-heading{ margin-bottom:32px; }

  .about-cards{ grid-template-columns:1fr; }

  .year-grid{ grid-template-columns:1fr; }
  .year-card,.year-card:last-child{ grid-column:auto; min-height:auto; }

  .modality-card{ padding:30px 24px; }

  .price-row{ padding:20px 4px; }
  .price-row.featured{ padding-left:16px; }

  .exam-visual{ height:300px; }

  .contact-form{ padding:24px 20px; }
  .form-row{ grid-template-columns:1fr; gap:0; }

  .footer-grid{ grid-template-columns:1fr; gap:32px; }

  .copyright{ flex-wrap:wrap; margin-top:36px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

/* =========================================================
   AJUSTES VISUAIS — imagens
   ========================================================= */
.modality-illustration{
  height:250px;
  margin-bottom:28px;
  overflow:hidden;
  border:1px solid var(--line-strong);
  background:var(--paper-2);
  position:relative;
}
.modality-illustration img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 45%;
  filter:grayscale(.12) contrast(1.03);
  transition:transform 320ms ease;
}
.modality-card:hover .modality-illustration img{
  transform:scale(1.025);
}
.notebook-photo{
  aspect-ratio:16 / 9;
}
.notebook-photo img{
  object-fit:cover;
  object-position:center;
}
.notebook-photo-wide{
  aspect-ratio:16 / 8;
}
.exam-photo{
  aspect-ratio:16 / 10;
}
.exam-photo img{
  object-position:center;
}
@media (max-width:900px){
  .modality-illustration{height:240px;}
}
@media (max-width:620px){
  .modality-illustration{height:220px;}
 }  
.price-line {
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 600;
}

