/* ============================================
   RAPIDFIX GARAGE DOORS — MAIN STYLESHEET (v3)
   Palette: Black · White · Gray · Royal Blue
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --black:       #0d0d0d;
  --charcoal:    #1c1c1c;
  --charcoal-2:  #2a2a2a;
  --gray-dark:   #2c2c2c;
  --gray-mid:    #4a4a4a;
  --gray-soft:   #6b6b6b;
  --gray-light:  #d4d4d4;
  --gray-pale:   #f4f4f4;
  --white:       #ffffff;
  --blue:        #1a4fbd;
  --blue-dark:   #133a8f;
  --blue-light:  #5b8def;
  --blue-pale:   #e8effe;

  --text-on-dark:        #ffffff;
  --text-on-dark-muted:  rgba(255,255,255,0.78);
  --text-on-dark-faint:  rgba(255,255,255,0.6);

  --font-display: 'Oswald', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILITY ---- */
.container  { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.section-title em { color: var(--blue); font-style: normal; }

.section-sub {
  color: var(--gray-mid);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-blue {
  background: var(--blue);
  color: var(--text-on-dark);
  border-color: var(--blue);
}
.btn-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--gray-light);
}
.btn-outline-dark:hover { border-color: var(--blue); color: var(--blue); }

.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
  font-weight: 700;
}
.btn-white:hover { background: var(--gray-pale); }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--black);
  border-bottom: 3px solid var(--blue);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-on-dark);
  text-decoration: none;
  letter-spacing: 1px;
}
.nav-logo span { color: var(--blue-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-on-dark); }

.nav-cta {
  background: var(--blue);
  color: var(--text-on-dark);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-dark); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ---- ALERT BAR ---- */
.alert-bar {
  background: var(--blue);
  color: var(--text-on-dark);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.alert-bar a { color: var(--text-on-dark); text-decoration: underline; }

/* ---- FOOTER ---- */
footer {
  background: var(--black);
  color: var(--text-on-dark-muted);
  padding: 2rem;
  font-size: 0.83rem;
  border-top: 3px solid var(--blue);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-on-dark);
  letter-spacing: 1px;
}
.footer-logo span { color: var(--blue-light); }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-on-dark-muted); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--text-on-dark); }

/* ---- CARD ---- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 67px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 2px solid var(--blue);
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
}
