/*
Theme Name: AWS Global Freight Malawi
Theme URI: https://awsmalawi.com
Author: Allen Wack & Shepherd Global Freight
Author URI: https://awsmalawi.com
Description: Official WordPress theme for Allen Wack & Shepherd Global Freight Malawi
Version: 7.0.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: aws-global-freight
*/

/* ===================== TOKENS ===================== */
:root {
  --red:        #d63638;
  --dark:       #111827;
  --dark-nav:   #0f1623;
  --white:      #ffffff;
  --gray-900:   #111827;
  --gray-700:   #374151;
  --gray-600:   #4b5563;
  --gray-500:   #6b7280;
  --gray-400:   #9ca3af;
  --gray-200:   #e5e7eb;
  --gray-100:   #f3f4f6;
  --gray-50:    #f9fafb;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.14);

  --text-xs:    12px;
  --text-sm:    14px;
  --text-base:  16px;
  --text-lg:    18px;
  --text-xl:    20px;
  --text-2xl:   24px;
  --text-3xl:   30px;
  --text-4xl:   36px;
  --text-5xl:   48px;
  --text-6xl:   60px;
  --text-7xl:   72px;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-bold:    700;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: var(--text-base);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  padding-top: 68px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }
.no-scroll { overflow: hidden; }

/* ===================== LAYOUT ===================== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===================== TYPOGRAPHY ===================== */
.tag-label {
  display: inline-block; font-size: var(--text-xs); font-weight: var(--fw-bold);
  letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.section-title { font-size: var(--text-4xl); font-weight: var(--fw-bold); color: var(--gray-900); line-height: 1.2; margin-bottom: 20px; }
.accent { color: var(--red); }

/* ===================== HEADER ===================== */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 68px; background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  overflow: visible;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px; overflow: visible;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; height: 68px; overflow: hidden; }
.header-logo-img { height: 40px; width: auto; object-fit: contain; display: block; max-height: 40px; }

/* ── Desktop nav ── */
.primary-nav {
  display: flex; align-items: center; gap: 2px;
}
.primary-nav > a {
  padding: 8px 13px; font-size: var(--text-sm); font-weight: var(--fw-medium);
  color: var(--gray-700); border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.primary-nav > a:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-track-link { display: inline-flex; align-items: center; gap: 5px; }

/* Services dropdown wrapper */
.nav-services { position: relative; }
.nav-services-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; font-size: var(--text-sm); font-weight: var(--fw-medium);
  color: var(--gray-700); border-radius: var(--radius-sm); background: none; border: none;
  cursor: pointer; white-space: nowrap; transition: color 0.15s, background 0.15s;
}
.nav-services-btn:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-chevron { transition: transform 0.2s; }
.nav-services:hover .nav-chevron, .services-dropdown.dropdown-open ~ * .nav-chevron { transform: rotate(180deg); }

.services-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 8px; min-width: 260px;
  box-shadow: var(--shadow-lg); z-index: 200;
}
.nav-services:hover .services-dropdown,
.services-dropdown.dropdown-open { display: block; }
.services-dropdown a {
  display: block; padding: 10px 14px; font-size: var(--text-sm);
  color: var(--gray-700); border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.services-dropdown a:hover { background: var(--gray-100); color: var(--gray-900); }

/* CTA button in nav */
.header-cta {
  display: inline-flex; align-items: center; margin-left: 8px;
  padding: 10px 20px; background: var(--red); color: var(--white) !important;
  border-radius: 50px; font-size: var(--text-sm); font-weight: var(--fw-bold);
  transition: background 0.2s, transform 0.2s;
}
.header-cta:hover { background: #b52d2f; transform: translateY(-1px); }

/* ── Hamburger button ── */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; flex-shrink: 0;
  transition: background 0.15s;
}
.nav-toggle:hover { background: var(--gray-100); }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--gray-900);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
/* Animated X when active */
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Close button inside drawer ── */
.nav-close {
  display: none; position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; background: var(--gray-100); border: none;
  border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--gray-700);
  align-items: center; justify-content: center; transition: background 0.15s;
}
.nav-close:hover { background: var(--gray-200); }

