/* Next Level Railings — Auraspace Website Enhancement (Instance #2)
   Design system in the Kenneth Morgan Group family language:
   Roboto Slab display type, Roboto body, charcoal + gold palette.
   Motion is layered in via motion.js hooks ([data-rvl], [data-plx],
   .stat-num, .kb) and fully degrades with JS off / reduced motion. */

:root {
  --ink: #23282e;
  --ink-2: #2b323a;
  --gold: #a27748;
  --gold-2: #d8b05d;
  --gold-deep: #7a5c22;
  --paper: #ffffff;
  --mist: #f7f7f7;
  --cream: #fbf6ea;
  --line: #e8eaec;
  --muted: #5c6670;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(35, 40, 46, .14);
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Roboto Slab', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; font-weight: 700; color: var(--ink); }
.kicker {
  font-family: var(--font-body); font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; font-size: .78rem; color: var(--gold);
  margin-bottom: 14px;
}
.kicker::before { content: ""; display: inline-block; width: 34px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 12px; }

/* ---------- Group topbar ---------- */
.group-topbar {
  background: var(--ink); color: #e9e4d8; font-size: .82rem;
  border-bottom: 1px solid rgba(216, 176, 93, .35);
}
.group-topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.group-mark { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.group-topbar a { color: #e9e4d8; }
.group-topbar .tb-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(35,40,46,.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 54px; width: auto; }
.brand-text { line-height: 1.15; }
.brand-text .brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); display: block; }
.brand-text .brand-sub { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.site-navigation ul { list-style: none; display: flex; gap: 30px; align-items: center; }
.site-navigation a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.site-navigation a:hover, .site-navigation a[aria-current="page"] { color: var(--gold-deep); text-decoration: none; }
.nav-cta a {
  background: var(--gold); color: #fff !important; padding: 11px 20px; border-radius: 999px;
  font-weight: 700; transition: background .25s ease, transform .25s ease; display: inline-block;
}
.nav-cta a:hover { background: var(--gold-deep); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 15px 30px; border-radius: 999px; font-weight: 700;
  font-size: 1rem; transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); }
.btn-ghost { border: 2px solid rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-link { font-weight: 700; color: var(--gold-deep); }
.btn-link::after { content: " →"; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.kb img { animation: kb 26s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, 1.5%); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,40,46,.34) 0%, rgba(35,40,46,.18) 40%, rgba(35,40,46,.82) 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 120px 0 84px; max-width: 1200px; margin: 0 auto; width: 100%; }
.hero-content .container { padding-right: 24px; }
.group-badge {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(216,176,93,.75);
  color: var(--gold-2); border-radius: 999px; padding: 8px 18px; font-size: .8rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; background: rgba(35,40,46,.45); backdrop-filter: blur(4px);
  margin-bottom: 26px;
}
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 12ch; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero h1 .w > span { display: inline-block; }
.js .hero h1 .w > span { animation: wordRise 1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * .09s + .15s); }
@keyframes wordRise { from { transform: translateY(118%); } to { transform: translateY(0); } }
.hero-intro { font-size: 1.22rem; max-width: 56ch; margin: 22px 0 34px; color: #f2ede1; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-rule { width: 74px; height: 3px; background: var(--gold-2); margin-bottom: 26px; transform-origin: left; }
.js .hero-rule { animation: ruleGrow 1.1s .3s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ruleGrow { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.scroll-nudge { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; z-index: 2; animation: scrollNudge 2.6s ease-in-out infinite; }
@keyframes scrollNudge { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,9px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 118px 0 84px; overflow: hidden; background: var(--ink); color: #fff; }
.page-hero-media { position: absolute; inset: -12% 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35,40,46,.86) 0%, rgba(35,40,46,.55) 55%, rgba(35,40,46,.3) 100%); }
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 16ch; }
.page-hero p { max-width: 58ch; margin-top: 16px; color: #f2ede1; font-size: 1.1rem; }
.crumbs { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 16px; font-weight: 700; }
.crumbs a { color: var(--gold-2); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--ink); color: #fff; }
.stats-band .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.stat { text-align: center; border-left: 1px solid rgba(216,176,93,.3); }
.stat:first-child { border-left: 0; }
.stat-num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--gold-2); display: block; }
.stat-label { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: #d9d4c7; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--mist); }
.section.cream { background: var(--cream); }
.section.dark { background: var(--ink-2); color: #e9e6dd; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); }
.section.dark .section-head p { color: #c9c4b6; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.split-media .frame { position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold-2); border-radius: var(--radius); z-index: -1; }
.lede { font-size: 1.13rem; color: #3c454e; }
.section.dark .lede { color: #d9d4c7; }

/* ---------- Checklist ---------- */
.check-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; margin-top: 28px; }
.check-grid li { position: relative; padding-left: 32px; font-weight: 500; }
.check-grid li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 4.8 9 10 3.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; counter-reset: svc; }
.svc-card {
  grid-column: span 2; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 26px rgba(35,40,46,.08); transition: transform .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column;
}
.svc-card:nth-child(4) { grid-column: 2 / span 2; }
.svc-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.svc-card .svc-media { overflow: hidden; aspect-ratio: 4/3; }
.svc-card .svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.svc-card:hover .svc-media img { transform: scale(1.07); }
.svc-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-body h3 { font-size: 1.28rem; }
.svc-body h3::before {
  content: counter(svc, decimal-leading-zero); counter-increment: svc; display: block;
  font-family: var(--font-body); font-size: .78rem; letter-spacing: .2em; color: var(--gold); margin-bottom: 6px; font-weight: 700;
}
.svc-body p { color: var(--muted); font-size: .98rem; flex: 1; }

/* ---------- Parallax band ---------- */
.band { position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: center; }
.band-media { position: absolute; inset: -14% 0; will-change: transform; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35,40,46,.85), rgba(35,40,46,.35)); }
.band-content { position: relative; z-index: 2; color: #fff; padding: 90px 0; }
.band-content h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18ch; }
.band-content p { max-width: 52ch; margin-top: 14px; color: #f2ede1; }

/* ---------- Vision / mission cards ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.vm-card { background: rgba(255,255,255,.06); border: 1px solid rgba(216,176,93,.4); border-radius: var(--radius); padding: 34px; }
.vm-card h3 { color: var(--gold-2); font-size: 1.3rem; margin-bottom: 10px; }
.vm-card p { font-size: 1.12rem; font-family: var(--font-display); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.g-item { border-radius: 10px; overflow: hidden; position: relative; aspect-ratio: 4/3; display: block; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.g-item:hover img { transform: scale(1.08); }
.g-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(35,40,46,.45));
  opacity: 0; transition: opacity .35s ease;
}
.g-item:hover::after { opacity: 1; }
.lightbox { position: fixed; inset: 0; background: rgba(20,22,25,.94); z-index: 200; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; border-radius: 8px; box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 18px; right: 26px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* ---------- Marquee band ---------- */
.marquee { background: var(--gold); color: #fff; overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; padding: 0 26px; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Group band ---------- */
.group-band { background: var(--cream); border-top: 1px solid #eadfc6; border-bottom: 1px solid #eadfc6; }
.sister-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 34px; }
.sister {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px;
  font-family: var(--font-display); font-weight: 700; color: var(--ink); text-align: center;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; display: block; font-size: .99rem;
}
.sister small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; margin-bottom: 8px; }
.sister:hover { transform: translateY(-4px); border-color: var(--gold-2); box-shadow: var(--shadow); text-decoration: none; }
.sister.current { border-color: var(--gold); background: #fdf9ef; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.cta-media { position: absolute; inset: 0; overflow: hidden; opacity: .38; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-content { position: relative; z-index: 2; text-align: center; padding: 96px 24px; max-width: 760px; margin: 0 auto; }
.cta-content h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 16px; }
.cta-content p { color: #e9e4d8; margin-bottom: 32px; }

/* ---------- Emergency strip ---------- */
.emergency-strip { background: var(--gold); color: #fff; }
.emergency-strip .container { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.emergency-strip strong { font-family: var(--font-display); font-size: 1.15rem; }
.emergency-strip a { color: #fff; font-weight: 700; font-size: 1.15rem; }

/* ---------- Service detail ---------- */
.svc-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail.reverse .svc-detail-media { order: 2; }
.svc-detail-media { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.svc-detail-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.svc-detail-media:hover img { transform: scale(1.05); }
.svc-detail h2 { font-size: 1.9rem; margin-bottom: 14px; }
.svc-detail p { color: #3c454e; margin-bottom: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-card { background: var(--mist); border-radius: var(--radius); padding: 30px; margin-bottom: 18px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--gold-deep); }
.contact-card p { font-size: 1.05rem; }
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: 0 10px 30px rgba(35,40,46,.06); }
.quote-form label { display: block; font-weight: 700; font-size: .9rem; margin: 18px 0 7px; }
.quote-form label:first-of-type { margin-top: 0; }
.quote-form input, .quote-form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid #cfd4d9; border-radius: 9px;
  font: inherit; font-size: 1rem; background: #fcfcfc;
}
.quote-form input:focus, .quote-form textarea:focus { outline: 2px solid var(--gold-2); border-color: var(--gold); }
.quote-form button { margin-top: 24px; border: 0; cursor: pointer; width: 100%; }
.form-note { margin-top: 16px; font-size: .85rem; color: var(--muted); text-align: center; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd3d8; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 44px; padding-top: 72px; padding-bottom: 52px; }
.site-footer h3 { color: #fff; font-size: 1.02rem; letter-spacing: .06em; margin-bottom: 18px; }
.site-footer a { color: #cfd3d8; }
.site-footer a:hover { color: var(--gold-2); }
.footer-brand img.logo { height: 62px; width: auto; margin-bottom: 18px; }
.footer-brand img.badge { height: 44px; width: auto; margin-top: 20px; opacity: .95; }
.footer-nav ul, .footer-sisters ul { list-style: none; }
.footer-nav li, .footer-sisters li { margin-bottom: 10px; }
.footer-contact p { margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: .9rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom strong { color: var(--gold-2); font-weight: 700; }

/* ---------- Scroll-reveal choreography ---------- */
.js [data-rvl] { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js [data-rvl].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-card, .svc-card:nth-child(4) { grid-column: auto; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .sister-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(35,40,46,.14); }
  .site-navigation.open { display: block; }
  .site-navigation ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 20px; }
  .site-navigation li { padding: 10px 0; border-bottom: 1px solid var(--mist); }
  .site-navigation li:last-child { border-bottom: 0; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .split, .svc-detail, .contact-grid, .vm-grid { grid-template-columns: 1fr; }
  .svc-detail.reverse .svc-detail-media { order: 0; }
  .stats-band .container { grid-template-columns: 1fr; gap: 30px; }
  .stat { border-left: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .check-grid { grid-template-columns: 1fr; }
  .hero { min-height: 84vh; }
  .section { padding: 68px 0; }
}
@media (max-width: 560px) {
  .services-grid, .sister-grid, .footer-grid { grid-template-columns: 1fr; }
  .brand-text { display: none; }
}

/* ---------- Reduced motion: everything settles ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kb img, .marquee-track, .scroll-nudge, .js .hero-rule, .js .hero h1 .w > span { animation: none !important; }
  .js [data-rvl] { opacity: 1; transform: none; transition: none; }
  .svc-card, .svc-card .svc-media img, .g-item img, .sister, .btn, .nav-cta a { transition: none; }
}
