/* ============================================================
   24/7 Emergency Plumbing Scotland — Main Stylesheet
   Colors: #0065BD (Scottish blue), #ffffff (white), #0d2240 (navy)
   Fonts: Barlow Condensed (headlines), Barlow (body)
   ============================================================ */

/* --- VARIABLES --- */
:root {
  --blue: #0065BD;
  --blue-dark: #004A99;
  --blue-light: #2179cc;
  --bg: #ffffff;
  --surface: #f0f6fc;
  --surface-2: #e0edf8;
  --border: #c8d9ec;
  --text: #0d1b3e;
  --text-muted: #5a6a8a;
  --white: #ffffff;
  --navy: #0d2240;
  --green: #25D366;
  --green-dark: #128C7E;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0,101,189,0.12);
  --shadow-sm: 0 2px 8px rgba(0,101,189,0.08);
  --transition: 0.2s ease;
  --max-w: 1200px;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

/* --- RESET --- */
*, *::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(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }
input, textarea, select, button { font-family: var(--font-body); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- LAYOUT UTILITIES --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.text-center { text-align: center; }
.text-red { color: var(--blue); }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

/* --- SECTION HEADERS --- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-header h2 { color: var(--text); margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,101,189,0.35); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover { background: var(--white); color: var(--blue-dark); }
.btn-outline-red {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline-red:hover { background: var(--blue); color: var(--white); }
.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover { background: var(--green-dark); color: var(--white); transform: translateY(-1px); }
.btn-lg { padding: 18px 36px; font-size: 1.25rem; }
.btn-sm { padding: 10px 18px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-phone {
  background: var(--blue);
  color: var(--white);
  font-size: 1.5rem;
  padding: 18px 40px;
  border-radius: var(--radius);
}
.btn-phone:hover { background: var(--blue-dark); color: var(--white); }

/* --- EMERGENCY TOP BAR --- */
#emergency-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blue);
  padding: 10px 0;
}
#emergency-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.emergency-bar__text {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
}
.emergency-bar__text span { opacity: 0.85; font-weight: 400; }
.emergency-bar__phone {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.emergency-bar__phone:hover { color: var(--surface-2); }
.emergency-bar__phone svg { width: 20px; height: 20px; }
.pulse-dot {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* --- NAVIGATION --- */
#main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  position: sticky;
  top: 45px;
  transition: box-shadow var(--transition), top var(--transition);
}
#main-nav.scrolled { box-shadow: 0 4px 20px rgba(0,101,189,0.12); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 126px;
  padding: 12px 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo__icon {
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--white);
  text-align: center;
  line-height: 1.1;
}
.nav-logo__text { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--text); line-height: 1.2; }
.nav-logo__text small { display: block; font-size: 0.7rem; font-weight: 400; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.nav-logo__img {
  height: 104px;
  max-height: 104px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: color var(--transition);
  border-radius: var(--radius);
}
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-item.has-dropdown:hover .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 220px;
  padding: 8px 0;
  box-shadow: var(--shadow);
  z-index: 100;
}
.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text);
  transition: all var(--transition);
}
.dropdown a:hover { color: var(--blue); background: var(--surface); }
.nav-cta { margin-left: 8px; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--blue); }
.mobile-nav .mobile-cta { margin-top: 16px; display: block; }

/* --- HERO --- */
.hero {
  background: var(--surface);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0,101,189,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,101,189,0.10);
  border: 1px solid rgba(0,101,189,0.25);
  color: var(--blue);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.hero h1 { color: var(--text); margin-bottom: 20px; }
