/* ============================================
   OKEHAMPTON HOUSE CLEARANCE - SHARED STYLES
   Mobile-first • Clean • Professional
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f8f9fa;
  font-size: 16px;
}

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

a {
  color: #1e5f8a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Colour System ---------- */
:root {
  --primary: #1e5f8a;
  --primary-dark: #164a6b;
  --accent: #2d8a5e;
  --text: #1a1a1a;
  --text-light: #555;
  --bg: #f8f9fa;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --max-width: 1140px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--white);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.nav {
  display: none;
}

.nav a {
  margin-left: 1.5rem;
  font-weight: 500;
  color: var(--text);
}

.nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Sticky CTA Bar ---------- */
.sticky-cta {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 0.75rem;
  position: sticky;
  top: 70px;
  z-index: 90;
  font-weight: 600;
}

.sticky-cta a {
  color: white;
  margin: 0 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
  color: white;
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: #246b48;
  color: white;
  text-decoration: none;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  height: 100%;
}

.card h3 {
  margin-top: 0;
}

/* ---------- Trust Badges ---------- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.badge {
  background: #d1e7dd;
  color: #0f5132;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
}

/* ---------- Grid System ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
}

th, td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* ---------- Process Steps ---------- */
.steps {
  display: grid;
  gap: 1.25rem;
}

.step {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: white;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.lead {
  font-size: 1.15rem;
  color: var(--text-light);
}

/* ---------- Before & After Gallery ---------- */
.before-after {
  padding: 2rem 0;
  text-align: center;
}
.before-after h2 {
  margin-bottom: 0.5rem;
}
.before-after > p {
  color: #666;
  margin-bottom: 1.5rem;
}
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.ba-figure {
  margin: 0;
}
.ba-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ba-figure figcaption {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}
@media (max-width: 640px) {
  .ba-pair { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }

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

@media (min-width: 900px) {
  .nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ---------- Hero ---------- */
.hero {
  
  padding: 3rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .lead {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero-cta {
  margin-top: 1.5rem;
}

/* Force footer text to white */
.site-footer p,
.site-footer a,
.site-footer .footer-bottom p {
  color: #ffffff !important;
}

/* Hero with background image and overlay */
.hero {
  background-image: url('images/hero-image.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 5rem 0;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1,
.hero .lead,
.hero p,
.hero a:not(.btn) {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero .btn {
  text-shadow: none;
}

/* Mobile */
@media (max-width: 640px) {
  .hero {
    background-image: url('images/hero-image-mobile.webp');
    padding: 3rem 0;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .section {
    padding: 2.25rem 0;
  }
  .step {
    padding: 1rem;
  }
  .faq-item {
    padding: 1rem;
  }
}

/* ---------- Navigation (nav.js) ---------- */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-list a,
.nav-dropdown-toggle {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  font-family: inherit;
  transition: color 0.15s;
}
.nav-list a:hover,
.nav-dropdown-toggle:hover {
  color: var(--primary);
}
.nav-contact {
  font-weight: 700;
  color: var(--primary) !important;
}
.nav-list a[aria-current="page"] {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}
.nav-dropdown {
  position: relative;
}
.nav-caret {
  font-size: 0.7em;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 230px;
  padding: 0.5rem 0;
  z-index: 100;
  list-style: none;
  margin: 0.5rem 0 0 0;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  font-weight: 400;
}
.nav-dropdown-menu a:hover {
  background: #f5f7f9;
  color: var(--primary);
}

/* Hamburger toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile behaviour */
@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 0.5rem 0;
    z-index: 99;
  }
  .nav.nav-open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list > li {
    border-bottom: 1px solid var(--border);
  }
  .nav-list > li:last-child { border-bottom: none; }
  .nav-list a,
  .nav-dropdown-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1.25rem;
  }
  .nav-list a[aria-current="page"] {
    border-bottom: none;
    background: #f5f7f9;
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: #f9fafb;
  }
  .nav-dropdown-menu a { padding-left: 2.25rem; }
  .nav-dropdown.nav-dropdown-open .nav-dropdown-menu { display: block; }
}

/* Desktop */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { display: flex; }
}

/* No-JS fallback */
.nav-noscript .nav-list {
  flex-wrap: wrap;
  gap: 1rem;
}


/* Hero subtitle contrast badge (canonical) */
.hero-subtitle-badge {
    display: inline-block;
    background: #ffffff;
    color: #1f2937;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin: 0.75rem auto;
    text-align: center;
}
