/* ============================================================
   SANDBAR ASSOCIATES CPA — Main Stylesheet
   styles.css
   
   TABLE OF CONTENTS:
   1. CSS Variables (Brand Colors & Fonts)
   2. Reset & Base Styles
   3. Navigation
   4. Buttons
   5. Section Utilities
   6. Footer
   7. Contact Bar
   8. Responsive
============================================================ */


/* ── 1. CSS VARIABLES ── */
:root {
  /* Brand Colors */
  --navy:       #1a2e3b;
  --navy-mid:   #243f52;
  --ocean:      #2a7fa5;
  --ocean-light:#3a9fc8;
  --sand:       #d4b896;
  --gold:       #c9a96e;
  --gold-light: #dfc08a;
  --cream:      #f7f3ee;
  --warm-white: #fdfaf6;
  --warm-gray:  #8a8278;
  --text-dark:  #1a2e3b;
  --text-mid:   #4a5e6a;
  --white:      #ffffff;

  /* Typography */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans:  'DM Sans', sans-serif;

  /* Spacing */
  --section-padding: 100px 80px;
  --max-width: 1100px;
}


/* ── 2. RESET & BASE ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--warm-white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}


/* ── 3. NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(26, 46, 59, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.nav-logo-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.15em;
  line-height: 1;
}

.nav-logo-sub {
  font-size: 8px;
  letter-spacing: 0.35em;
  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: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

/* Highlight the current page link */
.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  background: transparent !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 8px 20px;
  border-radius: 2px;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

/* Mobile hamburger (hidden on desktop) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

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

/* Mobile nav open state */
.nav-mobile-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0; right: 0;
  background: var(--navy);
  padding: 24px 48px;
  gap: 20px;
  border-bottom: 1px solid rgba(201,169,110,0.15);
}


/* ── 4. BUTTONS ── */

/* Primary — gold fill */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 32px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.3);
}

/* Secondary — navy fill */
.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 14px 32px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
}

.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

/* Ghost — transparent with white border */
.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  padding: 14px 32px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s;
  font-family: var(--font-sans);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

/* Outline — transparent with navy border */
.btn-outline {
  display: inline-block;
  border: 1px solid rgba(26, 46, 59, 0.25);
  color: var(--navy);
  padding: 14px 32px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s;
  font-family: var(--font-sans);
}

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


/* ── 5. SECTION UTILITIES ── */

/* Page offset for fixed nav */
.page-top {
  padding-top: 72px;
}

/* Eyebrow label above headings */
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

/* Eyebrow centered (for centered sections) */
.eyebrow-center {
  justify-content: center;
}

.eyebrow-center::before,
.eyebrow-center::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

/* Section heading */
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.section-heading em {
  font-style: italic;
  color: var(--ocean);
}

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

.section-heading-white em {
  color: var(--gold);
}

/* Inner container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

/* Divider line */
.divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  margin: 16px 0;
}

.divider-center {
  margin: 16px auto;
}

/* Fade-up animation on load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.8s ease both;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }


/* ── 6. CONTACT BAR ── */
.contact-bar {
  background: var(--gold);
  padding: 18px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
}

.contact-bar-icon {
  font-size: 15px;
  opacity: 0.7;
}


/* ── 7. FOOTER ── */
footer {
  background: #101e28;
  padding: 64px 80px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 32px;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.footer-brand-sub {
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
  max-width: 260px;
}

.footer-col-title {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

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

.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

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


/* ── 8. RESPONSIVE ── */
@media (max-width: 900px) {

  nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .contact-bar {
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  footer {
    padding: 48px 24px 24px;
  }

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

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}
