/* ==========================================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  --primary-color: #0d233a;       /* Deep Trust Blue */
  --secondary-color: #ff9f1c;     /* Safety Electric Amber */
  --text-dark: #1e293b;           /* Slate Dark Body Text */
  --text-light: #64748b;          /* Soft Subtitles */
  --bg-light: #f8fafc;            /* Clean Section Off-White */
  --bg-white: #ffffff;
  --accent-green: #25d366;        /* Official WhatsApp Green */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 4rem;
  --radius: 8px;
  --transition: all 0.25s ease-in-out;
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* Space for mobile sticky bottom tray */
}

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

.layout-narrow {
  max-width: 750px;
}

.text-center { text-align: center; }

/* Utilities */
.section-tag {
  display: block;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

h1, h2, h3 {
  color: var(--primary-color);
  line-height: 1.2;
}

h2 { font-size: 2rem; margin-bottom: 1rem; }
p { margin-bottom: 1.2rem; color: #334155; }

/* Accessibility */
.skip-to-content {
  position: absolute;
  top: -1000px;
  left: 12px;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-weight: bold;
}
.skip-to-content:focus { top: 12px; }

/* ==========================================================================
   3. STRUCTURAL UTILITY GRID
   ========================================================================== */
.grid {
  display: grid;
  gap: var(--gap-md);
  margin-top: var(--gap-md);
}

@media (min-width: 768px) {
  .grid-three-col { grid-template-columns: repeat(3, 1fr); }
  .grid-two-by-two { grid-template-columns: repeat(2, 1fr); }
  .split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--gap-lg);
    align-items: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--secondary-color); color: var(--primary-color); }
