/* ============================================================
   Ever Concord Logistics — clean rebuild stylesheet
   ============================================================ */

/* Reset + base */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --navy: #0b2545;
  --navy-soft: #13315c;
  --blue: #1976d2;
  --blue-bright: #2196f3;
  --sky: #e3f2fd;
  --grey-50: #f7f9fc;
  --grey-100: #eef2f7;
  --grey-200: #dde3ec;
  --grey-400: #8a94a6;
  --grey-700: #424b5a;
  --text: #1a2233;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 4px 16px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 37, 69, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1200px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey-700); }

p { margin: 0 0 1em; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--grey-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo img { height: 96px; width: auto; }
.logo-text {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--grey-700);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  font-size: 0.97rem;
}
.nav a:hover, .nav a.active { background: var(--grey-100); color: var(--navy); }

.nav .btn { margin-left: 8px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--grey-200);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at top right, var(--sky) 0%, transparent 60%),
    linear-gradient(180deg, var(--grey-50) 0%, var(--white) 100%);
  padding: 48px 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 { margin-bottom: 12px; }
.hero .lead {
  font-size: 1.05rem;
  color: var(--grey-700);
  margin-bottom: 20px;
  max-width: 580px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--grey-100);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  padding: 28px 0;
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 36px;
  text-align: center;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  width: 160px;
  padding: 0 8px;
  flex: 0 0 auto;
}
.trust-item img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.05);
  opacity: 0.95;
  transition: opacity 0.2s, filter 0.2s;
}
.trust-item:hover img {
  opacity: 1;
  filter: grayscale(0);
}
.trust-caption {
  text-align: center;
  margin-top: 16px;
  color: var(--grey-700);
  font-style: italic;
  font-size: 0.95rem;
}

/* ---------- Sections ---------- */
section { padding: 48px 0; }
section.alt { background: var(--grey-50); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}
.section-head .eyebrow { margin-bottom: 12px; }
.section-head p { font-size: 1.1rem; color: var(--grey-700); }

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card .photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--grey-100);
}
.service-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.service-card:hover .photo img { transform: scale(1.04); }
.service-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.95rem; color: var(--grey-700); flex: 1; margin-bottom: 12px; }
.service-card .arrow {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- About snippet (homepage) ---------- */
.about-snippet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.about-snippet img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-snippet h2 { margin-bottom: 16px; }
.about-snippet p { color: var(--grey-700); font-size: 1.05rem; }
@media (max-width: 900px) {
  .about-snippet { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--grey-200);
}
.why-card .num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}
.why-card h3 { margin-bottom: 12px; }
.why-card p { color: var(--grey-700); font-size: 0.97rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 44px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; max-width: 620px; margin: 0 auto 28px; }
.cta-band .btn-primary { background: var(--white); color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--sky); color: var(--navy); }
.cta-band .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: var(--white); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 40px 0 32px;
  background:
    radial-gradient(ellipse at top right, var(--sky) 0%, transparent 60%),
    linear-gradient(180deg, var(--grey-50) 0%, var(--white) 100%);
  text-align: center;
}
.page-header h1 { margin-bottom: 10px; }
.page-header p { font-size: 1.05rem; color: var(--grey-700); max-width: 720px; margin: 0 auto; }

/* ---------- Inline credentials strip (used on service & About pages) ---------- */
.cred-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 16px 20px;
  margin: 12px 0 24px;
  background: var(--grey-50);
  border-radius: var(--radius);
  border: 1px solid var(--grey-200);
}
.cred-strip img {
  height: 48px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}
.cred-strip img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* ---------- Prose blocks ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ---------- Office cards ---------- */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.office-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.office-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.office-card .photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--grey-100);
}
.office-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.office-card:hover .photo img { transform: scale(1.04); }
.office-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.office-card h3 { margin-bottom: 8px; color: var(--navy); }
.office-card address {
  font-style: normal;
  color: var(--grey-700);
  font-size: 0.97rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.office-card .phone {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--grey-200);
}
.office-card .phone a {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.office-card .phone a::before {
  content: "\260E";
  color: var(--blue);
  font-size: 1.2rem;
}
.office-card .phone a:hover { color: var(--blue); }

.office-card .office-email {
  margin: 8px 0 0;
}
.office-card .office-email a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
}
.office-card .office-email a::before {
  content: "\2709";
  color: var(--blue);
  font-size: 1.05rem;
}
.office-card .office-email a:hover { color: var(--navy); }

/* ---------- Email-us card (replaces the old contact form) ---------- */
.email-card {
  max-width: 920px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.email-card .eyebrow { margin-bottom: 12px; }
.email-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
  word-break: break-word;
}
.email-card h2 a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.email-card h2 a:hover { color: var(--navy); border-color: var(--blue); }
.email-card-lead {
  color: var(--grey-700);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 24px;
}
.email-card-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  text-align: left;
  margin-bottom: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}
.email-card-cols h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-700);
  margin-bottom: 14px;
}
.email-card-cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.email-card-cols ul li {
  padding: 4px 0;
  color: var(--text);
}
.email-card-cols ul.phone-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-100);
}
.email-card-cols ul.phone-list li:last-child { border-bottom: 0; }
.email-card-cols ul.phone-list li > span { color: var(--grey-700); font-weight: 500; padding-top: 2px; }
.email-card-cols ul.phone-list .contact-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.email-card-cols ul.phone-list .contact-stack a:first-child {
  font-weight: 700;
  color: var(--navy);
}
.email-card-cols ul.phone-list .contact-stack a:nth-child(2) {
  font-size: 0.88rem;
  color: var(--blue);
}
.email-card-cols ul.phone-list a:hover { color: var(--blue); }
.email-card-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 36px 0 20px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.site-footer a { color: rgba(255, 255, 255, 0.75); display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--white); }
.footer-brand p { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; max-width: 320px; }
.footer-brand .logo img { filter: brightness(1.5); height: 80px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner,
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { gap: 20px 24px; }
  .trust-item { width: 140px; height: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .email-card { padding: 24px 20px; }
  .email-card-cols { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 36px 0; }
  .hero { padding: 36px 0 28px; }
  .page-header { padding: 32px 0 24px; }
  .logo img { height: 72px; }
  .footer-brand .logo img { height: 64px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    padding: 12px 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; }
  .header-inner { position: relative; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { gap: 16px 20px; }
  .trust-item { width: 120px; height: 60px; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
