/*
Theme Name: Logiline Waterproofing
Theme URI: https://logilinewaterproofing.co.za
Author: Logiline Waterproofing
Description: Custom theme for Logiline Waterproofing - Gauteng's trusted waterproofing specialists
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: logiline-waterproofing
*/

/* =========================================
   CSS VARIABLES
   ========================================= */
:root {
  --color-primary:    #1a3c6e;
  --color-primary-dk: #122d54;
  --color-accent:     #e85d26;
  --color-accent-dk:  #c94d1b;
  --color-brand:      #4fc3f7;
  --color-text:       #1a1a1a;
  --color-text-muted: #555;
  --color-bg:         #fff;
  --color-bg-alt:     #f4f6f9;
  --color-bg-footer:  #112244;
  --color-border:     #ddd;
  --color-success:    #1a7f37;
  --font-base:        'Inter', system-ui, -apple-system, sans-serif;
  --font-heading:     'Roboto Condensed', system-ui, sans-serif;
  --header-height:    90px;
  --transition:       0.2s ease;
  --radius:           6px;
  --radius-md:        10px;
  --radius-lg:        16px;
  --max-width:        1200px;
  --shadow:           0 2px 16px rgba(26,60,110,0.10);
  --shadow-lg:        0 6px 32px rgba(26,60,110,0.14);
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-dk); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}
h1 { font-size: clamp(2rem,4vw,3rem); }
h2 { font-size: clamp(1.5rem,3vw,2.2rem); }
h3 { font-size: clamp(1.2rem,2vw,1.6rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =========================================
   LAYOUT
   ========================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 64px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark {
  background: var(--color-primary);
  color: #fff;
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: #fff; }
.section-accent {
  background: var(--color-accent);
  color: #fff;
}
.section-accent h2,
.section-accent p { color: #fff; }

/* =========================================
   HEADER & NAV
   ========================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  gap: 20px;
}
.site-logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}
.site-logo a { display: block; }

/* Main Nav */
#primary-nav { display: flex; align-items: center; gap: 4px; }
#primary-nav > li { position: relative; }
#primary-nav > li > a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
#primary-nav > li > a:hover,
#primary-nav > li.current-menu-item > a {
  background: rgba(26,60,110,0.08);
  color: var(--color-accent);
}

/* Dropdown */
.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.75em;
  opacity: 0.6;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--color-primary);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  z-index: 999;
  list-style: none;
  padding: 6px 0;
  margin: 0;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: rgba(255,255,255,.9);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* Fly-out sub-menu */
.nav-has-flyout { position: relative; }
.flyout-arrow {
  float: right;
  font-size: 0.72rem;
  margin-left: 10px;
  opacity: 0.7;
  line-height: inherit;
}
.nav-has-flyout:hover .flyout-arrow { opacity: 1; }
.flyout-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: -6px;
  background: #fff;
  min-width: 230px;
  border: 1px solid var(--color-border);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  list-style: none;
  padding: 6px 0;
  margin: 0;
}
.nav-has-flyout:hover .flyout-menu,
.nav-has-flyout:focus-within .flyout-menu { display: block; }
.flyout-menu li a {
  display: block;
  padding: 9px 18px;
  font-size: 0.88rem;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,.05);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.flyout-menu li:last-child a { border-bottom: none; }
.flyout-menu li a:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-call-header {
  background: var(--color-accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background var(--transition);
}
.btn-call-header:hover {
  background: var(--color-accent-dk);
  color: #fff !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dk);
  border-color: var(--color-accent-dk);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: #fff;
}
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,20,40,0.78) 0%, rgba(26,60,110,0.65) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 20px;
  color: #fff;
}
.hero-content h1 { color: #fff; margin-bottom: 18px; max-width: 720px; }
.hero-content .subheadline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  margin-bottom: 28px;
  line-height: 1.6;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.trust-strip span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}