/* ── Overlay behind drawer ── */
.nav-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 998; backdrop-filter: blur(2px);
}
.nav-overlay.overlay-visible { display: block; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-size: var(--text-base);
  font-weight: var(--fw-bold); cursor: pointer; border: none;
  transition: all 0.2s; text-decoration: none;
}
.btn-red  { background: var(--red); color: var(--white); }
.btn-red:hover  { background: #b52d2f; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(214,54,56,0.35); }
.btn-dark { background: rgba(255,255,255,0.12); color: var(--white); border: 1.5px solid rgba(255,255,255,0.25); }
.btn-dark:hover { background: rgba(255,255,255,0.22); }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: calc(100vh - 68px);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 80px 0 120px; max-width: 680px; }
.hero-badge {
  display: inline-block; background: var(--red); color: var(--white);
  font-size: var(--text-xs); font-weight: var(--fw-bold); letter-spacing: 2px;
  text-transform: uppercase; padding: 6px 14px; border-radius: 4px; margin-bottom: 24px;
}
.hero-title {
  font-size: var(--text-5xl); font-weight: var(--fw-bold); color: var(--white);
  line-height: 1.1; margin-bottom: 20px;
}
.hero-subtitle {
  font-size: var(--text-lg); color: rgba(255,255,255,0.8);
  line-height: 1.7; margin-bottom: 36px; max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); }
.hero-stats-inner { display: flex; gap: 32px; padding: 18px 0; flex-wrap: wrap; }
.hero-stat { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.9); font-size: var(--text-sm); font-weight: var(--fw-medium); }

/* ===================== WHO WE ARE ===================== */
.who-we-are { padding: 80px 0; }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.who-image-wrap { position: relative; }
.who-image-wrap img { width: 100%; height: 440px; object-fit: cover; border-radius: 16px; }
.who-badge-overlay {
  position: absolute; bottom: -20px; right: 24px;
  background: var(--red); color: var(--white); padding: 18px 24px;
  border-radius: 12px; text-align: center;
}
.who-badge-overlay .num  { font-size: 28px; font-weight: var(--fw-bold); line-height: 1; }
.who-badge-overlay .label{ font-size: var(--text-xs); font-weight: var(--fw-medium); opacity: 0.9; }
.who-content { padding-left: 16px; }
.who-content p { color: var(--gray-600); line-height: 1.8; margin-bottom: 16px; }
.who-link { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: var(--fw-bold); font-size: var(--text-sm); margin-top: 8px; }

/* ===================== OPERATIONS ===================== */
.operations-section { padding: 80px 0; background: var(--dark-nav); }
.operations-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 24px; flex-wrap: wrap; }
.operations-title { font-size: var(--text-4xl); font-weight: var(--fw-bold); color: var(--white); line-height: 1.2; margin-top: 8px; }
.operations-link { color: rgba(255,255,255,0.6); font-size: var(--text-sm); font-weight: var(--fw-medium); white-space: nowrap; transition: color 0.2s; }
.operations-link:hover { color: var(--white); }
.operations-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ops-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.ops-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.ops-card img { width: 100%; height: 100%; object-fit: cover; }
.ops-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%); }
.ops-card-label { position: absolute; bottom: 16px; left: 16px; color: var(--white); font-weight: var(--fw-bold); font-size: var(--text-base); }

/* ===================== SERVICE CARDS ===================== */
.service-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(214,54,56,0.12); border-color: var(--red); }
.service-card h3 { font-size: var(--text-xl); font-weight: var(--fw-bold); color: var(--gray-900); margin-bottom: 10px; }
.service-card p  { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.7; }
.service-icon {
  width: 48px; height: 48px; background: var(--red); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}

