/*
 Theme Name:   Amakhwezi Freight
 Theme URI:    https://amakhwezifreight.co.za
 Description:  Custom child theme for Amakhwezi Freight — South African freight & transport.
 Author:       Amakhwezi Group
 Author URI:   https://amakhwezi.com
 Template:     hostinger-ai-theme
 Version:      3.0.0
 Text Domain:  amakhwezi-freight
*/

/* ── Smooth Scroll ── */
html { scroll-behavior: smooth; }

/* ── Design Tokens ── */
:root {
  --amk-navy-deep: #0a0f1e;
  --amk-navy: #0d1b2a;
  --amk-navy-mid: #1b2d4a;
  --amk-blue: #2a4a7f;
  --amk-blue-light: #3a6fb5;
  --amk-freight: #4a8fd4;
  --amk-freight-light: #6ba8e2;
  --amk-freight-dark: #3a7bb8;
  --amk-warm-white: #f5f0e8;
  --amk-off-white: #faf8f4;
  --amk-grey-100: #f0ede6;
  --amk-grey-200: #e0dcd4;
  --amk-grey-300: #c5c0b6;
  --amk-grey-500: #8a8478;
  --amk-grey-700: #4a4640;
  --amk-grey-900: #1a1816;
  --amk-white: #ffffff;
  --amk-properties: #c8882a;
  --amk-foundation: #3a9a42;
  --amk-font-primary: 'DM Sans', sans-serif;
  --amk-font-editorial: 'Cormorant Garamond', serif;
  --amk-radius: 8px;
  --amk-radius-lg: 12px;
  --amk-radius-xl: 16px;
  --amk-shadow-sm: 0 1px 2px rgba(10,15,30,0.05);
  --amk-shadow-md: 0 4px 12px rgba(10,15,30,0.08);
  --amk-shadow-lg: 0 8px 24px rgba(10,15,30,0.12);
  --amk-transition: 250ms cubic-bezier(0.4,0,0.2,1);
}

/* ── Global Reset for Homepage ── */
.amk-homepage { margin: 0; padding: 0; background: var(--amk-warm-white); color: var(--amk-grey-900); font-family: var(--amk-font-primary); -webkit-font-smoothing: antialiased; }
.amk-homepage *, .amk-homepage *::before, .amk-homepage *::after { box-sizing: border-box; }
.amk-homepage img { max-width: 100%; height: auto; display: block; }

/* ── Navigation ── */
.amk-nav { position: sticky; top: 0; z-index: 1000; background: var(--amk-white); box-shadow: var(--amk-shadow-sm); }
.amk-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.amk-nav-logo { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.amk-wordmark { font-family: var(--amk-font-primary); font-weight: 300; font-size: 1.125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amk-navy-deep); }
.amk-wordmark span { font-weight: 500; color: var(--amk-freight); }
.amk-nav-links { display: flex; gap: 32px; align-items: center; list-style: none; margin: 0; padding: 0; }
.amk-nav-links a { font-weight: 500; font-size: 0.9375rem; color: var(--amk-grey-700); text-decoration: none; transition: color 150ms; }
.amk-nav-links a:hover { color: var(--amk-freight); }
.amk-nav-cta { background: var(--amk-navy-deep); color: var(--amk-white) !important; padding: 10px 24px; border-radius: var(--amk-radius); transition: all var(--amk-transition); }
.amk-nav-cta:hover { background: var(--amk-navy-mid); transform: translateY(-1px); box-shadow: var(--amk-shadow-md); }
.amk-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.amk-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--amk-navy-deep); border-radius: 2px; transition: all 200ms; }

