/* ==========================================================================
   Universal Marine Service — Global Stylesheet
   ========================================================================== */

:root {
  /* Color palette */
  --navy-deep: #071a2b;
  --navy: #0b2942;
  --navy-light: #123a5e;
  --ocean: #0f6ba8;
  --ocean-light: #2f96d6;
  --ocean-pale: #e8f3fa;
  --white: #ffffff;
  --gray-light: #f4f6f8;
  --gray-100: #eceff2;
  --gray-300: #cbd3da;
  --gray-500: #6b7785;
  --gray-700: #3d4750;
  --orange: #ff7a1a;
  --orange-dark: #dd6300;
  --orange-light: #ff9a4d;

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;

  /* Layout */
  --max-width: 1200px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 8px rgba(7, 26, 43, 0.08);
  --shadow-md: 0 8px 24px rgba(7, 26, 43, 0.12);
  --shadow-lg: 0 20px 50px rgba(7, 26, 43, 0.22);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; }
button { cursor: pointer; }
a { text-decoration: none; color: inherit; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--gray-500); font-size: 1.05rem; margin-top: 14px; }

section { padding: 72px 0; }
@media (min-width: 992px) { section { padding: 104px 0; } }

.bg-light { background: var(--gray-light); }
.bg-navy { background: var(--navy); color: rgba(255,255,255,0.88); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-ocean-pale { background: var(--ocean-pale); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--orange-dark); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(7, 26, 43, 0.97);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.site-header .brand {
  gap: 12px;
  font-size: 1.45rem;
}
.site-header .brand-mark {
  width: 48px;
  height: 48px;
}
.brand-mark img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocean-light);
}
.brand-text small:first-of-type {
  font-size: 0.88rem;
}
.brand-text small:last-of-type {
  color: var(--white);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin-inline: auto;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: fixed;
  inset: 0 0 0 30%;
  top: 71px;
  background: var(--navy-deep);
  padding: 20px 24px 40px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.main-nav.open { transform: translateX(0); }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-list a {
  display: block;
  padding: 14px 6px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--transition), padding-left var(--transition);
}
.nav-list a:hover, .nav-list a:focus-visible, .nav-list a.active { color: var(--orange-light); padding-left: 12px; }

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
}

@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    inset: auto;
    transform: none;
    background: transparent;
    padding: 0;
    border-left: none;
    overflow: visible;
  }
  .nav-list { flex-direction: row; align-items: center; gap: 4px; }
  .nav-list a { border-bottom: none; padding: 8px 14px; font-size: 0.93rem; }
  .nav-list a:hover, .nav-list a.active { padding-left: 14px; }
  .nav-actions { flex-direction: row; margin-top: 0; margin-left: 18px; align-items: center; }
  .nav-phone { border-right: 1px solid rgba(255,255,255,0.2); padding-right: 18px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: var(--navy-deep) url("../images/hero/hero-home.jpg") center/cover no-repeat;
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,16,28,0.55) 0%, rgba(4,16,28,0.72) 55%, rgba(4,16,28,0.9) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero.hero-page {
  background-image: url("../images/hero/hero-inner.jpg");
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero .eyebrow { color: var(--orange-light); }
.hero h1 { color: var(--white); }
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-top: 18px;
  max-width: 620px;
}
.hero .cta-row { margin-top: 32px; }

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--orange-light); }

/* Wave divider */
.wave-divider { display: block; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: 60px; display: block; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ocean-pale);
  color: var(--ocean);
  margin-bottom: 18px;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray-500); font-size: 0.97rem; }
.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 700;
  color: var(--ocean);
  font-size: 0.9rem;
}
.card a.card-link:hover { color: var(--orange); }

/* Service preview icon-only tiles */
.service-tile {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--ocean-light); }
.service-tile .card-icon { flex-shrink: 0; margin-bottom: 0; }
.service-tile h3 { font-size: 1.05rem; margin-bottom: 4px; }
.service-tile p { font-size: 0.9rem; margin: 0; }

/* ---------- Why choose / stats ---------- */
.feature {
  display: flex;
  gap: 18px;
}
.feature .num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,122,26,0.15);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-head);
}
.feature h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: rgba(255,255,255,0.72); font-size: 0.95rem; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (min-width: 768px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat .stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--orange);
  font-weight: 800;
}
.stat .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  height: 100%;
}
.stars { color: var(--orange); letter-spacing: 2px; margin-bottom: 14px; font-size: 1.05rem; }
.testimonial p.quote { color: var(--gray-700); font-size: 0.98rem; font-style: italic; }
.testimonial .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.who .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean), var(--navy));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-head);
  flex-shrink: 0;
}
.who .name { font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.who .meta { font-size: 0.8rem; color: var(--gray-500); }

/* ---------- Service area ---------- */
.area-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}
@media (min-width: 640px) { .area-list { grid-template-columns: repeat(3, 1fr); } }
.area-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}
.area-list li svg { flex-shrink: 0; color: var(--ocean); }