.hero h1 span { color: var(--blue); }
.hero p { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 32px; max-width: 520px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; display: flex; gap: 24px; flex-wrap: wrap; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.trust-item svg { color: var(--blue); flex-shrink: 0; }
.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.hero-card__label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hero-card__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}
.response-badge {
  background: rgba(0,101,189,0.08);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.response-badge__num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.response-badge__text { font-size: 0.9rem; color: var(--text-muted); }
.response-badge__text strong { display: block; color: var(--text); font-size: 1rem; }

/* --- URGENCY HERO (for emergency pages) --- */
.hero-urgent { background: linear-gradient(135deg, #ddeefa 0%, var(--surface) 50%); }
.hero-urgent::before { background: radial-gradient(ellipse at top left, rgba(0,101,189,0.18) 0%, transparent 60%); }
.urgency-strip {
  background: var(--blue);
  padding: 12px 0;
  text-align: center;
}
.urgency-strip p {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin: 0;
}

/* --- SERVICE CARDS --- */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,101,189,0.15);
}
.service-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(0,101,189,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 1.5rem;
}
.service-card__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}
.service-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.service-card__arrow {
  margin-top: 16px;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- FEATURE LIST --- */
.feature-list { list-style: none; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.checklist { list-style: none; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text);
}
.checklist li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* --- STATS BAR --- */
.stats-bar { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item__num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.stat-item__label { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial-card__stars { color: #FFB800; font-size: 1.1rem; margin-bottom: 12px; }
.testimonial-card__text { color: var(--text); font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}
.testimonial-card__name { font-weight: 600; color: var(--text); }
.testimonial-card__location { font-size: 0.85rem; color: var(--text-muted); }

/* --- FAQ --- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--white);
  color: var(--text);
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--surface); }
.faq-question.open { color: var(--blue); }
.faq-icon { font-size: 1.4rem; flex-shrink: 0; transition: transform var(--transition); }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 20px 24px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  line-height: 1.7;
}
.faq-answer.open { display: block; }

/* --- CONTACT FORM --- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-card h3 { color: var(--text); margin-bottom: 8px; }
.form-card > p { color: var(--text-muted); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }

/* --- EMERGENCY MODAL --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
}
.modal-box h2 { color: var(--blue); margin-bottom: 12px; }
.modal-box p { color: var(--text-muted); margin-bottom: 28px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }

/* --- CTA SECTION --- */
.cta-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- BREADCRUMB --- */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.breadcrumb li a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb li a:hover { color: var(--blue); }
.breadcrumb li:last-child { color: var(--text); }
.breadcrumb li:not(:last-child)::after { content: '›'; color: var(--border); }

/* --- AREA CARDS --- */
.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.area-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.area-card__name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--text); margin-bottom: 4px; }
.area-card__county { font-size: 0.8rem; color: var(--text-muted); }

/* --- INFO BOXES --- */
.info-box {
  background: rgba(0,101,189,0.05);
  border: 1px solid rgba(0,101,189,0.2);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.info-box h4 { color: var(--blue); margin-bottom: 8px; }
.info-box p { color: var(--text); margin: 0; }
.info-box-dark {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.info-box-dark h4 { color: var(--text); margin-bottom: 8px; }

/* --- PROCESS STEPS --- */
.process-step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.process-step__num {
  width: 48px;
  height: 48px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  flex-shrink: 0;
}
.process-step__content h4 { color: var(--text); margin-bottom: 4px; }
.process-step__content p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* --- MAP --- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* --- FOOTER --- */
#main-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin: 16px 0 24px; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.footer-contact-item svg { color: var(--blue-light); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.6); }
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p, .footer-bottom a { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--white); }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-gas-safe {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,101,189,0.2);
  border: 1px solid rgba(0,101,189,0.35);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-top: 20px;
}
.footer-gas-safe span { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-gas-safe strong { color: var(--white); font-size: 0.9rem; display: block; }

/* Logo in footer */
#main-footer .nav-logo__text { color: var(--white); }
#main-footer .nav-logo__text small { color: rgba(255,255,255,0.5); }

/* --- WHATSAPP WIDGET --- */
#whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.whatsapp-bubble {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  max-width: 260px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  position: relative;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.whatsapp-bubble p { color: var(--text); font-size: 0.9rem; margin: 0; }
.whatsapp-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--border);
}
.whatsapp-btn {
  width: 60px;
  height: 60px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}
.whatsapp-btn:hover { background: var(--green-dark); transform: scale(1.1); }
.whatsapp-btn svg { width: 32px; height: 32px; fill: white; }
#whatsapp-widget .close-bubble {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

/* --- COOKIE BANNER --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--white);
  border-top: 2px solid var(--blue);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,101,189,0.1);
}
#cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
#cookie-banner .cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept { background: var(--blue); color: white; border: none; border-radius: var(--radius); padding: 10px 20px; cursor: pointer; font-weight: 600; font-size: 0.9rem; font-family: var(--font-body); }
.btn-cookie-reject { background: transparent; color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 16px; cursor: pointer; font-size: 0.9rem; font-family: var(--font-body); }
.btn-cookie-reject:hover { color: var(--text); border-color: var(--text-muted); }

/* --- BADGE / PILL --- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-red { background: rgba(0,101,189,0.10); color: var(--blue); border: 1px solid rgba(0,101,189,0.25); }
.badge-green { background: rgba(37,211,102,0.1); color: #25D366; border: 1px solid rgba(37,211,102,0.2); }
.badge-white { background: rgba(0,101,189,0.08); color: var(--blue); border: 1px solid rgba(0,101,189,0.2); }

/* --- SECTIONS BACKGROUNDS --- */
.bg-dark-2 { background: var(--surface); }
.bg-dark { background: var(--bg); }
.bg-gradient { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); }

/* --- SIDEBAR LAYOUT --- */
.page-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  position: sticky;
  top: 140px;
}
.sidebar-card h4 { color: var(--text); margin-bottom: 16px; }
.sidebar-phone {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
}
.related-links { list-style: none; }
.related-links li { border-bottom: 1px solid var(--border); }
.related-links li:last-child { border-bottom: none; }
.related-links li a {
  display: block;
  padding: 10px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.related-links li a:hover { color: var(--blue); }

/* --- IMAGE PLACEHOLDERS --- */
.page-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  position: relative;
}
.page-img.is-empty::before {
  content: '📷';
  font-size: 2.4rem;
  line-height: 1;
}
.page-img.is-empty::after {
  content: attr(data-label);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: monospace;
  text-align: center;
  padding: 0 20px;
  max-width: 100%;
  word-break: break-all;
}
.page-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.image-call-cta {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--green);
  color: #08232c;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}
.image-call-cta:hover {
  background: var(--green-dark);
  color: var(--white);
}
.img-banner { padding: 0 0 48px; }
.img-banner .page-img { border-radius: var(--radius-lg); }

/* --- DIVIDERS --- */
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* --- SCROLL ANIMATION --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { padding: 56px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { display: none; }
  .nav-inner {
    min-height: 108px;
    padding: 10px 0;
  }
  .nav-logo__img {
    height: 88px;
    max-height: 88px;
  }
  .image-call-cta {
    left: 14px;
    bottom: 14px;
    min-height: 40px;
    padding: 10px 13px;
    font-size: 0.88rem;
  }
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-menu, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .hero-ctas { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .emergency-bar__text { font-size: 0.8rem; }
  .emergency-bar__phone { font-size: 1.2rem; }
  #main-nav { top: 40px; }
}

@media (max-width: 480px) {
  :root { --max-w: 100%; }
  .container { padding: 0 16px; }
  .nav-inner { min-height: 92px; }
  .nav-logo__img {
    height: 74px;
    max-height: 74px;
  }
  .form-card { padding: 24px 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-ctas { gap: 10px; }
  .btn-phone { font-size: 1.2rem; padding: 14px 24px; }
}
