/* Opulence Interiors — shared chrome
 * Announcement/campaign bar, family utility row, sticky header, primary nav,
 * mobile drawer, search popup, footer, section rhythm and scroll-reveal.
 * Sourced from brief/opulence-interiors-homepage.html. Builds on tokens.css
 * and components.css.
 */

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 30px; }

.eyebrow { font-family: var(--body); font-weight: 500; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); display: inline-flex; align-items: center; gap: .7em; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); flex: none; }
.eyebrow.on-dark { color: var(--gold-2); }
.eyebrow.on-dark::before { background: var(--gold-2); }

/* ══════════════════ announcement / campaign bar ══════════════════ */
.announce { background: var(--forest-deep); color: rgba(246, 242, 232, .85); font-size: .74rem; letter-spacing: .06em; text-align: center; padding: 9px 16px; }
.announce b { color: var(--gold-2); font-weight: 500; letter-spacing: .14em; }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.announce-count b { color: var(--gold-2); font-weight: 500; letter-spacing: .12em; }
.announce-dismiss { background: none; border: none; color: rgba(246, 242, 232, .6); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 2px; transition: color .25s; }
.announce-dismiss:hover { color: var(--cream); }

/* ══════════════════ utility row ══════════════════ */
.util { background: var(--cream-2); border-bottom: 1px solid var(--line-soft); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.util a { color: var(--muted); font-weight: 500; transition: color .25s; }
.util a:hover { color: var(--gold-deep); }
.util .fam { display: flex; gap: 22px; }
.util .fam .here { color: var(--forest); border-bottom: 1px solid var(--gold); }
.util .tel { color: var(--forest); }

/* ══════════════════ header ══════════════════ */
.hdr { background: var(--cream); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 60; transition: box-shadow .35s; }
.hdr.scrolled { box-shadow: 0 8px 30px rgba(31, 45, 31, .08); }
.hdr .wrap { display: flex; align-items: center; gap: 34px; height: 76px; }
.logo, .logo-text { font-family: var(--display); font-size: 1.35rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.logo-text span, .logo span { color: var(--gold-deep); }
.logo-text small, .logo small { display: block; font-family: var(--body); font-size: .56rem; letter-spacing: .34em; color: var(--muted); font-weight: 500; margin-top: 1px; }
.logo img, .custom-logo { max-height: 56px; width: auto; }

.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav ul.nav-list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav .nav-list li { position: relative; }
.nav a { font-size: .8rem; color: var(--forest); opacity: .85; padding: 6px 0; border-bottom: 1px solid transparent; transition: all .25s; display: inline-block; }
.nav a:hover { opacity: 1; color: var(--gold-deep); border-bottom-color: var(--gold); }
.nav .current-menu-item > a, .nav .current-menu-parent > a { opacity: 1; color: var(--gold-deep); border-bottom-color: var(--gold); }

/* Dropdown sub-menus (nav walker) */
.nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--cream); border: 1px solid var(--line-soft); box-shadow: var(--elev); padding: 10px 10px; margin: 0; list-style: none; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .25s; z-index: 70; }
.nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { display: block; padding: 8px 20px; border: none; font-size: .82rem; opacity: .9; }
.nav .sub-menu a:hover { background: var(--cream-2); }

