/*
  Shared styles for the local service-area pages (e.g. /electric-gate-repairs-uckfield/).
  These mirror the colours, typography, header, buttons and footer used on the
  homepage so the landing pages feel like part of the same site.
*/
:root {
  --primary-color: #0f2880;
  --secondary-color: #cb9118;
  --text-color: #262f3e;
  --muted-color: #667189;
  --light-gray: #f7f8fc;
  --section-padding: 2rem;
  --container-width: 1200px;
  --border-radius: 4px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--light-gray);
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: "Helvetica Neue", Arial, sans-serif;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 2000;
  background: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1rem;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header (matches homepage) */
header {
  background-color: #fff;
  color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e6eaf0;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  align-items: center;
}
.brand:hover {
  text-decoration: none;
}
.brand .logo {
  height: 65px;
  width: auto;
  display: inline-block;
  margin-right: 0.5rem;
}
.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  white-space: nowrap;
}
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
}
nav li {
  margin: 0;
}
nav a {
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: bold;
}

/* Buttons (match homepage) */
.cta-btn {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.cta-btn:hover {
  background-color: #af8433;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}
.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--secondary-color);
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: #fff;
  text-decoration: none;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: #25d366;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-whatsapp:hover {
  background-color: #1eb851;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Page hero */
.page-hero {
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  padding: 5rem 0 4rem;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.page-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero .eyebrow {
  margin: 0;
  color: var(--secondary-color);
  font-size: 0.875rem;
  letter-spacing: 1px;
  font-weight: bold;
  text-transform: uppercase;
}
.page-hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}
.page-hero .lead {
  font-size: 1.125rem;
  margin: 0 0 1.5rem;
  max-width: 720px;
}
.page-hero--plain {
  background-color: var(--primary-color);
}
.page-hero--plain::before {
  display: none;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.8125rem;
  padding: 0.75rem 0;
  background: #fff;
  border-bottom: 1px solid #e6eaf0;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  color: var(--muted-color);
}
.breadcrumbs li + li::before {
  content: '›';
  margin-right: 0.4rem;
}

/* Sections */
section {
  padding: var(--section-padding) 0;
}
section h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--text-color);
}
.section-intro {
  text-align: center;
  color: var(--muted-color);
  max-width: 700px;
  margin: 0 auto 2rem;
}
.section-white {
  background-color: #fff;
}

/* Long-form copy */
.prose {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}
.prose h2 {
  text-align: left;
}
.prose h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.4rem;
}
.prose p {
  margin: 0 0 1rem;
}
.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.prose li {
  margin-bottom: 0.35rem;
}
.prose a {
  text-decoration: underline;
}

/* Service cards (same look as homepage .service-item) */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-item {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}
.section-white .service-item {
  background-color: var(--light-gray);
  box-shadow: none;
  border: 1px solid #e6eaf0;
}
.service-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--primary-color);
}
.service-item p {
  margin: 0;
  color: var(--muted-color);
}
.service-item p + p {
  margin-top: 0.6rem;
}
.service-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--border-radius);
  display: block;
  margin-bottom: 1rem;
}

/* Two-column feature block */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.split img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  display: block;
}
.split h2 {
  text-align: left;
}
.split p {
  color: var(--text-color);
}
/* Narrower image column for portrait photos, so they aren't cropped or overly tall */
.split--portrait {
  grid-template-columns: 3fr 2fr;
}

/* Photos within long-form content, shown at their natural aspect ratio */
.prose-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  display: block;
  margin: 1.5rem auto;
}
.prose-img--portrait {
  max-width: 420px;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.checklist li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.checklist li::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
}

/* Area list */
.area-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.area-list li {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--primary-color);
}
.section-white .area-list li {
  background: var(--light-gray);
}

/* Call to action band */
.cta-band {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

/* Contact details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-item strong {
  min-width: 90px;
  color: var(--primary-color);
}

/* Related links */
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-links a {
  display: block;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  font-weight: bold;
  height: 100%;
}
.related-links a span {
  display: block;
  font-weight: normal;
  color: var(--muted-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Footer (matches homepage) */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.875rem;
}
footer a {
  color: #fff;
  text-decoration: underline;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
}

/* Sticky call / WhatsApp bar shown on small screens */
.mobile-actions {
  display: none;
}

@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 2rem;
  }
  /* The wrapped navigation is tall on phones, so let it scroll away */
  header {
    position: static;
  }
  body {
    padding-bottom: 4.5rem;
  }
  .mobile-actions {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #fff;
    border-top: 1px solid #e6eaf0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  }
  .mobile-actions a {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
  }
  .mobile-actions .call {
    background-color: var(--primary-color);
  }
  .mobile-actions .photos {
    background-color: #25d366;
  }
  .mobile-actions a:hover {
    text-decoration: none;
  }
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .split,
  .split--portrait {
    grid-template-columns: 1fr;
  }
  section h2 {
    font-size: 1.6rem;
  }
}
