/* Aaryuvedam — design system (traces to design/DESIGN-SYSTEM.md; AA-checked, LED-018/027).
   Layout styling stays inline on elements (faithful to the Claude Design source);
   this sheet owns: reset, links, scroll-reveal, marquee, responsive nav, and the hover-utility
   classes that replace every style-hover="" from the prototype. */

:root {
  --ink: #242A16; --body: #4C5237; --muted: #6B6F55;
  --olive: #3D4C1E; --olive-deep: #33401A;
  --gold: #A48125; --gold-text: #7E631C; --gold-bright: #C9A84C;
  --cream: #F9F3EB; --cream-card: #FDFAF4; --cream-deep: #F3EADC;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Jost, system-ui, -apple-system, sans-serif; }
img { max-width: 100%; }
a { color: var(--olive); text-decoration: none; }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--olive); color: #F5EFE2; padding: 10px 16px; z-index: 999; border-radius: 2px; }
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Scroll reveal (progressive: content is fully visible without JS) ---- */
html.rvjs [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
html.rvjs [data-reveal].rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.rvjs [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---- Insurance marquee ---- */
@keyframes mq-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mq-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.mq-row:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .mq-row { animation: none !important; transform: none !important; } }

/* ---- Hover utilities (replace prototype style-hover="") ---- */
.btn-olive { background: var(--olive); color: #F5EFE2; transition: background .25s ease, transform .25s ease; }
.btn-olive:hover { background: var(--olive-deep); color: #F5EFE2; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #2B2410; transition: background .25s ease, transform .25s ease; }
.btn-gold:hover { background: var(--gold-text); color: #F5EFE2; transform: translateY(-1px); }
.btn-outline { border: 1px solid rgba(61,76,30,.45); color: var(--olive); transition: background .25s ease; }
.btn-outline:hover { background: rgba(61,76,30,.06); color: var(--olive); }
.card-lift { transition: transform .3s ease, box-shadow .3s ease; }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(36,42,22,.12); }
.cell-hover { transition: background .3s ease; }
.cell-hover:hover { background: var(--cream); }
.cell-hover--deep:hover { background: var(--cream-deep); }
.link-gold { border-bottom: 1px solid var(--gold-bright); padding-bottom: 4px; }
.wa-float { transition: transform .25s ease, background .25s ease; }
.wa-float:hover { transform: translateY(-3px); background: var(--olive-deep); }
.btn-gold-bright { background: var(--gold-bright); color: #242C11; transition: transform .25s ease; }
.btn-gold-bright:hover { transform: translateY(-1px); color: #242C11; }
.btn-ondark { border: 1px solid rgba(237,231,216,.35); color: #EDE7D8; transition: background .25s ease; }
.btn-ondark:hover { background: rgba(237,231,216,.08); color: #EDE7D8; }
.card-lift-sm { transition: transform .3s ease, box-shadow .3s ease; }
.card-lift-sm:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(36,42,22,.12); }
.rel-link { color: var(--ink); }
.rel-link:hover { color: var(--gold-text); }

/* ---- Utility top bar ---- */
/* The bar holds email + 2 numbers + 4 social links; on narrow screens it wraps onto
   several lines, so centre it rather than leaving ragged space-between gaps. */
@media (max-width: 860px) {
  .topbar { justify-content: center; text-align: center; }
  .topbar-group { justify-content: center; }
}
/* Social icon buttons: inline SVG (no icon font), inheriting the bar's cream via currentColor.
   Sized as real 32px tap targets — the previous text links were only 17px tall. */
.socials { display: inline-flex; align-items: center; gap: 2px; }
.soc { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 2px; color: #EDE7D8; transition: background .2s ease, color .2s ease; }
.soc:hover, .soc:focus-visible { background: rgba(237,231,216,.14); color: #fff; }
.soc svg { width: 16px; height: 16px; display: block; fill: currentColor; }
/* Footer variant: gold on the dark olive band, slightly larger glyphs. */
.soc--gold { color: var(--gold-bright); width: 42px; height: 42px; }
.soc--gold:hover, .soc--gold:focus-visible { background: rgba(201,168,76,.16); color: #E8CF8E; }
.soc--gold svg { width: 24px; height: 24px; }

/* Small inline links (e.g. "Directions →") need a real tap target, not an 18px text line. */
.tap { display: inline-block; padding-top: 7px; padding-bottom: 7px; }

/* On phones the utility bar wrapped to 3 lines (~119px of chrome before any content).
   Drop the secondary details there — email + the second number remain in the footer and on
   /contact/, and Call · WhatsApp · Book are permanently available in the bottom action bar. */
@media (max-width: 600px) {
  .tb-email, .tb-phone2, .tb-cashless { display: none; }
  .topbar { gap: 4px 12px; }
}

/* ---- Header / navigation ---- */
.nav-desktop { display: flex; gap: 4px; align-items: center; font-size: 14.5px; font-weight: 500; color: #3A421F; }
.nav-mobile { display: none; }
@media (max-width: 1179px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
}
.navd { position: relative; }
.navd-panel { position: absolute; top: 100%; background: var(--cream-card); border: 1px solid rgba(61,76,30,.16); box-shadow: 0 18px 44px rgba(36,42,22,.14); border-radius: 2px; z-index: 80; display: none; }
.navd:hover > .navd-panel, .navd:focus-within > .navd-panel, .navd.is-open > .navd-panel { display: block; }
.navd-item { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 12px; color: #3A421F; border-radius: 2px; transition: background .2s ease; }
.navd-item:hover { background: var(--cream-deep); color: #3A421F; }
/* nav-link is on both <a> and dropdown <button>s — reset UA button chrome so only the
   bottom "active" slot shows (otherwise <button> keeps its default 4-side border → a box). */
.nav-link { padding: 10px 12px; color: #3A421F; background: none; border: 0; border-bottom: 2px solid transparent; }
.nav-link[aria-current="page"] { border-bottom-color: var(--gold); }

/* Mobile disclosure menu (<details>) */
/* NB: .m-menu must NOT be positioned — the panel is absolutely positioned against the
   header row (the nearest positioned ancestor) so it spans the full page width. Making
   .m-menu position:relative squeezes the panel to the width of the Menu button. */
.m-menu { position: static; }
.m-menu > summary { list-style: none; cursor: pointer; background: none; border: 1px solid rgba(61,76,30,.35); border-radius: 2px; color: var(--olive); padding: 10px 16px; font-weight: 600; letter-spacing: .08em; font-size: 13px; }
.m-menu > summary::-webkit-details-marker { display: none; }
.m-menu > summary .m-open { display: inline; } .m-menu > summary .m-close { display: none; }
.m-menu[open] > summary .m-open { display: none; } .m-menu[open] > summary .m-close { display: inline; }
.m-panel { position: absolute; left: 0; right: 0; top: calc(100% + 1px); background: var(--cream); border-top: 1px solid rgba(61,76,30,.14); border-bottom: 1px solid rgba(61,76,30,.14); box-shadow: 0 18px 30px rgba(36,42,22,.12); padding: 12px 24px 28px; max-height: 78vh; overflow: auto; z-index: 90; }

/* ---- Fixed action elements ---- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 56px; height: 56px; border-radius: 50%; background: var(--olive); border: 1px solid rgba(201,168,76,.55); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(36,42,22,.35); }
.mobile-bar { display: none; }
@media (max-width: 759px) {
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 190; display: grid; grid-template-columns: 1fr 1fr 1.2fr; background: var(--cream); border-top: 1px solid rgba(61,76,30,.25); box-shadow: 0 -8px 24px rgba(36,42,22,.12); }
  .wa-float { bottom: 76px; }
  body { padding-bottom: 52px; }
}

/* ---- FAQ accordion (<details>, works without JS) ---- */
.faq-cols { columns: 2; column-gap: 48px; }
@media (max-width: 720px) { .faq-cols { columns: 1; } }
.faq { break-inside: avoid; border-bottom: 1px solid rgba(61,76,30,.18); }
.faq > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.5; }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: '+'; color: var(--gold-text); font-family: Suranna, serif; font-size: 24px; flex: none; line-height: 1; }
.faq[open] > summary::after { content: '\2013'; }
.faq p { margin: 0; padding: 0 4px 20px; font-size: 15px; line-height: 1.7; color: var(--body); }

/* ---- Consultation form ---- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.field input, .field textarea, .field select { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid rgba(61,76,30,.3); border-radius: 2px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field .err { font-size: 12.5px; color: #8A2B1E; min-height: 1em; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #8A2B1E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* dark consultation form fields */
.dk { display: flex; flex-direction: column; gap: 6px; font-size: 13px; letter-spacing: .06em; font-weight: 500; color: rgba(237,231,216,.85); }
.dk .opt { font-weight: 400; color: rgba(237,231,216,.55); text-transform: none; letter-spacing: 0; }
.dk input, .dk select, .dk textarea { font: inherit; font-size: 15px; background: rgba(249,243,235,.08); border: 1px solid rgba(237,231,216,.3); border-radius: 2px; color: #F5EFE2; padding: 13px 14px; }
.dk input::placeholder, .dk textarea::placeholder { color: rgba(237,231,216,.5); }
.dk textarea { resize: vertical; }
#consult-form [aria-invalid="true"] { border-color: #E8CF8E; }
#consult-form .err { color: #E8CF8E; font-size: 13px; min-height: 1em; }
.form-status { border-radius: 2px; padding: 14px 16px; font-size: 15px; line-height: 1.6; }
.form-status.ok { background: #EAF0DE; color: #2E3A16; border: 1px solid rgba(61,76,30,.3); }
.form-status.bad { background: #F7E7E3; color: #7A2517; border: 1px solid rgba(122,37,23,.3); }
button[disabled] { opacity: .6; cursor: not-allowed; }

/* ---- Image treatment (consistent grade + arch motif, DESIGN-SYSTEM.md) ---- */
.ph { filter: sepia(.12) saturate(.94); }
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.arch { border-radius: 999px 999px 0 0; overflow: hidden; }
.container { max-width: 1360px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
@media (max-width: 600px) { .container { padding-left: 22px; padding-right: 22px; } }

/* ---- Media gallery (CSS multi-column masonry; responsive 3→2→1) ---- */
.gal-cols { columns: 3; column-gap: 20px; }
@media (max-width: 900px) { .gal-cols { columns: 2; } }
@media (max-width: 560px) { .gal-cols { columns: 1; } }
.gal-cols .gal-item picture, .gal-cols .gal-item img { display: block; width: 100%; height: auto; }

/* ---- Media gallery lightbox (pure CSS :target — no JS; Escape-to-close not available) ---- */
.gal-lightbox { display: none; }
.gal-lightbox:target { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 40px; background: rgba(28,34,12,.92); }
.gal-lightbox__close { position: absolute; inset: 0; z-index: 1; cursor: zoom-out; }
.gal-lightbox figure { position: relative; z-index: 2; margin: 0; max-width: min(1100px, 92vw); text-align: center; pointer-events: none; }
.gal-lightbox figure picture, .gal-lightbox figure img { display: block; max-width: 100%; max-height: 78vh; object-fit: contain; border: 1px solid rgba(201,168,76,.4); border-radius: 2px; margin: 0 auto; }
.gal-lightbox figcaption { color: #D8D2BE; font-size: 13.5px; letter-spacing: .06em; margin-top: 16px; font-family: Jost, sans-serif; }

/* ---- Audit / pending tags ---- */
.audit-tag { font-size: 11px; letter-spacing: .06em; color: var(--gold-text); border: 1px dashed rgba(138,108,30,.5); padding: 4px 12px; border-radius: 2px; font-family: ui-monospace, Menlo, monospace; display: inline-block; }
