/* ============================================================
   TradeOff – shared site stylesheet
   Loaded by every page via <link rel="stylesheet" href="assets/site.css">
   ============================================================ */

:root {
  --color-teal: #2EA2B1;
  --color-teal-dark: #258a97;
  --color-teal-tint: #E5F5F7;
  --color-orange: #FE7B16;
  --color-orange-dark: #e06a0e;
  --color-orange-tint: #FFF1E6;
  --color-primary: #1A2332;
  --color-secondary: #677280;
  --color-dim: #9CA8B4;
  --color-base: #F7F9FA;
  --color-dark: #0f1923;
  --color-dark-light: #162230;
  --color-surface: #FFFFFF;
  --color-border-light: rgba(26, 35, 50, 0.08);
  --color-border-dark: rgba(46, 162, 177, 0.15);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background: var(--color-base);
  color: var(--color-primary);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ---- Hero (stays dark) ---- */
.mesh-hero {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(46, 162, 177, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(254, 123, 22, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse 90% 40% at 50% 80%, rgba(46, 162, 177, 0.07) 0%, transparent 60%),
    var(--color-dark);
}

/* ---- Floating shapes (hero decorative) ---- */
.float-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.08;
}

.float-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--color-teal);
  top: -100px;
  right: -100px;
  filter: blur(80px);
  animation: float-slow 20s ease-in-out infinite;
}

.float-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--color-orange);
  bottom: -50px;
  left: -80px;
  filter: blur(60px);
  animation: float-slow 15s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -15px); }
  66% { transform: translate(-10px, 10px); }
}

.glow-line {
  position: absolute;
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-teal), transparent);
  opacity: 0.4;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  transition: background 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth), padding 0.3s var(--ease-smooth);
}

.nav.scrolled {
  background: rgba(247, 249, 250, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border-light), 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 0.65rem 2rem;
}

.nav.scrolled .nav-link { color: var(--color-secondary); }
.nav.scrolled .nav-link:hover { color: var(--color-primary); }
.nav.scrolled .mobile-menu-btn { color: var(--color-primary); }

.nav-logo {
  height: 44px;
  transition: height 0.3s var(--ease-smooth), transform 0.3s var(--ease-spring);
}

/* Shrink the logo a touch when the nav locks to the scrolled state. */
.nav.scrolled .nav-logo {
  height: 36px;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-link {
  color: rgba(232, 237, 242, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-teal);
  border-radius: 1px;
  transition: width 0.35s var(--ease-out-expo);
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--color-teal);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), background 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.btn-primary:hover {
  background: var(--color-teal-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(46, 162, 177, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
}

.btn-outline:hover {
  border-color: var(--color-orange);
  background: rgba(254, 123, 22, 0.08);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(254, 123, 22, 0.15);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid rgba(26, 35, 50, 0.2);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
}

.btn-outline-light:hover {
  border-color: var(--color-orange);
  background: rgba(254, 123, 22, 0.04);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(254, 123, 22, 0.1);
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(254, 123, 22, 0.3);
  color: var(--color-orange);
  background: rgba(254, 123, 22, 0.08);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ---- Hero text ---- */
.hero-headline {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #e8edf2;
}

.hero-headline .accent-teal { color: var(--color-teal); }
.hero-headline .accent-orange { color: var(--color-orange); }

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: rgba(232, 237, 242, 0.65);
  max-width: 540px;
}

.tagline-bar {
  background: linear-gradient(90deg, var(--color-teal), var(--color-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Section headings ---- */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.section-heading {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-primary);
}

.section-heading-light {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #e8edf2;
}

/* ---- Feature sections ---- */
.feature-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.feature-section:last-child { border-bottom: none; }

.feature-icon-lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s var(--ease-smooth);
}

.feature-section:hover .feature-icon-lg {
  transform: scale(1.08) rotate(-3deg);
}

.icon-teal-bg {
  background: var(--color-teal-tint);
  color: var(--color-teal);
}

.icon-orange-bg {
  background: var(--color-orange-tint);
  color: var(--color-orange);
}

.feature-title {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.feature-tagline {
  font-size: 1rem;
  color: var(--color-teal);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  max-width: 520px;
}

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-secondary);
}

.feature-bullets li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.feature-section:nth-child(even) .feature-inner {
  flex-direction: row-reverse;
}

@media (max-width: 767px) {
  .feature-section:nth-child(even) .feature-inner {
    flex-direction: column;
  }
}

/* ---- Steps ---- */
.step-number {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-teal), var(--color-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.6;
}

.step-card {
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s var(--ease-spring), border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 162, 177, 0.25);
  box-shadow: 0 8px 32px rgba(46, 162, 177, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.step-connector { display: none; }

@media (min-width: 768px) {
  .step-connector {
    display: block;
    position: absolute;
    top: 50%;
    right: -2.5rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--color-teal), transparent);
  }
}

/* ---- Category cards ---- */
.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  cursor: default;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 162, 177, 0.25);
  box-shadow: 0 12px 32px rgba(46, 162, 177, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.category-card:hover .category-icon {
  transform: scale(1.08);
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  transition: transform 0.35s var(--ease-spring);
}

.category-icon svg {
  width: 22px;
  height: 22px;
}

/* ---- Scroll-triggered reveals ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-spring);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---- Dividers ---- */
.divider-dark {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 162, 177, 0.15), transparent);
}