/* ===================== PAGE HERO ===================== */
.page-hero {
  position: relative; min-height: 320px; display: flex; align-items: flex-end;
  overflow: hidden; padding-top: 0;
}
.page-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.75));
}
.page-hero-content {
  position: relative; z-index: 2; padding: 60px 0 52px;
}
.page-hero-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--red); font-size: var(--text-sm); font-weight: var(--fw-bold);
  margin-bottom: 20px; transition: gap 0.2s;
}
.page-hero-back:hover { gap: 10px; }
.page-hero-icon {
  width: 56px; height: 56px; background: var(--red); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.page-hero-title    { font-size: var(--text-5xl); font-weight: var(--fw-bold); color: var(--white); line-height: 1.15; margin-bottom: 12px; }
.page-hero-subtitle { font-size: var(--text-lg); color: rgba(255,255,255,0.8); max-width: 580px; line-height: 1.7; }

/* ===================== ABOUT PAGE ===================== */
.about-content-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-bottom: 0; }
.about-text p { color: var(--gray-600); line-height: 1.8; margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card {
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 24px; text-align: center;
}
.stat-card .num   { font-size: var(--text-4xl); font-weight: var(--fw-bold); color: var(--red); line-height: 1; margin-bottom: 6px; }
.stat-card .label { font-size: var(--text-sm); color: var(--gray-500); font-weight: var(--fw-medium); }

/* Mission / Vision */
.mission-vision { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { border-radius: 20px; padding: 40px; cursor: default; transition: transform 0.25s, box-shadow 0.25s; }
.mv-card.dark  { background: var(--gray-900); }
.mv-card.light { background: var(--gray-50); border: 1px solid var(--gray-200); }
.mv-card.dark:hover  { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(0,0,0,0.35); }
.mv-card.light:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(0,0,0,0.1); }
.mv-icon {
  width: 52px; height: 52px; background: var(--red); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.mv-card h3 { font-size: var(--text-2xl); font-weight: var(--fw-bold); margin-bottom: 16px; }
.mv-card.dark h3, .mv-card.dark p { color: var(--white); }
.mv-card.light h3 { color: var(--gray-900); }
.mv-card.light p  { color: var(--gray-600); }
.mv-card p { font-size: var(--text-base); line-height: 1.8; }

/* Core values */
.core-values { padding: 80px 0; background: var(--gray-50); }
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.value-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; cursor: default;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.value-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(214,54,56,0.1); border-color: var(--red); }
.value-icon {
  width: 56px; height: 56px; background: #fde8e8; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  transition: background 0.25s;
}
.value-card:hover .value-icon { background: #ffd9d9; }
.value-card h4 { font-size: var(--text-base); font-weight: var(--fw-bold); color: var(--gray-900); }

/* Commitment to quality */
.quality-section { padding: 80px 0; background: var(--gray-50); }
.quality-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 48px; max-width: 900px; margin: 0 auto; border-left: 4px solid var(--red);
  transition: box-shadow 0.25s;
}
.quality-card:hover { box-shadow: 0 12px 40px rgba(214,54,56,0.08); }
.quality-card p { font-size: var(--text-base); color: var(--gray-600); line-height: 1.85; margin-bottom: 16px; }
.quality-card p:last-child { margin-bottom: 0; }

/* ===================== SERVICE DETAIL ===================== */
.service-detail-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 48px;
  padding: 60px 0;
}
.service-overview h2, .service-faq h2 { font-size: var(--text-3xl); font-weight: var(--fw-bold); color: var(--gray-900); margin-bottom: 16px; }
.service-overview p { color: var(--gray-600); line-height: 1.8; margin-bottom: 28px; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.feature-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--gray-50); border-radius: var(--radius-sm); font-size: var(--text-sm);
  font-weight: var(--fw-medium); color: var(--gray-700);
  transition: background 0.2s, transform 0.2s;
}
.feature-item:hover { background: #fff0f0; transform: translateX(4px); }
.feature-item-icon { display: flex; flex-shrink: 0; }
.service-faq { margin-top: 48px; }
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 20px 0; }
.faq-item h4 { font-size: var(--text-base); font-weight: var(--fw-bold); color: var(--gray-900); margin-bottom: 8px; }
.faq-item p  { font-size: var(--text-sm); color: var(--gray-600); line-height: 1.7; }