/* ── Hero ── */
.amk-hero { background: var(--amk-navy-deep); padding: 100px 48px 80px; position: relative; overflow: hidden; }
.amk-hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 800px; height: 800px; background: radial-gradient(circle, rgba(74,143,212,0.08) 0%, transparent 70%); pointer-events: none; }
.amk-hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.amk-hero-text { position: relative; z-index: 1; }
.amk-label { font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--amk-freight); margin: 0 0 20px; }
.amk-hero h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 700; color: var(--amk-white); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; }
.amk-hero h1 em { font-style: normal; color: var(--amk-freight); }
.amk-hero-tagline { font-family: var(--amk-font-editorial); font-style: italic; font-size: 1.375rem; color: var(--amk-freight-light); margin: 0 0 16px; }
.amk-hero-desc { font-size: 1.0625rem; color: var(--amk-grey-300); line-height: 1.7; margin: 0 0 36px; max-width: 520px; }
.amk-hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.amk-hero-image { border-radius: var(--amk-radius-xl); overflow: hidden; }
.amk-hero-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ── Buttons ── */
.amk-btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--amk-freight); color: var(--amk-white); padding: 14px 32px; border-radius: var(--amk-radius); font-family: var(--amk-font-primary); font-weight: 500; font-size: 1rem; text-decoration: none; border: 2px solid var(--amk-freight); transition: all var(--amk-transition); }
.amk-btn-primary:hover { background: var(--amk-freight-dark); border-color: var(--amk-freight-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(74,143,212,0.25); color: var(--amk-white); }
.amk-btn-ghost { display: inline-flex; align-items: center; background: transparent; color: var(--amk-white); padding: 14px 32px; border-radius: var(--amk-radius); font-family: var(--amk-font-primary); font-weight: 500; font-size: 1rem; text-decoration: none; border: 2px solid rgba(255,255,255,0.2); transition: all var(--amk-transition); }
.amk-btn-ghost:hover { border-color: var(--amk-white); background: rgba(255,255,255,0.05); color: var(--amk-white); }
.amk-btn-white { display: inline-flex; align-items: center; gap: 8px; background: var(--amk-white); color: var(--amk-navy-deep); padding: 14px 36px; border-radius: var(--amk-radius); font-family: var(--amk-font-primary); font-weight: 600; font-size: 1rem; text-decoration: none; border: none; transition: all var(--amk-transition); }
.amk-btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); color: var(--amk-navy-deep); }
.amk-btn-outline-white { display: inline-flex; align-items: center; background: transparent; color: var(--amk-white); padding: 14px 32px; border-radius: var(--amk-radius); font-family: var(--amk-font-primary); font-weight: 500; font-size: 1rem; text-decoration: none; border: 2px solid rgba(255,255,255,0.3); transition: all var(--amk-transition); }
.amk-btn-outline-white:hover { border-color: var(--amk-white); background: rgba(255,255,255,0.08); color: var(--amk-white); }

/* ── Trust Strip ── */
.amk-trust { background: var(--amk-white); padding: 48px; border-bottom: 1px solid var(--amk-grey-200); }
.amk-trust-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 32px; }
.amk-trust-item { text-align: center; }
.amk-trust-number { font-size: clamp(2rem, 3vw, 3rem); font-weight: 700; color: var(--amk-freight); line-height: 1; }
.amk-trust-label { font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amk-grey-500); margin-top: 8px; }

/* ── Services Section ── */
.amk-services { padding: 100px 48px; background: var(--amk-warm-white); }
.amk-section-inner { max-width: 1200px; margin: 0 auto; }
.amk-heading { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 600; color: var(--amk-navy-deep); letter-spacing: -0.01em; margin: 0 0 16px; line-height: 1.2; }
.amk-section-desc { font-size: 1.0625rem; color: var(--amk-grey-700); line-height: 1.7; max-width: 600px; margin: 0 0 48px; }
.amk-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.amk-card { background: var(--amk-white); border-radius: var(--amk-radius-lg); overflow: hidden; border: 1px solid var(--amk-grey-200); box-shadow: var(--amk-shadow-sm); transition: all var(--amk-transition); }
.amk-card:hover { box-shadow: var(--amk-shadow-lg); transform: translateY(-4px); border-color: var(--amk-freight-light); }
.amk-card-img { overflow: hidden; aspect-ratio: 3/2; }
.amk-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.amk-card:hover .amk-card-img img { transform: scale(1.05); }
.amk-card-body { padding: 28px 24px; }
.amk-card-body h3 { font-size: 1.25rem; font-weight: 600; color: var(--amk-navy-deep); margin: 0 0 10px; }
.amk-card-body p { font-size: 0.9375rem; color: var(--amk-grey-700); line-height: 1.6; margin: 0 0 16px; }
.amk-link { font-size: 0.875rem; font-weight: 500; color: var(--amk-freight); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: gap var(--amk-transition); }
.amk-link:hover { gap: 8px; color: var(--amk-freight-dark); }

