/* ============================================================================
   shell.css - shared header / nav / footer / base shell.
   Loaded globally from Site.master BEFORE each page's inline <style>, so existing
   pages (which still carry their own inline copy of these rules) override it and
   look identical. Pages that do NOT inline the shell (e.g. the keyword landing
   pages) get their header, nav and footer styled from here. Extracted verbatim
   from the site's shared shell so the look matches every other page.
   ========================================================================= */

:root {
    --ink: #0f1923;
    --ink-light: #2a3a4a;
    --gold: #b8843a;
    --gold-light: #d4a05a;
    --gold-pale: #f5ede0;
    --cream: #faf7f2;
    --cream-dark: #f0e9dc;
    --white: #ffffff;
    --muted: #6b7280;
    --border: rgba(184, 132, 58, 0.2);
    --shadow-sm: 0 2px 8px rgba(15, 25, 35, 0.06);
    --shadow-md: 0 8px 32px rgba(15, 25, 35, 0.10);
    --shadow-lg: 0 20px 60px rgba(15, 25, 35, 0.14);
    --max: 1240px;
    --header-h: 76px;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;
    --radius: 4px;
    --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* HEADER */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--header-h); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: background 0.3s, box-shadow 0.3s; }
.header.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow-sm); }
.header__inner { max-width: var(--max); margin: 0 auto; padding: 0 32px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.header__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header__logo-mark { width: 38px; height: 38px; background: var(--ink); border-radius: 6px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.header__logo-mark::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--gold); }
.header__logo-mark span { font-family: var(--serif); font-size: 18px; font-weight: 700; color: white; line-height: 1; margin-bottom: 4px; }
.header__logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.header__logo-text strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: 0.01em; }
.header__logo-text small { font-size: 0.65rem; font-weight: 500; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; }

