/* Course Correct Books - Production CSS for Hostinger Deployment
   Clean Modern Sans-Serif Typography (Plus Jakarta Sans & Inter)
   Exact Color Palette: #5b84a3 (Steel Blue), #1f3a5f (Deep Navy), #c99a44 (Accent Gold), #f6f2ea (Warm Cream)
*/

/* Fonts are self-hosted (SIL Open Font License) and preloaded in each page <head>,
   so text appears without waiting on Google Fonts. One variable file per family covers all weights. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand-color: #5b84a3;
  --steel-blue: #5b84a3;
  --steel-blue-dark: #436986;
  --steel-blue-light: #eaf0f4;
  --navy: #1f3a5f;
  --navy-dark: #142742;
  --navy-light: #2c4c77;
  --gold: #c99a44;
  --gold-hover: #b58632;
  --gold-light: #fbf5e8;
  --cream: #f6f2ea;
  --cream-subtle: #fcfbf9;
  --charcoal: #2b2b2b;
  --text-muted: #5c6b73;
  --text-light: #8a9ba4;
  --border-light: rgba(91, 132, 163, 0.18);
  --border-navy: rgba(31, 58, 95, 0.12);

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(31, 58, 95, 0.05);
  --shadow-md: 0 8px 24px rgba(31, 58, 95, 0.08);
  --shadow-lg: 0 16px 40px rgba(31, 58, 95, 0.12);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--steel-blue);
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--cream);
  border-bottom: 1px solid var(--border-navy);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 80px;
  max-width: 1400px;
}

.brand-logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.02);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel-blue);
}

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

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  padding: 0.5rem 0.2rem;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-caret {
  font-size: 0.75em;
  line-height: 1;
}

/* Hamburger button: shown only when the menu collapses */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-link:hover, .nav-link.active {
  color: var(--steel-blue-dark);
}

.nav-link.active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--gold);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 250px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-navy);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
  list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.dropdown-menu a:hover {
  background: var(--steel-blue-light);
  color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-cta {
  white-space: nowrap;
  padding: 0.7rem 1.3rem;
}

.btn-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(91, 132, 163, 0.12);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-phone:hover {
  background: rgba(91, 132, 163, 0.22);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #d8a84e 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(201, 154, 68, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 154, 68, 0.4);
  color: #fff;
}

.btn-navy {
  background: var(--navy);
  color: #ffffff;
}

.btn-navy:hover {
  background: var(--navy-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(31, 58, 95, 0.3);
}

.btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline:hover {
  background: var(--navy);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  border: 1px solid var(--border-navy);
}

.btn-secondary:hover {
  background: #ffffff;
  color: var(--steel-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--cream-subtle);
}

.section-navy {
  background-color: var(--navy);
  color: #ffffff;
}

.section-navy h1, .section-navy h2, .section-navy h3 {
  color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel-blue-dark);
  background: var(--steel-blue-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-navy .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #e9c47d;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.section-navy .section-lead {
  color: rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.hero {
  padding: 5rem 0 6rem 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(91, 132, 163, 0.12) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  letter-spacing: -0.03em;
  margin: 1rem 0 1.25rem 0;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid var(--border-navy);
  padding-top: 1.5rem;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.hero-badge-item svg {
  color: var(--gold);
}

.hero-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-navy);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--steel-blue) 50%, var(--gold) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-navy);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--steel-blue);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--steel-blue-light);
  color: var(--steel-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-link:hover {
  color: var(--steel-blue);
  gap: 0.7rem;
}

/* Area Coverage Grid */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.area-badge {
  background: #ffffff;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-navy);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.area-badge:hover {
  background: var(--steel-blue);
  color: #ffffff;
  transform: translateY(-3px);
  border-color: var(--steel-blue);
}

/* Feature/Why Us List */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 2rem;
}

.feature-box {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-navy);
  box-shadow: var(--shadow-sm);
}

.feature-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--steel-blue);
  margin-bottom: 0.5rem;
}

.feature-box h3, .feature-box h4 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing Table */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
}

.cost-table th, .cost-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-navy);
}

.cost-table th {
  background: var(--navy);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
}

.cost-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-navy);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question:hover {
  color: var(--steel-blue);
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2.5rem;
}

.team-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-navy);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel-blue) 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  border: 3px solid var(--cream);
  box-shadow: 0 4px 15px rgba(31, 58, 95, 0.15);
}

.team-card h2, .team-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--steel-blue-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.team-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Form Styles */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--steel-blue);
  box-shadow: 0 0 0 3px rgba(91, 132, 163, 0.2);
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 0 2rem 0;
  border-top: 4px solid var(--steel-blue);
}

.site-footer h2, .site-footer h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

/* Labeled, bright, bold contact lines so they never rely on color alone */
.footer-contact-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-contact-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.footer-contact-link:hover {
  color: #ffffff;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 39, 66, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--cream);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Discovery Call Button */
.floating-cta-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 800;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

/* Hidden while the footer is on screen; the footer has its own button */
.floating-cta-container.cta-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(150%);
  pointer-events: none;
}

.floating-cta-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  background: var(--navy);
  color: #ffffff;
  border: 2px solid var(--gold);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(31, 58, 95, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.floating-cta-btn:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px) scale(1.03);
}

/* Layout helpers that collapse on small screens */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Responsive */

/* Medium-wide screens: phone button shows the icon only */
@media (max-width: 1140px) {
  .btn-phone-text { display: none; }
  .btn-phone { padding: 0.6rem; }
}

