/* ===========================
   SDJ LOGISTICS — style.css
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #005294;
  --teal:       #44a9bb;
  --dark:       #37393b;
  --mid-grey:   #474747;
  --light-grey: #f4f6f8;
  --white:      #ffffff;
  --text:       #222222;
  --font:       'Open Sans', Helvetica, Arial, Lucida, sans-serif;
  --max-w:      1200px;
  --radius:     4px;
  --shadow:     0 2px 16px rgba(0,0,0,0.10);
  --trans:      0.2s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); font-size: 16px; line-height: 1.65; }

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

address { font-style: normal; line-height: 1.8; }

h1, h2, h3, h4, h5 { font-family: var(--font); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); color: var(--blue); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; color: var(--blue); margin-bottom: 0.5rem; }
h4 { font-size: 1rem; color: var(--blue); margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

/* CONTAINER */
.container { width: 90%; max-width: var(--max-w); margin: 0 auto; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 11px 28px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-teal { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-teal:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ============================================================
   HEADER
   ============================================================ */
#main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 0;
  gap: 1rem;
}
#sdj-logo { height: 56px; width: auto; display: block; object-fit: contain; }

/* NAV */
#main-nav ul { list-style: none; display: flex; gap: 0; align-items: center; }
#main-nav ul li { position: relative; }
#main-nav ul li a {
  display: block;
  padding: 14px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--dark);
  transition: color var(--trans);
}
#main-nav ul li a:hover { color: var(--blue); }
.nav-quote-btn {
  background: var(--blue) !important;
  color: var(--white) !important;
  border-radius: var(--radius);
  margin-left: 6px;
}
.nav-quote-btn:hover { background: var(--teal) !important; color: var(--white) !important; }

/* Dropdown */
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 180px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue);
  flex-direction: column;
  z-index: 200;
}
.has-dropdown:hover .dropdown { display: flex; }
.dropdown li a { padding: 10px 18px; font-size: 0.8rem; white-space: nowrap; }
.dropdown li a:hover { background: var(--light-grey); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--trans); }

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
  background: url('images/aboutus.jpg') center center / cover no-repeat;
  padding: 52px 0 42px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 70, 0.68);
  z-index: 0;
}
.page-banner.transport { background-image: url('images/transport_services.jpg'); }
.page-banner.storage   { background-image: url('images/services_storage.jpg'); }
.page-banner.careers   { background-image: url('images/careers_banner.jpg'); }
.page-banner.contact   { background-image: url('images/contactus.jpg'); }
.page-banner.quote     { background-image: url('images/quote.jpg'); }
.page-banner::after {
  display: none;
}
.page-banner .container { position: relative; z-index: 1; }

/* Client logos */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 1.5rem;
}
.client-logos img {
  max-height: 60px;
  width: auto;
  opacity: 0.8;
  filter: grayscale(20%);
  transition: opacity var(--trans);
}
.client-logos img:hover { opacity: 1; filter: none; }
.page-banner p.banner-sub {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  margin-bottom: 8px;
}
.page-banner h1 { color: var(--white); font-size: clamp(1.5rem, 2.5vw, 2.4rem); }

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: url('images/home.jpg') center center / cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 50, 0.52);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 0;
}
.hero-tagline {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teal);
  margin-bottom: 16px;
}
.hero-content h1 {
  color: var(--white);
  max-width: 640px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  margin-bottom: 32px;
  line-height: 1.3;
}
.hero-content .btn { margin-right: 12px; }

/* ============================================================
   INTRO SECTION
   ============================================================ */
.section-intro {
  padding: 72px 0;
  background: var(--white);
}
.intro-text { font-size: 1.05rem; max-width: 820px; margin-bottom: 1.25rem; color: #333; }
.cta-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--light-grey);
  border-left: 4px solid var(--blue);
  padding: 20px 28px;
  border-radius: var(--radius);
  margin-top: 2rem;
  flex-wrap: wrap;
}
.cta-banner span { font-size: 1.05rem; font-weight: 600; color: var(--blue); }

/* ============================================================
   SERVICES CARDS
   ============================================================ */
