/* ============================================================
   QB ACCOUNTING BOOKS SERVICES — Shared Stylesheet
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --navy:       #0d1f3c;
  --navy2:      #132848;
  --gold:       #c5972b;
  --gold-light: #e2b84b;
  --cream:      #faf7f2;
  --white:      #ffffff;
  --text:       #1a1a2e;
  --muted:      #6b7280;
  --border:     #e5ddd0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text); overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }

/* ── TOPBAR ── */
.topbar {
  background: var(--gold); padding: 8px 5%;
  display: flex; justify-content: center; align-items: center; gap: 32px; flex-wrap: wrap;
}
.topbar span { font-size: 12.5px; color: var(--navy); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.topbar a { color: var(--navy); text-decoration: none; }

/* ── NAVBAR ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(13,31,60,0.98); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  border-bottom: 1px solid rgba(197,151,43,0.2);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 18px;
  color: var(--navy); flex-shrink: 0;
}
.nav-logo-text { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 600; color: var(--white); line-height: 1.25; }
.nav-logo-text span { color: var(--gold-light); }

.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  color: rgba(255,255,255,0.82); text-decoration: none; font-size: 14px;
  padding: 8px 14px; border-radius: 6px; display: block;
  transition: color 0.2s, background 0.2s;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--gold-light); background: rgba(197,151,43,0.08); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 10px; opacity: 0.6; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--navy2); border: 1px solid rgba(197,151,43,0.2);
  border-radius: 12px; padding: 8px; min-width: 240px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  z-index: 300;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  color: rgba(255,255,255,0.75); text-decoration: none; font-size: 13.5px;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover { background: rgba(197,151,43,0.1); color: var(--gold-light); }
.dropdown-menu a .di { font-size: 18px; }

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--navy) !important; padding: 9px 20px !important;
  border-radius: 7px; font-weight: 500 !important; margin-left: 8px;
}
.nav-cta:hover { opacity: 0.9; background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important; }

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

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy); padding: 80px 5% 70px;
  position: relative; overflow: hidden;
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(197,151,43,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(197,151,43,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(197,151,43,0.1) 0%, transparent 70%); top: -200px; right: -100px; pointer-events: none; }
.page-hero-content { position: relative; z-index: 2; max-width: 740px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.breadcrumb a { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { font-size: 13px; color: rgba(255,255,255,0.25); }
.breadcrumb strong { font-size: 13px; color: rgba(255,255,255,0.65); font-weight: 400; }
.page-hero-label { font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; display: block; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 18px; }
.page-hero h1 em { color: var(--gold-light); font-style: normal; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.75; max-width: 580px; }

/* ── SECTION BASICS ── */
section { padding: 88px 5%; }
.section-label { font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; display: block; }
h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.85rem, 3.5vw, 2.7rem); font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 16px; }
h3 { font-family: 'Playfair Display', serif; }
.section-desc { font-size: 16px; color: var(--muted); line-height: 1.75; max-width: 580px; margin-bottom: 52px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy); padding: 13px 26px; border-radius: 8px;
  font-weight: 500; font-size: 14.5px; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(197,151,43,0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(197,151,43,0.44); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(13,31,60,0.25); color: var(--navy);
  padding: 13px 26px; border-radius: 8px; font-size: 14.5px; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--gold); background: rgba(197,151,43,0.06); }
.btn-outline-light {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.22); color: var(--white);
  padding: 13px 26px; border-radius: 8px; font-size: 14.5px; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-light:hover { border-color: var(--gold-light); background: rgba(197,151,43,0.08); }

/* ── CARDS ── */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 48px rgba(0,0,0,0.09); border-color: var(--gold); }
.card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 52px; height: 52px; background: rgba(197,151,43,0.1); border: 1px solid rgba(197,151,43,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px; }

/* ── DARK CTA BAND ── */
.cta-band {
  background: var(--navy); padding: 72px 5%; position: relative; overflow: hidden;
  text-align: center;
}
.cta-band .page-hero-grid { opacity: 0.5; }
.cta-band h2 { color: var(--white); max-width: 600px; margin: 0 auto 16px; }
.cta-band p { color: rgba(255,255,255,0.55); font-size: 16px; max-width: 500px; margin: 0 auto 36px; }
.cta-band-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  background: var(--navy); padding: 56px 5% 28px;
  border-top: 1px solid rgba(197,151,43,0.15);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap; gap: 32px;
}
.footer-brand { max-width: 270px; }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.footer-brand-name span { color: var(--gold-light); }
.footer-brand-tagline { font-size: 11.5px; color: var(--gold-light); letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-brand p { font-size: 12px; color: rgba(255,255,255,0.36); line-height: 1.7; }
.footer-links h5 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-light); margin-bottom: 14px; font-weight: 500; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.42); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 22px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 11.5px; color: rgba(255,255,255,0.26); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 11.5px; color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--gold-light); }

/* ── POLICY PAGES ── */
.policy-body { background: var(--white); }
.policy-content { max-width: 820px; margin: 0 auto; padding: 72px 5%; }
.policy-content h2 { font-size: 1.6rem; margin-top: 48px; margin-bottom: 14px; color: var(--navy); }
.policy-content h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-top: 28px; margin-bottom: 10px; font-family: 'DM Sans', sans-serif; }
.policy-content p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.policy-content ul { margin: 0 0 18px 20px; }
.policy-content ul li { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 6px; }
.policy-content strong { color: var(--text); font-weight: 500; }
.policy-meta { font-size: 13px; color: var(--muted); margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }

/* ── UTILS ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.text-gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  section { padding: 64px 5%; }
  .topbar { display: none; }
}

/* ── ANIMATION ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
.fade-up { animation: fadeUp 0.85s ease forwards; }
