/* ============================================================
   CLEARROUTE UK — GLOBAL STYLES
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Lato:wght@300;400;700&display=swap');

/* --- CSS Variables --- */
:root {
  --teal:        #0D4F4F;
  --teal-light:  #1A6B6B;
  --teal-dark:   #083636;
  --copper:      #D4735E;
  --copper-light:#E08E7C;
  --copper-dark: #B85A46;
  --white:       #FFFFFF;
  --off-white:   #FAFAFA;
  --bg-warm:     #FDFBF7;
  --bg-light:    #F9FAFB;
  --bg-off-white: #F3F4F6;
  --light-grey:  #F3F4F6;
  --border:      #E5E7EB;
  --border-light: #EEF1F6;
  --text-dark:   #1A1A2E;
  --text-muted:  #6B7280;
  --text-light:  #9CA3AF;
  --success:     #2E9F6E;
  --error:       #EF4444;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(31,41,55,0.12);
  --shadow-lg:   0 8px 32px rgba(31,41,55,0.18);
  --shadow-xl:   0 20px 60px rgba(31,41,55,0.22);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Inter', sans-serif;
  --font-body:    'Lato', sans-serif;
  --max-width:   1200px;
  --section-pad: 100px 0;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

input, textarea, select {
  font-family: var(--font-body);
  outline: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Base --- */
section {
  padding: var(--section-pad);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  color: var(--text-dark);
  margin-bottom: 18px;
}

.section-title span {
  color: var(--copper);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 64px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--copper);
  color: var(--teal-dark);
  box-shadow: 0 4px 20px rgba(212,115,94,0.35);
}

.btn-primary:hover {
  background: var(--copper-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,115,94,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  border-color: var(--copper);
  color: var(--copper);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--copper);
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 6px;
}

.btn-ghost:hover {
  gap: 12px;
}

.btn-ghost .arrow {
  transition: var(--transition);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--copper);
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
  transform: scaleX(0);
  transition: var(--transition);
}

.card:hover::after { transform: scaleX(1); }

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.badge-copper {
  background: rgba(212,115,94,0.12);
  color: var(--copper-dark);
  border: 1px solid rgba(212,115,94,0.3);
}

.badge-teal {
  background: rgba(13,79,79,0.08);
  color: var(--teal);
  border: 1px solid rgba(13,79,79,0.15);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(13,79,79,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mobile-nav-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}


.navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-nav a {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--copper);
  background: rgba(212,115,94,0.1);
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--teal-dark);
  z-index: 999;
  padding: 100px 32px 40px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
  display: flex;
  transform: translateX(0);
}

.mobile-nav a {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.mobile-nav a:hover { color: var(--copper); padding-left: 12px; }

.mobile-nav .btn {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
}

/* ============================================================
   HERO BASE
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--teal-light) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(8,54,54,0.95) 0%,
    rgba(13,79,79,0.85) 60%,
    rgba(13,79,79,0.75) 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(212,115,94,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212,115,94,0.04) 0%, transparent 40%);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--teal-dark);
  color: var(--white);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.footer-brand .sub {
  font-size: 0.75rem;
  color: var(--copper);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
  display: block;
}





.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}

.footer-social a:hover {
  background: var(--copper);
  color: var(--teal-dark);
  border-color: var(--copper);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 22px;
}

.footer-col ul li {
  margin-bottom: 11px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--copper);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(212,115,94,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item .text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.footer-contact-item .text a {
  color: rgba(255,255,255,0.55);
}

.footer-contact-item .text a:hover { color: var(--copper); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  transition: var(--transition);
}

.footer-bottom-links a:hover { color: var(--copper); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(212,115,94,0.07) 0%, transparent 60%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.page-hero .breadcrumb a:hover { color: var(--copper); }

.page-hero .breadcrumb .sep { color: rgba(255,255,255,0.25); }

.page-hero .breadcrumb .current { color: var(--copper); }

.page-hero h1 { color: var(--white); margin-bottom: 16px; }

.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  max-width: 560px;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-copper { color: var(--copper); }
.text-teal { color: var(--teal); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

.bg-teal { background: var(--teal); }
.bg-teal-dark { background: var(--teal-dark); }
.bg-off-white { background: var(--off-white); }
.bg-white { background: var(--white); }

.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
  border-radius: 2px;
  margin: 20px 0;
}

.divider.centered { margin: 20px auto; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--copper);
  color: var(--teal-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(212,115,94,0.4);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 900;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212,115,94,0.5);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--copper);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  min-width: 300px;
  animation: slideInRight 0.4s cubic-bezier(0.4,0,0.2,1);
}

.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--error); }

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 72px 0; }

  .navbar-nav,
  .navbar-cta { display: none; }

  .hamburger { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .section-header { margin-bottom: 44px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}

/* ============================================================
   MOBILE NAV EXTRAS
   ============================================================ */
.mobile-nav-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav a i {
  width: 22px;
  color: var(--copper);
  margin-right: 12px;
}

.mobile-nav-contact {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  border-bottom: none;
  padding: 0;
}

.mobile-nav-contact a i {
  color: var(--copper);
  width: 18px;
}

.mobile-nav-contact a:hover {
  color: var(--copper);
  padding-left: 0;
}

/* ============================================================
   FOOTER TRUST & DISCLAIMER
   ============================================================ */
.footer-trust {
  margin-top: 20px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(212,115,94,0.1);
  border: 1px solid rgba(212,115,94,0.25);
  color: var(--copper);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-top: 0;
}

.footer-disclaimer i {
  color: var(--copper);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-disclaimer p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   YEAR AUTO-UPDATE
   ============================================================ */