.divider-light {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 35, 50, 0.1), transparent);
}

/* ---- CTA mesh (dark) ---- */
.mesh-cta {
  background:
    radial-gradient(ellipse 60% 60% at 30% 40%, rgba(46, 162, 177, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 70% 60%, rgba(254, 123, 22, 0.1) 0%, transparent 50%),
    var(--color-dark-light);
}

/* ---- Footer ---- */
.footer-link {
  color: rgba(232, 237, 242, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s var(--ease-smooth);
}

.footer-link:hover { color: var(--color-teal); }

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 162, 177, 0.08);
  border: 1px solid rgba(46, 162, 177, 0.15);
  color: rgba(232, 237, 242, 0.5);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
}

.social-icon:hover {
  transform: translateY(-3px);
  border-color: var(--color-teal);
  color: var(--color-teal);
  background: rgba(46, 162, 177, 0.12);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

/* ---- Grain overlay ---- */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ---- Mobile nav ---- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #e8edf2;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-menu { display: none; }

@media (max-width: 767px) {
  .nav-links-desktop { display: none !important; }
  .mobile-menu-btn { display: flex; }

  .mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(15, 25, 35, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-smooth);
  }

  .mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu a {
    color: #e8edf2;
    text-decoration: none;
    font-family: 'Clash Display', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
  }
}

/* ============================================================
   Page-specific shared classes
   ============================================================ */

/* ---- Feature card (features page) ---- */
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 162, 177, 0.25);
  box-shadow: 0 10px 28px rgba(46, 162, 177, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ---- Icon badge (large square holding a section's hero icon) ---- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 1.25rem;
}

.icon-badge svg {
  width: 28px;
  height: 28px;
}

/* ---- Number badge (small chip for steps / numbered lists) ---- */
.number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Detail item (icon + text row inside feature-cards) ---- */
.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.detail-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--color-teal);
}

/* ---- Generic divider (alias of divider-light) ---- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 35, 50, 0.1), transparent);
}


/* ---- Area chip (Gloucester / Cheltenham pages) ---- */
.area-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 100px;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
}

.area-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 162, 177, 0.35);
  background: var(--color-teal-tint);
}

/* ---- FAQ accordion (city pages) ---- */
.faq-item {
  background: var(--color-base);
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  transition: border-color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
}

.faq-item[open] {
  border-color: rgba(46, 162, 177, 0.3);
  background: var(--color-surface);
}

.faq-item summary {
  cursor: pointer;
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-teal);
  transition: transform 0.3s var(--ease-smooth);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0.85rem 0 0.25rem;
  color: var(--color-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---- Legal page (privacy / terms) ---- */
.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.effective-date {
  color: var(--color-dim);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.tab {
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--color-dim);
  color: var(--color-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.tab.active,
.tab:hover {
  background: var(--color-teal);
  color: #fff;
  border-color: var(--color-teal);
}

.policy-section { display: none; }
.policy-section.active { display: block; }

.legal-container h1 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.legal-container h2 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 2.5rem 0 0.75rem;
}

.legal-container p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.legal-container ul,
.legal-container ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-container li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.legal-container strong {
  color: var(--color-primary);
  font-weight: 600;
}

.legal-container a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color 0.2s var(--ease-smooth);
}

.legal-container a:hover {
  color: var(--color-teal-dark);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .tabs { flex-wrap: wrap; }
}
