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

:root {
  --navy:         #1b1e3d;
  --navy-dark:    #100f24;
  --blue:         #4a63d1;
  --blue-light:   #edeffc;
  --teal:         #14b8a6;
  --urgent:       #ff5a45;
  --urgent-dark:  #e2402c;
  --amber:        #ffb020;
  --amber-dark:   #c47f00;
  --bg:           #ffffff;
  --bg-alt:       #f6f7fb;
  --text-primary: #171a2e;
  --text-secondary: #565b78;
  --text-muted:   #8489a3;
  --border:       #e3e5f0;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --shadow:       0 4px 24px rgba(27,30,61,0.1);
}

html { scroll-behavior: smooth; }

/* Hazard-stripe accent divider — a nod to the industry, used sparingly */
.hazard-stripe {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber), var(--amber) 14px,
    var(--navy-dark) 14px, var(--navy-dark) 28px
  );
}

/* Scroll-reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--navy-dark);
  color: #cfe0ee;
  font-size: 13px;
  padding: 6px 0;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar a {
  color: #cfe0ee;
  text-decoration: none;
  font-weight: 500;
}

.topbar a:hover { color: #fff; }

.topbar-emergency {
  color: #ffb4a8;
  font-weight: 600;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-decoration: none;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 34px;
  width: auto;
}

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

.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--blue); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-urgent {
  background: var(--urgent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(192,57,43,0.3);
}
.btn-urgent:hover { background: var(--urgent-dark); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(29,111,165,0.3);
}
.btn-primary:hover { background: #175d8b; }

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

/* ===== HERO ===== */
.hero {
  background:
    radial-gradient(circle at 12% 15%, rgba(255,176,32,0.16), transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(20,184,166,0.18), transparent 46%),
    linear-gradient(135deg, var(--navy) 0%, #2a2359 100%);
  color: #fff;
  padding: 5rem 0 5.5rem;
}

.hero-inner {
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7fc4e8;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero p {
  font-size: 17px;
  color: #cfe0ee;
  max-width: 560px;
  margin-bottom: 2rem;
}

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

.hero-badges {
  display: flex;
  gap: 1.75rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-badge {
  font-size: 13px;
  font-weight: 600;
  color: #b8d4e8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

/* ===== PAGE HEADER (interior pages) ===== */
.page-header {
  background:
    radial-gradient(circle at 12% 15%, rgba(255,176,32,0.16), transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(20,184,166,0.18), transparent 46%),
    linear-gradient(135deg, var(--navy) 0%, #2a2359 100%);
  color: #fff;
  padding: 3.5rem 0;
}

.page-header-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7fc4e8;
  margin-bottom: 0.75rem;
}

.page-header h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.article-header h1 {
  text-transform: uppercase;
}

.page-header p {
  color: #cfe0ee;
  margin-top: 0.75rem;
  max-width: 600px;
  font-size: 15.5px;
}

/* ===== SECTION ===== */
.section {
  padding: 4.5rem 0;
}

.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 15.5px;
}

/* ===== CARDS / GRID ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8aa4f0, var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(27,30,61,0.14);
}

.card:hover::before { transform: scaleX(1); }

.card-index {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.card:hover .card-index { background: var(--blue); transform: scale(1.05); }

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
  letter-spacing: -0.2px;
}

.card p {
  color: var(--text-secondary);
  font-size: 14.5px;
}

.card ul {
  margin-top: 1rem;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 14px;
}

.card ul li { margin-bottom: 0.4rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.25rem;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

/* ===== IMAGE PLACEHOLDER ===== */
.img-placeholder {
  background: repeating-linear-gradient(
    45deg, var(--blue-light), var(--blue-light) 10px,
    #ddeaf3 10px, #ddeaf3 20px
  );
  border: 1.5px dashed #a9c9dc;
  border-radius: var(--radius-md);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  min-height: 200px;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-grid .img-placeholder { min-height: 140px; }

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ===== ABOUT / SPLIT ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--navy);
  margin-bottom: 1rem;
}

.split p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 15.5px; }

.check-list { list-style: none; margin-top: 1.5rem; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.85rem;
  font-size: 15px;
  color: var(--text-secondary);
}

.check-list .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== CTA BAND ===== */
.cta-band {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,90,69,0.18), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, #2a2359 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
  position: relative;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: #cfe0ee;
  margin-bottom: 1.75rem;
  font-size: 15.5px;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: fit-content;
}

.contact-info-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.contact-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.contact-row .icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.contact-row a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.contact-row a:hover { color: var(--blue); }

.contact-row .label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

form.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

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

.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text-primary);
  transition: border-color 0.15s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.field textarea { resize: vertical; min-height: 120px; }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--urgent);
}

.field [data-fs-error]:not(:empty) {
  display: block;
  margin-top: 0.4rem;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--urgent);
}

[data-fs-success]:not(:empty) {
  background: #eafaf1;
  border: 1px solid #b7e4c7;
  color: #1b7a43;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

form.contact-form > [data-fs-error]:not(:empty) {
  background: #fdecea;
  border: 1px solid #f3c2bc;
  color: var(--urgent-dark);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy-dark);
  color: #9fb3c4;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-grid p { font-size: 14px; color: #7f95a8; max-width: 320px; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.65rem; }

.footer-col a {
  color: #9fb3c4;
  text-decoration: none;
  font-size: 14px;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6b7f91;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== BLOG LISTING ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}

.blog-card:hover { transform: translateY(-3px); }

.blog-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--teal);
  background: #e6f5f5;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 1rem;
  width: fit-content;
}

.blog-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.2px;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.blog-card-footer .read-link {
  color: var(--blue);
  font-weight: 700;
}

/* ===== ARTICLE ===== */
.article-header {
  background:
    radial-gradient(circle at 12% 15%, rgba(255,176,32,0.16), transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(20,184,166,0.18), transparent 46%),
    linear-gradient(135deg, var(--navy) 0%, #2a2359 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
}

.article-header .container { max-width: 760px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #7fc4e8;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 13px;
  color: #b8d4e8;
  margin-top: 1rem;
}

.article-meta .blog-card-tag {
  background: rgba(255,255,255,0.12);
  color: #7fc4e8;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--navy);
  margin: 2rem 0 1rem;
}

.article-body h2:first-child { margin-top: 0; }

.article-body p {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.8;
}

.article-body li { margin-bottom: 0.5rem; }

.article-body strong { color: var(--navy); }

.article-cta {
  background: var(--blue-light);
  border: 1px solid var(--accent-border, var(--border));
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 2.5rem;
  text-align: center;
}

.article-cta p {
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .topbar .container { justify-content: center; text-align: center; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
  .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 3.5rem 0 4rem; }
}
