/* ── CrestWell Accountants – Shared Site Styles ── */

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

:root {
  --navy:       #0b2548;
  --navy-dark:  #071c36;
  --gold:       #bd7730;
  --gold-mid:   #d08a3f;
  --gold-pale:  #e2a35f;
  --cream:      #fbfaf7;
  --cream-mid:  #f4f1ea;
  --text:       #1a2e4a;
  --text-mid:   #3d5068;
  --text-light: #6b7d93;
  --white:      #ffffff;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;
  --shadow-sm:  0 2px 8px rgba(11,37,72,0.08);
  --shadow-md:  0 8px 32px rgba(11,37,72,0.12);
  --shadow-lg:  0 20px 60px rgba(11,37,72,0.16);
  --transition: 220ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-weight: 800; line-height: 1.18; color: var(--navy); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
section.compact { padding: 64px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #c8852d, #9e6018);
  color: var(--white);
  box-shadow: 0 10px 36px rgba(189,119,48,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #d08a3f, #b07228);
  box-shadow: 0 16px 48px rgba(189,119,48,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid rgba(11,37,72,0.25);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 10px 36px rgba(0,0,0,0.18);
}
.btn-white:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.24);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,250,247,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(11,37,72,0.08);
  box-shadow: 0 2px 20px rgba(11,37,72,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-link img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  mix-blend-mode: multiply; /* makes black bg transparent on light bg */
}
.logo-text { display: grid; line-height: 1; }
.logo-name {
  font-size: 17px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.logo-sub {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta { margin-left: 8px; }

/* Mobile menu button */
.mobile-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(11,37,72,0.18);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.mobile-btn:hover { border-color: var(--gold); color: var(--gold); }
.mobile-btn svg { width: 20px; height: 20px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-top: 1px solid rgba(11,37,72,0.08);
  background: var(--cream);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-mid);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a.active { background: var(--cream-mid); color: var(--navy); }
.mobile-nav .btn { margin-top: 8px; width: 100%; height: 48px; }

/* ── Footer ── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
}

.footer-top {
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  margin-bottom: 16px;
  /* logo has black bg — use brightness to lighten on dark bg */
  filter: brightness(10);
}
.footer-brand-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.02em;
}
.footer-brand-sub {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
  margin-top: 12px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}
.footer-contact-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}
.footer-contact-item a { transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--white); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer-badges {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.12);
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid rgba(11,37,72,0.07);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(189,119,48,0.25);
}

/* ── Gold divider ── */
.gold-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-pale));
  border-radius: 3px;
  margin: 20px 0;
}

/* ── Pill badge ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill-gold {
  background: rgba(189,119,48,0.1);
  color: var(--gold);
  border: 1px solid rgba(189,119,48,0.25);
}
.pill-navy {
  background: rgba(11,37,72,0.07);
  color: var(--navy);
  border: 1px solid rgba(11,37,72,0.12);
}

/* ── Dark section ── */
.section-dark {
  background: var(--navy-dark);
  color: var(--white);
}
.section-dark .section-heading { color: var(--white); }
.section-dark .section-sub { color: rgba(255,255,255,0.65); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links, .nav-cta { display: none; }
  .mobile-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand img { height: 36px; width: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
