/*
Theme Name: MAV Solutions
Theme URI: https://example.com/
Author: MAV Solutions
Description: A responsive WordPress theme for MAV Solutions, a Southern African bulk road transport and side-tipper logistics company.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: mav-solutions
*/

:root {
  --red: #d71920;
  --red-dark: #a90f15;
  --black: #111214;
  --charcoal: #202225;
  --grey: #6d7075;
  --light: #f4f5f6;
  --white: #ffffff;
  --border: #e3e4e6;
  --max: 1180px;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(0,0,0,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font-family: Arial, Helvetica, sans-serif; color:var(--black); background:#fff; line-height:1.6; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; height:auto; display:block; }
.container { width:min(var(--max), calc(100% - 40px)); margin:0 auto; }

.site-header { position:sticky; top:0; z-index:100; background:rgba(255,255,255,.97); border-bottom:1px solid var(--border); backdrop-filter:blur(10px); }
.header-inner { min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand img { width:160px; height:auto; }
.main-nav ul { display:flex; gap:28px; list-style:none; margin:0; padding:0; align-items:center; }
.main-nav a { font-weight:700; font-size:14px; text-transform:uppercase; letter-spacing:.05em; }
.main-nav a:hover { color:var(--red); }
.nav-cta { background:var(--red); color:#fff!important; padding:11px 18px; border-radius:999px; }
.nav-toggle { display:none; border:0; background:none; font-size:28px; cursor:pointer; }

.hero { position:relative; min-height:680px; display:flex; align-items:center; overflow:hidden; color:#fff; background:var(--black); }
.hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.65) 45%, rgba(0,0,0,.15) 100%); z-index:1; }
.hero-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; opacity:.85; }
.hero-content { position:relative; z-index:2; max-width:720px; padding:100px 0; }
.eyebrow { display:inline-flex; gap:10px; align-items:center; color:#fff; font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.12em; margin-bottom:18px; }
.eyebrow::before { content:""; width:38px; height:3px; background:var(--red); }
h1 { font-size:clamp(42px,6vw,76px); line-height:.98; margin:0 0 24px; letter-spacing:-.04em; }
.hero p { font-size:20px; max-width:650px; color:#f2f2f2; }
.buttons { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.btn { display:inline-flex; align-items:center; justify-content:center; padding:14px 22px; border-radius:999px; font-weight:800; border:2px solid transparent; }
.btn-primary { background:var(--red); color:#fff; }
.btn-primary:hover { background:var(--red-dark); }
.btn-outline { border-color:#fff; color:#fff; }
.btn-outline:hover { background:#fff; color:var(--black); }

.section { padding:88px 0; }
.section-dark { background:var(--charcoal); color:#fff; }
.section-light { background:var(--light); }
.section-head { max-width:760px; margin-bottom:44px; }
.section-head h2 { margin:0 0 12px; font-size:clamp(30px,4vw,48px); line-height:1.05; letter-spacing:-.03em; }
.section-head p { color:var(--grey); font-size:18px; }
.section-dark .section-head p { color:#c7c8ca; }
.red-line { width:54px; height:4px; background:var(--red); margin-bottom:18px; }

.stats { margin-top:-48px; position:relative; z-index:5; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); background:#fff; box-shadow:var(--shadow); border-radius:var(--radius); overflow:hidden; }
.stat { padding:30px; border-right:1px solid var(--border); }
.stat:last-child { border-right:0; }
.stat strong { display:block; font-size:27px; margin-bottom:4px; }
.stat span { color:var(--grey); font-size:14px; }

.cards { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:30px; box-shadow:0 8px 25px rgba(0,0,0,.04); }
.card h3 { margin:0 0 10px; font-size:21px; }
.card p { margin:0; color:var(--grey); }
.icon { width:48px; height:48px; display:grid; place-items:center; background:#fff1f1; color:var(--red); border-radius:12px; font-size:22px; font-weight:900; margin-bottom:18px; }

.commodity-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.commodity { min-height:180px; border-radius:var(--radius); padding:24px; background:#fff; border:1px solid var(--border); display:flex; flex-direction:column; justify-content:flex-end; box-shadow:0 8px 20px rgba(0,0,0,.04); }
.commodity strong { font-size:20px; }
.commodity span { color:var(--grey); font-size:13px; }

.split { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.split img { width:100%; border-radius:var(--radius); box-shadow:var(--shadow); }
.checks { list-style:none; padding:0; margin:25px 0 0; }
.checks li { margin:13px 0; padding-left:30px; position:relative; }
.checks li::before { content:"✓"; position:absolute; left:0; top:0; color:var(--red); font-weight:900; }

.cta { background:linear-gradient(120deg, var(--red), #a40e14); color:#fff; border-radius:var(--radius); padding:52px; display:flex; justify-content:space-between; align-items:center; gap:30px; }
.cta h2 { margin:0 0 8px; font-size:clamp(28px,4vw,44px); }
.cta p { margin:0; color:#ffe7e7; max-width:650px; }

.contact-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:50px; }
.contact-item { margin:0 0 22px; }
.contact-item small { display:block; color:var(--grey); text-transform:uppercase; font-weight:800; letter-spacing:.08em; }
.contact-item strong { font-size:18px; }
.contact-form { background:#fff; border:1px solid var(--border); padding:32px; border-radius:var(--radius); box-shadow:var(--shadow); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field { margin-bottom:16px; }
.field label { display:block; font-size:13px; font-weight:800; margin-bottom:7px; }
.field input, .field textarea { width:100%; border:1px solid #d7d9dc; border-radius:9px; padding:13px 14px; font:inherit; }
.field textarea { min-height:140px; resize:vertical; }
.notice { padding:14px 16px; border-radius:9px; background:#eef8ee; color:#275d27; margin-bottom:18px; }

.site-footer { background:#0e0f10; color:#fff; padding:55px 0 20px; }
.footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:50px; }
.footer-brand img { width:180px; filter:brightness(0) invert(1); margin-bottom:18px; }
.site-footer p, .site-footer a { color:#bfc1c4; }
.site-footer h3 { font-size:15px; text-transform:uppercase; letter-spacing:.08em; }
.footer-bottom { margin-top:45px; padding-top:18px; border-top:1px solid #303236; font-size:13px; color:#8f9195; display:flex; justify-content:space-between; gap:20px; }

.page-hero { padding:100px 0 70px; background:var(--charcoal); color:#fff; }
.page-hero h1 { font-size:clamp(42px,5vw,64px); }
.content-area { padding:70px 0; }

@media (max-width: 980px) {
  .main-nav { display:none; position:absolute; left:0; right:0; top:82px; background:#fff; border-bottom:1px solid var(--border); padding:20px; }
  .main-nav.open { display:block; }
  .main-nav ul { flex-direction:column; align-items:flex-start; }
  .nav-toggle { display:block; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .stat:nth-child(2) { border-right:0; }
  .commodity-grid { grid-template-columns:repeat(3,1fr); }
  .split, .contact-grid { grid-template-columns:1fr; }
  .cards { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width:min(var(--max), calc(100% - 28px)); }
  .section { padding:65px 0; }
  .hero { min-height:620px; }
  .hero-content { padding:80px 0; }
  .stats { margin-top:-30px; }
  .stats-grid, .cards, .commodity-grid, .form-row, .footer-grid { grid-template-columns:1fr; }
  .stat { border-right:0; border-bottom:1px solid var(--border); }
  .stat:last-child { border-bottom:0; }
  .commodity { min-height:140px; }
  .cta { padding:32px; flex-direction:column; align-items:flex-start; }
  .footer-bottom { flex-direction:column; }
}

/* Inner page styles */
.page-hero{padding:110px 0 75px;background:linear-gradient(120deg,#171717 0%,#2a2a2a 60%,#3a3a3a 100%);color:#fff;position:relative;overflow:hidden}.page-hero:after{content:"";position:absolute;right:-120px;top:-180px;width:520px;height:520px;border:90px solid rgba(226,25,34,.18);border-radius:50%}.page-hero .container{position:relative;z-index:1}.page-hero h1{max-width:850px;margin:12px 0 18px;font-size:clamp(40px,6vw,70px);line-height:1.02}.page-hero p{max-width:720px;font-size:19px;color:#ddd}.narrow{max-width:850px}.prose{font-size:18px;line-height:1.8}.spec-table{margin-top:28px;border-top:1px solid #ddd}.spec-table div{display:flex;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid #ddd}.spec-table span{color:#666}.spec-table strong{color:#171717}.team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.team-card{background:#fff;border:1px solid #e7e7e7;padding:30px 24px;box-shadow:0 12px 30px rgba(0,0,0,.05)}.team-avatar{width:64px;height:64px;border-radius:50%;background:#e21a22;color:#fff;display:grid;place-items:center;font-weight:800;font-size:18px;margin-bottom:18px}.team-card h3{margin:0 0 10px}.team-card p{color:#666;margin:0}.section-dark .team-card{background:#242424}.section-dark .team-card h3{color:#fff}.section-dark .team-card p{color:#bbb}@media(max-width:900px){.team-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.team-grid{grid-template-columns:1fr}.page-hero{padding:80px 0 55px}.spec-table div{font-size:14px}}
