/* ========================================
   JAKE'S FLOOR CARE — SHARED DESIGN SYSTEM
   Source: homepage inline styles (index.html)
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #2a4592;
  --blue-dark: #1d3268;
  --blue-light: #3a5bb0;
  --black: #0a0a0a;
  --dark: #141414;
  --gray-800: #2e2e2e;
  --gray-600: #555;
  --gray-400: #8a8a8a;
  --gray-300: #b0b0b0;
  --gray-200: #d5d5d5;
  --gray-100: #eee;
  --white: #fff;
  --off-white: #f8f8f8;
  --ff-heading: 'Sora', sans-serif;
  --ff-body: 'Outfit', sans-serif;
  --header-h: 70px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
img.content-img {
  -webkit-touch-callout: none;
  user-select: none;
}
a { color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ===================== HEADER ===================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  z-index: 1000;
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s;
}
.header-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { text-decoration: none; display: flex; align-items: center; }
.logo img { height: 50px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 0; list-style: none; }
.main-nav > li { position: relative; }
.main-nav > li > a,
.main-nav > li > button {
  font-family: var(--ff-body); font-weight: 500; font-size: 14px;
  color: var(--gray-600); text-decoration: none; padding: 24px 14px;
  display: flex; align-items: center; gap: 5px; background: none; transition: color 0.2s;
}
.main-nav > li > a:hover,
.main-nav > li > button:hover { color: var(--blue); }

.nav-arrow {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -3px; transition: transform 0.2s;
}

.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--gray-200);
  min-width: 220px; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: all 0.2s; list-style: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.dropdown.wide { min-width: 440px; display: grid; grid-template-columns: 1fr 1fr; padding: 12px 0; }
.dropdown-label {
  font-family: var(--ff-body); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--blue); padding: 8px 16px 4px;
}
.dropdown li a {
  display: block; padding: 6px 16px;
  font-family: var(--ff-body); font-weight: 400; font-size: 14px;
  color: var(--gray-600); text-decoration: none; transition: all 0.15s;
}
.dropdown li a:hover { color: var(--blue); background: rgba(42,69,146,0.04); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .nav-arrow { transform: rotate(-135deg); }

.header-phone {
  font-family: var(--ff-body); font-weight: 600; font-size: 14px;
  color: var(--black); text-decoration: none; margin-left: 8px;
}
.header-cta {
  margin-left: 16px; font-family: var(--ff-body); font-weight: 600;
  font-size: 13px; letter-spacing: 0.5px; color: var(--white);
  background: var(--blue); padding: 10px 22px; text-decoration: none;
  transition: background 0.2s;
}
.header-cta:hover { background: var(--blue-dark); }

.menu-toggle {
  display: none; background: none; border: none;
  width: 28px; height: 20px; position: relative;
  flex-shrink: 0; margin-left: auto;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px; background: var(--black);
  position: absolute; left: 0; transition: all 0.3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

/* ===================== BUTTONS ===================== */
.btn-blue {
  font-family: var(--ff-body); font-weight: 600; font-size: 14px;
  color: var(--white); background: var(--blue); padding: 14px 28px;
  text-decoration: none; transition: background 0.2s; display: inline-block;
  -webkit-tap-highlight-color: transparent;
}
.btn-blue:hover { background: var(--blue-dark); }

.btn-ghost {
  font-family: var(--ff-body); font-weight: 500; font-size: 14px;
  color: var(--white); padding: 14px 28px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25); transition: all 0.2s; display: inline-block;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }

.btn-white {
  font-family: var(--ff-body); font-weight: 600; font-size: 14px;
  color: var(--blue); background: var(--white); padding: 14px 32px;
  text-decoration: none; transition: all 0.2s; display: inline-block; margin-right: 12px;
}
.btn-white:hover { background: var(--gray-100); }

/* ===================== SECTIONS ===================== */
section { padding: 100px 0; }
.section-tag {
  font-family: var(--ff-body); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 2px; color: var(--blue); margin-bottom: 12px;
}
.section-title {
  font-family: var(--ff-heading); font-weight: 700;
  font-size: clamp(32px, 3.5vw, 48px); line-height: 1.05;
  color: var(--black); margin-bottom: 16px;
}
.section-desc {
  font-family: var(--ff-body); font-size: 16px;
  color: var(--gray-600); max-width: 480px; line-height: 1.65;
}

