/* ===========================================================
   C&M Topsoil and Trucking — design system
   Brand colors sourced from the client's original site; everything
   else (spacing scale, shadows, radii, type rhythm) rebuilt for a
   cleaner, more premium feel.
   =========================================================== */
:root {
  --red: #D90A2C;
  --red-dark: #AD081F;
  --red-tint: #FCEEF0;
  --navy: #123458;
  --navy-dark: #0B233C;
  --navy-tint: #EDF2F7;
  --ink: #1B2430;
  --gray: #5C6672;
  --line: #E7EAEF;
  --surface: #FFFFFF;
  --bg: #FBFBFC;
  --bg-alt: #F2F5F8;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(18, 52, 88, .06);
  --shadow: 0 14px 34px rgba(18, 52, 88, .12);
  --shadow-lg: 0 28px 64px rgba(18, 52, 88, .18);

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--red-dark); text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2rem, 1.35rem + 3vw, 3.15rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { padding-left: 1.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.icon { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 12px 18px; z-index: 200; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; top: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.nav-toggle:focus-visible { outline-offset: 2px; }
.social-icon:focus-visible { outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1;
  padding: 15px 28px; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(217,10,44,.30); }
.btn-primary:hover { background: var(--red-dark); color: #fff; box-shadow: 0 14px 30px rgba(217,10,44,.38); }
.btn-outline { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(2px); }
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(18,52,88,.24); }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-call { background: var(--red); color: #fff; padding: 12px 22px; font-size: .9rem; box-shadow: 0 8px 18px rgba(217,10,44,.28); }
.btn-call:hover { background: var(--red-dark); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: inset 0 -1px 0 var(--line), var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; }
.brand { flex-shrink: 0; display: flex; align-items: center; }
.brand img { height: 44px; width: auto; }
.primary-nav { display: flex; }
.primary-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: flex; align-items: center; height: 40px; padding: 0 16px; color: var(--navy); font-family: var(--font-head);
  font-weight: 600; font-size: .93rem; border-radius: var(--radius-sm); transition: color .15s var(--ease), background-color .15s var(--ease);
}
.primary-nav > ul > li > a:hover { color: var(--red); text-decoration: none; background: var(--bg-alt); }
.has-dropdown > a::after { content: ''; margin-left: 7px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .22s var(--ease); }
.has-dropdown:hover > a::after, .has-dropdown:focus-within > a::after { transform: rotate(225deg) translateY(2px); }
.dropdown {
  /* top:100% + padding-top (instead of a top offset) keeps this box's hoverable area flush
     against the trigger link with zero dead zone — the 10px visual gap is now *inside* the
     hoverable box (as padding) rather than empty space outside it, so moving the cursor down
     from "Services" into the menu never crosses a gap that isn't part of either element. */
  display: grid; grid-template-rows: 0fr; position: absolute; top: 100%; left: 0; padding-top: 10px;
  list-style: none; margin: 0; opacity: 0; pointer-events: none;
  transition: grid-template-rows .3s var(--ease), opacity .22s var(--ease);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { grid-template-rows: 1fr; opacity: 1; pointer-events: auto; }
.dropdown > ul {
  overflow: hidden; list-style: none; margin: 0; padding: 8px; min-width: 260px;
  background: #fff; box-shadow: var(--shadow-lg); border-radius: var(--radius); border: 1px solid var(--line);
}
.dropdown li a { display: block; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--ink); font-size: .92rem; font-weight: 500; transition: background-color .15s var(--ease), color .15s var(--ease); }
.dropdown li a:hover { background: var(--red-tint); color: var(--red); text-decoration: none; }
.header-call { flex-shrink: 0; }
.mobile-nav-extra { display: none; }
.nav-backdrop { display: none; }

.nav-toggle {
  display: none; position: relative; flex-direction: column; justify-content: center; align-items: center;
  width: 44px; height: 44px; background: var(--bg-alt); border: 0; padding: 0; cursor: pointer; border-radius: 50%;
}
.nav-toggle:hover { background: var(--navy-tint); }
.nav-toggle span {
  position: absolute; width: 18px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s var(--ease), background-color .2s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(2) { transform: translateY(0); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] { background: var(--navy); }
.nav-toggle[aria-expanded="true"] span { background: #fff; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

@media (max-width: 1100px) and (min-width: 901px) {
  .header-inner { gap: 10px; }
  .primary-nav > ul { gap: 0; }
  .primary-nav > ul > li > a { padding: 0 10px; font-size: .85rem; }
}

html.nav-locked, body.nav-locked { overflow: hidden; height: 100%; }

@media (max-width: 900px) {
  .brand img { height: 52px; }
  .nav-toggle { display: flex; z-index: 101; }

  .nav-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(6, 14, 24, .55); z-index: 98;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s;
  }
  .nav-backdrop.open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }

  .primary-nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(86vw, 380px); z-index: 99;
    background: linear-gradient(165deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: calc(var(--header-h, 74px) + 8px) 0 24px; margin: 0; display: flex; flex-direction: column;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    transform: translateX(100%); transition: transform .32s var(--ease); box-shadow: -8px 0 40px rgba(0,0,0,.35);
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px; }

  .primary-nav > ul > li {
    opacity: 0; transform: translateX(18px); transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .primary-nav.open > ul > li { opacity: 1; transform: translateX(0); }
  .primary-nav.open > ul > li:nth-child(1) { transition-delay: .06s; }
  .primary-nav.open > ul > li:nth-child(2) { transition-delay: .10s; }
  .primary-nav.open > ul > li:nth-child(3) { transition-delay: .14s; }
  .primary-nav.open > ul > li:nth-child(4) { transition-delay: .18s; }
  .primary-nav.open > ul > li:nth-child(5) { transition-delay: .22s; }
  .primary-nav.open > ul > li:nth-child(6) { transition-delay: .26s; }

  .primary-nav > ul > li > a {
    height: auto; padding: 15px 4px; border-bottom: 1px solid rgba(255,255,255,.10); border-radius: 0;
    color: #fff; font-size: 1.05rem;
  }
  .primary-nav > ul > li > a:hover { color: #fff; background: none; }
  .has-dropdown > a::after { margin-left: auto; border-color: rgba(255,255,255,.7); }
  .has-dropdown:hover > a::after { transform: rotate(45deg) translateY(-2px); }
  .has-dropdown.open > a::after { transform: rotate(225deg) translateY(2px); }

  .dropdown {
    position: static; opacity: 1; pointer-events: auto;
    grid-template-rows: 0fr; margin: 0; padding-top: 0;
  }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { grid-template-rows: 0fr; }
  .has-dropdown.open .dropdown { grid-template-rows: 1fr; }
  .dropdown > ul { padding: 2px 0 10px 14px; background: transparent; box-shadow: none; border: 0; border-radius: 0; min-width: 0; }
  .dropdown li a { color: rgba(255,255,255,.78); padding: 11px 12px; font-weight: 400; font-size: .95rem; border-left: 2px solid rgba(255,255,255,.16); border-radius: 0; }
  .dropdown li a:hover { background: rgba(255,255,255,.06); color: #fff; border-left-color: var(--red); }

  .header-call { display: none; }

  .mobile-nav-extra {
    display: block; margin: 20px 20px 4px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
    opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease) .28s, transform .4s var(--ease) .28s;
  }
  .primary-nav.open .mobile-nav-extra { opacity: 1; transform: translateY(0); }
  .mobile-nav-call { width: 100%; }
  .mobile-nav-social { display: flex; gap: 10px; margin-top: 16px; justify-content: center; }
}

@media (max-width: 380px) {
  .primary-nav { width: 100vw; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 108px 0 84px; background-size: cover; background-position: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(11,35,60,.94) 0%, rgba(18,52,88,.82) 45%, rgba(18,52,88,.45) 100%);
}
.hero .wrap { position: relative; z-index: 1; max-width: 740px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; font-size: .78rem; margin-bottom: 20px; padding: 7px 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius-pill);
}
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; color: #E4EAF0; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-small { padding: 76px 0 62px; }

@media (max-width: 600px) {
  .hero { padding: 64px 0 48px; }
  .hero-small { padding: 52px 0 40px; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.block { padding: 88px 0; }
.block.alt { background: var(--bg-alt); }
.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--gray); font-size: 1.05rem; }
@media (max-width: 700px) { .block { padding: 60px 0; } }
@media (max-width: 600px) { .block { padding: 48px 0; } }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 20px; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: .5em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .card { padding: 24px; } }

.service-card { text-align: left; }
.service-card .icon-wrap {
  width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  transition: background-color .22s var(--ease), color .22s var(--ease);
}
.service-card .icon-wrap .icon { width: 24px; height: 24px; }
.service-card:hover .icon-wrap { background: var(--red); color: #fff; }
.service-card h3 a { color: var(--navy); }
.service-card:hover h3 a { color: var(--red); }
.service-card p { color: var(--gray); margin-bottom: 14px; }
.service-card > a:last-child { font-weight: 600; font-size: .92rem; }


/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split.reverse .split-media { order: 2; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: #C9D6E4; margin: 0; max-width: 520px; }
.cta-banner-bg {
  background-size: cover; background-position: center; position: relative; color: #fff;
  border-radius: var(--radius-lg); overflow: hidden; padding: 52px; box-shadow: var(--shadow);
}
.cta-banner-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(11,35,60,.90), rgba(18,52,88,.72)); }
.cta-banner-bg > * { position: relative; z-index: 1; }
.cta-banner-bg h1, .cta-banner-bg h2, .cta-banner-bg h3,
.cta-banner-bg p { color: #fff; }
.cta-banner .page-kicker, .cta-banner-bg .page-kicker { color: #FFC9D1; }
/* These also carry .wrap on the same element; .wrap's own padding gets fully
   overridden by the padding above, which also silently zeroes its side gutter.
   Re-establish a real gutter at every width (not just past the 1200px cap)
   so the rounded card never touches the viewport edge on tablet/mobile. */
.wrap.cta-banner, .wrap.cta-banner-bg { width: calc(100% - 48px); margin-left: auto; margin-right: auto; }
@media (max-width: 700px) {
  .cta-banner, .cta-banner-bg { padding: 34px; flex-direction: column; text-align: center; }
  .cta-banner p { max-width: none; }
  .cta-band { padding-top: 0; }
  .cta-band .cta-banner-bg { border-radius: 0; box-shadow: none; width: 100%; margin-left: 0; margin-right: 0; }
}

/* ---------- Stats ---------- */
.stats { background-position: center; background-size: cover; position: relative; color: #fff; }
.stats::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(11,35,60,.92), rgba(18,52,88,.88)); }
.stats .wrap { position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stats-grid > div { padding: 0 12px; border-left: 1px solid rgba(255,255,255,.18); }
.stats-grid > div:first-child { border-left: 0; }
.stats-grid strong { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; }
.stats-grid span { color: #B9C8D8; font-size: .88rem; font-weight: 500; letter-spacing: .02em; }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stats-grid > div:nth-child(3) { border-left: 0; }
}

/* ---------- List / checks ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 12px; margin-bottom: 14px; }
.check-list li:last-child { margin-bottom: 0; }
.check-list .icon {
  color: var(--red); flex-shrink: 0; margin-top: .15em; background: var(--red-tint);
  border-radius: 50%; padding: 3px; width: 1.3em; height: 1.3em; box-sizing: border-box;
}

/* ---------- Breadcrumb / page intro ---------- */
.page-kicker {
  color: var(--red); font-family: var(--font-head); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; font-size: .8rem; position: relative; padding-bottom: 12px; display: inline-block;
}
.page-kicker::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto;
  width: 34px; height: 3px; background: currentColor; border-radius: 2px;
}
.section-head .page-kicker { display: block; margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { margin-bottom: 8px; font-size: 1.1rem; }
.faq-item p { color: var(--gray); margin: 0; }

/* ---------- Pricing table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.price-table { width: 100%; min-width: 360px; border-collapse: collapse; background: var(--surface); }
.price-table th, .price-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .92rem; letter-spacing: .02em; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tbody tr { transition: background-color .15s var(--ease); }
.price-table tbody tr:hover { background: var(--bg-alt); }

/* ---------- Gallery / Portfolio ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600;
  font-size: .88rem; color: var(--navy); background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 10px 18px; cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.filter-btn:hover { background: var(--navy-tint); border-color: var(--navy-tint); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.filter-btn .filter-count {
  font-size: .76rem; font-weight: 700; background: rgba(0,0,0,.08); border-radius: var(--radius-pill);
  padding: 1px 8px; color: inherit;
}
.filter-btn.active .filter-count { background: rgba(255,255,255,.25); }
.gallery-empty { text-align: center; color: var(--gray); padding: 40px 0 0; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { border-radius: var(--radius-sm); overflow: hidden; display: block; position: relative; box-shadow: var(--shadow-sm); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.gallery a.is-hidden { display: none; }
.gallery img { height: 200px; width: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.gallery a:hover img { transform: scale(1.08); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 480px) { .filter-btn { padding: 8px 14px; font-size: .82rem; } }

.lightbox {
  position: fixed; inset: 0; background: rgba(9, 14, 20, .95); display: none; align-items: center;
  justify-content: center; z-index: 300; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 20px; right: 26px; background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 1.6rem;
  cursor: pointer; line-height: 1; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background-color .15s var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 1.8rem; width: 52px; height: 52px; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color .15s var(--ease); }
.lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
  display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.contact-card .icon-wrap { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--navy-tint); color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card .icon-wrap .icon { width: 22px; height: 22px; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-list { grid-template-columns: 1fr; } }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card img { height: 180px; object-fit: cover; width: 100%; }
.post-card .card-body { padding: 22px; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--navy); }
.post-card:hover h3 a { color: var(--red); }
.post-card .meta { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .74rem; margin-bottom: 10px; }
.post-body { max-width: 740px; margin: 0 auto; font-size: 1.05rem; }
.post-body h2 { margin-top: 1.4em; }
.post-image { margin: 1.8em 0; }
.post-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); display: block; }
.post-image figcaption { margin-top: 10px; text-align: center; color: var(--gray); font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #B7C2CE; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { filter: brightness(0) invert(1); margin-bottom: 16px; height: 40px; width: auto; }
.footer-col p { color: #9BAAB9; }
.site-footer h3 { color: #fff; font-size: .98rem; margin-bottom: 18px; letter-spacing: .02em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #B7C2CE; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: #B7C2CE; }
.footer-contact a { color: #B7C2CE; }
.footer-contact a:hover { color: #fff; }
.footer-contact .icon { color: var(--red); margin-top: .2em; }
.footer-contact .hours { padding-left: 32px; color: #7C8B9A; font-size: .87rem; }
.social-icons { display: flex; gap: 10px; margin-top: 20px; }
.social-icon {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center; color: #B7C2CE;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.social-icon:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.social-icon .icon { width: 18px; height: 18px; }
.footer-map { border-top: 1px solid rgba(255,255,255,.08); line-height: 0; }
.footer-map iframe { display: block; width: 100%; height: 280px; border: 0; filter: grayscale(.15); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 24px; text-align: center; font-size: .85rem; color: #7C8B9A; }
.footer-bottom p { margin: 0 0 4px; }
.footer-bottom p:last-child { margin-bottom: 0; }
.footer-bottom .credit { font-size: .8rem; }
.footer-bottom .credit a { color: #7C8B9A; text-decoration: underline; }
.footer-bottom .credit a:hover { color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 550px) { .footer-grid { grid-template-columns: 1fr; } }
