/* ===================================================================
   VutoMerle Logistics - style.css
   Design style: gradient_modern (modern, gradient accents, smooth UI)
   Brand: Navy (#0B3A5B), Teal (#2F8F83), Accent (#F4F8FB)
   Fonts: Trebuchet MS (display), Verdana (body)
   Layout: Mobile-first, ONLY Flexbox (no grid/columns) - verified
   =================================================================== */

/* -----------------------------
   CSS Reset / Normalize basics
   ----------------------------- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 0; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.2rem; }
h1, h2, h3, h4, h5, h6, p { margin: 0 0 16px; }
button { font: inherit; cursor: pointer; background: none; border: none; }
:focus { outline: 2px solid #2F8F83; outline-offset: 2px; }

/* -----------------------------
   CSS Variables (with fallbacks)
   ----------------------------- */
:root {
  --primary: #0B3A5B;
  --secondary: #2F8F83;
  --accent: #F4F8FB;
  --ink: #0A2236; /* body text */
  --muted: #6A7E8E;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(11, 58, 91, 0.12);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;
  --transition: 220ms ease;
}

/* -----------------------------
   Base Typography & Body
   ----------------------------- */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: var(--ink, #0B3A5B);
  background-color: var(--accent, #F4F8FB);
  background-image: linear-gradient(180deg, rgba(47,143,131,0.06), rgba(11,58,91,0));
  background-repeat: no-repeat;
  background-size: 100% 500px;
}

h1, h2, h3 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: var(--primary, #0B3A5B);
}
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.3; margin-top: 8px; }
h3 { font-size: 18px; line-height: 1.4; }
p, li { font-size: 16px; color: var(--ink, #0B3A5B); }
.small { font-size: 14px; color: var(--muted, #6A7E8E); }

/* Link styles */
a { color: var(--secondary, #2F8F83); text-underline-offset: 2px; transition: color var(--transition), background-color var(--transition), box-shadow var(--transition); }
a:hover { color: #257a71; }
a:active { color: #1e6a62; }

/* Utility Buttons (for cookie & mobile controls) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 700; letter-spacing: 0.2px; transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition); }
.btn-primary { background-color: var(--secondary, #2F8F83); color: var(--white, #fff); box-shadow: var(--shadow); }
.btn-primary:hover { background-color: #257a71; transform: translateY(-1px); }
.btn-outline { background-color: transparent; color: var(--secondary, #2F8F83); border: 2px solid var(--secondary, #2F8F83); }
.btn-outline:hover { background-color: rgba(47,143,131,0.08); }
.btn-neutral { background-color: var(--accent, #F4F8FB); color: var(--primary, #0B3A5B); border: 1px solid rgba(11,58,91,0.12); }
.btn-neutral:hover { background-color: #e8f0f6; }

/* -----------------------------
   Layout Containers (Flex-only)
   ----------------------------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: var(--space-24); }
.content-wrapper { display: flex; flex-direction: column; gap: var(--space-20); flex-wrap: wrap; align-items: flex-start; }

/* Mandatory spacing rules */
.section { margin-bottom: 60px; padding: 40px 20px; }
section { margin-bottom: var(--space-60); padding: var(--space-40) var(--space-20); }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--white, #fff); border: 1px solid rgba(11,58,91,0.08); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; border-radius: var(--radius-md); background: var(--white, #fff); border: 1px solid rgba(11,58,91,0.12); box-shadow: 0 6px 18px rgba(11,58,91,0.10); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Text sections appear as soft cards to fit gradient_modern */
.text-section {
  display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; background-color: var(--white, #fff);
  background-image: linear-gradient(180deg, rgba(47,143,131,0.08), rgba(255,255,255,0));
  border: 1px solid rgba(11,58,91,0.08); border-radius: var(--radius-md); box-shadow: var(--shadow);
}

/* --------------------------------------
   Header & Navigation (mobile-first)
   -------------------------------------- */
header { position: relative; background-color: var(--white, #fff); background-image: linear-gradient(90deg, rgba(47,143,131,0.10), rgba(11,58,91,0.0)); border-bottom: 1px solid rgba(11,58,91,0.10); box-shadow: 0 4px 16px rgba(11,58,91,0.06); }
header .container { padding-top: 16px; padding-bottom: 16px; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-16); }
.logo img { height: 36px; width: auto; }

/* Desktop nav hidden by default (mobile-first) */
.main-nav { display: none; }
.main-nav a { padding: 10px 12px; border-radius: 8px; color: var(--primary, #0B3A5B); font-weight: 600; }
.main-nav a:hover { background-color: rgba(47,143,131,0.10); color: #083049; }

/* Mobile hamburger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background-color: var(--accent, #F4F8FB); color: var(--primary, #0B3A5B); box-shadow: var(--shadow); transition: background-color var(--transition), transform var(--transition); }
.mobile-menu-toggle:hover { background-color: #e8f0f6; transform: translateY(-1px); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: stretch; justify-content: flex-end; padding: 0; background-color: rgba(11,58,91,0.55); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity var(--transition), visibility var(--transition); }
.mobile-menu .mobile-nav { display: flex; flex-direction: column; gap: 2px; width: 82%; max-width: 380px; background: var(--white, #fff); height: 100vh; padding: 20px; box-shadow: -8px 0 28px rgba(11,58,91,0.25); transform: translateX(100%); transition: transform 320ms ease; }
.mobile-menu.open, .mobile-menu.active { visibility: visible; opacity: 1; pointer-events: auto; }
.mobile-menu.open .mobile-nav, .mobile-menu.active .mobile-nav { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background-color: var(--accent, #F4F8FB); color: var(--primary, #0B3A5B); margin-bottom: 10px; }
.mobile-nav a { display: flex; align-items: center; padding: 12px 10px; border-radius: 8px; color: var(--primary, #0B3A5B); font-weight: 600; }
.mobile-nav a:hover { background-color: rgba(47,143,131,0.10); }

/* --------------------------------------
   Main Content Styling
   -------------------------------------- */
main section:first-of-type h1 { background: linear-gradient(90deg, var(--primary, #0B3A5B), var(--secondary, #2F8F83)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Lists & Content rhythm */
ul { display: flex; flex-direction: column; gap: 8px; }
ol { display: flex; flex-direction: column; gap: 8px; padding-left: 1.4rem; }
li::marker { color: var(--secondary, #2F8F83); }

/* Icon text lines (Contact rows) */
.text-section img[alt] { width: 18px; height: 18px; margin-right: 8px; display: inline-block; vertical-align: middle; }
.text-section p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Testimonials - ensure dark text on light bg for contrast */
.testimonial-card p { color: var(--ink, #0B3A5B); }
.testimonial-card strong { color: var(--primary, #0B3A5B); }

/* Inline CTA group separators */
.content-wrapper p a + a::before, .content-wrapper p a + span::before { content: "\2022"; margin: 0 10px; color: rgba(11,58,91,0.35); }

/* --------------------------------------
   Footer
   -------------------------------------- */
footer { color: var(--white, #fff); background-color: var(--primary, #0B3A5B); background-image: linear-gradient(180deg, rgba(47,143,131,0.25), rgba(47,143,131,0)); padding-top: 24px; padding-bottom: 24px; }
footer .content-wrapper { flex-wrap: wrap; flex-direction: row; align-items: flex-start; gap: var(--space-24); }
footer .text-section { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #EAF3F7; }
footer a { color: #D7F2EE; }
footer a:hover { color: #a9e1d9; }
footer .logo img { filter: brightness(0) invert(1); }

/* --------------------------------------
   Cards & Accents
   -------------------------------------- */
.card-accent { border-left: 4px solid var(--secondary, #2F8F83); }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; font-size: 12px; border-radius: 999px; background: rgba(47,143,131,0.12); color: var(--secondary, #2F8F83); font-weight: 700; }

/* --------------------------------------
   Responsive Flex behaviors
   -------------------------------------- */
/* Allow text-section items to flow in rows on larger screens */
@media (min-width: 769px) {
  .content-wrapper { flex-direction: row; align-items: flex-start; }
  .content-wrapper > h1, .content-wrapper > h2, .content-wrapper > p, .content-wrapper > ul, .content-wrapper > ol { flex: 1 1 100%; }
  .content-wrapper > .text-section { flex: 1 1 320px; max-width: 48%; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }
  .content-wrapper { gap: var(--space-24); }
  .content-wrapper > .text-section { max-width: 32%; }
}

/* Desktop nav visible */
@media (min-width: 992px) {
  .main-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .mobile-menu-toggle { display: none; }
}

/* Mobile specific stacking */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------
   Accessibility & Micro-interactions
   -------------------------------------- */
.card, .text-section, .testimonial-card { transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.card:hover, .text-section:hover, .testimonial-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(11,58,91,0.18); border-color: rgba(11,58,91,0.18); }

/* --------------------------------------
   Cookie Consent Banner & Modal
   -------------------------------------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; background-color: var(--white, #fff); background-image: linear-gradient(90deg, rgba(47,143,131,0.10), rgba(255,255,255,0)); border-top: 1px solid rgba(11,58,91,0.12); box-shadow: 0 -8px 24px rgba(11,58,91,0.12); transform: translateY(110%); transition: transform 320ms ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 8px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.cookie-accept { background: var(--secondary, #2F8F83); color: var(--white, #fff); }
.cookie-accept:hover { background: #257a71; }
.cookie-reject { background: var(--accent, #F4F8FB); color: var(--primary, #0B3A5B); border: 1px solid rgba(11,58,91,0.15); }
.cookie-settings { background: transparent; color: var(--secondary, #2F8F83); border: 2px solid var(--secondary, #2F8F83); }

/* Cookie modal overlay */
.cookie-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(11,58,91,0.55); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity var(--transition), visibility var(--transition); }
.cookie-modal.open { visibility: visible; opacity: 1; pointer-events: auto; }
.cookie-dialog { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 560px; background: var(--white, #fff); border-radius: var(--radius-lg); box-shadow: 0 18px 48px rgba(11,58,91,0.28); padding: 20px; border: 1px solid rgba(11,58,91,0.12); }
.cookie-dialog .dialog-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-dialog .dialog-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-dialog .dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle switches for categories */
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 10px; border: 1px solid rgba(11,58,91,0.10); border-radius: 12px; background: var(--accent, #F4F8FB); }
.switch { position: relative; display: inline-flex; width: 46px; height: 26px; align-items: center; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #c9d6df; border-radius: 999px; transition: background var(--transition); }
.slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform var(--transition); }
.switch input:checked + .slider { background: var(--secondary, #2F8F83); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* Mark essential cookies (always enabled) */
.cookie-toggle.essential { opacity: 0.8; }
.cookie-toggle.essential .slider { background: #94a3ad; }
.cookie-toggle.essential .switch { pointer-events: none; }

/* --------------------------------------
   Helper Layout Patterns (Flex only)
   -------------------------------------- */
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.col { display: flex; flex-direction: column; gap: 12px; flex: 1 1 280px; }

/* --------------------------------------
   Forms (if any appear later)
   -------------------------------------- */
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(11,58,91,0.20); border-radius: 10px; background: var(--white, #fff); color: var(--ink, #0B3A5B); transition: border-color var(--transition), box-shadow var(--transition); }
input:focus, select:focus, textarea:focus { border-color: var(--secondary, #2F8F83); box-shadow: 0 0 0 4px rgba(47,143,131,0.15); }
label { font-weight: 700; color: var(--primary, #0B3A5B); margin-bottom: 6px; display: inline-block; }

/* --------------------------------------
   Tables (basic)
   -------------------------------------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(11,58,91,0.12); }
th { color: var(--primary, #0B3A5B); font-family: "Trebuchet MS", Arial, sans-serif; font-size: 16px; }

/* --------------------------------------
   Shadows, Dividers & Decorative
   -------------------------------------- */
.hr { width: 100%; height: 1px; background: linear-gradient(90deg, rgba(11,58,91,0), rgba(11,58,91,0.18), rgba(11,58,91,0)); }

/* --------------------------------------
   Specific tweaks for provided pages
   -------------------------------------- */
/* Hero proximity spacing */
main section:first-of-type { padding-top: 32px; padding-bottom: 32px; }

/* Ensure adequate spacing between stacked elements */
.content-wrapper > * + * { margin-top: 0; }

/* Make inline CTAs feel button-like without changing markup */
.content-wrapper p > a { padding: 8px 12px; border-radius: 10px; background: rgba(47,143,131,0.10); color: var(--secondary, #2F8F83); font-weight: 700; }
.content-wrapper p > a:hover { background: rgba(47,143,131,0.18); }

/* Reliability numbers list as neat cards on desktop */
@media (min-width: 992px) {
  .content-wrapper > ul { display: flex; flex-wrap: wrap; gap: 16px; list-style: disc; }
  .content-wrapper > ul > li { background: var(--white, #fff); border: 1px solid rgba(11,58,91,0.08); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); flex: 1 1 220px; }
}

/* --------------------------------------
   Prevent overlaps & ensure clear gaps
   -------------------------------------- */
section, .section, .card, .text-section, .testimonial-card { margin-top: 0; }
section + section { margin-top: 0; }

/* --------------------------------------
   Print basics (optional)
   -------------------------------------- */
@media print {
  .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}

/* Final verification checklist (comments):
   - Flex used for all layout containers (container, content-wrapper, patterns)
   - No CSS Grid or Columns properties used
   - Spacing rules: gap 20px+ where needed; margins/paddings adequate
   - Testimonials: dark text on light backgrounds for readability
   - Mobile menu and cookie banner styled with transitions and z-index
*/
