/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --color-primary:     #2B5278;
  --color-primary-dk:  #1e3d5c;
  --color-accent:      #8B2E16;
  --color-accent-dk:   #6f2410;
  --color-dark:        #100E0A;
  --color-dark-2:      #1C1915;
  --color-dark-3:      #1a1a1a;
  --color-mid:         #333333;
  --color-light:       #F5F1EB;
  --color-lighter:     #FAFAF8;
  --color-white:       #ffffff;
  --color-border:      #E4DDD4;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.14);

  --container:  1200px;
  --gap:        1.5rem;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-dk); }

ul { list-style: none; }

/* ============================================
   UTILITY
   ============================================ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: #C0402A;
}
.btn--primary:hover {
  background: var(--color-accent-dk);
  border-color: var(--color-accent-dk);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--block { width: 100%; justify-content: center; }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--color-dark);
  color: #9C9287;
  font-size: .8rem;
  padding: .45rem 0;
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar__item {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.top-bar__item a {
  color: #9C9287;
  transition: color .2s;
}
.top-bar__item a:hover { color: var(--color-white); }
.top-bar__item strong { color: var(--color-accent); }

/* ============================================
   SITE HEADER
   ============================================ */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.1); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 70px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: var(--color-dark);
  font-size: .95rem;
}
.site-logo__text strong { font-size: 1.1rem; color: var(--color-primary); }
.site-logo__text small { font-size: .75rem; color: var(--color-mid); font-weight: 400; }

/* Nav */
.main-nav { margin-left: auto; }

.main-nav__list {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.main-nav__list > li {
  position: relative;
}

.main-nav__list > li > a,
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .75rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--color-dark-3);
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.main-nav__list > li > a:hover,
.dropdown-toggle:hover {
  color: var(--color-primary);
  background: var(--color-light);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s;
  z-index: 200;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: .5rem .75rem;
  font-size: .85rem;
  color: var(--color-dark-3);
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}

.dropdown li a:hover {
  background: var(--color-light);
  color: var(--color-primary);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

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

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

/* ============================================
   RESPONSIVE HEADER
   ============================================ */
@media (max-width: 1024px) {
  .header-actions .btn--outline { display: none; }
}

@media (max-width: 768px) {
  .main-nav,
  .header-actions { display: none; }

  .hamburger { display: flex; }

  .site-header.nav-open .main-nav {
    display: block;
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--color-white);
    overflow-y: auto;
    padding: 1rem;
    border-top: 1px solid var(--color-border);
  }

  .site-header.nav-open .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header.nav-open .main-nav__list > li > a,
  .site-header.nav-open .dropdown-toggle {
    padding: .85rem 1rem;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }

  .site-header.nav-open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding-left: 1rem;
    background: var(--color-lighter);
  }

  .site-header.nav-open .header-actions {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--color-border);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 -4px 12px rgba(0,0,0,.08);
  }

  .site-header.nav-open .header-actions .btn { flex: 1; justify-content: center; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-dark);
  color: #9C9287;
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #2A2420;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

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

/* Footer brand */
.footer-logo {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-logo strong { color: var(--color-accent); }

.footer-col--brand p {
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: #9C9287;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.footer-phone,
.footer-email {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: #C8BFB5;
  transition: color .2s;
}
.footer-phone:hover,
.footer-email:hover { color: var(--color-white); }
.footer-phone { font-size: 1rem; font-weight: 700; color: var(--color-white); }

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.badge {
  display: inline-block;
  padding: .25rem .65rem;
  background: #2A2420;
  color: #9C9287;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 500;
  border: 1px solid #3D3630;
}

/* Footer columns */
.footer-heading {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #64748b;
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: .45rem; }
.footer-links a {
  font-size: .85rem;
  color: #9C9287;
  transition: color .2s;
}
.footer-links a:hover { color: var(--color-white); }

/* ZIP tags */
.footer-zips {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-heading--small {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #64748b;
}

.zip-tag {
  display: inline-block;
  padding: .2rem .6rem;
  background: #2A2420;
  color: #9C9287;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-family: monospace;
  margin-right: .3rem;
}

/* Hours */
.hours-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
}
.hours-list li span:first-child { color: #9C9287; }
.hours-list li span:last-child { color: #C8BFB5; font-weight: 500; }

.emergency-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(139,46,22,.12);
  color: #C0402A;
  border: 1px solid rgba(139,46,22,.3);
  border-radius: var(--radius-md);
  padding: .65rem 1rem;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col--hours .btn { margin-top: .25rem; }

/* Footer bottom */
.footer-bottom {
  background: #0A0806;
  padding: 1.25rem 0;
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: .8rem;
  color: #6B6458;
}

.footer-bottom__links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom__links a {
  font-size: .8rem;
  color: #6B6458;
  transition: color .2s;
}
.footer-bottom__links a:hover { color: #9C9287; }