.section-services {
  padding: 72px 0;
  background: var(--light-grey);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
  display: flex;
  flex-direction: column;
  color: var(--text);
  border-top: 4px solid var(--blue);
  overflow: hidden;
}
.service-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card h3,
.service-card p,
.service-icon,
.card-link { padding-left: 24px; padding-right: 24px; }
.service-card h3 { padding-top: 20px; }
.service-card p { padding-top: 4px; }
.card-link { padding-bottom: 20px; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.13); color: var(--text); }
.service-icon { width: 56px; height: 56px; margin-bottom: 20px; }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; color: #555; flex: 1; }
.card-link { font-size: 0.82rem; font-weight: 700; color: var(--teal); margin-top: 16px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ============================================================
   MAINTENANCE / STATS
   ============================================================ */
.section-maintenance {
  padding: 72px 0;
  background: var(--white);
}
.maintenance-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}
.maintenance-text h2 { margin-bottom: 1.25rem; }
.maintenance-text p { font-size: 0.95rem; color: #444; }
.maintenance-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-box {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num { font-size: 1.8rem; font-weight: 800; line-height: 1; color: var(--white); }
.stat-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.75); }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.section-testimonial {
  padding: 72px 0;
  background: var(--blue);
}
.section-testimonial blockquote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.section-testimonial blockquote p {
  font-size: 1.15rem;
  color: var(--white);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  position: relative;
}
.section-testimonial blockquote p::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--teal);
  line-height: 0;
  vertical-align: -1.5rem;
  margin-right: 4px;
}
.section-testimonial cite { color: var(--teal); font-size: 0.9rem; font-weight: 600; font-style: normal; }

/* ============================================================
   SECTORS
   ============================================================ */
.section-sectors {
  padding: 72px 0;
  background: var(--light-grey);
  text-align: center;
}
.section-sectors > .container > p { color: #555; margin-bottom: 2rem; }
.sectors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 1.5rem;
}
.sector-item {
  background: var(--blue);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ============================================================
   CONTENT PAGES (about, transport, storage etc.)
   ============================================================ */
.section-content { padding: 72px 0; background: var(--white); }
.content-two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}
.content-main h2 { margin-bottom: 1rem; }
.content-main h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.content-main ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.content-main ul li { margin-bottom: 0.4rem; font-size: 0.95rem; }
.content-aside { background: var(--light-grey); border-radius: var(--radius); padding: 28px; border-top: 4px solid var(--teal); }
.content-aside h4 { color: var(--blue); margin-bottom: 0.75rem; }
.content-aside p, .content-aside address { font-size: 0.9rem; color: #444; line-height: 1.8; }
.content-aside address a { color: var(--blue); }
.content-aside .aside-cta { margin-top: 1.5rem; }

.info-box {
  background: var(--light-grey);
  border-left: 4px solid var(--blue);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.info-box h4 { margin-bottom: 0.5rem; }

/* CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 2rem;
}
.depot-card {
  background: var(--light-grey);
  border-radius: var(--radius);
  padding: 28px;
  border-top: 4px solid var(--blue);
}
.depot-card.secondary { border-top-color: var(--teal); }
.depot-card h3 { font-size: 1rem; margin-bottom: 1rem; }
.depot-card address { font-size: 0.9rem; line-height: 2; }
.depot-card address a { color: var(--blue); }
.receiving-depots { margin-top: 2rem; }
.receiving-depots h2 { margin-bottom: 1.25rem; }
.receiving-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.receiving-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 20px 24px;
}
.receiving-card h4 { margin-bottom: 0.5rem; }
.receiving-card address { font-size: 0.88rem; color: #555; }

/* CONTACT FORM */
.contact-form-section { padding: 64px 0; background: var(--light-grey); }
.contact-form-section h2 { margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--dark); text-transform: uppercase; letter-spacing: 0.3px; }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  background: var(--white);
  width: 100%;
  transition: border-color var(--trans);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 100px; max-height: 200px; }
.form-submit { margin-top: 8px; }
.form-submit .btn { min-width: 160px; }

/* CAREERS FORM */
.careers-note {
  background: var(--light-grey);
  border-left: 4px solid var(--teal);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* QUOTE FORM */
.quote-intro {
  background: var(--light-grey);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 2rem;
  border-top: 4px solid var(--teal);
}
.quote-intro p { margin-bottom: 0.5rem; font-size: 0.95rem; }

/* ============================================================
   FOOTER
   ============================================================ */
#main-footer { background: var(--mid-grey); }
.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 52px 0 40px;
}
.footer-col h4 { color: var(--teal); font-size: 0.9rem; margin-bottom: 0.75rem; }
.footer-col address, .footer-col p { font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.9; }
.footer-col address a { color: rgba(255,255,255,0.75); }
.footer-col address a:hover, .footer-col ul li a:hover { color: var(--teal); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.footer-bottom {
  background: #333;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom span { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.pplx-credit { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.pplx-credit:hover { color: var(--teal); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .maintenance-grid { grid-template-columns: 1fr; }
  .maintenance-aside { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .content-two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 999;
  }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; padding: 8px 0; }
  #main-nav ul li a { padding: 12px 20px; font-size: 0.9rem; }
  .has-dropdown .dropdown { position: static; box-shadow: none; border-top: none; padding-left: 20px; display: block; }
  .nav-quote-btn { margin: 8px 20px; display: inline-block; }
  .services-grid { grid-template-columns: 1fr; }
  .maintenance-aside { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .receiving-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .maintenance-aside { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}
