/* =============================================
   Horsham Drainage Pros - Shared Styles
   Modern, Conversion-Focused Design
   ============================================= */

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #1a1a2e;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul, ol {
  list-style: none;
}

/* =============================================
   Colour Variables (Navy & Blue Theme)
   ============================================= */
:root {
  --navy: #1a2a4a;
  --navy-dark: #0f1a2e;
  --navy-light: #2a3f6a;
  --blue: #2b6cb0;
  --blue-light: #4299e1;
  --blue-pale: #e6f0fa;
  --accent: #e53e3e;
  --accent-hover: #c53030;
  --white: #ffffff;
  --grey-light: #f1f5f9;
  --grey-mid: #94a3b8;
  --grey-dark: #475569;
  --text: #1e293b;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
}

/* =============================================
   Header & Navigation
   ============================================= */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.logo-img {
  height: 48px;
  width: auto;
  border-radius: 6px;
}

.logo-text {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  display: none;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  gap: 4px;
}

.desktop-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--white);
  background: var(--navy-light);
}

/* Header CTA */
.header-cta {
  display: none;
  background: var(--accent);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.header-cta:hover {
  background: var(--accent-hover);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  padding: 16px 24px;
  box-shadow: var(--shadow-lg);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--white);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero--homepage {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--blue) 100%);
  color: var(--white);
}

.hero--page {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 48px 24px;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-text h1 span {
  color: #fbbf24;
}

.hero-text .subtitle {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-text .trust-line {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  max-height: 320px;
  object-fit: cover;
  width: 100%;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(229, 62, 62, 0.3);
}

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

.btn-secondary:hover {
  background: var(--blue-pale);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* =============================================
   Section Styles
   ============================================= */
.section {
  padding: 56px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--grey-dark);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

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

.section--grey {
  background: var(--grey-light);
}

/* =============================================
   Cards
   ============================================= */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.card p {
  color: var(--grey-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card .card-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card .card-link:hover {
  color: var(--navy);
}

/* =============================================
   Grid Layouts
   ============================================= */
.grid-2 {
  display: grid;
  gap: 24px;
}

.grid-3 {
  display: grid;
  gap: 24px;
}

.grid-4 {
  display: grid;
  gap: 20px;
}

/* =============================================
   Service Cards (Homepage)
   ============================================= */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card-body {
  padding: 24px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-card p {
  color: var(--grey-dark);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.service-card .arrow-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
}

/* =============================================
   Trust Bar
   ============================================= */
.trust-bar {
  background: var(--navy-dark);
  color: var(--white);
  padding: 32px 24px;
}

.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-item svg {
  width: 28px;
  height: 28px;
  color: #fbbf24;
}

.trust-item span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* =============================================
   Bark Widget Section
   ============================================= */
.bark-section {
  background: linear-gradient(135deg, var(--blue-pale) 0%, #dbeafe 100%);
  padding: 56px 24px;
}

.bark-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.bark-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 8px;
}

.bark-section-subtitle {
  text-align: center;
  color: var(--grey-dark);
  margin-bottom: 32px;
}

.bark-widget-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin: 0 auto;
  min-height: 200px;
}

/* =============================================
   Feature List
   ============================================= */
.feature-list {
  display: grid;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-item svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item h4 {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 2px;
}

.feature-item p {
  color: var(--grey-dark);
  font-size: 0.92rem;
}

/* =============================================
   About Page Styles
   ============================================= */
.about-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--grey-dark);
  margin-bottom: 14px;
  line-height: 1.7;
}

/* =============================================
   Testimonials
   ============================================= */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
  color: #fbbf24;
}

.testimonial-text {
  font-style: italic;
  color: var(--grey-dark);
  line-height: 1.7;
  margin-bottom: 16px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.testimonial-location {
  color: var(--grey-mid);
  font-size: 0.85rem;
}

/* =============================================
   Map Section
   ============================================= */
.map-section {
  padding: 0;
  background: var(--white);
}

.map-container {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand img {
  height: 44px;
  border-radius: 6px;
}

.footer-brand span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 24px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* =============================================
   CTA Banner
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
}

.cta-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   Process Steps
   ============================================= */
.steps-grid {
  display: grid;
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 24px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.step-card p {
  color: var(--grey-dark);
  font-size: 0.92rem;
}

/* =============================================
   FAQ Accordion
   ============================================= */
.faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  gap: 16px;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding-top: 12px;
  color: var(--grey-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* =============================================
   Service Page Layout
   ============================================= */
.service-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 48px 24px;
}

.service-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.service-hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 640px;
  margin-bottom: 20px;
}

.service-content {
  display: grid;
  gap: 32px;
  align-items: start;
}

.service-text h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-text p {
  color: var(--grey-dark);
  margin-bottom: 14px;
  line-height: 1.7;
}

.service-text ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--grey-dark);
  margin-bottom: 20px;
}

.service-text ul li {
  margin-bottom: 8px;
}

/* =============================================
   Responsive Breakpoints
   ============================================= */
@media (min-width: 640px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-image img {
    max-height: 380px;
  }

  .trust-bar-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .section-title {
    font-size: 2rem;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner h2 {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }

  .desktop-nav {
    display: block;
  }

  .header-cta {
    display: inline-flex;
  }

  .logo-text {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    padding: 80px 24px;
  }

  .hero-text h1 {
    font-size: 2.75rem;
  }

  .hero-image img {
    max-height: 420px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .service-content {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 3.2rem;
  }

  .hero-image img {
    max-height: 480px;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding: 72px 24px;
  }
}

/* =============================================
   Utility Classes
   ============================================= */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 8px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 16px;
}

.mb-4 {
  margin-bottom: 16px;
}

.hidden {
  display: none;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}
