/* AGHADIR public visual layer — SOURCE A grammar.
   Replaces the unapproved wide-website design. All metrics, colours, weights and
   letter-spacings are transcribed from the extracted SOURCE A bundle (de78100).
   Typography is self-hosted Montserrat + Cormorant Garamond; no Google Fonts,
   no Outfit. Tokens live in aghadir-tokens.css. */

*{box-sizing:border-box}
html{background:var(--ag-page);scroll-behavior:smooth}
body{
  margin:0;
  background:var(--ag-page);
  color:var(--ag-text);
  font-family:var(--ag-sans);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
::selection{background:rgba(232,192,79,0.3);color:#EFE6D2}
a{color:inherit;text-decoration:none}
img{max-width:100%}

@keyframes agUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@keyframes agScroll{0%,100%{transform:translateY(0);opacity:.3}50%{transform:translateY(7px);opacity:.9}}

/* ---------- THE FRAME (SOURCE A app shell) ----------
   440px on every viewport, centred, with SOURCE A's texture and shadow.
   On desktop the page background (--ag-page) surrounds the frame, exactly as
   the published site behaves today. Option (a): no widening. */
.shell{
  font-family:var(--ag-sans);
  color:var(--ag-text);
  max-width:var(--ag-frame-max);
  margin:0 auto;
  position:relative;
  text-transform:uppercase;
  letter-spacing:0.04em;
  background:
    linear-gradient(var(--ag-veil),var(--ag-veil)),
    var(--ag-texture) center top;
  background-size:auto,var(--ag-texture-size);
  background-color:var(--ag-navy);
  min-height:100vh;
  box-shadow:var(--ag-frame-shadow);
}
/* SOURCE A used height:100vh + overflow:hidden with an inner scroller. The
   visual result (fixed bar, scrolling body) is kept, but implemented so real
   URLs, native scrolling and browser history behave normally. */
.ag-scroll{
  padding-top:var(--ag-bar-h);
  min-height:100vh;
}

/* Arabic must not inherit the global uppercase/tracking. */
[dir="rtl"]{text-transform:none;letter-spacing:normal}

/* ---------- APP BAR ---------- */
.bar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:45;
  height:var(--ag-bar-h);
  max-width:var(--ag-frame-max);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 var(--ag-bar-pad);
  background:var(--ag-bar);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--ag-hair);
}
.bar-inner{display:contents}

/* hamburger — SOURCE A: three gold rules, 22/22/14px, 1.5px, gap 4px */
.ag-menu-button{
  background:none;border:none;padding:8px;cursor:pointer;
  display:flex;flex-direction:column;gap:4px;width:38px;
}
.ag-menu-button span{display:block;height:1.5px;width:22px;background:var(--ag-gold)}
.ag-menu-button span:last-child{width:14px}

/* back link — SOURCE A: '<' + 11.5px / 0.18em */
.ag-back{
  display:flex;align-items:center;gap:6px;
  color:var(--ag-gold);font-family:var(--ag-sans);
  padding:8px;
}
.ag-back .chev{font-size:18px;line-height:1}
.ag-back .label{font-size:11.5px;letter-spacing:0.18em;text-transform:uppercase}

/* centred brand lockup */
.brand{
  position:absolute;left:50%;transform:translateX(-50%);
  display:flex;align-items:center;gap:8px;
}
.brand::before{
  content:'';width:26px;height:26px;flex:none;display:block;
  background:var(--ag-logo) center/contain no-repeat;
}
.brand span{
  font-family:var(--ag-serif);text-transform:uppercase;font-weight:600;
  font-size:14px;letter-spacing:0.3em;color:var(--ag-text);padding-left:0.3em;
  /* Phase 6.1: no truncation. SOURCE A's bar carries a one-word wordmark on
     home and the screen title on inner screens, so the lockup fits between the
     leading control and the WhatsApp pill at 390px without clamping. */
  white-space:nowrap;
}

/* Phase 6 QA: both the hamburger and the back control were rendering at once,
   overlapping each other and the centred lockup. SOURCE A shows the hamburger on
   the home screen and the back control on inner screens — never both. */
.ag-back{display:none}
body.ag-not-home .ag-back{display:flex}
body.ag-not-home .ag-menu-button{display:none}
.brand small{display:none}          /* SOURCE A shows no Arabic strapline in the bar */
body.ag-not-home .brand span{font-weight:500;letter-spacing:0.14em;color:var(--ag-cream)}
body.ag-not-home .brand::before{display:none}

/* WhatsApp pill */
.ag-wa{
  font-size:10.5px;letter-spacing:0.16em;text-transform:uppercase;
  color:var(--ag-on-gold);background:var(--ag-gold-grad);
  padding:8px 13px;border-radius:7px;font-weight:600;white-space:nowrap;
}

/* draft badge */
.mode{display:none}
.mode.is-draft{
  position:fixed;top:var(--ag-bar-h);left:0;right:0;z-index:44;
  max-width:var(--ag-frame-max);margin:0 auto;
  display:block;text-align:center;padding:6px 11px;
  border-bottom:1px solid var(--ag-cta-border);
  color:#f1d47a;background:rgba(232,192,79,.08);
  font-size:10px;letter-spacing:.13em;
}
body.ag-draft .ag-scroll{padding-top:calc(var(--ag-bar-h) + 28px)}

/* ---------- MENU OVERLAY (looks like SOURCE A, behaves like real links) ---------- */
.ag-menu{
  position:fixed;inset:0;z-index:60;
  max-width:var(--ag-frame-max);margin:0 auto;
  /* SOURCE A menu background is NOT the frame background: darker veil, texture
     offset -40px at 340px, over #0B121C, with an 8px backdrop blur. */
  background:linear-gradient(rgba(11,18,28,0.992),rgba(11,18,28,0.992)),var(--ag-texture) center -40px / 340px;
  background-color:#0B121C;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  display:none;
}
body.ag-menu-open .ag-menu{display:block;animation:agUp .18s ease both}
body.ag-menu-open{overflow:hidden}
.ag-menu-inner{
  display:flex;flex-direction:column;
  padding:44px 26px 26px;height:100%;overflow-y:auto;
}
.ag-menu-close{
  align-self:flex-end;background:none;border:none;color:var(--ag-gold);
  font-size:26px;cursor:pointer;padding:4px 8px;line-height:1;
}
/* #cms-nav keeps its id and is still filled by cms-public.js from CMS
   navigation data — but every entry is a real <a href> to a real route. */