/* Quote sidebar */
.quote-sidebar { position: sticky; top: 88px; }
.quote-card {
  background: var(--dark); border-radius: 20px; padding: 32px;
  color: var(--white);
}
.quote-card h3 { font-size: var(--text-2xl); font-weight: var(--fw-bold); margin-bottom: 12px; }
.quote-card p  { font-size: var(--text-sm); color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 24px; }
.other-services { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.other-services-label { font-size: var(--text-xs); font-weight: var(--fw-bold); letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.other-services a { display: block; padding: 8px 0; font-size: var(--text-sm); color: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.08); transition: color 0.2s; }
.other-services a:hover { color: var(--white); }

/* ===================== CONTACT ===================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 60px 0; }
.contact-info h2 { font-size: var(--text-2xl); font-weight: var(--fw-bold); color: var(--gray-900); margin-bottom: 24px; }
.contact-location, .comm-item { display: flex; gap: 16px; margin-bottom: 20px; }
.contact-location-icon, .comm-icon {
  width: 36px; height: 36px; background: #fde8e8; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.contact-location h4, .comm-item h4 { font-size: var(--text-sm); font-weight: var(--fw-bold); color: var(--gray-900); margin-bottom: 4px; }
.contact-location p, .comm-item p { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.6; }
.comm-section { margin-top: 32px; }
.comm-section h2 { font-size: var(--text-2xl); font-weight: var(--fw-bold); color: var(--gray-900); margin-bottom: 20px; }
.hours-card { background: var(--gray-50); border-radius: var(--radius); padding: 16px 20px; margin-top: 24px; }
.hours-card h4 { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); font-weight: var(--fw-bold); color: var(--gray-900); margin-bottom: 8px; }
.hours-card p { font-size: var(--text-sm); color: var(--gray-600); line-height: 1.7; }
.contact-form-wrap h2 { font-size: var(--text-2xl); font-weight: var(--fw-bold); color: var(--gray-900); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: var(--text-xs); font-weight: var(--fw-bold); letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray-400); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 14px; background: var(--gray-100); border: 1.5px solid transparent;
  border-radius: var(--radius-sm); font-size: var(--text-sm); font-family: inherit; color: var(--gray-900);
  transition: border-color 0.2s, background 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--red); background: var(--white); }
.form-submit {
  width: 100%; padding: 15px; background: var(--red); color: var(--white); border: none;
  border-radius: var(--radius-sm); font-size: var(--text-base); font-weight: var(--fw-bold);
  cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.form-submit:hover { background: #b52d2f; transform: translateY(-1px); }

/* ===================== LOCATIONS ===================== */
.location-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px; transition: all 0.2s; }
.location-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-3px); }
.location-tag { display: inline-block; background: var(--red); color: var(--white); font-size: var(--text-xs); font-weight: var(--fw-bold); padding: 3px 10px; border-radius: 20px; margin-bottom: 12px; }
.get-directions-btn {
  display: block; text-align: center; padding: 13px; background: var(--white);
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-weight: var(--fw-bold); font-size: var(--text-sm); color: var(--gray-900);
  transition: all 0.2s ease;
}
.get-directions-btn:hover {
  background: var(--red); color: var(--white); border-color: var(--red);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(214,54,56,0.3);
}

/* ===================== QUOTE MODAL ===================== */
.modal-backdrop {
  display: flex; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 9999;
  align-items: center; justify-content: center;
  padding: 20px;
  /* Hide using visibility so WP cannot override with display:block */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}