/* ===================== PAGE HEADER (inner pages) ===================== */
.page-header {
  margin-top: var(--header-h);
  background: var(--dark);
  padding: 60px 0;
}
.page-header .container { position: relative; z-index: 1; }
.breadcrumbs {
  font-family: var(--ff-body); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 2px; color: var(--gray-400);
  margin-bottom: 16px;
}
.breadcrumbs a { color: var(--gray-300); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs .sep { margin: 0 8px; color: var(--gray-600); }
.page-title {
  font-family: var(--ff-heading); font-weight: 700;
  font-size: clamp(36px, 4.5vw, 58px); color: var(--white);
  line-height: 1.05; margin-bottom: 12px;
}
.page-subtitle {
  font-family: var(--ff-body); font-size: 16px; font-weight: 300;
  color: var(--gray-400); max-width: 560px;
}

/* ===================== CTA BAND ===================== */
.cta-band { background: var(--blue); padding: 72px 0; text-align: center; }
.cta-title {
  font-family: var(--ff-heading); font-weight: 700;
  font-size: clamp(32px, 3.5vw, 48px); color: var(--white);
  line-height: 1.05; margin-bottom: 12px;
}
.cta-sub {
  font-family: var(--ff-body); font-weight: 300; font-size: 17px;
  color: rgba(255,255,255,0.75); margin-bottom: 32px;
}
.cta-phone {
  font-family: var(--ff-body); font-weight: 500; font-size: 14px;
  color: var(--white); text-decoration: none; padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.35); display: inline-block;
  transition: border-color 0.2s;
}
.cta-phone:hover { border-color: var(--white); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--black); color: var(--gray-400); padding: 56px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo img { height: 60px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--gray-400); max-width: 260px; }
.footer-col h4 {
  font-family: var(--ff-body); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--white); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { font-size: 13px; color: var(--gray-400); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-contact-item { display: flex; gap: 8px; margin-bottom: 10px; font-size: 13px; line-height: 1.5; }
.footer-contact-item strong { color: var(--gray-200); font-weight: 600; min-width: 52px; }
.footer-bottom {
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: 12px; color: var(--gray-600);
}
.footer-bottom a { color: var(--gray-400); text-decoration: none; margin-left: 16px; }
.footer-bottom a:hover { color: var(--white); }

/* ===================== MOBILE STICKY ===================== */
.mobile-sticky {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 999; background: var(--black); border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-sticky-inner { display: flex; }
.mobile-sticky a {
  flex: 1; text-align: center; padding: 14px 8px;
  font-family: var(--ff-body); font-weight: 600; font-size: 13px; text-decoration: none;
}
.mobile-sticky .sticky-call { color: var(--white); background: var(--black); }
.mobile-sticky .sticky-quote { color: var(--white); background: var(--blue); }

/* ===================== REVEAL ===================== */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .header-inner { position: relative; }
  .menu-toggle { display: block; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); z-index: 10; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--white); flex-direction: column; padding: 16px 24px;
    gap: 0; overflow-y: auto; transform: translateX(100%);
    transition: transform 0.3s; border-top: 1px solid var(--gray-200);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > li > a,
  .main-nav > li > button {
    padding: 14px 0; font-size: 15px; width: 100%; justify-content: space-between;
    border-bottom: 1px solid var(--gray-100); color: var(--dark);
  }
  .dropdown, .dropdown.wide {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: none; box-shadow: none; padding: 0 0 8px 12px; display: none;
    min-width: 0; max-width: 100%; grid-template-columns: 1fr;
  }
  .dropdown.mobile-open, .dropdown.wide.mobile-open { display: block; }
  .dropdown-label { padding: 8px 0 4px; }
  .logo img { height: 44px; }
  .header-phone, .header-cta { display: none; }
  .mobile-sticky { display: block; }
  body { padding-bottom: 52px; }

  .page-header { padding: 40px 0; }
  .page-title { font-size: 32px; }

  section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .footer-bottom a { margin: 0 8px; }
}