.nav{display:flex;flex-direction:column}
.nav a{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  border-bottom:1px solid var(--ag-divider);
  padding:16px 2px;text-align:center;width:100%;
  font-family:var(--ag-serif);text-transform:uppercase;
  font-size:22px;line-height:1;letter-spacing:0.06em;color:var(--ag-text);
}
.nav a span:last-child{
  font-family:var(--ag-sans);font-size:10.5px;letter-spacing:0.12em;
  color:rgba(239,230,210,0.6);
}
.nav a[aria-current="page"]{color:var(--ag-gold)}
.ag-menu-cta{display:flex;gap:12px;margin-top:26px}
.ag-menu-cta a{
  flex:1;text-align:center;font-size:12.5px;letter-spacing:0.16em;text-transform:uppercase;
  color:var(--ag-gold);border:1px solid var(--ag-cta-border);padding:14px;border-radius:9px;
}
.ag-menu-legal{
  display:flex;flex-wrap:wrap;justify-content:center;gap:8px 14px;
  margin-top:22px;padding-top:18px;border-top:1px solid var(--ag-divider);
}
.ag-menu-legal a{
  font-size:10px;letter-spacing:0.12em;text-transform:uppercase;
  color:rgba(239,230,210,0.78);
}

/* ---------- HERO ---------- */
.hero{position:relative;isolation:isolate;overflow:hidden;border-bottom:1px solid var(--ag-hair)}
.hero::before{
  content:'';position:absolute;inset:0;z-index:-2;
  background-image:linear-gradient(180deg,rgba(14,22,34,.55) 0%,rgba(14,22,34,.86) 62%,#0E1622 100%),var(--hero-image,none);
  background-size:cover;background-position:center 46%;
}
.hero-inner{
  padding:34px 22px 30px;
  display:flex;flex-direction:column;align-items:center;text-align:center;
  animation:agUp .5s ease both;
}
.eyebrow{
  margin:0 0 12px;color:var(--ag-gold);
  font-size:10.5px;letter-spacing:0.3em;text-transform:uppercase;
}
.hero h1{
  margin:0;color:var(--ag-cream);font-family:var(--ag-serif);font-weight:500;
  font-size:34px;line-height:1.06;letter-spacing:0.06em;text-transform:uppercase;
}
.hero h2{
  margin:10px 0 0;color:#d9bd75;font-family:var(--ag-serif);font-weight:400;
  font-size:20px;line-height:1.2;
}
.hero-copy{
  max-width:340px;margin:14px 0 0;color:rgba(239,230,210,0.78);
  font-size:12px;line-height:1.7;letter-spacing:0.04em;font-weight:300;
}
.hero-copy.ar{margin-top:8px;color:rgba(239,230,210,0.66);font-size:13px}
.hero-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px;width:100%}

/* ---------- BUTTONS ---------- */
.button{
  flex:1 1 140px;display:inline-flex;min-height:47px;
  align-items:center;justify-content:center;padding:13px 14px;
  border:1px solid var(--ag-cta-border);border-radius:9px;
  color:var(--ag-gold);font-size:12.5px;letter-spacing:0.16em;text-transform:uppercase;
}
.button.primary{
  border:none;background:var(--ag-gold-grad);color:var(--ag-on-gold);
  font-weight:600;font-size:11.5px;
}

/* ---------- CONTENT / CARDS (foundation only — Phase 4 owns the final
   service & room templates) ---------- */
.content{padding:0}
.body-copy{padding:24px 22px 4px;color:rgba(239,230,210,0.78);font-size:12px;line-height:1.75;text-align:center}
.body-copy:empty{display:none}
.arabic-copy{color:rgba(239,230,210,0.66)}

.gallery{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:18px 22px 0}
.gallery:empty{display:none}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border:1px solid var(--ag-hair)}