/* Footer: two columns once the four-column layout gets cramped */
@media (max-width: 1270px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablets and phones: menu collapses behind the hamburger button */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .btn-phone-text { display: inline; }
  .btn-phone { padding: 0.5rem 0.85rem; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border-navy);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .nav-open .site-nav { display: block; }
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
  }
  .nav-menu > li { border-bottom: 1px solid var(--border-navy); }
  .nav-menu > li:last-child { border-bottom: none; }
  .nav-link {
    display: flex;
    padding: 0.9rem 0.25rem;
    font-size: 1rem;
  }
  .nav-caret, .dropdown-menu { display: none; }
}

/* Tablets held upright: the bottom bar takes over from the header button */
@media (max-width: 860px) {
  .header-cta { display: none; }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .split-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0 4rem 0; }
  .hero-card { padding: 1.75rem; }
  .two-col, .form-row { grid-template-columns: 1fr; }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  /* The floating button becomes a bottom bar on phones */
  .floating-cta-container {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .floating-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
  }
  .modal-overlay { padding: 0.75rem; }
  .modal-box { padding: 1.75rem 1.25rem; max-height: 94vh; }
  .modal-close { top: 1rem; right: 1rem; }
}

/* Small phones: the header keeps the logo, call icon and menu button */
@media (max-width: 600px) {
  .container { padding: 0 1rem; }
  .header-inner { gap: 0.5rem; height: 68px; }
  .cost-table { table-layout: fixed; font-size: 0.85rem; }
  .cost-table th, .cost-table td { padding: 0.7rem 0.6rem; overflow-wrap: anywhere; }
  .site-nav { max-height: calc(100vh - 68px); }
  .brand-logo-img { height: 38px; max-width: 190px; }
  .btn-phone-text { display: none; }
  .btn-phone { padding: 0.65rem; }
}

/* Phones held sideways: short screens get a slimmer header and button */
@media (max-height: 500px) and (orientation: landscape) {
  .header-inner { height: 60px; }
  .site-nav { max-height: calc(100vh - 60px); }
  .brand-logo-img { height: 36px; }
  .floating-cta-container { left: auto; right: 1rem; bottom: 0.75rem; }
  .floating-cta-btn { width: auto; padding: 0.55rem 1.1rem; font-size: 0.85rem; }
  .modal-box { max-height: 96vh; padding: 1.25rem 1.5rem; }
}

/* Spam trap field: hidden from visitors, filled in only by bots */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* "Did You Know?" local fact card on community pages */
.local-fact {
  background: #ffffff;
  border: 1px solid var(--border-navy);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-sm);
}

.local-fact .eyebrow {
  background: var(--gold-light);
  color: #8a6420;
}

.local-fact h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.local-fact p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

/* Underlined so the link is recognizable without relying on color */
.local-fact-link {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.local-fact-link:hover {
  color: var(--steel-blue-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .local-fact { padding: 1.5rem 1.25rem; }
}

/* Hint under the Phone / Email pair on the short forms */
.form-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -0.6rem;
}

/* Community page body text and the "needs we often help with" checklist */
.area-prose p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.area-prose p:last-child { margin-bottom: 0; }

.area-needs {
  background: #ffffff;
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.area-needs h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.area-needs ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.area-needs li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Check mark drawn in CSS so the list reads clearly without relying on color */
.area-needs li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--navy);
}

.area-needs li strong {
  color: var(--navy);
}

/* Long dropdowns (13 service areas) stay usable on short laptop screens */
@media (min-width: 1001px) {
  .dropdown-menu {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
}

@media (max-width: 600px) {
  .area-needs { padding: 1.5rem 1.25rem; }
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 2rem;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.blog-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.blog-card h2 a { color: var(--navy); }

.blog-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog-post-header {
  max-width: 760px;
  margin: 0 auto;
}

.blog-post-header h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.02em;
  margin-top: 1rem;
}

.blog-back {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-content {
  max-width: 760px;
  margin: 0 auto 3rem auto;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--charcoal);
}

.blog-content > * + * { margin-top: 1.1rem; }
.blog-content h2 { font-size: 1.6rem; margin-top: 2.25rem; }
.blog-content h3 { font-size: 1.3rem; margin-top: 1.75rem; }
.blog-content h4 { font-size: 1.1rem; margin-top: 1.5rem; }
.blog-content ul, .blog-content ol { padding-left: 1.5rem; }
.blog-content li + li { margin-top: 0.4rem; }
.blog-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); display: block; }
.blog-content blockquote { border-left: 4px solid var(--gold); padding-left: 1.25rem; color: var(--text-muted); }
.blog-content table { border-collapse: collapse; width: 100%; font-size: 0.95rem; display: block; overflow-x: auto; }
.blog-content th, .blog-content td { border: 1px solid var(--border-navy); padding: 0.5rem 0.75rem; text-align: left; }

/* Links underlined so they're recognizable without relying on color */
.blog-content a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.blog-cta {
  max-width: 760px;
  margin: 0 auto;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
}

.blog-cta h2 { color: #ffffff; font-size: 1.6rem; margin-bottom: 0.75rem; }
.blog-cta p { margin-bottom: 1.5rem; }

.draft-banner {
  background: #fff4d6;
  border-bottom: 2px solid var(--gold);
  color: #6b4d12;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  padding: 0.75rem 1rem;
}

.draft-tag {
  align-self: flex-start;
  background: #fff4d6;
  color: #6b4d12;
  border: 1px solid var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}
