/* ===== JBJ AUDIT & VALUATION — GLOBAL STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #C9943A;
  --gold-light: #E8B95A;
  --gold-pale: #F5E6C8;
  --navy: #0B1C3A;
  --navy-mid: #152A52;
  --navy-light: #1E3A6E;
  --slate: #4A6080;
  --slate-light: #6B83A3;
  --cream: #FAFAF7;
  --white: #FFFFFF;
  --text-dark: #0D1B2A;
  --text-mid: #3A4F6A;
  --text-light: #7A8FA8;
  --border: rgba(201,148,58,0.18);
  --border-navy: rgba(11,28,58,0.12);
  --shadow-sm: 0 2px 12px rgba(11,28,58,0.08);
  --shadow-md: 0 8px 32px rgba(11,28,58,0.12);
  --shadow-lg: 0 20px 60px rgba(11,28,58,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border-navy);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img.logo-icon { height: 54px; width: auto; }
.brand img.logo-text { height: 42px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--navy);
  background: rgba(11,28,58,0.06);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(201,148,58,0.35);
  transition: box-shadow 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  box-shadow: 0 6px 20px rgba(201,148,58,0.5) !important;
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-navy);
  box-shadow: var(--shadow-md);
  z-index: 999;
  padding: 12px 0;
}

.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border-navy);
  transition: background 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: var(--cream); color: var(--navy); }
.mobile-nav .nav-cta {
  margin: 12px 24px 4px;
  display: block;
  text-align: center;
  border-radius: 8px !important;
}

/* ===== LAYOUT ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

main { margin-top: var(--header-h); }

section { padding: 72px 0; }
section.compact { padding: 48px 0; }

/* ===== GOLD DIVIDER ===== */
.gold-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 0 0 24px;
}

.gold-line.center { margin: 0 auto 24px; }

/* ===== SECTION LABELS ===== */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

/* ===== TYPOGRAPHY ===== */
.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-title.light { color: var(--white); }

.section-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
}

.section-subtitle.light { color: rgba(255,255,255,0.72); }

/* ===== GRID ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(201,148,58,0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(201,148,58,0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border: 2px solid var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(201,148,58,0.12);
  color: var(--gold);
  border: 1px solid rgba(201,148,58,0.3);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,148,58,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-label { color: var(--gold); }
.page-hero h1 { color: var(--white); font-size: clamp(32px, 5vw, 52px); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.72); font-size: 17px; max-width: 600px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
}

.footer-top {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img { height: 52px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 280px; }

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-col p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ===== FORM STYLES ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-navy);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,148,58,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== SERVICE ICON ===== */
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201,148,58,0.12), rgba(201,148,58,0.06));
  border: 1px solid rgba(201,148,58,0.25);
  font-size: 22px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* ===== STAT BOX ===== */
.stat-box {
  text-align: center;
  padding: 28px 20px;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number span { color: var(--gold); }
.stat-label { font-size: 14px; color: var(--text-light); font-weight: 500; }

/* ===== CLIENTS STRIP ===== */
.clients-strip {
  background: var(--white);
  border-top: 1px solid var(--border-navy);
  border-bottom: 1px solid var(--border-navy);
  padding: 32px 0;
}
.clients-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.client-logo {
  height: 48px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
  object-fit: contain;
}
.client-logo:hover { filter: grayscale(0%); opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  section { padding: 52px 0; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  section { padding: 40px 0; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== SCROLL MARGIN FOR ANCHORS ===== */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

/* ===== ACTIVE PAGE INDICATOR ===== */
.main-nav a[data-page].active,
.mobile-nav a[data-page].active {
  color: var(--gold);
  font-weight: 600;
}