.grid,.home-sections{display:block;padding:22px 22px 40px}
.home-section{padding:26px 0;border-top:1px solid var(--ag-divider)}
.home-section:first-child{border-top:none}
.home-section-inner{padding:0}
.section-kicker{margin:0 0 8px;color:var(--ag-gold);font-size:10.5px;letter-spacing:0.3em;text-transform:uppercase;text-align:center}
.section-title{margin:0;color:var(--ag-cream);font-family:var(--ag-serif);font-weight:500;font-size:26px;line-height:1.08;letter-spacing:0.06em;text-align:center;text-transform:uppercase}
.section-title-ar{margin:6px 0 0;color:#bca474;font-size:14px;text-align:center}
.section-copy{margin:12px 0 20px;color:rgba(239,230,210,0.7);font-size:12px;line-height:1.7;font-weight:300;text-align:center}
.section-grid{display:grid;grid-template-columns:1fr;gap:14px}

.content-card{
  overflow:hidden;border:1px solid var(--ag-hair);border-radius:9px;
  background:rgba(10,17,26,.55);margin-bottom:14px;
}
.card-image{width:100%;aspect-ratio:16/10;display:block;object-fit:cover;background:#0a1018}
.card-image--placeholder{
  display:grid;place-items:center;color:var(--ag-gold);
  font-family:var(--ag-serif);font-size:18px;letter-spacing:0.23em;
  background:radial-gradient(circle at 65% 20%,#29384a,#101923 63%,#070b10);
}
.card-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}
.card-gallery img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.card-body{padding:18px 18px 20px;text-align:center}
.card-body .eyebrow{margin-bottom:8px;font-size:9.5px}
.card-body h2{margin:0;color:var(--ag-cream);font-family:var(--ag-serif);font-weight:500;font-size:22px;line-height:1.1;letter-spacing:0.06em}
.card-body h3{margin:6px 0 10px;color:#c6aa70;font-size:13px;font-weight:400}
.card-body p{margin:6px 0;color:rgba(239,230,210,0.72);font-size:12px;line-height:1.7;font-weight:300}
.facts{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-top:14px}
.facts span{border:1px solid rgba(232,192,79,.2);padding:6px 9px;color:#e0c77e;font-size:10px;letter-spacing:0.08em}
.card-link{display:inline-flex;margin-top:16px;gap:8px;color:var(--ag-gold);font-size:11.5px;letter-spacing:0.16em;text-transform:uppercase}

.gallery-strip{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.gallery-strip img{width:100%;aspect-ratio:1/1;object-fit:cover;border:1px solid var(--ag-hair)}
.gallery-placeholder{grid-column:1/-1;min-height:140px;display:grid;place-items:center;border:1px dashed rgba(232,192,79,.25);color:#9b896b;font-size:11px}

.contact-band{padding:34px 22px;border-top:1px solid var(--ag-divider);text-align:center;background:radial-gradient(320px 180px at 70% 0,rgba(232,192,79,.1),transparent 65%)}
.contact-band h2{margin:0;color:var(--ag-cream);font-family:var(--ag-serif);font-weight:500;font-size:26px;line-height:1.08;letter-spacing:0.06em;text-transform:uppercase}
.contact-band p{margin:12px 0 0;color:rgba(239,230,210,0.7);font-size:12px;line-height:1.7}
.contact-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}

.empty-state{min-height:130px;display:grid;place-content:center;gap:6px;border:1px dashed rgba(232,192,79,.25);text-align:center;color:#d1bd8d;font-size:12px}
.empty-state span{font-size:11px;color:#8f8068}

/* ---------- FOOTER ---------- */
footer{border-top:1px solid var(--ag-divider);background:rgba(5,5,5,.55)}
.footer-inner{
  padding:26px 22px 34px;display:flex;flex-direction:column;align-items:center;gap:14px;
  color:rgba(239,230,210,0.6);font-size:10px;letter-spacing:0.12em;text-align:center;
}
.footer-inner strong{color:#d8c9aa;font-family:var(--ag-serif);font-weight:500;font-size:18px;letter-spacing:0.08em}
.footer-contact{display:flex;gap:18px;flex-wrap:wrap;justify-content:center;color:var(--ag-gold)}

.load-error{min-height:70vh;display:grid;place-content:center;text-align:center;padding:0 22px}
.load-error h1{margin:0;color:var(--ag-gold);font-family:var(--ag-serif);font-weight:500;font-size:44px;letter-spacing:0.2em}
.load-error p{color:rgba(239,230,210,0.7);font-size:12px;line-height:1.7}

/* No media query widens the frame. Option (a) is deliberate: the frame stays
   440px at every breakpoint, including desktop. */
@media (max-width:400px){
  .hero h1{font-size:30px}
  .section-title,.contact-band h2{font-size:23px}
  .brand span{font-size:13px;letter-spacing:0.24em}
}


/* ==========================================================================
   SOURCE A HOME COMPOSITION (Phase 2)
   Hero lockup, "Where Men Come Clean", Book Now / See Rituals, STEP INSIDE
   tiles, and the fixed bottom action bar. All metrics transcribed from the
   extracted SOURCE A bundle.
   ========================================================================== */

/* --- home hero: SOURCE A 430px image with the brand lockup at its foot --- */
.ag-hero-logo{display:none}
body.home-page #cms-hero{height:430px;padding:0;border-bottom:none}
body.home-page #cms-hero::before{
  background-image:
    linear-gradient(180deg,rgba(10,16,26,0.4) 0%,rgba(10,16,26,0.2) 40%,rgba(14,22,34,0.85) 88%,#0E1622 100%),
    var(--hero-image,none);
  background-size:cover;background-position:center;
}
body.home-page .hero-inner{
  position:absolute;left:0;right:0;bottom:0;
  padding:0 26px 26px;text-align:center;align-items:center;
}
body.home-page .ag-hero-logo{
  display:block;width:188px;max-width:64%;height:auto;margin:0 auto;
}
/* SOURCE A keeps the accessible <h1> present but visually hidden on home:
   the brand lockup is the visible mark. Arabic subtitle likewise. */
body.home-page #cms-title,
body.home-page #cms-title-ar,
body.home-page #cms-intro,
body.home-page #cms-intro-ar{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
body.home-page #cms-eyebrow{
  margin:14px 0 0;font-size:10.5px;letter-spacing:0.28em;color:var(--ag-gold);
}
body.home-page #cms-gallery,
body.home-page #cms-body{display:none}

/* --- headline + CTAs --- */
.ag-home-intro{padding:22px 26px 6px;text-align:center}
.ag-headline{
  margin:0;font-family:var(--ag-serif);text-transform:uppercase;
  font-size:22px;letter-spacing:0.04em;color:var(--ag-cream);
}
.ag-home-cta{margin-top:18px}
body.home-page .hero-cta{display:flex;gap:11px;margin:0;width:100%}
/* SOURCE A's home has Book Now + See Rituals; the Call button belongs to the
   bottom bar there, so #cms-phone is hidden on home (still wired, still in DOM). */
body.home-page #cms-phone{display:none}
body.home-page #cms-cta,
.ag-see-rituals{
  flex:1;display:inline-flex;align-items:center;justify-content:center;
  padding:15px;border-radius:9px;
  font-size:12.5px;letter-spacing:0.18em;text-transform:uppercase;
}
body.home-page #cms-cta{
  background:var(--ag-gold-grad);color:var(--ag-on-gold);font-weight:600;border:none;
}
/* Owner-approved: clear separation from the gold WhatsApp CTA above. */
.ag-see-rituals{
  margin-top:20px;width:100%;
  color:var(--ag-text);border:1px solid var(--ag-cta-border);
}
/* SOURCE A sets the two home CTAs side by side; the See Rituals link sits in
   the same row on wider frames. */
@supports(display:grid){
  .ag-home-cta{display:flex;gap:11px;align-items:stretch}
  .ag-home-cta .hero-cta{flex:1}
  .ag-see-rituals{margin-top:0;flex:1;width:auto}
}

/* --- STEP INSIDE --- */
.ag-step-inside{padding:28px 22px 28px}
.ag-step-kicker{
  margin:0 0 4px;text-align:center;color:var(--ag-gold);
  font-size:10.5px;letter-spacing:0.3em;text-transform:uppercase;
}
.ag-ornament{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 20px}
.ag-ornament span{width:30px;height:1px;background:rgba(232,192,79,0.4)}
.ag-ornament i{width:4px;height:4px;transform:rotate(45deg);background:var(--ag-gold)}

.ag-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ag-tile{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;
  background:#1A2433;border:1px solid rgba(232,192,79,0.22);border-radius:13px;
  padding:22px 12px;width:100%;transition:border-color .2s ease;
}
.ag-tile:hover,.ag-tile:focus-visible{border-color:rgba(232,192,79,0.55)}
.ag-tile-icon{height:40px;width:auto;object-fit:contain;display:block}
.ag-tile-label{
  font-family:var(--ag-serif);text-transform:uppercase;font-size:18px;line-height:1;
  letter-spacing:0.06em;color:var(--ag-cream);text-align:center;
}
.ag-tile--wide{grid-column:1/-1;flex-direction:row;gap:13px;padding:16px 12px}
.ag-tile--wide .ag-tile-icon{height:28px}

body.home-page #cms-grid.ag-home{padding:0 0 8px}
/* SOURCE A's published home screen has no footer; the bottom action bar
   terminates the screen. Legal links stay reachable from the overlay menu and
   from their own real routes. */
body.home-page footer{display:none}

/* --- BOTTOM ACTION BAR — SOURCE A: 70px, 4 equal cells, gold Book cell --- */
.ag-bottom{
  position:fixed;bottom:0;left:0;right:0;z-index:40;
  max-width:var(--ag-frame-max);margin:0 auto;
  height:calc(70px + env(safe-area-inset-bottom));
  padding:8px 8px calc(8px + env(safe-area-inset-bottom));
  background:rgba(10,19,32,0.96);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-top:1px solid rgba(232,192,79,0.2);
  display:grid;grid-template-columns:repeat(4,1fr);
}
.ag-bottom-item{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  padding:4px 0;
}
.ag-bottom-item img{height:21px;width:auto}
.ag-bottom-item span{
  font-size:9.5px;letter-spacing:0.1em;text-transform:uppercase;
  color:rgba(239,230,210,0.86);
}
.ag-bottom-book{
  background:var(--ag-gold-grad);margin:-8px 0 calc(-8px - env(safe-area-inset-bottom));
  padding-bottom:calc(4px + env(safe-area-inset-bottom));
}
.ag-bottom-book img{filter:brightness(0) saturate(100%) invert(8%) sepia(20%) saturate(1800%) hue-rotate(185deg)}
.ag-bottom-book span{color:var(--ag-on-gold);font-weight:600}

/* The bar must never cover content: the scroll area reserves its height plus
   the iOS safe area, mirroring SOURCE A's bottom:70px scroll inset. */
/* Owner-approved: extra clearance so the fixed bottom bar never covers the last
   card, CTA or footer row on small mobile viewports. */
.ag-scroll{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
.ag-menu-inner{padding-bottom:calc(26px + 88px + env(safe-area-inset-bottom))}

/* SOURCE A menu icon treatment: 32px, contained, above the label. */
.ag-nav-icon{height:32px;width:auto;object-fit:contain;display:block}

/* ==========================================================================
   STANDALONE CONTENT PAGES (Phase 3)
   /about/ /contact/ /location-hours/ /booking-cancellation/ /privacy/ /terms/
   One template, SOURCE A grammar. Replaces the old 760px / Georgia / rounded
   card language entirely.
   ========================================================================== */

body.ag-content-body #cms-hero{border-bottom:1px solid var(--ag-hair)}
body.ag-content-body .hero-inner{padding:30px 22px 26px}
body.ag-content-body .hero h1{font-size:28px}
body.ag-content-body .hero h2{font-size:17px}
body.ag-content-body #cms-gallery{display:none}
/* Policy pages have no booking CTA in the hero; the bottom bar carries it. */
body.ag-content-body .hero-cta{display:none}

/* Body copy: editorial, centred kicker rhythm, SOURCE A separators. */
body.ag-content-body #cms-body{
  padding:26px 22px 6px;text-align:left;
  color:rgba(239,230,210,0.78);font-size:12.5px;line-height:1.85;
  text-transform:none;letter-spacing:normal;
}
.ag-body h2{
  margin:26px 0 10px;color:var(--ag-cream);
  font-family:var(--ag-serif);font-weight:500;font-size:20px;line-height:1.12;
  letter-spacing:0.06em;text-transform:uppercase;text-align:center;
}
.ag-body h2:first-child{margin-top:0}
/* SOURCE A separator beneath each section heading. */
.ag-body h2::after{
  content:'';display:block;width:30px;height:1px;margin:11px auto 0;
  background:rgba(232,192,79,0.4);
}
.ag-body h3{
  margin:18px 0 8px;color:#c6aa70;font-family:var(--ag-serif);font-weight:500;
  font-size:16px;letter-spacing:0.06em;text-transform:uppercase;
}
.ag-body p{margin:0 0 11px}
.ag-body ul,.ag-body ol{margin:8px 0 14px;padding-left:20px}
.ag-body li{margin:5px 0}
.ag-body strong{color:var(--ag-cream);font-weight:600}
.ag-body a{color:var(--ag-gold);text-decoration:underline;text-underline-offset:3px}
/* Structured pairs (e.g. opening-hours rows) keep their grouping. */
.ag-body p:has(> span:nth-child(2)){
  display:flex;justify-content:space-between;gap:14px;
  padding:11px 0;margin:0;border-bottom:1px solid var(--ag-divider);
}
.ag-body p:has(> span:nth-child(2)) span:first-child{color:rgba(239,230,210,0.78)}
.ag-body p:has(> span:nth-child(2)) span:last-child{color:var(--ag-gold);text-align:right}
.ag-body.ar{text-align:right;direction:rtl}

.ag-content-page{padding:0 0 8px}
.ag-page{padding:0}

/* Contact actions — CMS settings only, never literals in markup. */
.ag-contact{padding:28px 22px 30px}
.ag-contact-address{
  text-align:center;color:rgba(239,230,210,0.78);
  font-size:12.5px;line-height:1.8;text-transform:none;letter-spacing:normal;
  margin:0 0 18px;
}
.ag-contact-address p{margin:0 0 6px}
.ag-contact-rows{display:flex;flex-direction:column}
.ag-contact-row{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:16px 2px;border-bottom:1px solid var(--ag-divider);
}
.ag-contact-label{
  font-size:10.5px;letter-spacing:0.3em;text-transform:uppercase;color:var(--ag-gold);
}
.ag-contact-value{
  font-family:var(--ag-serif);font-size:18px;line-height:1;letter-spacing:0.06em;
  text-transform:uppercase;color:var(--ag-cream);text-align:right;
}

/* Long policy pages must clear the fixed bottom bar. */
body.ag-content-body .ag-scroll{
  padding-bottom:calc(88px + 24px + env(safe-area-inset-bottom));
}

/* ==========================================================================
   SOURCE A LISTING + DETAIL GRAMMAR (Phase 4)
   Service index/category pages, service detail, rooms, masters, memberships,
   gift cards, offers, VIP / Four Hands / Private Hire.
   Transcribed from SOURCE A's tier-card screens.
   ========================================================================== */

body.ag-listing-body .hero-cta,
body.ag-detail-body .hero-cta{display:none}
body.ag-listing-body #cms-body,
body.ag-detail-body #cms-body{
  padding:22px 22px 0;text-align:center;
  font-size:12.5px;line-height:1.8;text-transform:none;letter-spacing:normal;
  color:rgba(239,230,210,0.78);
}
body.ag-listing-body .hero h1,
body.ag-detail-body .hero h1{font-size:30px}

.ag-listing{padding:24px 18px 8px}
.ag-list{display:flex;flex-direction:column;gap:22px;padding-top:20px}

/* --- card --- */
.ag-card{
  position:relative;border-radius:20px;overflow:hidden;
  border:1px solid rgba(232,192,79,0.42);
  box-shadow:0 28px 64px -38px rgba(0,0,0,0.95);
  scroll-margin-top:calc(var(--ag-bar-h) + 14px);
}
.ag-card-media{position:relative;height:300px}
.ag-card-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.ag-card-photo--placeholder{
  display:grid;place-items:center;
  background:radial-gradient(circle at 65% 20%,#29384a,#101923 63%,#070b10);
  color:var(--ag-gold);font-family:var(--ag-serif);font-size:20px;letter-spacing:0.23em;
}
.ag-card-scrim{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(8,14,24,0.32) 0%,rgba(8,14,24,0.12) 40%,rgba(8,14,24,0.82) 86%,rgba(20,28,40,0.98) 100%);
}
.ag-card-tag{
  position:absolute;top:14px;left:16px;display:flex;align-items:center;gap:9px;
  font-size:9.5px;letter-spacing:0.22em;text-transform:uppercase;color:var(--ag-gold);
}
.ag-card-rule{display:block;width:26px;height:1px;background:rgba(232,192,79,0.55)}
.ag-card-name{position:absolute;left:0;right:0;bottom:0;padding:0 18px 14px}
.ag-card-name h3{
  margin:0;color:var(--ag-cream);font-family:var(--ag-serif);text-transform:uppercase;
  font-weight:600;font-size:30px;line-height:1;letter-spacing:0.03em;
}
.ag-card-name p{
  margin:6px 0 0;color:rgba(239,230,210,0.86);font-family:var(--ag-serif);
  font-size:16px;line-height:1.2;
}

.ag-card-panel,.ag-detail-panel{background:#1A2433;padding:16px 18px 18px}
.ag-price-row{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  border-bottom:1px solid var(--ag-hair);padding-bottom:12px;
}
.ag-price{
  font-family:var(--ag-serif);text-transform:uppercase;font-size:22px;
  color:#F6DA8A;letter-spacing:0.03em;
}
.ag-price-unit{font-size:11.5px;letter-spacing:0.08em;color:var(--ag-gold);margin-right:0.4em}
.ag-price-value{font-size:10.5px;letter-spacing:0.12em;text-transform:uppercase;color:rgba(239,230,210,0.86)}
.ag-duration{font-size:10.5px;letter-spacing:0.18em;text-transform:uppercase;color:#EFE6D2}

.ag-chips{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0 0}
.ag-chip{
  font-size:9.5px;letter-spacing:0.12em;text-transform:uppercase;color:var(--ag-text);
  background:rgba(232,192,79,0.1);border:1px solid rgba(232,192,79,0.22);
  border-radius:20px;padding:6px 11px;
}
.ag-card-copy,.ag-detail-copy{
  margin:13px 0 0;font-size:13px;line-height:1.55;font-weight:400;
  color:rgba(239,230,210,0.86);text-transform:none;letter-spacing:normal;
}
.ag-card-copy.ar,.ag-detail-copy.ar{direction:rtl;text-align:right;color:rgba(239,230,210,0.72)}

.ag-card-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:14px}
.ag-card-gallery img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;border:1px solid var(--ag-hair)}

.ag-card-cta{
  display:block;text-align:center;margin-top:16px;
  font-size:11.5px;letter-spacing:0.18em;text-transform:uppercase;
  color:var(--ag-on-gold);background:var(--ag-gold-grad);
  padding:14px;border-radius:9px;font-weight:600;
}

/* --- service detail --- */
.ag-detail-page{padding:22px 18px 8px}
.ag-detail{
  border-radius:20px;overflow:hidden;border:1px solid rgba(232,192,79,0.42);
  box-shadow:0 28px 64px -38px rgba(0,0,0,0.95);
}
.ag-detail-gallery{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#1A2433;padding:0 18px 18px}
.ag-detail-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;border:1px solid var(--ag-hair)}

/* --- empty state (never invented content) --- */
.ag-empty{
  border:1px dashed rgba(232,192,79,0.25);border-radius:16px;
  padding:34px 20px;text-align:center;
}
.ag-empty-title{
  margin:0;color:var(--ag-cream);font-family:var(--ag-serif);font-weight:500;
  font-size:20px;letter-spacing:0.06em;text-transform:uppercase;
}
.ag-empty-copy{
  margin:10px 0 0;color:rgba(239,230,210,0.6);font-size:12px;line-height:1.7;
  text-transform:none;letter-spacing:normal;
}

/* Long listings and galleries must clear the fixed bottom bar. */
body.ag-listing-body .ag-scroll,
body.ag-detail-body .ag-scroll{
  padding-bottom:calc(88px + 24px + env(safe-area-inset-bottom));
}

/* ==========================================================================
   BESPOKE PUBLISHED SECTIONS
   Grooming & Care · Finishing Touches · The Journeys · Four Hands ·
   Memberships / The Circle · House Card · Gift A Ritual.
   Every value transcribed from the published de78100 bundle.
   ========================================================================== */

.ag-bespoke{padding:24px 18px 36px;animation:agUp .5s ease both}
.ag-bespoke-head{text-align:center;margin-bottom:18px}
.ag-star{display:block;margin:0 auto 8px;fill:var(--ag-gold)}
.ag-bespoke-kicker{margin:0 0 6px;font-size:11.5px;letter-spacing:0.28em;text-transform:uppercase;color:var(--ag-gold)}
.ag-bespoke-title{margin:0;font-family:var(--ag-serif);text-transform:uppercase;font-weight:600;font-size:26px;letter-spacing:0.04em;color:var(--ag-cream)}
.ag-bespoke-copy{margin:12px auto 0;max-width:300px;font-size:13px;line-height:1.6;color:rgba(239,230,210,0.86);text-align:center;text-transform:none;letter-spacing:normal}

.ag-rule{display:flex;align-items:center;gap:12px;margin:28px 0 16px}
.ag-rule span:first-child,.ag-rule span:last-child{flex:1;height:1px;background:rgba(232,192,79,0.28)}
.ag-rule-label{flex:none;font-size:10.5px;letter-spacing:0.28em;text-transform:uppercase;color:var(--ag-gold)}


/* Bespoke routes reproduce the published Source A sections directly; the shared
   generic page hero/footer would duplicate content that Source A never showed. */
body.ag-bespoke-body #cms-hero{display:none}
body.ag-bespoke-body footer{display:none}

/* --- cinematic band (Four Hands, Grooming header) --- */
.ag-band{position:relative;border-radius:16px;overflow:hidden;border:1px solid rgba(232,192,79,0.22);aspect-ratio:4/5;background:#1A2433;box-shadow:0 24px 56px -34px rgba(0,0,0,.95)}
.ag-band-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ag-band-photo--placeholder{background:radial-gradient(circle at 65% 20%,#29384a,#101923 63%,#070b10)}
.ag-band-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,14,24,0) 30%,rgba(8,14,24,.66) 62%,rgba(8,14,24,.97) 100%)}
.ag-band-text{position:absolute;left:0;right:0;bottom:0;padding:0 18px 20px;text-align:center}
.ag-band-kicker{margin:0 0 6px;font-size:10.5px;letter-spacing:0.24em;text-transform:uppercase;color:var(--ag-gold)}
.ag-band-title{margin:0;font-family:var(--ag-serif);text-transform:uppercase;font-weight:600;font-size:28px;letter-spacing:0.03em;color:var(--ag-cream)}
.ag-band-sub{margin:8px 0 0;font-family:var(--ag-serif);font-size:17px;color:#d9bd75;text-transform:none}
.ag-band-body{padding:20px 4px 0;text-align:center}
.ag-band-body p{margin:0 0 12px;font-size:13px;line-height:1.65;color:rgba(239,230,210,.86);text-transform:none;letter-spacing:normal}
.ag-band-cta{display:block;margin:14px auto 0;max-width:260px;padding:14px;border-radius:9px;background:var(--ag-gold-grad);color:var(--ag-on-gold);font-size:12.5px;letter-spacing:0.18em;text-transform:uppercase;font-weight:600;text-align:center}

/* --- grooming modules --- */
.ag-modules{display:flex;flex-direction:column;gap:16px;margin-top:20px}
.ag-module{border:1px solid rgba(232,192,79,0.22);border-radius:14px;background:#1A2433;padding:18px}
.ag-module-kicker{margin:0 0 10px;font-size:10px;letter-spacing:0.24em;text-transform:uppercase;color:var(--ag-gold);text-align:center}
.ag-module-title{margin:0 0 12px;text-align:center;font-family:var(--ag-serif);text-transform:uppercase;font-weight:600;font-size:20px;color:var(--ag-cream)}
.ag-module-title--left{text-align:left;font-size:18px}
.ag-module-copy{margin:0;font-size:12.5px;line-height:1.55;color:rgba(239,230,210,.86);text-transform:none;letter-spacing:normal}
.ag-module-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--ag-divider)}
.ag-module-row h3{margin:0;font-family:var(--ag-serif);font-weight:500;font-size:17px;letter-spacing:0.03em;color:var(--ag-cream);text-align:left}
.ag-module-price{flex:none;font-family:var(--ag-serif);font-size:22px;color:#F6DA8A}
.ag-module-price span{font-family:var(--ag-sans);font-size:10px;letter-spacing:0.16em;color:var(--ag-gold);margin-right:.4em}
.ag-module-cta{display:block;margin-top:16px;padding:13px;border-radius:9px;text-align:center;background:var(--ag-gold-grad);color:var(--ag-on-gold);font-size:11.5px;letter-spacing:0.16em;text-transform:uppercase;font-weight:600}

.ag-hr-table{display:grid;grid-template-columns:1.5fr .7fr .85fr 1.15fr;gap:0;font-size:11px}
.ag-hr-h{padding:8px 2px;color:var(--ag-gold);font-size:9.5px;letter-spacing:0.14em;text-transform:uppercase;border-bottom:1px solid rgba(232,192,79,0.28);text-align:center}
.ag-hr-h:first-child{text-align:left}
.ag-hr-table>span:not(.ag-hr-h){padding:10px 2px;border-bottom:1px solid var(--ag-divider);color:rgba(239,230,210,.86);text-align:center}
.ag-hr-area{text-align:left !important;color:var(--ag-cream) !important;font-size:11.5px}
.ag-hr-note{margin:12px 0 0;font-size:10.5px;line-height:1.5;color:rgba(239,230,210,.6);text-align:center;text-transform:none;letter-spacing:normal}

/* --- finishing touches --- */
.ag-finishing{margin-top:26px;border-top:1px solid var(--ag-divider);padding:22px 0 0}
.ag-finishing-kicker{margin:0 0 5px;text-align:center;font-size:10.5px;letter-spacing:0.28em;text-transform:uppercase;color:var(--ag-gold)}
.ag-finishing-title{margin:0 0 4px;text-align:center;font-family:var(--ag-serif);text-transform:uppercase;font-weight:600;font-size:20px;letter-spacing:0.04em;color:var(--ag-cream)}
.ag-finishing-copy{margin:0 auto 16px;max-width:280px;text-align:center;font-size:13px;line-height:1.55;color:rgba(239,230,210,1);text-transform:none;letter-spacing:normal}
.ag-finishing-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
.ag-touch{position:relative;border-radius:13px;overflow:hidden;border:1px solid rgba(232,192,79,0.22);aspect-ratio:3/4;background:#1A2433;box-shadow:0 16px 40px -32px rgba(0,0,0,.9)}
.ag-touch img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ag-touch-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,14,24,0) 34%,rgba(8,14,24,.64) 64%,rgba(8,14,24,.96) 100%)}
.ag-touch-text{position:absolute;left:0;right:0;bottom:0;padding:0 14px 15px}
.ag-touch-text p{margin:0 0 5px;font-size:9.5px;letter-spacing:0.16em;text-transform:uppercase;color:var(--ag-gold)}
.ag-touch-text h3{margin:0;font-family:var(--ag-serif);text-transform:uppercase;font-weight:600;font-size:18px;color:var(--ag-cream)}
.ag-touch-ar{margin:4px 0 0 !important;color:rgba(239,230,210,.7) !important;letter-spacing:normal !important;text-transform:none !important}
.ag-touch-text a{display:inline-block;margin-top:11px;padding:8px 14px;border-radius:7px;background:linear-gradient(135deg,#F6DA8A,#E8C04F);color:var(--ag-on-gold);font-size:9.5px;letter-spacing:0.14em;text-transform:uppercase;font-weight:600}

/* --- the journeys --- */
.ag-journeys{display:flex;flex-direction:column;gap:22px}
.ag-journey{position:relative;border-radius:20px;overflow:hidden;border:1px solid rgba(232,192,79,0.55);box-shadow:0 28px 64px -34px rgba(0,0,0,.95)}
.ag-journey-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ag-journey-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,14,24,.5) 0%,rgba(8,14,24,.34) 26%,rgba(8,14,24,.72) 64%,rgba(8,14,24,.97) 100%)}
.ag-journey-inset{position:absolute;inset:11px;border:1px solid rgba(232,192,79,0.34);border-radius:13px;pointer-events:none}
.ag-journey-badge{position:absolute;top:20px;left:20px;z-index:3;background:linear-gradient(135deg,#F6DA8A,#E8C04F);color:var(--ag-on-gold);font-size:9.5px;letter-spacing:0.2em;text-transform:uppercase;font-weight:700;padding:6px 11px;border-radius:7px}
.ag-journey-body{position:relative;z-index:2;display:flex;flex-direction:column;min-height:540px;padding:24px 22px 26px;text-align:center}
.ag-journey-seal{height:60px;width:auto;margin:0 auto}
.ag-journey-spacer{flex:1;min-height:24px}
.ag-journey-kicker{margin:0 0 11px;font-size:10.5px;letter-spacing:0.28em;text-transform:uppercase;color:var(--ag-gold)}
.ag-journey-name{margin:0;font-family:var(--ag-serif);text-transform:uppercase;font-weight:600;font-size:28px;line-height:1.08;letter-spacing:0.03em;color:var(--ag-cream)}
.ag-journey-ar{margin:6px 0 0;font-size:15px;color:#d9bd75;text-transform:none;letter-spacing:normal}
.ag-journey-price{display:flex;align-items:center;justify-content:center;gap:13px;margin:16px 0 0}
.ag-journey-hair{height:1px;width:26px;background:linear-gradient(90deg,transparent,#E8C04F)}
.ag-journey-hair--right{background:linear-gradient(90deg,#E8C04F,transparent)}
.ag-journey-amount{font-family:var(--ag-serif);text-transform:uppercase;font-size:42px;line-height:1;color:#F6DA8A}
.ag-journey-amount span{font-family:var(--ag-sans);font-size:18px;letter-spacing:0.06em;color:var(--ag-gold);margin-right:.4em}
.ag-journey-duration{margin:9px 0 0;font-size:11.5px;letter-spacing:0.18em;text-transform:uppercase;color:rgba(239,230,210,.86)}
.ag-journey-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:18px auto 0;max-width:280px}
.ag-chip-round{font-size:9.5px;letter-spacing:0.1em;text-transform:uppercase;color:var(--ag-text);border:1px solid rgba(232,192,79,0.45);border-radius:20px;padding:6px 11px}
.ag-chip-round--gold{color:var(--ag-on-gold);background:linear-gradient(135deg,#F6DA8A,#E8C04F);border-color:transparent;font-weight:600}
.ag-journey-cta{display:block;margin:20px auto 0;max-width:250px;padding:14px;border-radius:9px;background:var(--ag-gold-grad);color:var(--ag-on-gold);font-size:12.5px;letter-spacing:0.18em;text-transform:uppercase;font-weight:600}

/* --- membership tier cards --- */
.ag-tiers{display:flex;flex-direction:column;gap:20px}
.ag-tier{position:relative;border:1px solid rgba(232,192,79,0.28);border-radius:18px;background:#141d2a;overflow:hidden;box-shadow:0 24px 56px -36px rgba(0,0,0,.95)}
.ag-tier--featured{border-color:rgba(232,192,79,0.62)}
.ag-tier-flag{position:absolute;top:14px;right:14px;z-index:3;background:linear-gradient(135deg,#F6DA8A,#E8C04F);color:var(--ag-on-gold);font-size:9px;letter-spacing:0.18em;text-transform:uppercase;font-weight:700;padding:5px 10px;border-radius:6px}
.ag-tier-art{position:relative;margin:18px 18px 0;border-radius:14px;overflow:hidden;aspect-ratio:1.585;background:linear-gradient(150deg,#E6EAEF 0%,#B4BBC4 46%,#828B96 100%);border:1px solid rgba(255,255,255,.55)}
.ag-tier--gold .ag-tier-art{background:linear-gradient(150deg,#F8E6A6 0%,#E8C04F 46%,#B8862E 100%);border-color:rgba(255,240,200,.55)}
.ag-tier--onyx .ag-tier-art{background:linear-gradient(150deg,#262A33 0%,#0E1014 55%,#04060A 100%);border-color:rgba(232,192,79,.55)}
.ag-tier-sheen{position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,rgba(246,218,138,.16) 48%,transparent 62%)}
.ag-tier-face{position:relative;z-index:2;padding:14px 16px;height:100%;display:flex;flex-direction:column}
.ag-tier-face img{height:22px;width:auto}
.ag-tier-brand{margin:6px 0 0;font-family:var(--ag-serif);font-size:15px;letter-spacing:0.24em;color:var(--ag-text)}
.ag-tier-sub{margin:2px 0 0;font-size:8.5px;letter-spacing:0.2em;color:rgba(239,230,210,.6)}
.ag-tier-strip{margin:auto 0 10px;height:1px;background:linear-gradient(90deg,rgba(232,192,79,.5),transparent)}
.ag-tier-name{margin:0;font-family:var(--ag-serif);text-transform:uppercase;font-size:20px;letter-spacing:0.14em;color:#F6DA8A}
.ag-tier-meta{margin:3px 0 0;font-size:8.5px;letter-spacing:0.2em;color:rgba(239,230,210,.55)}
.ag-tier-body{padding:18px}
.ag-tier-price{display:flex;align-items:baseline;justify-content:center;gap:8px}
.ag-tier-amount{font-family:var(--ag-serif);font-size:36px;line-height:1;color:#F6DA8A}
.ag-tier-amount span{font-family:var(--ag-sans);font-size:14px;letter-spacing:0.08em;color:var(--ag-gold);margin-right:.35em}
.ag-tier-cycle{font-size:10.5px;letter-spacing:0.18em;text-transform:uppercase;color:rgba(239,230,210,.7)}
.ag-perks{margin:16px 0 0;display:flex;flex-direction:column;gap:9px}
.ag-perk{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.5;color:rgba(239,230,210,.86);text-transform:none;letter-spacing:normal;text-align:left}
.ag-perk span:first-child{color:var(--ag-gold);flex:none}
.ag-tier-cta{display:block;margin-top:18px;padding:14px;border-radius:9px;text-align:center;background:var(--ag-gold-grad);color:var(--ag-on-gold);font-size:12px;letter-spacing:0.18em;text-transform:uppercase;font-weight:600}

/* --- house card --- */
.ag-house{position:relative;margin:0 auto;max-width:300px;border-radius:14px;overflow:hidden;aspect-ratio:1.6/1;background:linear-gradient(150deg,#6E4326 0%,#4A2C18 52%,#28160C 100%);border:1px solid rgba(232,192,79,0.45)}
.ag-house-sheen{position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,rgba(246,218,138,.14) 48%,transparent 62%)}
.ag-house-face{position:relative;z-index:2;padding:14px 16px;height:100%;display:flex;flex-direction:column}
.ag-house-face img{height:22px;width:auto}
.ag-loads{display:flex;flex-direction:column;gap:10px;margin-top:18px}
.ag-load{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid rgba(232,192,79,0.26);border-radius:12px;background:rgba(20,29,42,.7)}
.ag-load-pay{margin:0;font-family:var(--ag-serif);font-size:24px;line-height:1;color:var(--ag-cream)}
.ag-load-pay span{font-family:var(--ag-sans);font-size:10px;letter-spacing:0.16em;color:var(--ag-gold);margin-right:.4em}
.ag-load-bonus{margin:6px 0 0;font-size:10px;letter-spacing:0.08em;color:rgba(239,230,210,.66);text-transform:none}
.ag-load-worth{flex:none;text-align:right;font-family:var(--ag-serif);font-size:17px;color:#F6DA8A}
.ag-load-worth span{display:block;font-family:var(--ag-sans);font-size:8.5px;letter-spacing:0.2em;color:var(--ag-gold)}

/* --- gift a ritual --- */
.ag-voucher{margin:4px auto 0;max-width:340px}
.ag-voucher-face{position:relative;min-height:210px;border-radius:16px;padding:22px 98px 22px 20px;text-align:left;background:linear-gradient(155deg,#1A2433 0%,#0B121C 100%);border:1px solid rgba(232,192,79,.5);overflow:hidden}
.ag-voucher-face::after{content:'';position:absolute;top:0;right:0;bottom:0;width:78px;border-left:1px dashed rgba(232,192,79,.45);background:linear-gradient(rgba(11,18,28,.55),rgba(11,18,28,.55)),var(--ag-texture) center/150px,#0B121C}
.ag-voucher-face img{height:26px;width:auto}
.ag-voucher-label{margin:12px 0 0;font-size:10px;letter-spacing:0.22em;text-transform:uppercase;color:rgba(239,230,210,.7)}
.ag-voucher-amount{margin:8px 0 0;font-family:var(--ag-serif);font-size:40px;line-height:1;color:#F6DA8A}
.ag-voucher-amount span{font-family:var(--ag-sans);font-size:15px;letter-spacing:0.08em;color:var(--ag-gold);margin-right:.35em}
.ag-voucher-valid{margin:10px 0 0;font-size:9.5px;letter-spacing:0.2em;text-transform:uppercase;color:rgba(239,230,210,.6)}
.ag-voucher-choose{margin:22px 0 10px;text-align:center;font-size:10.5px;letter-spacing:0.24em;text-transform:uppercase;color:var(--ag-gold)}
.ag-amounts{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.ag-amount{font-family:var(--ag-serif);text-transform:uppercase;font-size:20px;color:var(--ag-cream);border:1px solid rgba(232,192,79,0.4);border-radius:9px;padding:9px 16px}
.ag-amount--selected{color:var(--ag-on-gold);background:linear-gradient(135deg,#F6DA8A,#E8C04F);border-color:transparent;font-weight:600}
.ag-amount--custom{font-size:14px;color:var(--ag-text);align-self:center}
.ag-gift-cta{display:block;margin:20px auto 0;max-width:260px;padding:14px;border-radius:9px;text-align:center;background:var(--ag-gold-grad);color:var(--ag-on-gold);font-size:12.5px;letter-spacing:0.18em;text-transform:uppercase;font-weight:600}
.ag-gift-call{display:block;margin:11px auto 0;max-width:260px;padding:13px;border-radius:9px;text-align:center;border:1px solid var(--ag-cta-border);color:var(--ag-gold);font-size:11.5px;letter-spacing:0.16em;text-transform:uppercase}


/* Owner-approved Services destination on the home STEP INSIDE grid. */
.ag-tile--services .ag-tile-icon{height:30px;opacity:.9}

.ag-tier--silver .ag-tier-brand,.ag-tier--silver .ag-tier-name{color:#2B313A}
.ag-tier--silver .ag-tier-sub,.ag-tier--silver .ag-tier-meta{color:rgba(43,49,58,.6)}
.ag-tier--gold .ag-tier-brand,.ag-tier--gold .ag-tier-name{color:#3A2A07}
.ag-tier--gold .ag-tier-sub,.ag-tier--gold .ag-tier-meta{color:rgba(58,42,7,.62)}
.ag-tier--onyx .ag-tier-brand,.ag-tier--onyx .ag-tier-name{color:#F4ECD8}
.ag-tier--onyx .ag-tier-sub,.ag-tier--onyx .ag-tier-meta{color:rgba(244,236,216,.55)}
.ag-tier--onyx .ag-tier-flag{top:-15px;right:50%;transform:translateX(50%)}


/* OWNER FINAL VISUAL FIXES — approved Sep 6 */
body.home-page .ag-home-cta{display:block!important}
body.home-page .ag-home-cta .hero-cta{display:block!important;width:100%!important}
body.home-page #cms-cta{display:flex!important;width:100%!important}
body.home-page .ag-see-rituals{display:flex!important;width:100%!important;margin-top:20px!important}

/* The restored Rituals long-form page must clear the fixed bottom bar. */
body.ag-bespoke-body .ag-rituals-composite{padding-bottom:24px}

/* Owner-uploaded complete membership card artwork. The surrounding membership
   information remains CMS-rendered; clearing image_url restores the approved
   generated tier card. */
.ag-tier-custom-art{
  position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:contain;
  border-radius:inherit;
}

/* Hero Media: opt-in background layers, never layout or typography. */
.ag-hero-media-host{position:relative;isolation:isolate;overflow:hidden}
.ag-hero-media-layer{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;border-radius:inherit}
.ag-hero-media-layer img,.ag-hero-media-layer video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--hero-focal,50% 50%);pointer-events:none}
.ag-hero-media-layer [hidden]{display:none!important}
#cms-hero.ag-hero-media-host::before{background-position:var(--hero-focal,50% 50%)}
#cms-hero[data-hero-media=video]::before,#cms-hero[data-hero-media=cinemagraph]::before{z-index:0;background-image:linear-gradient(180deg,rgba(14,22,34,.55) 0%,rgba(14,22,34,.86) 62%,#0E1622 100%);pointer-events:none}
body.home-page #cms-hero[data-hero-media=video]::before,body.home-page #cms-hero[data-hero-media=cinemagraph]::before{background-image:linear-gradient(180deg,rgba(10,16,26,.4) 0%,rgba(10,16,26,.2) 40%,rgba(14,22,34,.85) 88%,#0E1622 100%)}
#cms-hero.ag-hero-media-host .hero-inner{z-index:1;position:relative}
body.home-page #cms-hero.ag-hero-media-host .hero-inner{position:absolute}
.ag-hero-media-host[data-hero-overlay=custom]::after{content:'';position:absolute;inset:0;background:var(--hero-overlay-color);opacity:var(--hero-overlay-opacity);z-index:0;pointer-events:none}
.ag-hero-media-host[data-hero-overlay]>.ag-band-scrim,.ag-hero-media-host[data-hero-overlay]>.ag-card-scrim{visibility:hidden}
#cms-hero.ag-hero-media-host[data-hero-overlay]::before{background-image:var(--hero-image,none)}
#cms-hero.ag-hero-media-host[data-hero-overlay][data-hero-media=video]::before,#cms-hero.ag-hero-media-host[data-hero-overlay][data-hero-media=cinemagraph]::before{background-image:none}
.ag-hero-media-host[data-hero-overlay]>.ag-band-text,.ag-hero-media-host[data-hero-overlay]>.ag-card-name,.ag-hero-media-host[data-hero-overlay]>.ag-card-tag{z-index:1}
.ag-bespoke-head.ag-hero-media-host>*:not(.ag-hero-media-layer){position:relative;z-index:1}
