html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; scrollbar-width: none; }
body { overscroll-behavior: none; }
::-webkit-scrollbar { display: none; }
img { max-width: 100%; display: block; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 0.75rem 1rem; border-radius: 999px; background: #171715; color: #F7F5F0; font: 500 13px/1 Inter, sans-serif; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Logo: SMACai wordmark with DIGITAL SOLUTIONS underneath */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: #171715; }
.logo-word { font-family: Montserrat, Manrope, sans-serif; font-weight: 300; font-size: 1.55rem; letter-spacing: 0.01em; }
.logo-tag { font-family: Montserrat, Manrope, sans-serif; font-weight: 400; font-size: 0.4rem; letter-spacing: 0.42em; margin-top: 0.3rem; padding-left: 0.42em; text-transform: uppercase; }
.logo-lg .logo-word { font-size: 2.4rem; }
.logo-lg .logo-tag { font-size: 0.56rem; margin-top: 0.45rem; }
.logo-light { color: #F7F5F0; }

/* Accent word inside headlines (Option A style: light italic) */
.accent { font-style: italic; font-weight: 300; color: #77736C; }
.bg-ink .accent { color: rgba(247, 245, 240, 0.6); }

/* Desktop dropdowns */
.dd-panel { position: absolute; top: 100%; padding-top: 0.75rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 60; }
.dd-panel.wide { left: 0; right: 0; margin-inline: auto; width: min(980px, calc(100% - 2rem)); }
.dd-panel.narrow { left: -0.5rem; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel, .dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd:hover .dd-chevron, .dd.open .dd-chevron { transform: rotate(180deg); }
.dd-chevron { transition: transform .18s ease; }
.nav-pill[aria-current="page"] { background: #EAE5DC; color: #171715; }

/* Mobile drawer */
#mobile-menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
#mobile-menu > div { overflow: hidden; }
#mobile-menu.is-open { grid-template-rows: 1fr; }
#mobile-menu .drawer-inner { max-height: calc(100vh - 4.5rem); overflow-y: auto; }
.menu-icon span { display: block; width: 20px; height: 1.5px; border-radius: 2px; background: #171715; transition: transform .25s ease, opacity .2s ease; }
.menu-icon span + span { margin-top: 5px; }
[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
body.menu-open { overflow: hidden; }

details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details .plus { transition: transform .2s ease; }
details[open] .plus { transform: rotate(45deg); }

/* Hero backdrop: soft drifting glow + growth rings */
.hero-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-glow::before { content: ""; position: absolute; width: 70vmax; height: 70vmax; right: -20vmax; top: -25vmax; background: radial-gradient(closest-side, rgba(228, 223, 213, 0.9), rgba(228, 223, 213, 0) 70%); animation: drift 18s ease-in-out infinite alternate; }
.bg-ink .hero-glow::before { background: radial-gradient(closest-side, rgba(247, 245, 240, 0.08), rgba(247, 245, 240, 0) 70%); }
.hero-rings { position: absolute; right: -12rem; top: 50%; width: 52rem; height: 52rem; transform: translateY(-50%); }
.hero-rings circle { fill: none; stroke: #DDD9D0; stroke-width: 1; transform-origin: center; animation: breathe 9s ease-in-out infinite; }
.hero-rings circle:nth-child(2) { animation-delay: -1.5s; }
.hero-rings circle:nth-child(3) { animation-delay: -3s; }
.hero-rings circle:nth-child(4) { animation-delay: -4.5s; }
.hero-rings circle:nth-child(5) { animation-delay: -6s; }
@keyframes drift { to { transform: translate(-8vmax, 10vmax); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }

/* Pages that already end with a call to action skip the footer one */
[data-page="home"] .footer-cta, [data-page="contact"] .footer-cta { display: none; }

/* Cards */
.card-dark { background: #1F1F1C; border: 1px solid rgba(247, 245, 240, 0.08); }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 0.85rem; flex-shrink: 0; }
.icon-tile svg { width: 1.3rem; height: 1.3rem; }

/* Goal chips in the plan builder */
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; border: 1px solid #DDD9D0; background: #FFFFFF; color: #58554F; font-size: .875rem; cursor: pointer; transition: all .15s ease; user-select: none; }
.chip:hover { border-color: #171715; color: #171715; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: #171715; border-color: #171715; color: #F7F5F0; }
.chip:has(input:focus-visible) { outline: 2px solid #77736C; outline-offset: 2px; }
.match-bar { height: 4px; border-radius: 4px; background: #E4DFD5; overflow: hidden; }
.match-bar > span { display: block; height: 100%; background: #171715; border-radius: 4px; transition: width .4s ease; }
.bg-ink .match-bar { background: rgba(247, 245, 240, 0.12); }
.bg-ink .match-bar > span { background: #F7F5F0; }

/* Reels: phone-style frames, kept small so the low-resolution clips stay crisp */
.reel-frame { padding: 6px; border-radius: 2rem; background: #2A2926; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); }
.reel { position: relative; aspect-ratio: 9 / 16; border-radius: 1.6rem; background: #171715; overflow: hidden; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(23, 23, 21, 0) 55%, rgba(23, 23, 21, 0.65) 100%); }
.reel-tag { position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 1; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.7rem; border-radius: 999px; background: rgba(247, 245, 240, 0.14); backdrop-filter: blur(6px); color: #F7F5F0; font: 500 10px/1 Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; }
.reel-tag::before { content: ""; width: 0; height: 0; border-left: 6px solid #F7F5F0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.reel-track { scrollbar-width: none; }

/* Carousel */
.carousel { scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel > * { scroll-snap-align: start; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: #DDD9D0; transition: all .2s ease; }
.dot.active { width: 24px; background: #171715; }

/* Form fields */
.field { width: 100%; background: #FFFFFF; border: 1px solid #DDD9D0; border-radius: 0.85rem; padding: 0.8rem 1rem; color: #171715; font: 400 16px/1.5 Inter, sans-serif; transition: border-color .2s ease, box-shadow .2s ease; }
.field::placeholder { color: rgba(119, 115, 108, 0.6); }
.field:focus { outline: none; border-color: #171715; box-shadow: 0 0 0 3px rgba(23, 23, 21, 0.08); }

/* Scroll reveal (only hides content once JS has confirmed it can reveal it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
