/* ============================================================
   Portland Concrete Company – Pages Design System
   About, Contact, Privacy, Disclaimer, Terms, Sitemap
   Color Palette: Forest Green + Warm Sandstone (shared)
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary: #00519C;
  --primary-light: #2875BA;
  --primary-dark: #003B73;
  --primary-fg: #FFFFFF;

  --accent: #D4A373;
  --accent-light: #E6C9A8;
  --accent-dark: #B8864E;

  --bg-main: #FAFAF8;
  --bg-alt: #F0EDE8;
  --bg-muted: #F5F3EF;

  --text-heading: #1A1A1A;
  --text-body: #4A4A4A;
  --text-muted: #7A7A7A;
  --text-light: #9A9A9A;

  --card-bg: #FFFFFF;
  --border: #E0DDD5;
  --border-light: #EBE8E2;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--primary-light); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.25;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: #1A1A1A;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--primary-dark);
  color: var(--primary-fg);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  text-align: center;
}
.top-bar a {
  color: var(--accent-light);
  font-weight: 600;
}
.top-bar a:hover { color: #fff; }

/* ---------- Header / Navbar ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--primary);
  background: rgba(0,81,156,0.06);
}

.nav-cta { display: none; }

.nav-phone-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  flex-shrink: 0;
}

.nav-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--text-heading);
  flex-shrink: 0;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--card-bg);
  z-index: 200;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}
.mobile-menu.active { display: flex; }
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.mobile-menu-header .nav-brand-logo {
  height: 36px;
  width: auto;
}
.mobile-menu-close {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu-links a {
  padding: 0.85rem 0.5rem;
  font-size: 1rem;
  color: var(--text-heading);
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu-cta { margin-top: 2rem; }

/* ---------- Page Hero (Inner Pages) ---------- */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: var(--primary-dark);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,0.90) 0%, rgba(45,106,79,0.75) 50%, rgba(27,67,50,0.65) 100%);
  z-index: 2;
}

.page-hero-content {
  position: relative;
  z-index: 3;
  padding: 3.5rem 0;
  max-width: 700px;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,0.12);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-hero h1 {
  color: #FFFFFF;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
}
.page-hero h1 span {
  color: var(--accent-light);
}

.page-hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 560px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--bg-alt);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb-list a {
  color: var(--primary);
  font-weight: 500;
}
.breadcrumb-list a:hover { color: var(--primary-light); }
.breadcrumb-sep { color: var(--text-light); }

/* ---------- Section Padding ---------- */
.section-padding { padding: 4rem 0; }
.section-padding-lg { padding: 5rem 0; }

/* ---------- Section Headers ---------- */
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}
.section-header-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 0.75rem;
}

/* ---------- About Page Specific ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.about-intro-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}
.about-intro-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.about-intro-text h2 {
  margin-bottom: 0.75rem;
}
.about-intro-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* Values / Mission Cards */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.value-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.value-card:hover::before {
  transform: scaleX(1);
}
.value-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.value-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(45,106,79,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--primary);
  transition: all 0.3s ease;
}
.value-card:hover .value-card-icon {
  background: var(--primary);
  color: #fff;
}

.value-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}
.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Story Timeline */
.story-section {
  position: relative;
}
.story-content {
  max-width: 800px;
  margin: 0 auto;
}
.story-content p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Stats Bar */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-item h3 {
  color: var(--accent-light);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: 0.25rem;
}
.stat-item p {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* Why Customers Choose Us */
.reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.reason-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.reason-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.reason-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: rgba(45,106,79,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.reason-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}
.reason-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ---------- Contact Page Specific ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-form h2 {
  margin-bottom: 0.5rem;
}
.contact-form > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-body);
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.3s ease;
}
.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: rgba(45,106,79,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.contact-info-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}
.contact-info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}
.contact-info-card a {
  color: var(--primary);
  font-weight: 600;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 300px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Business Hours */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}
.hours-table tr {
  border-bottom: 1px solid var(--border-light);
}
.hours-table tr:last-child { border-bottom: none; }
.hours-table td {
  padding: 0.5rem 0;
  font-size: 0.88rem;
  color: var(--text-body);
}
.hours-table td:last-child {
  text-align: right;
  font-weight: 500;
}

/* ---------- Legal Pages (Privacy, Terms, Disclaimer) ---------- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.legal-content p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--text-body);
}
.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.legal-content ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.93rem;
  color: var(--text-body);
  line-height: 1.65;
}
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-content a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover {
  color: var(--primary-light);
}
.legal-date {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ---------- Sitemap Page ---------- */
.sitemap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.sitemap-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
}
.sitemap-section:hover {
  box-shadow: var(--shadow-md);
}
.sitemap-section h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sitemap-section h2 svg {
  color: var(--primary);
}
.sitemap-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.sitemap-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  transition: all 0.25s ease;
}
.sitemap-link:hover {
  background: rgba(45,106,79,0.06);
  color: var(--primary);
  transform: translateX(4px);
}
.sitemap-link svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 1rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--accent-light); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.footer-contact-item svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a {
  color: rgba(255,255,255,0.55);
  transition: color 0.25s ease;
}
.footer-bottom a:hover {
  color: var(--accent-light);
}

/* ---------- Floating Phone CTA (Mobile) ---------- */
.float-phone {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}
.float-phone:hover {
  transform: scale(1.1);
  color: #fff;
}

/* ---------- Background helpers ---------- */
.bg-main { background: var(--bg-main); }
.bg-alt { background: var(--bg-alt); }
.bg-muted { background: var(--bg-muted); }

/* ============================================================
   Responsive Breakpoints
   ============================================================ */