.btn-primary:hover { background: #e58f13; }
.btn-secondary { background: var(--primary-color); color: var(--bg-white); }
.btn-secondary:hover { background: #153558; }
.btn-whatsapp { background: var(--accent-green); color: var(--bg-white); }
.btn-whatsapp:hover { background: #1ebd56; }

/* ==========================================================================
   4. NAVIGATION & ANNOUNCEMENT HEADER
   ========================================================================== */
.top-bar {
  background: var(--primary-color);
  color: var(--bg-white);
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.emergency-phone {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 700;
}

.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
}
.logo-short {
  background: var(--primary-color);
  color: var(--secondary-color);
  font-weight: 900;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  margin-right: 0.75rem;
}
.logo-text strong { display: block; font-size: 1.15rem; line-height: 1.1; }
.logo-text small { display: block; font-size: 0.7rem; color: var(--text-light); letter-spacing: 0.5px; }

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-left: 1.25rem;
  transition: var(--transition);
}
.nav-menu a:hover { color: var(--secondary-color); }
.nav-menu a.nav-cta {
  background: var(--primary-color);
  color: var(--bg-white);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
}
.nav-menu a.nav-cta:hover { background: var(--secondary-color); color: var(--primary-color); }

@media (max-width: 600px) {
  .nav-menu a:not(.nav-cta) { display: none; } /* Focus layout on urgent calls for mobile */
}

/* ==========================================================================
   5. LAYOUT SECTIONS (HERO, PROCESS, INFO)
   ========================================================================== */
section { padding: var(--gap-lg) 0; }
.bg-light-section { background-color: var(--bg-light); }

/* Hero */
.hero-section {
  background: radial-gradient(circle at top right, #153558 0%, var(--primary-color) 100%);
  color: var(--bg-white);
  text-align: center;
  padding: var(--gap-lg) 0 calc(var(--gap-lg) * 1.5);
}
.hero-section h1 { color: var(--bg-white); font-size: 2.75rem; margin-bottom: 1.2rem; }
.hero-lead { color: #cbd5e1; font-size: 1.2rem; max-width: 800px; margin: 0 auto var(--gap-md); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: var(--gap-md); }
.highlights-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #e2e8f0;
}
.highlights-list li::before { content: "\2713 "; color: var(--secondary-color); font-weight: bold; }

/* Steps */
.step-card {
  background: var(--bg-light);
  padding: var(--gap-md);
  border-radius: var(--radius);
  border-top: 4px solid var(--primary-color);
  position: relative;
}
.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: #e2e8f0;
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  line-height: 1;
}
.step-card h3 { margin-bottom: 0.5rem; position: relative; z-index: 2; }

/* Gallery Grid */
.gallery-card {
  background: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.card-content { padding: 1.5rem; }
.card-tag { font-size: 0.75rem; font-weight: bold; color: var(--text-light); text-transform: uppercase; }

/* Service Cards */
.service-card {
  background: var(--bg-white);
  border: 1px solid #e2e8f0;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 20px -5px rgba(0,0,0,0.1); }
.service-tag { display: inline-block; font-size: 0.75rem; background: #e2e8f0; padding: 0.2rem 0.6rem; border-radius: 4px; margin-bottom: 0.75rem; font-weight: 600; }
.service-link { color: var(--primary-color); text-decoration: none; font-weight: bold; font-size: 0.9rem; display: inline-block; margin-top: 1rem; }

/* Ticks list helper */
.ticks-list { list-style: none; }
.ticks-list li { margin-bottom: 0.75rem; position: relative; padding-left: 1.5rem; }
.ticks-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-green); font-weight: bold; }

/* ==========================================================================
   6. LOCAL FOOTPRINT & FAQ
   ========================================================================== */
.location-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: var(--gap-md);
}
.location-links-grid a {
  background: var(--bg-light);
  color: var(--primary-color);
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}
.location-links-grid a:hover { background: var(--primary-color); color: var(--bg-white); }

/* Accordion FAQs */
.faq-item {
  background: var(--bg-light);
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  cursor: pointer;
  outline: none;
  user-select: none;
}
.faq-content { padding: 0 1.2rem 1.2rem; }

/* Bottom CTA Callout */
.cta-section-bottom {
  background: var(--bg-light);
  border-top: 2px dashed #cbd5e1;
}
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ==========================================================================
   7. FOOTER SYSTEM
   ========================================================================== */
.site-footer {
  background: #091727;
  color: #94a3b8;
  padding: var(--gap-lg) 0 var(--gap-md);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: var(--gap-md);
  margin-bottom: var(--gap-lg);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer strong { color: var(--bg-white); display: block; margin-bottom: 1rem; font-size: 1.1rem; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: var(--secondary-color); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; font-size: 0.8rem; }

/* ==========================================================================
   8. FLOATING STICKY ACTION TRAY (MOBILE DEVICE OVERRIDES)
   ========================================================================== */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 9999;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}
.action-btn {
  text-align: center;
  padding: 1.1rem 0;
  text-decoration: none;
  color: var(--bg-white);
  font-weight: 700;
  font-size: 1rem;
}
.action-call { background-color: var(--primary-color); }
.action-wa { background-color: var(--accent-green); }

@media (min-width: 769px) {
  .mobile-action-bar { display: none; } /* Hide tracking UI bar on desktops */
  body { padding-bottom: 0; }
}

/* ==========================================================================
   9. INNER PAGE EXTENSIONS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.10);
  color: var(--secondary-color);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-hero-section {
  padding: var(--gap-lg) 0;
  min-height: 390px;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 700;
}

.breadcrumbs a {
  color: #f8fafc;
  text-decoration: none;
}

.breadcrumbs a::after {
  content: "/";
  color: #94a3b8;
  margin-left: 0.55rem;
}

.breadcrumbs span {
  color: var(--secondary-color);
}

.section-header {
  max-width: 780px;
  margin: 0 auto var(--gap-md);
  text-align: center;
}

.intro-panel {
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: var(--gap-md);
}

.info-card-soft {
  background: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: var(--gap-md);
  box-shadow: 0 6px 16px -10px rgba(0,0,0,0.28);
}

.contact-card {
  display: block;
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: var(--gap-md);
  min-height: 135px;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
  background: var(--primary-color);
  color: var(--bg-white);
}

.contact-card span {
  display: block;
  color: var(--secondary-color);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.contact-card strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.25;
}

.location-links-grid a[aria-current="page"] {
  background: var(--primary-color);
  color: var(--bg-white);
}

.nav-menu a[aria-current="page"] {
  color: var(--secondary-color);
}

@media (max-width: 767px) {
  .section-header {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .breadcrumbs {
    justify-content: center;
  }

  .page-hero-section h1 {
    font-size: 2.15rem;
  }

  .contact-card {
    min-height: auto;
  }
}


@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
