/* home.css — homepage-specific components (extends main.css). */

/* Alternating section backgrounds */
.section.alt { background: var(--deep); }

/* Hero stat row */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.5rem; }
.statb { text-align: center; }
.statb-n { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--gold-2); line-height: 1; }
.statb-l { display: block; font-size: var(--fs-xs); color: var(--dim); text-transform: uppercase; letter-spacing: .12em; margin-top: .5rem; }

/* Tick lists */
.ticks { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.ticks li { position: relative; padding-left: 1.4rem; font-size: var(--fs-sm); color: var(--dim); }
.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }

/* Process */
.proc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.pstep { position: relative; padding-top: .5rem; }
.pnum { font-family: var(--font-display); font-size: 2.4rem; color: var(--border-2); display: block; margin-bottom: .3rem; }
.quote { margin-top: 2.5rem; text-align: center; }
.quote cite { display: block; margin-top: 1rem; color: var(--dim); font-style: normal; font-size: var(--fs-sm); }

/* Portfolio metric */
.metric { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-2); }

/* Pricing */
.plan { display: flex; flex-direction: column; }
.plan.best { border-color: var(--gold); box-shadow: var(--glow); }
.plan-price { font-family: var(--font-display); font-size: 2rem; color: var(--gold-2); margin: .3rem 0; }
.plan .ticks { flex: 1; margin-bottom: 1rem; }

/* FAQ */
.faq { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.2rem; background: var(--card); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.15rem; color: var(--cream); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); }
.faq[open] summary::after { content: "–"; }
.faq p { margin-top: .8rem; color: var(--dim); font-size: var(--fs-sm); }

/* (Legacy #contact-form input styling removed — the detailed form is now built by
   site.js initContact() and fully styled by .ct-* in main.css; the old rule forced
   the consent checkbox to width:100%.) */

@media (max-width: 640px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* ============================================================
   Specialty diagnostic cards (#forwho) — one strategic card per
   questionnaire: icon · name · short description · dynamic CTA.
   Magnetic + gold sheen. Scoped to .spec-* (no side effects).
   ============================================================ */
.spec-grid{ display:grid; gap:1rem; margin-top:1.8rem; grid-template-columns:repeat(5,minmax(0,1fr)); }
@media (max-width:1080px){ .spec-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:720px){ .spec-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:460px){ .spec-grid{ grid-template-columns:1fr; } }

/* Small screens: horizontal swipe carousel with peek + blur on the neighbours */
@media (max-width:600px){
  .spec-grid{
    display:flex; grid-template-columns:none;
    overflow-x:auto; scroll-snap-type:x mandatory;
    gap:.9rem; padding:.6rem 9% 1rem; margin-top:1.4rem;
    -webkit-overflow-scrolling:touch; scrollbar-width:none;
  }
  .spec-grid::-webkit-scrollbar{ display:none; }
  .spec-card{
    flex:0 0 82%; scroll-snap-align:center;
    transition:filter .35s ease, opacity .35s ease, transform .35s ease;
  }
  /* blur/dim every card except the one snapped to the centre (JS adds .active) */
  .spec-grid.js-carousel .spec-card:not(.active){ filter:blur(3px); opacity:.5; transform:scale(.93); }
}

/* Pricing plans: same swipe carousel with peek + blur on small screens */
@media (max-width:600px){
  #plans.grid{
    display:flex; grid-template-columns:none;
    overflow-x:auto; scroll-snap-type:x mandatory;
    gap:1rem; padding:.6rem 6% 1rem; margin-top:1.4rem;
    align-items:start; -webkit-overflow-scrolling:touch; scrollbar-width:none;
  }
  #plans.grid::-webkit-scrollbar{ display:none; }
  #plans .plan .ticks{ flex:0 0 auto; }  /* natural height, no stretched empty space */
  #plans .plan{
    flex:0 0 88%; scroll-snap-align:center;
    transition:filter .35s ease, opacity .35s ease, transform .35s ease;
  }
  #plans.js-carousel .plan:not(.active){ filter:blur(3px); opacity:.5; transform:scale(.94); }
  /* Compact the plan so the whole card fits the phone screen */
  #plans .plan{ padding:1.2rem 1.15rem; }
  #plans .plan.stack > * + *{ margin-top:.5rem; }
  #plans .plan h3{ font-size:1.25rem; margin:0; }
  #plans .plan .lead{ font-size:.85rem; line-height:1.38; }
  #plans .plan .plan-price{ font-size:1.7rem; margin:.1rem 0; }
  #plans .plan .ticks{ gap:.3rem; margin-top:.3rem; margin-bottom:.6rem; }
  #plans .plan .ticks li{ font-size:.8rem; line-height:1.3; padding-left:1.15rem; }
  #plans .plan .btn{ padding:.62rem; font-size:.9rem; }
  #plans .plan .badge{ font-size:.62rem; padding:.2rem .55rem; }
}