/* ---------- Contact CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--ocean) 0%, var(--navy) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.85); margin-top: 12px; max-width: 560px; margin-inline: auto; }
.cta-banner .cta-row { justify-content: center; margin-top: 28px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
  border: 1px solid var(--gray-100);
}
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr; margin-bottom: 20px; }
@media (min-width: 640px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .form-row.three { grid-template-columns: 1fr 1fr 1fr; }
}

.terms-box {
  max-height: 220px;
  overflow-y: auto;
  background: var(--gray-light);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--gray-700);
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.field-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--ocean);
}
.field-checkbox label {
  font-size: 0.9rem;
  color: var(--gray-700);
  font-weight: 600;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.field .req { color: var(--orange); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 6px;
  font-size: 0.96rem;
  color: var(--gray-700);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(15, 107, 168, 0.15);
}
.field input.invalid,
.field select.invalid,
.field textarea.invalid { border-color: #d64545; }
.field .error-msg {
  display: none;
  color: #d64545;
  font-size: 0.8rem;
  margin-top: 6px;
}
.field.has-error .error-msg { display: block; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #d64545; }
.field textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.85rem; color: var(--gray-500); margin-top: 16px; }
.form-success {
  display: none;
  background: #e6f6ec;
  border: 1px solid #b7e4c7;
  color: #1e6b3c;
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  font-weight: 600;
}
.form-success.show { display: block; }

/* ---------- Info cards on contact page ---------- */
.info-list { display: flex; flex-direction: column; gap: 20px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .card-icon { margin-bottom: 0; }
.info-item h4 { color: var(--navy); margin-bottom: 4px; font-family: var(--font-body); }
.info-item p, .info-item a { color: var(--gray-500); font-size: 0.95rem; }
.info-item a:hover { color: var(--ocean); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16/9;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Image placeholder handling ---------- */
.media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-light), var(--ocean));
  aspect-ratio: 4/3;
}
.media.diagram {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 24px;
}
.media.diagram img { object-fit: contain; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.img-fallback::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 0.95rem;
  background:
    linear-gradient(135deg, rgba(11,41,66,0.9), rgba(15,107,168,0.85));
}
.media.img-fallback img { opacity: 0; }

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--ocean); color: var(--ocean); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { border-radius: var(--radius); overflow: hidden; }
.gallery-item .media { aspect-ratio: 1/1; border-radius: var(--radius); cursor: pointer; }
.gallery-item .media::after { font-size: 0.8rem; }
.gallery-item.big { grid-column: span 2; grid-row: span 2; }
.gallery-item.big .media { aspect-ratio: 1/1; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4,16,28,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox figure { max-width: 900px; width: 100%; }
.lightbox .media { aspect-ratio: 16/10; border-radius: var(--radius-lg); }
.lightbox figcaption { color: var(--white); text-align: center; margin-top: 14px; font-size: 0.95rem; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 1.3rem;
}

/* ---------- Reviews page ---------- */
.review-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.review-score { font-family: var(--font-head); font-size: 3.2rem; color: var(--orange); font-weight: 800; }

/* ---------- Timeline (About page) ---------- */
.founder-quote {
  border-left: 3px solid var(--orange);
  padding-left: 24px;
  margin-top: 20px;
  font-size: 1.08rem;
  color: var(--gray-700);
  line-height: 1.75;
}
.founder-quote p + p { margin-top: 16px; }
.founder-sig { margin-top: 24px; }

.timeline { border-left: 3px solid var(--ocean-pale); padding-left: 24px; display: flex; flex-direction: column; gap: 28px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--ocean-pale);
}
.timeline-item h4 { color: var(--navy); margin-bottom: 4px; }
.timeline-item span.year { color: var(--ocean); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.05em; }

/* ---------- Values grid ---------- */
.value-card { text-align: center; }
.value-card .card-icon { margin-inline: auto; }

/* ---------- Table (service areas) ---------- */
.badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- Accordion (services detail) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding-block: 56px;
  border-bottom: 1px solid var(--gray-100);
}
.service-detail:last-child { border-bottom: none; }
@media (min-width: 900px) {
  .service-detail { grid-template-columns: 1fr 1fr; gap: 56px; }
  .service-detail.reverse .media { order: 2; }
}
.service-detail ul.check-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.96rem; color: var(--gray-700); }
.check-list li svg { flex-shrink: 0; color: var(--ocean); margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.03em; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; padding: 0; list-style: none; }
.footer-grid a:hover { color: var(--orange-light); }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; max-width: 320px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.social-row a:hover { background: var(--orange); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-block: 22px;
  font-size: 0.82rem;
}
.footer-bottom .legal-links { display: flex; gap: 18px; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  display: flex;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
}
.mobile-call-bar a {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}
.mobile-call-bar a.call { background: var(--orange); }
.mobile-call-bar a.request { background: var(--ocean); }
@media (min-width: 992px) { .mobile-call-bar { display: none; } }
body { padding-bottom: 62px; }
@media (min-width: 992px) { body { padding-bottom: 0; } }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Legal pages ---------- */
.legal-text { max-width: 760px; }
.legal-text h2 { font-size: 1.3rem; margin-top: 36px; margin-bottom: 10px; }
.legal-text p { color: var(--gray-500); margin-bottom: 14px; }
.legal-text a { color: var(--ocean); text-decoration: underline; }

/* ---------- Misc utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.icon-inline { display: inline-flex; vertical-align: middle; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: var(--white);
  padding: 12px 18px;
  z-index: 2000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  * { animation: none !important; transition-duration: 0.01ms !important; }
}