/* NAV */
.nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav__link { font-size: 0.875rem; font-weight: 500; color: var(--ink-light); padding: 8px 14px; border-radius: var(--radius); transition: color 0.2s, background 0.2s; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.nav__link:hover, .nav__link.active { color: var(--gold); background: var(--gold-pale); }
.nav__dropdown { position: relative; }
.nav__dropdown-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-8px); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 8px; min-width: 240px; opacity: 0; visibility: hidden; transition: all 0.2s; z-index: 100; }
.nav__dropdown:hover .nav__dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__dropdown-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 0.875rem; color: var(--ink-light); border-radius: 6px; transition: all 0.2s; }
.nav__dropdown-item:hover { background: var(--gold-pale); color: var(--gold); padding-left: 20px; }
.nav__dropdown-thumb { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 7px; object-fit: cover; background: var(--gold-pale); border: 1px solid var(--border); }
.nav__dd-divider { height: 1px; background: var(--border); margin: 6px 10px; }
.nav__subwrap { position: relative; }
.nav__sub-caret { margin-left: auto; font-size: 0.62rem; opacity: 0.55; }
.nav__submenu { position: absolute; top: -8px; left: calc(100% + 6px); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 8px; min-width: 175px; opacity: 0; visibility: hidden; transform: translateX(-6px); transition: all 0.2s; z-index: 110; }
.nav__subwrap:hover .nav__submenu { opacity: 1; visibility: visible; transform: translateX(0); }
.nav__submenu-item { display: block; padding: 10px 16px; font-size: 0.875rem; color: var(--ink-light); border-radius: 6px; transition: all 0.2s; }
.nav__submenu-item:hover { background: var(--gold-pale); color: var(--gold); padding-left: 20px; }
.nav.active .nav__submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: rgba(0, 0, 0, 0.04); margin: 4px 0 4px 18px; padding: 4px; min-width: 0; }
.nav.active .nav__sub-caret { display: none; }
.header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 500; font-size: 0.875rem; cursor: pointer; border: none; transition: all 0.25s; white-space: nowrap; letter-spacing: 0.01em; }
.btn--primary { background: var(--gold); color: var(--white); padding: 11px 28px; border-radius: 50px; }
.btn--primary:hover { background: #a07230; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(184, 132, 58, .35); color: white; }
.btn--outline { background: transparent; color: var(--ink); padding: 10px 24px; border-radius: 50px; border: 1.5px solid var(--border); }
.btn--outline:hover, .btn--outline.active { border-color: var(--gold); color: var(--gold); }
.btn--lg { padding: 14px 36px; font-size: 1rem; border-radius: 50px; }
.btn--gold { background: var(--gold); color: white; padding: 14px 36px; border-radius: 50px; font-size: 0.95rem; font-weight: 500; }
.btn--gold:hover { background: #a07230; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(184, 132, 58, 0.35); color: white; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }

/* FOOTER */
.footer { background: #0a1219; color: rgba(255, 255, 255, 0.4); padding: 80px 0 0; }
.footer__top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 64px; }
.footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.footer__logo-mark { width: 36px; height: 36px; background: var(--gold); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.footer__logo-mark span { font-family: var(--serif); font-size: 18px; font-weight: 700; color: white; }
.footer__logo-text strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: white; display: block; }
.footer__desc { font-size: 0.825rem; line-height: 1.8; margin-bottom: 32px; font-weight: 300; max-width: 260px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; transition: all 0.2s; }
.footer__social a:hover { background: var(--gold); color: white; border-color: var(--gold); }
.footer__col h4 { font-family: var(--serif); font-size: 0.95rem; font-weight: 600; color: white; margin-bottom: 24px; letter-spacing: 0.01em; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__col ul li a { font-size: 0.825rem; color: rgba(255, 255, 255, 0.4); transition: color 0.2s; font-weight: 300; text-decoration: none; }
.footer__col ul li a:hover { color: var(--gold); }
.footer__bottom { padding: 32px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.04); }
.footer__bottom p { font-size: 0.75rem; color: rgba(255, 255, 255, 0.3); font-weight: 300; }
.footer__bottom a { color: inherit; text-decoration: none; }

/* MOBILE STICKY BAR (in master, all pages) */
.mobile-sticky { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12); z-index: 998; padding: 10px 16px; gap: 8px; }
.mobile-partner-btn { display: none; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer__top { grid-template-columns: 1fr 1fr; }
    .container { padding: 0 32px; }
    .mobile-partner-btn { display: inline-flex; align-items: center; padding: 7px 14px; border: 1.5px solid var(--gold); border-radius: 50px; font-size: 0.75rem; font-weight: 600; color: var(--gold); white-space: nowrap; text-decoration: none; transition: all 0.2s; flex-shrink: 0; font-family: var(--sans); letter-spacing: 0.01em; }
    .mobile-partner-btn:hover, .mobile-partner-btn.active { background: var(--gold); color: #fff; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }
    .btn--gold { width: 100%; justify-content: center; }
    .nav { display: none; }
    .hamburger { display: flex; z-index: 2001; }
    .header__actions { display: none; }
    .header__logo img { height: 38px !important; }
    .header__inner { gap: 0 !important; }
    .mobile-partner-btn { margin-left: auto !important; margin-right: 12px !important; }
    .nav.active { display: flex; position: fixed; top: 24px; left: 20px; right: 20px; width: auto !important; height: auto !important; max-height: calc(100vh - 48px); background: var(--cream) !important; flex-direction: column; padding: 48px 20px 24px 20px; gap: 8px; overflow-y: auto; z-index: 2000; align-items: stretch !important; justify-content: flex-start; border-radius: 12px; box-shadow: 0 0 0 100vh rgba(15, 25, 35, 0.4), 0 20px 40px rgba(0, 0, 0, 0.15) !important; }
    .nav.active .nav__link { padding: 12px 16px; width: 100%; font-size: 0.95rem; border-radius: 6px; color: var(--ink); }
    .nav__dropdown { width: 100%; }
    .nav.active .nav__dropdown-menu { position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; display: none !important; background: rgba(0, 0, 0, 0.04) !important; border-radius: 6px !important; margin-top: 4px !important; padding: 8px !important; box-shadow: none !important; border: none !important; }
    .nav.active .nav__dropdown.active .nav__dropdown-menu { display: block !important; }
    .nav.active .nav__dropdown.active > .nav__link { background: var(--gold-pale) !important; color: var(--gold) !important; }
    .nav.active .nav__dropdown-item { padding: 10px 16px; font-size: 0.85rem; border-radius: 4px; color: var(--ink-light); }
    .hamburger.active { position: fixed !important; top: 40px !important; right: 36px !important; }
    .hamburger.active span { background: var(--ink) !important; }
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .mobile-sticky { display: flex; }
    .mobile-sticky__btn { flex: 1; text-align: center; padding: 10px 6px; border-radius: var(--radius); font-weight: 600; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
    .mobile-sticky__btn--demo { background: var(--gold); color: white; }
    .mobile-sticky__btn--whatsapp { background: #25d366; color: white; }
    .mobile-sticky__btn--call { background: var(--ink); color: white; }
    body { padding-bottom: 72px; }
}