.hdr .r { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--forest); background: transparent; cursor: pointer; transition: all .25s; position: relative; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cart-n { position: absolute; top: -6px; right: -6px; background: var(--burgundy); color: var(--cream); font-size: .56rem; font-weight: 600; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.burger { display: none; }

/* ══════════════════ mobile drawer ══════════════════ */
.drawer { position: fixed; inset: 0; background: rgba(31, 61, 47, .4); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .35s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer .panel { position: absolute; top: 0; right: 0; width: min(320px, 86vw); height: 100%; background: var(--cream); padding: 28px; display: flex; flex-direction: column; gap: 4px; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; }
.drawer.open .panel { transform: none; }
.drawer .panel a { font-family: var(--display); font-size: 1.4rem; padding: 10px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); display: block; }
.drawer .panel ul { list-style: none; margin: 0; padding: 0; }
.drawer .panel .sub-menu a { font-size: 1rem; padding-left: 14px; color: var(--muted); }
.drawer .close { align-self: flex-end; margin-bottom: 14px; }
.drawer .fam-links { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.drawer .fam-links a { font-family: var(--body); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; border: none; padding: 7px 0; color: var(--muted); }

/* ══════════════════ search popup ══════════════════ */
.search-popup { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center; }
.search-popup[hidden] { display: none; }
.search-popup__overlay { position: absolute; inset: 0; background: rgba(31, 61, 47, .5); }
.search-popup__panel { position: relative; background: var(--cream); width: min(680px, 92vw); margin-top: 12vh; padding: 40px; border-radius: var(--radius); box-shadow: var(--elev); }
.search-popup__close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.search-popup__eyebrow { font-family: var(--body); font-weight: 500; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); }
.search-popup__form { display: flex; gap: 12px; margin-top: 16px; }
.search-popup__input { flex: 1; background: #fff; border: 1px solid var(--line); padding: 14px 16px; font-family: var(--body); font-size: 1rem; border-radius: var(--radius); }
.search-popup__input:focus { outline: none; border-color: var(--gold); }
.search-popup__submit { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--forest-deep); border: none; padding: 0 22px; font-family: var(--body); font-weight: 500; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius); }
.search-popup__submit svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* ══════════════════ sections ══════════════════ */
.sec { padding: 82px 0; }
.sec-head { margin-bottom: 42px; max-width: 66ch; }
.sec-head .eyebrow { margin-bottom: 12px; }
.sec h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 12px; }
.sec h2 em, .sec h1 em { font-style: italic; color: var(--gold-deep); }
.sec .intro { color: var(--muted); font-weight: 300; }
.sec-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; max-width: none; }
.sec-head.split .btn { flex: none; }

/* ══════════════════ breadcrumb ══════════════════ */
.crumb { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; padding: 22px 0 0; font-weight: 500; flex-wrap: wrap; }
.crumb a:hover { color: var(--gold-deep); }
.crumb .sep { color: var(--gold); }
.crumb b { color: var(--forest); font-weight: 500; }

/* ══════════════════ footer ══════════════════ */
.footer { background: var(--forest-deep); color: rgba(246, 242, 232, .65); border-top: 1px solid rgba(246, 242, 232, .08); padding: 64px 0 0; font-size: .8rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 48px; }
.foot-grid h4, .foot-grid h5, .foot-h5 { font-family: var(--body); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); font-weight: 500; margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid a { display: block; padding: 4px 0; transition: color .25s; color: inherit; }
.foot-grid a:hover { color: var(--cream); }
.foot-logo, .footer-logo { font-family: var(--display); font-size: 1.3rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); margin-bottom: 6px; }
.foot-logo span, .footer-logo span { color: var(--gold-2); }
.foot-tag { font-family: var(--display); font-style: italic; font-size: 1rem; color: rgba(246, 242, 232, .55); margin-bottom: 18px; }
.footer-seo { color: rgba(246, 242, 232, .5); font-size: .78rem; line-height: 1.7; margin-bottom: 18px; }
.footer-contact { font-style: normal; display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.footer-contact__link { color: rgba(246, 242, 232, .8); }
.footer-social { display: flex; gap: 18px; }
.footer-social a { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-col__desc { display: block; font-size: .68rem; color: rgba(246, 242, 232, .4); padding: 0 0 6px; }
.legal { border-top: 1px solid rgba(246, 242, 232, .1); padding: 22px 0; font-size: .7rem; color: rgba(246, 242, 232, .45); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.legal a { color: inherit; }
.legal a:hover { color: var(--cream); }
.legal-links { display: flex; gap: 18px; }

/* ══════════════════ scroll reveal ══════════════════ */
/* Only hide when JS is present so no-JS users always see the content. The
   reveal engine in theme.js adds `.is-visible`; `.in` is kept for markup
   authored against the prototype naming. */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in,
.js .rv.is-visible { opacity: 1; transform: none; }

/* ══════════════════ responsive ══════════════════ */
@media (max-width: 980px) {
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .nav { display: none; }
    .burger { display: flex; }
}
@media (max-width: 640px) {
    .wrap { padding: 0 20px; }
    .sec { padding: 60px 0; }
    .util .fam span.hide-s { display: none; }
    .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .js .rv { opacity: 1; transform: none; transition: none; }
    * { transition: none !important; }
}