/* ── Why Amakhwezi ── */
.amk-why { background: var(--amk-navy-deep); padding: 100px 48px; }
.amk-why-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.amk-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.amk-feature { padding: 24px; background: rgba(255,255,255,0.04); border-radius: var(--amk-radius-lg); border: 1px solid rgba(255,255,255,0.06); transition: all var(--amk-transition); }
.amk-feature:hover { background: rgba(255,255,255,0.07); border-color: rgba(74,143,212,0.2); }
.amk-feature h4 { font-size: 1rem; font-weight: 600; color: var(--amk-white); margin: 0 0 8px; }
.amk-feature p { font-size: 0.875rem; color: var(--amk-grey-300); line-height: 1.6; margin: 0; }
.amk-why-image { border-radius: var(--amk-radius-xl); overflow: hidden; }
.amk-why-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ── CTA Banner ── */
.amk-cta { padding: 80px 48px; background: linear-gradient(135deg, var(--amk-freight-dark) 0%, var(--amk-freight) 50%, var(--amk-freight-light) 100%); text-align: center; }
.amk-cta-inner { max-width: 700px; margin: 0 auto; }
.amk-cta h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; color: var(--amk-white); margin: 0 0 16px; }
.amk-cta p { font-size: 1.0625rem; color: rgba(255,255,255,0.85); margin: 0 0 32px; line-height: 1.7; }
.amk-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.amk-footer { background: var(--amk-navy-deep); padding: 80px 48px 40px; border-top: 1px solid rgba(255,255,255,0.06); }
.amk-footer-inner { max-width: 1200px; margin: 0 auto; }
.amk-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.amk-footer-brand p { font-size: 0.9375rem; color: var(--amk-grey-300); line-height: 1.7; margin: 16px 0 20px; }
.amk-footer-tagline { font-family: var(--amk-font-editorial); font-style: italic; color: var(--amk-freight); font-size: 1.125rem; }
.amk-footer h4 { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amk-grey-300); margin: 0 0 20px; }
.amk-footer ul { list-style: none; margin: 0; padding: 0; }
.amk-footer li { margin-bottom: 12px; }
.amk-footer ul a { color: var(--amk-grey-500); text-decoration: none; font-size: 0.9375rem; transition: color 150ms; }
.amk-footer ul a:hover { color: var(--amk-freight-light); }
.amk-footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.amk-footer-bottom p { font-size: 0.8125rem; color: var(--amk-grey-500); margin: 0; }
.amk-footer-stars { font-family: var(--amk-font-editorial); font-style: italic; font-size: 0.875rem; color: var(--amk-freight); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .amk-hero-inner, .amk-why-inner { grid-template-columns: 1fr; gap: 48px; }
  .amk-hero-image { max-width: 600px; }
  .amk-services-grid { grid-template-columns: 1fr 1fr; }
  .amk-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .amk-nav-inner { padding: 0 24px; }
  .amk-nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--amk-white); flex-direction: column; padding: 24px; gap: 20px; box-shadow: var(--amk-shadow-lg); }
  .amk-nav-links.open { display: flex; }
  .amk-menu-toggle { display: flex; }
  .amk-hero { padding: 80px 24px 60px; }
  .amk-hero-image { display: none; }
  .amk-trust { padding: 32px 24px; }
  .amk-trust-inner { gap: 24px; }
  .amk-services { padding: 60px 24px; }
  .amk-services-grid { grid-template-columns: 1fr; }
  .amk-why { padding: 60px 24px; }
  .amk-why-inner { gap: 40px; }
  .amk-why-image { display: none; }
  .amk-features-grid { grid-template-columns: 1fr; }
  .amk-cta { padding: 60px 24px; }
  .amk-footer { padding: 48px 24px 32px; }
  .amk-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Hide parent theme header/footer on homepage ── */
.amk-homepage .site-header,
.amk-homepage .site-footer,
.amk-homepage #masthead,
.amk-homepage #colophon,
.amk-homepage .hstarter-header,
.amk-homepage .hstarter-footer { display: none !important; }

/* ── Focus Visible (Accessibility) ── */
.amk-homepage *:focus-visible {
  outline: 2px solid var(--amk-freight);
  outline-offset: 2px;
  border-radius: 2px;
}
.amk-homepage a:focus:not(:focus-visible),
.amk-homepage button:focus:not(:focus-visible) {
  outline: none;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