@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .sitemap-links { grid-template-columns: repeat(2, 1fr); }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .about-intro { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .section-padding { padding: 5rem 0; }
  .section-padding-lg { padding: 6rem 0; }
  .page-hero { min-height: 360px; }
  .page-hero-content { padding: 4rem 0; }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-phone-mobile { display: none; }
  .nav-menu-btn { display: none; }
  .float-phone { display: none; }
  .nav-brand-logo { height: 48px; }

  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .reasons-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .sitemap-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .container { padding: 0 2rem; }
}

/* ---------- Modern Footer ---------- */
.footer-modern {
  background: #061B35;
  color: #A9C8EA;
  padding: 3.75rem 0 0;
}
.footer-modern .footer-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3.25rem;
}
.footer-modern h4 {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}
.footer-logo {
  display: block;
  width: min(100%, 210px);
  height: auto;
  margin: 0 0 1.1rem;
}
.footer-intro {
  color: #A9C8EA;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 1.45rem;
  max-width: 27rem;
}
.footer-details {
  display: grid;
  gap: 0.72rem;
}
.footer-details p {
  color: #A9C8EA;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}
.footer-details strong {
  color: #FFFFFF;
}
.footer-details a,
.footer-modern .footer-links a {
  color: #A9C8EA;
  transition: color 0.2s ease;
}
.footer-details a:hover,
.footer-modern .footer-links a:hover {
  color: #FFFFFF;
}
.footer-modern .footer-links {
  gap: 0.8rem;
}
.footer-modern .footer-links a {
  font-size: 0.94rem;
  line-height: 1.45;
}
.footer-map {
  border: 1px solid rgba(169, 200, 234, 0.38);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #FFFFFF;
  aspect-ratio: 1.55 / 1;
}
.footer-map iframe {
  display: block;
  width: 100%;
  height: 100%;
}
.footer-modern .footer-bottom {
  border-top: 1px solid rgba(169, 200, 234, 0.18);
  color: #A9C8EA;
  font-size: 0.84rem;
  padding: 1.35rem 0;
  text-align: left;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
@media (min-width: 720px) {
  .footer-modern .footer-layout {
    grid-template-columns: 1.25fr 1fr;
  }
  .footer-map-column {
    grid-column: span 2;
  }
  .footer-bottom-inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
}
@media (min-width: 1100px) {
  .footer-modern .footer-layout {
    grid-template-columns: 1.35fr 0.95fr 0.85fr 1.2fr;
    gap: 3.25rem;
  }
  .footer-map-column {
    grid-column: auto;
  }
}
/* Keep all four footer sections inline on desktop. */
@media (min-width: 900px) {
  .footer-modern .footer-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.9fr) minmax(140px, 0.8fr) minmax(245px, 1.15fr);
    gap: 2.5rem;
    align-items: start;
  }
  .footer-modern .footer-map-column {
    grid-column: auto;
  }
}
/* ---------- Services Mega Menu ---------- */
.nav-services {
  position: relative;
}
.nav-services summary,
.mobile-services summary {
  align-items: center;
  color: var(--text-body);
  cursor: pointer;
  display: flex;
  font-size: 0.9rem;
  font-weight: 500;
  gap: 0.35rem;
  list-style: none;
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
}
.nav-services summary::-webkit-details-marker,
.mobile-services summary::-webkit-details-marker { display: none; }
.nav-services summary:hover,
.nav-services[open] summary {
  background: rgba(0, 81, 156, 0.07);
  color: var(--primary);
  border-radius: var(--radius-sm);
}
.nav-services summary svg,
.mobile-services summary svg {
  height: 15px;
  transition: transform 0.2s ease;
  width: 15px;
}
.nav-services[open] summary svg,
.mobile-services[open] summary svg { transform: rotate(180deg); }
.services-mega {
  background: #FFFFFF;
  border: 1px solid rgba(0, 81, 156, 0.18);
  border-radius: 0.85rem;
  box-shadow: 0 18px 38px rgba(6, 27, 53, 0.16);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.25fr 1fr 1fr;
  left: -8rem;
  min-width: 43rem;
  padding: 1.35rem;
  position: absolute;
  top: calc(100% + 0.55rem);
  z-index: 300;
}
.services-mega-group {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.services-mega-title {
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.3rem;
  text-transform: uppercase;
}
.nav-links .services-mega a {
  border-radius: 0.35rem;
  color: var(--text-body);
  font-size: 0.84rem;
  line-height: 1.3;
  padding: 0.38rem 0.45rem;
}
.nav-links .services-mega a:hover {
  background: rgba(0, 81, 156, 0.08);
  color: var(--primary);
}
.nav-links .services-mega .services-mega-cta {
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
  margin-top: 0.5rem;
}
.nav-links .services-mega .services-mega-cta:hover {
  background: var(--primary-dark);
  color: #FFFFFF;
}
.mobile-services {
  border-bottom: 1px solid var(--border-light);
}
.mobile-services summary {
  color: var(--text-heading);
  font-size: 1rem;
  justify-content: space-between;
  padding: 0.85rem 0.5rem;
}
.mobile-service-links {
  background: rgba(0, 81, 156, 0.045);
  border-radius: 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0.3rem 0.75rem;
  padding: 0.45rem;
}
.mobile-menu-links .mobile-service-links a {
  border: 0;
  color: var(--text-body);
  font-size: 0.84rem;
  line-height: 1.3;
  padding: 0.65rem 0.55rem;
}
.mobile-menu-links .mobile-service-links a:hover { color: var(--primary); }
@media (max-width: 480px) {
  .mobile-service-links { grid-template-columns: 1fr; }
}
