/* =========================================
   DESIGN SYSTEM - YEOVIL HOUSE CLEARANCE
   ========================================= */

:root {
  /* Core Palette */
  --primary: #0e2a47;
  --primary-light: #1a3f66;
  --accent: #FFD700;
  --accent-dark: #e6c200;
  --bg: #f4f7f9;
  --surface: #ffffff;
  --text: #2d3748;
  --text-light: #718096;
  --border: #e2e8f0;

  /* Feedback */
  --success: #38a169;
  --warning: #dd6b20;
  --danger: #e53e3e;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --shadow-accent: 0 4px 15px rgba(255, 215, 0, 0.3);

  /* Radii */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Transitions */
  --transition: 0.25s ease;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0e2a47 0%, #1a3f66 100%);
  --gradient-accent: linear-gradient(135deg, #FFD700 0%, #ffed4a 100%);
  --gradient-subtle: linear-gradient(180deg, #f4f7f9 0%, #ffffff 100%);
}

/* =========================================
   RESET & BASE
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--gradient-subtle);
  background-attachment: fixed;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 { color: var(--primary); line-height: 1.3; margin-bottom: 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); border-bottom: 3px solid var(--accent); padding-bottom: 12px; margin-top: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.35rem; color: var(--primary-light); margin-top: 1.5rem; }
p { margin-bottom: 1.25rem; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
  background: var(--gradient-primary);
  color: white;
  padding: 20px 0;
  text-align: center;
  border-bottom: 4px solid var(--accent);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.brand {
  font-size: 1.8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.brand:hover { color: var(--accent); }
nav { margin-top: 15px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
nav a:hover { background: rgba(255,255,255,0.1); color: var(--accent); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  background: var(--gradient-primary);
  color: white;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "🚛";
  position: absolute;
  font-size: 20rem;
  opacity: 0.03;
  bottom: -50px;
  right: -50px;
  transform: rotate(-15deg);
  pointer-events: none;
}
.hero h1 { color: var(--accent); text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.hero p { font-size: 1.15rem; max-width: 800px; margin: 0 auto 25px; color: rgba(255,255,255,0.9); }
.hero-img { width: 100%; max-height: 450px; object-fit: cover; display: block; }

/* =========================================
   CONTAINERS & LAYOUT
   ========================================= */
.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 40px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.container-narrow { max-width: 800px; }

/* =========================================
   TRUST BAR
   ========================================= */
.trust-bar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.trust-bar span::before { content: "✅ "; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  background: var(--gradient-accent);
  color: var(--primary);
  padding: 14px 32px;
  text-decoration: none;
  font-weight: 800;
  border-radius: var(--radius-pill);
  margin-top: 20px;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  color: var(--primary);
}
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}
.btn-outline:hover { background: var(--accent); color: var(--primary); }

/* =========================================
   CARDS (GLASSMORPHISM)
   ========================================= */
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.card h3::before { content: "📦"; font-size: 1.2em; }

/* =========================================
   LISTS & PILLS
   ========================================= */
ul { list-style: none; padding-left: 0; }
ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 900;
}

/* Pill tags */
.pill {
  display: inline-block;
  background: var(--bg);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 4px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.pill:hover { background: var(--accent); border-color: var(--accent); }

/* =========================================
   BUBBLES (Decorative)
   ========================================= */
.bubble {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--accent);
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 30px;
  width: 20px;
  height: 20px;
  background: var(--surface);
  transform: rotate(45deg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* =========================================
   GALLERY (BEFORE/AFTER)
   ========================================= */
.before-after {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0;
}
.before-after img {
  width: calc(50% - 10px);
  min-width: 280px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}
.before-after img:hover { transform: scale(1.02); }

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: var(--gradient-primary);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  border-top: 4px solid var(--accent);
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* =========================================
   UTILITY CLASSES
   ========================================= */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.mt-0 { margin-top: 0 !important; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.p-20 { padding: 20px; }
.shadow { box-shadow: var(--shadow-md); }
.gradient-bg { background: var(--gradient-primary); color: white; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .container { padding: 25px; margin: 20px auto; }
  .before-after img { width: 100%; }
  .trust-bar { flex-direction: column; gap: 10px; }
  nav { gap: 5px; }
  nav a { padding: 6px 10px; font-size: 0.8rem; }
}
