:root {
  --primary: #0f3460;
  --primary-dark: #0a2240;
  --primary-light: #1a4f8b;
  --accent: #0077b6;
  --accent-light: #0096c7;
  --emergency: #e63946;
  --emergency-hover: #d62828;
  --text-main: #1e293b;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1200px;
}

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

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

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* space for sticky mobile bar */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Top Utility Bar */
.top-bar {
  background-color: var(--primary-dark);
  color: #94a3b8;
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
}

.top-bar a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* Header & Navigation */
.header {
  background-color: var(--bg-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
}

.header-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 4px 6px rgba(0, 119, 182, 0.25);
}

.logo-text-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo-text-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-menu {
  display: none;
  gap: 24px;
  align-items: center;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone-btn {
  display: flex;
  flex-direction: column;
  text-align: right;
  text-decoration: none;
}

.header-phone-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.header-phone-number {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.header-phone-number:hover {
  color: var(--accent);
}

.mobile-toggle-btn {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  padding: 8px;
}

@media (min-width: 992px) {
  .mobile-toggle-btn {
    display: none;
  }
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  padding: 16px 20px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid #f1f5f9;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-emergency {
  background-color: var(--emergency);
  color: white;
  animation: pulse 2.5s infinite;
}

.btn-emergency:hover {
  background-color: var(--emergency-hover);
  color: white;
  text-decoration: none;
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 70%, var(--accent) 100%);
  color: white;
  padding: 56px 0 64px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 100%;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

.hero-content {
  min-width: 0;
  max-width: 100%;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.85rem;
  }
}

.hero p.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 30px;
  max-width: 780px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-badges {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.hero-badge-item svg {
  color: #38bdf8;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.hero-img {
  width: 100%;
  height: 320px;
  max-height: 360px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

@media (max-width: 768px) {
  .hero-img {
    height: 220px;
  }
}

.hero-image-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(15, 52, 96, 0.92);
  backdrop-filter: blur(8px);
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Breadcrumbs */
.breadcrumb-nav {
  background-color: var(--bg-white);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb-list li+li:before {
  content: "/";
  color: #94a3b8;
  margin-right: 8px;
}

.breadcrumb-list a {
  color: var(--text-muted);
}

.breadcrumb-list a:hover {
  color: var(--accent);
}

.breadcrumb-list span.current {
  color: var(--primary);
  font-weight: 600;
}

/* Main Content Layout */
.page-wrapper {
  padding: 48px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 100%;
  gap: 40px;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 992px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

.main-article {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--bg-white);
  padding: 36px 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 767px) {
  .main-article {
    padding: 24px 18px;
  }
}

.main-article h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.main-article h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

.main-article h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 24px;
  margin-bottom: 12px;
}

.main-article p {
  margin-bottom: 18px;
  font-size: 1.025rem;
  line-height: 1.75;
  color: #334155;
}

.main-article ul, .main-article ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.main-article li {
  margin-bottom: 10px;
  line-height: 1.65;
}

/* In-Content Images */
.content-image-banner {
  width: 100%;
  max-width: 100%;
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  background-color: #f8fafc;
}

.content-image-banner img {
  width: 100%;
  height: 280px;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 640px) {
  .content-image-banner img {
    height: 190px;
  }
}

.content-image-caption {
  padding: 10px 16px;
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
  border-top: 1px solid var(--border-color);
  line-height: 1.4;
}

/* Feature Callout Boxes */
.callout-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
}

.callout-box.emergency {
  background: #fef2f2;
  border-left-color: var(--emergency);
}

.callout-box.info {
  background: #f0f9ff;
  border-left-color: var(--accent);
}

.callout-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

/* Sidebar */
.sidebar {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-card {
  min-width: 0;
  max-width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.sidebar-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-cta-box {
  min-width: 0;
  max-width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.sidebar-cta-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: white;
}

.sidebar-cta-box p {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin-bottom: 20px;
}

.sidebar-phone {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 16px;
  text-decoration: none;
}

.sidebar-phone:hover {
  text-decoration: underline;
  color: white;
}

/* Grid Cards */
.card-grid-3 {
  display: grid;
  grid-template-columns: 100%;
  gap: 24px;
  margin: 32px 0;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 640px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service-card {
  min-width: 0;
  max-width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.25s ease;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: #cbd5e1;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: #e0f2fe;
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card .card-link {
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* FAQ Accordion */
.faq-section {
  margin: 40px 0;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-answer {
  padding: 0 20px 18px 20px;
  color: #334155;
  font-size: 0.975rem;
  line-height: 1.7;
}

/* Form Styles */
.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  background: #ffffff;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-checkbox input {
  margin-top: 4px;
}

/* Modal Popup Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 34, 64, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
  position: relative;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 18px auto;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.modal-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-close-btn {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.modal-close-btn:hover {
  background: #e2e8f0;
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  padding: 56px 0 24px 0;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-title {
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Sticky Mobile Bar */
.sticky-mobile-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg-white);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--border-color);
  padding: 8px 12px;
  gap: 10px;
}

@media (min-width: 768px) {
  .sticky-mobile-bar {
    display: none;
  }
}

.mobile-call-btn {
  flex: 1;
  background-color: var(--emergency);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
}

.mobile-quote-btn {
  flex: 1;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
}

/* Internal Linking Tag Cloud / Silo Links */
.silo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.silo-tag {
  background: #f1f5f9;
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.silo-tag:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  text-decoration: none;
}