.trust-strip span::before {
  content: '✓';
  background: var(--color-accent);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* =========================================
   SECTION HEADINGS
   ========================================= */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--color-text-muted); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }
.section-label {
  display: inline-block;
  background: rgba(232,93,38,0.1);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* =========================================
   WHY CHOOSE US — 4 ICONS
   ========================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-accent);
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-icon {
  width: 60px;
  height: 60px;
  background: rgba(26,60,110,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}
.why-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--color-primary); }
.why-card p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }

/* =========================================
   GOOGLE REVIEWS PLACEHOLDER
   ========================================= */
.reviews-placeholder {
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  color: var(--color-text-muted);
}
.reviews-placeholder p { font-size: 0.9rem; margin: 0; }

/* =========================================
   LEAD CAPTURE FORM
   ========================================= */
.form-section { background: var(--color-primary); }
.form-section h2 { color: #fff; }
.form-section .section-header p { color: rgba(255,255,255,0.75); }
.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-primary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-base);
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 10px;
}
.form-success {
  display: none;
  background: rgba(26,127,55,0.1);
  color: var(--color-success);
  border: 1px solid var(--color-success);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

/* =========================================
   SERVICE CARDS GRID
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}
.service-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card-body h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--color-primary); }
.service-card-body p { font-size: 0.92rem; color: var(--color-text-muted); flex: 1; }
.service-card-body .btn { margin-top: 16px; align-self: flex-start; }

/* Core service highlights */
.core-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.core-card {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.core-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.core-card h3 { color: #fff; font-size: 1.3rem; }
.core-card p { color: rgba(255,255,255,0.82); font-size: 0.95rem; }
.core-card .btn { align-self: flex-start; }

/* =========================================
   SERVICE AREAS
   ========================================= */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.area-tag {
  background: rgba(26,60,110,0.07);
  color: var(--color-primary);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(26,60,110,0.12);
  transition: all var(--transition);
}
.area-tag:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* =========================================
   FAQ LIST (flat, no accordion)
   ========================================= */
.opening-para { font-size: 1.05rem; line-height: 1.75; color: var(--color-text); margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-border); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 20px 22px;
  background: #fff;
}
.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 10px;
  padding: 0;
  line-height: 1.4;
}
.faq-answer {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* =========================================
   ABOUT SECTION (Homepage)
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-img { border-radius: var(--radius-lg); overflow: hidden; height: 380px; object-fit: cover; width: 100%; }
.about-content h2 { margin-bottom: 18px; }
.trust-list { margin: 20px 0; }
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.trust-list li::before {
  content: '✓';
  background: var(--color-accent);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* =========================================
   LOCATIONS COMPACT
   ========================================= */
.locations-compact {
  background: var(--color-bg-alt);
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.locations-compact .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.locations-compact strong {
  color: var(--color-primary);
  font-size: 0.88rem;
  white-space: nowrap;
}
.locations-compact a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.locations-compact a:hover { color: var(--color-accent); }
.locations-compact .sep { color: var(--color-border); }

/* =========================================
   FINAL CTA BANNER
   ========================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dk) 100%);
  padding: 64px 0;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.88); margin-bottom: 28px; font-size: 1.1rem; }
.cta-banner .btn-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-banner .btn-white {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
  font-weight: 700;
}
.cta-banner .btn-white:hover {
  background: rgba(255,255,255,0.9);
  color: var(--color-accent-dk);
}

/* ─── Shared white / outline-white buttons (accent or dark backgrounds) ─── */
.btn-white {
  background: #fff;
  color: var(--color-accent) !important;
  border-color: #fff;
  font-weight: 700;
}
.btn-white:hover {
  background: rgba(255,255,255,0.9);
  color: var(--color-accent-dk) !important;
  border-color: #fff;
}
.btn-outline-white {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.75);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: #fff !important;
  border-color: #fff;
}

/* ─── Inline CTA block (orange accent box inside page content) ─── */
.cta-inline { color: #fff; }
.cta-inline p,
.cta-inline h2,
.cta-inline h3,
.cta-inline h4 { color: #fff !important; }
.cta-inline a:not(.btn) { color: rgba(255,255,255,0.9); }
.cta-inline a:not(.btn):hover { color: #fff; }

/* =========================================
   FOOTER
   ========================================= */
#site-footer { background: var(--color-bg-footer); color: #ccd6e8; }
.footer-main { padding: 56px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.footer-brand { }
.footer-logo { height: 60px; width: auto; margin-bottom: 16px; }
.footer-tagline { font-size: 0.88rem; color: #8fa8c8; line-height: 1.6; margin-bottom: 18px; }
.footer-contact-list { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-list a {
  color: #ccd6e8;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}
.footer-contact-list a:hover { color: var(--color-accent); }
.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  color: #8fa8c8;
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.82rem; color: #6a87a8; margin: 0; }
.footer-bottom a { color: #6a87a8; }
.footer-bottom a:hover { color: #fff; }

/* =========================================
   MOBILE STICKY CTA
   ========================================= */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  padding: 12px 20px;
  z-index: 999;
  gap: 10px;
}
.mobile-sticky-cta a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}
.mobile-sticky-cta .sticky-call { background: var(--color-accent); }
.mobile-sticky-cta .sticky-wa { background: #25D366; }

/* =========================================
   PAGE HERO (interior pages)
   ========================================= */
.page-hero {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.page-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(10,20,40,0.82) 0%, rgba(26,60,110,0.68) 100%);
}
.page-hero .hero-content { padding: 60px 20px; }

/* =========================================
   CONTENT PAGE STYLES
   ========================================= */
.page-content { padding: 60px 0; }
.content-body { max-width: 800px; }
.content-body h2 { margin: 36px 0 16px; }
.content-body p { color: var(--color-text-muted); }

/* Content + sidebar layout for service pages */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.sidebar { position: sticky; top: calc(var(--header-height) + 20px); }
.sidebar-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
}
.sidebar-card h4 { margin-bottom: 16px; color: var(--color-primary); }
.sidebar-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { color: var(--color-text); font-weight: 500; }
.sidebar-card ul li a:hover { color: var(--color-accent); }
.sidebar-cta {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}
.sidebar-cta h4 { color: #fff; margin-bottom: 10px; }
.sidebar-cta p { color: rgba(255,255,255,0.78); font-size: 0.88rem; margin-bottom: 18px; }
.sidebar-cta .phone { font-size: 1.3rem; font-weight: 700; color: var(--color-accent); display: block; margin-bottom: 16px; }

/* =========================================
   CHILD SERVICES GRID (on category pages)
   ========================================= */
.child-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.child-service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
  border-top: 3px solid var(--color-accent);
}
.child-service-card:hover {
  box-shadow: var(--shadow);
  border-top-color: var(--color-primary);
  transform: translateY(-2px);
}
.child-service-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--color-primary); }
.child-service-card p { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 14px; }
.child-service-card a.learn-more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.child-service-card a.learn-more:hover { color: var(--color-accent-dk); }

/* =========================================
   ABOUT PAGE
   ========================================= */
.bio-grid { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.bio-img { border-radius: var(--radius-md); height: 200px; object-fit: cover; width: 100%; background: var(--color-bg-alt); border: 3px solid var(--color-border); }
.bio-placeholder { width: 200px; height: 200px; background: var(--color-bg-alt); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); font-size: 0.85rem; border: 2px dashed var(--color-border); text-align: center; padding: 16px; }
.credentials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.credential-card { text-align: center; padding: 24px 16px; background: var(--color-bg-alt); border-radius: var(--radius-md); border-top: 3px solid var(--color-accent); }
.credential-card .icon { font-size: 2rem; margin-bottom: 10px; }
.credential-card h4 { font-size: 0.9rem; color: var(--color-primary); margin-bottom: 6px; }
.credential-card p { font-size: 0.82rem; color: var(--color-text-muted); margin: 0; }

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact-info-block { display: flex; flex-direction: column; gap: 28px; }
.contact-method h4 { color: var(--color-primary); margin-bottom: 8px; }
.contact-method a { font-size: 1.4rem; font-weight: 700; color: var(--color-accent); display: block; }
.contact-method p { font-size: 0.88rem; color: var(--color-text-muted); margin: 4px 0 0; }
.map-placeholder { background: var(--color-bg-alt); border-radius: var(--radius-md); height: 300px; display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); border: 2px dashed var(--color-border); font-size: 0.9rem; }

/* =========================================
   404 PAGE
   ========================================= */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.error-page h1 { font-size: 6rem; color: var(--color-accent); line-height: 1; margin-bottom: 16px; }
.error-page h2 { margin-bottom: 16px; }
.error-page p { color: var(--color-text-muted); margin-bottom: 28px; max-width: 480px; }
.error-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* =========================================
   SERVICES HUB PAGE
   ========================================= */
.services-hub-section { margin-bottom: 48px; }
.services-hub-section h2 {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}
.services-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hub-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}
.hub-card:hover { border-color: var(--color-accent); background: rgba(232,93,38,0.03); }
.hub-card h4 { font-size: 0.95rem; color: var(--color-primary); margin-bottom: 6px; }
.hub-card p { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 10px; }
.hub-card a.learn-more { font-size: 0.85rem; font-weight: 700; color: var(--color-accent); }

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.section-animate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.section-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Hero always visible — don't animate out of view on load */
.page-hero.section-animate {
  opacity: 1;
  transform: none;
}

/* =========================================
   ADDITIONAL COMPONENTS
   ========================================= */
/* Hub grid — alias for services-hub-grid */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}
/* About page image column */
.about-image { position: relative; }
/* Credentials list (about page) */
.credentials-list { margin: 20px 0 0; padding: 0; list-style: none; }
.credentials-list li {
  padding: 10px 0 10px 2rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  font-size: .95rem;
}
.credentials-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}
/* Contact method block */
.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-method-icon {
  font-size: 1.5rem;
  min-width: 36px;
  margin-top: 2px;
}
/* Credential card icon (About credentials section) */
.credential-icon {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: 10px;
}
/* =========================================
   UTILITY
   ========================================= */
.text-center { text-align: center; }
.text-white { color: #fff !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; }
.phone-link { white-space: nowrap; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 70px; }
  #primary-nav { display: none; flex-direction: column; position: fixed; top: var(--header-height); left: 0; right: 0; background: #fff; padding: 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); border-top: 2px solid var(--color-bg-alt); z-index: 998; max-height: calc(100vh - var(--header-height)); overflow-y: auto; }
  #primary-nav.open { display: flex; }
  #primary-nav > li > a { padding: 14px 16px; border-radius: var(--radius); font-size: 1rem; border-bottom: 1px solid var(--color-bg-alt); }
  .dropdown-menu { display: none; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--color-bg-alt); border-radius: var(--radius); margin-top: 4px; }
  .has-dropdown.is-open > .dropdown-menu { display: block; }
  .dropdown-menu li a { color: var(--color-text); border-bottom-color: rgba(0,0,0,.06); }
  .dropdown-menu li a:hover { background: rgba(0,0,0,.05); color: var(--color-accent); }
  .flyout-menu { display: block; position: static; box-shadow: none; border: none; border-radius: 0; background: rgba(0,0,0,.04); padding: 0 0 0 12px; min-width: 0; }
  .flyout-arrow { display: none; }
  .has-dropdown > a::after { float: right; content: ' ▾'; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .core-services-grid { grid-template-columns: 1fr; }
  .child-services-grid { grid-template-columns: 1fr; }
  .services-hub-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-placeholder { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-sticky-cta { display: flex; }
  body { padding-bottom: 60px; }
  .contact-form { padding: 24px; }
  .why-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}

@media (max-width: 480px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .credentials-grid { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
}