.modal-backdrop.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--white); border-radius: 16px; padding: 40px;
  width: 100%; max-width: 560px; position: relative;
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: var(--gray-100);
  border: none; width: 32px; height: 32px; border-radius: 50%;
  font-size: 18px; cursor: pointer; color: var(--gray-600); display: flex;
  align-items: center; justify-content: center; transition: background 0.15s;
}
.modal-close:hover { background: var(--gray-200); }
.modal-title { font-size: var(--text-2xl); font-weight: var(--fw-bold); margin-bottom: 6px; }
.modal-subtitle { font-size: var(--text-sm); color: var(--gray-500); margin-bottom: 28px; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.modal-field { margin-bottom: 0; }
.modal-field label { display: block; font-size: 11px; font-weight: var(--fw-bold); letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray-400); margin-bottom: 8px; }
.modal-field input, .modal-field select, .modal-field textarea {
  width: 100%; padding: 13px 14px; background: var(--gray-100); border: 1.5px solid transparent;
  border-radius: var(--radius-sm); font-size: var(--text-sm); font-family: inherit; outline: none;
  transition: border-color 0.2s; color: var(--gray-900);
}
.modal-field { margin-bottom: 16px; }
.modal-field input:focus, .modal-field select:focus, .modal-field textarea:focus { border-color: var(--red); background: var(--white); }
.modal-submit {
  width: 100%; padding: 16px; background: var(--red); color: var(--white); border: none;
  border-radius: var(--radius-sm); font-size: var(--text-base); font-weight: var(--fw-bold);
  cursor: pointer; transition: background 0.2s;
}
.modal-submit:hover { background: #b52d2f; }
.modal-success { text-align: center; color: #166534; background: #f0fdf4; padding: 20px; border-radius: var(--radius-sm); font-weight: var(--fw-bold); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--dark-nav); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: var(--text-sm); line-height: 1.8; max-width: 280px; margin-top: 16px; }
.footer-col h4 { font-size: var(--text-xs); font-weight: var(--fw-bold); letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-col a  { display: block; font-size: var(--text-sm); color: rgba(255,255,255,0.6); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-style: normal; font-size: var(--text-sm); color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer-col address p { display: flex; gap: 8px; margin-bottom: 10px; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-xs); color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-legal a:hover { color: var(--white); }

/* ===================== DESKTOP SCALE UP ===================== */
@media (min-width: 1024px) {
  .hero-title { font-size: var(--text-7xl); }
  .page-hero-title { font-size: var(--text-6xl); }
}

/* ===================== TABLET (≤1024px) ===================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .values-grid { grid-template-columns: repeat(2,1fr); }
  .service-detail-layout { grid-template-columns: 1fr; }
  .quote-sidebar { position: static; }
}

/* ===================== MOBILE NAV (≤900px) ===================== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    /* Slide-in drawer */
    position: fixed;
    top: 0; right: -320px; /* hidden off-screen */
    width: 300px; height: 100vh;
    background: var(--white);
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    padding: 72px 24px 40px;
    gap: 0;
    box-shadow: -4px 0 40px rgba(0,0,0,0.18);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .primary-nav.nav-open { right: 0; }

  .nav-close { display: flex; }

  .primary-nav > a {
    display: block; padding: 15px 0;
    font-size: 16px; font-weight: 600; color: var(--gray-800);
    border-bottom: 1px solid var(--gray-100); border-radius: 0;
    width: 100%;
  }
  .primary-nav > a:hover { background: none; color: var(--red); }
  .nav-track-link { display: flex; }

  .nav-services { width: 100%; }
  .nav-services-btn {
    display: flex; width: 100%; padding: 15px 0;
    font-size: 16px; font-weight: 600; color: var(--gray-800);
    border-bottom: 1px solid var(--gray-100); border-radius: 0;
    justify-content: space-between;
  }

  .services-dropdown {
    display: none !important; /* hide by default on mobile */
    position: static; box-shadow: none; border: none;
    background: var(--gray-50); border-radius: var(--radius-sm);
    margin: 4px 0 8px; padding: 4px 0; min-width: unset;
  }
  .services-dropdown.dropdown-open {
    display: block !important; /* show when toggled */
  }
  .services-dropdown a {
    padding: 12px 16px; font-size: 15px; border-bottom: 1px solid var(--gray-100);
  }
  /* Override hover-based desktop dropdown */
  .nav-services:hover .services-dropdown:not(.dropdown-open) { display: none !important; }

  .header-cta {
    display: block !important; text-align: center; width: 100%;
    margin-top: 20px; border-radius: var(--radius-sm) !important;
    padding: 15px !important;
  }
}

/* ===================== MOBILE (≤768px) ===================== */
@media (max-width: 768px) {
  body { padding-top: 68px; }

  .hero { min-height: 100svh; }
  .hero-title { font-size: 40px; }
  .hero-content { padding: 60px 0 100px; }
  .hero-subtitle { font-size: var(--text-base); }

  .who-grid { grid-template-columns: 1fr; gap: 40px; }
  .who-image-wrap img { height: 300px; }
  .who-content { padding-left: 0; }

  .operations-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .operations-title { font-size: var(--text-3xl); }
  .operations-grid { grid-template-columns: 1fr 1fr; }

  .page-hero { min-height: 280px; }
  .page-hero-title { font-size: var(--text-4xl); }
  .page-hero-subtitle { font-size: var(--text-base); }

  .about-content-wrap { grid-template-columns: 1fr; gap: 40px; }
  .mission-vision { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }

  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .service-detail-layout { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .quote-sidebar { position: static; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
  .footer-legal { justify-content: center; }

  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-stats-inner { gap: 14px; }

  .quality-card { padding: 28px; }
  .mv-card { padding: 28px; }
}

/* ===================== SMALL MOBILE (≤480px) ===================== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 32px; }
  .page-hero-title { font-size: 28px; }
  .section-title { font-size: var(--text-3xl); }
  .values-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .operations-grid { grid-template-columns: 1fr; }
  .modal-row { grid-template-columns: 1fr; }
  .modal-box { padding: 24px; }
  .hero-stats-inner { flex-direction: column; gap: 10px; }
}