.spec-card{
  position:relative; overflow:hidden; isolation:isolate;
  display:flex; flex-direction:column; align-items:flex-start; gap:.55rem;
  padding:1.5rem 1.3rem 1.4rem; text-decoration:none; color:var(--cream);
  background:linear-gradient(165deg,var(--card) 0%,var(--card-2) 100%);
  border:1px solid var(--border); border-radius:var(--radius-lg);
  transform:translate3d(0,0,0); will-change:transform;
  transition:transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.spec-card::after{ content:""; position:absolute; top:0; left:0; height:3px; width:100%;
  background:linear-gradient(90deg,var(--gold),var(--gold-2)); transform:scaleX(0); transform-origin:left; transition:transform .35s ease; }
.spec-card:hover::after, .spec-card:focus-visible::after{ transform:scaleX(1); }
.spec-card:hover, .spec-card:focus-visible{ border-color:var(--gold-2); outline:none; box-shadow:0 16px 44px rgba(201,168,76,.20); transform:translateY(-4px); }

.spec-ico{ font-size:1.7rem; line-height:1; width:52px; height:52px; display:grid; place-items:center; border-radius:12px;
  background:rgba(201,168,76,.10); border:1px solid var(--border); filter:drop-shadow(0 4px 10px rgba(201,168,76,.25)); transition:transform .3s cubic-bezier(.2,.8,.2,1); }
.spec-card:hover .spec-ico{ transform:scale(1.08) translateY(-2px); }
.spec-name{ font-family:var(--font-display); font-size:1.3rem; font-weight:600; color:var(--cream); letter-spacing:.01em; }
.spec-card:hover .spec-name{ color:var(--gold-2); }
.spec-desc{ font-size:.88rem; color:var(--dim); line-height:1.45; flex:1; }
.spec-meta{ font-size:.66rem; color:var(--muted); letter-spacing:.1em; text-transform:uppercase; }

.spec-cta{ display:inline-flex; align-items:center; gap:.4rem; margin-top:.2rem; padding:.5rem .9rem; border-radius:999px;
  border:1px solid var(--border-2); color:var(--gold-2); font-size:.85rem; font-weight:500; background:transparent;
  transition:background .25s ease, color .25s ease, border-color .25s ease, gap .25s ease; }
.spec-card:hover .spec-cta, .spec-card:focus-visible .spec-cta{ background:linear-gradient(135deg,var(--gold),var(--gold-2)); color:var(--on-gold); border-color:transparent; gap:.7rem; }
.spec-cta .spec-go{ font-weight:600; transition:transform .25s ease; }
.spec-card:hover .spec-cta .spec-go{ transform:translateX(3px); }

.spec-sheen{ position:absolute; top:0; left:0; width:60%; height:100%; z-index:1; pointer-events:none;
  transform:translateX(-160%) skewX(-18deg); background:linear-gradient(90deg,transparent,rgba(229,201,106,.14),transparent); }
.spec-card:hover .spec-sheen{ animation:specSweep .9s ease; }
@keyframes specSweep{ to{ transform:translateX(230%) skewX(-18deg); } }

.spec-unsure{ margin-top:1.6rem; font-size:var(--fs-sm); color:var(--dim); text-align:center; }
.spec-wa{ color:var(--green); font-weight:500; text-decoration:none; border-bottom:1px solid transparent; transition:border-color .25s ease; }
.spec-wa:hover{ color:var(--green); border-color:var(--green); }

@media (prefers-reduced-motion: reduce){
  .spec-card, .spec-ico, .spec-cta, .spec-go{ transition:none; }
  .spec-sheen{ display:none; }
}

/* ============================================================
   Home hero background visual (owner-controlled via Home Copy).
   Shown only when a media URL is set; strong vignette keeps text readable.
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero-visual { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-visual img, .hero-visual video { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(9,9,9,0.35), rgba(9,9,9,0.82) 78%),
    linear-gradient(to bottom, var(--black), transparent 22%, transparent 72%, var(--black));
}
:root[data-theme="light"] .hero-visual img, :root[data-theme="light"] .hero-visual video { opacity: .28; }

/* About + Portfolio media (owner-controlled via Home Copy → Imagens) */
.about-visual { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-bottom: 1rem; }
.about-visual img { width: 100%; max-height: 340px; object-fit: cover; display: block; }
.port-visual { border-radius: var(--radius); overflow: hidden; margin: -0.4rem -0.4rem 0.6rem; }
.port-visual img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }

/* ============================================================
   Service + profile cards — elevated hover: gold top-accent,
   lift, glow, heading shift, and a light sheen sweep.
   ============================================================ */
#services .card, #forwho .card {
  position:relative; overflow:hidden; isolation:isolate;
  transition:transform .32s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
#services .card h3, #forwho .card h3 { transition:color .3s ease; }
#services .card::before, #forwho .card::before {
  content:""; position:absolute; top:0; left:0; height:3px; width:100%;
  background:linear-gradient(90deg,var(--gold),var(--gold-2));
  transform:scaleX(0); transform-origin:left; transition:transform .4s ease; z-index:2;
}
#services .card::after, #forwho .card::after {
  content:""; position:absolute; top:0; left:0; width:55%; height:100%; z-index:1; pointer-events:none;
  transform:translateX(-160%) skewX(-18deg);
  background:linear-gradient(90deg,transparent,rgba(229,201,106,.10),transparent);
}
#services .card:hover, #forwho .card:hover, #services .card:focus-within, #forwho .card:focus-within {
  transform:translateY(-6px); border-color:var(--gold-2);
  box-shadow:0 18px 46px rgba(201,168,76,.16);
  background:linear-gradient(165deg,var(--card) 0%, var(--card-2) 120%);
}
#services .card:hover::before, #forwho .card:hover::before { transform:scaleX(1); }
#services .card:hover h3, #forwho .card:hover h3 { color:var(--gold-2); }
#services .card:hover::after, #forwho .card:hover::after { animation:specSweep .9s ease; }

@media (prefers-reduced-motion: reduce){
  #services .card, #forwho .card { transition:border-color .3s ease; }
  #services .card::after, #forwho .card::after { display:none; }
  #services .card:hover, #forwho .card:hover { transform:none; }
}
/* 3D gold icons (icons3d.js): the art has its own volume → no tinted box behind it */
.spec-ico.has3d{ width:60px; height:60px; background:none; border:0; filter:drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
