/* ============================================
   Local Business Site Template - Stylesheet
   ============================================
   Brand colours are set via CSS custom properties
   injected in base.njk from site.json branding.
   --primary, --primary-dark, --primary-light, --accent
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1f2937;
  background: #fff;
}

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

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

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

ul, ol {
  padding-left: 1.5rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: #111827;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-top: 1.5rem; }
h3 { font-size: 1.35rem; }

p {
  margin-bottom: 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

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

.btn-accent:hover {
  background: #d97706;
  color: #fff;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.125rem;
}

/* --- Header --- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 40px;
  width: auto;
}

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

.header-phone {
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 1.1rem;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--primary);
  text-decoration: none;
}

.phone-icon {
  margin-right: 0.25rem;
}

/* --- Mobile Nav Toggle (CSS-only hamburger) --- */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all 0.3s;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after  { top: 8px; }

/* Hamburger animation on toggle */
.nav-toggle:checked + .nav-toggle-label .hamburger {
  background: transparent;
}
.nav-toggle:checked + .nav-toggle-label .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle:checked + .nav-toggle-label .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --- Navigation --- */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
}

.nav-list a,
.dropdown-label {
  display: block;
  padding: 0.5rem 0.85rem;
  color: #374151;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
  cursor: pointer;
}

.nav-list a:hover,
.dropdown-label:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  text-decoration: none;
}

/* --- Dropdown (CSS-only) --- */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: none;
}

.dropdown-arrow {
  font-size: 0.75rem;
  margin-left: 0.15rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-radius: 6px;
  list-style: none;
  padding: 0.5rem 0;
  z-index: 1002;
}

.dropdown-menu a {
  padding: 0.5rem 1rem;
  border-radius: 0;
}

/* Show dropdown on hover (desktop) */
.nav-dropdown:hover .dropdown-menu {
  display: block;
}

/* Show dropdown on checkbox (mobile) */
.dropdown-toggle:checked ~ .dropdown-menu {
  display: block;
}

/* --- Mobile Styles --- */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
    order: 3;
  }

  .header-phone {
    order: 2;
    font-size: 0.95rem;
  }

  .logo {
    order: 1;
  }

  .main-nav {
    display: none;
    flex-basis: 100%;
    order: 4;
  }

  .nav-toggle:checked ~ .main-nav {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    padding: 0.5rem 0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    background: var(--primary-light);
    border-radius: 4px;
  }

  /* On mobile, require click (checkbox) not hover */
  .nav-dropdown:hover .dropdown-menu {
    display: none;
  }
  .dropdown-toggle:checked ~ .dropdown-menu {
    display: block;
  }
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.hero .btn {
  margin: 0.35rem;
}

/* Hero with image split */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  text-align: left;
}

.hero-with-image {
  padding: 3rem 1rem;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Intro split */
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1rem;
}

.intro-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.2s;
}

.gallery-item img:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 1rem;
  }
  .hero h1 {
    font-size: 1.85rem;
  }
  .hero-tagline {
    font-size: 1.05rem;
  }
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-image {
    order: -1;
  }
  .intro-split {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item img {
    height: 200px;
  }
}

/* --- Page Header --- */
.page-header {
  background: var(--primary-light);
  padding: 2rem 1rem;
  border-bottom: 3px solid var(--primary);
}

.page-header h1 {
  color: var(--primary-dark);
  margin-bottom: 0;
}

/* --- Sections --- */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: #f9fafb;
}

.content-wrap {
  max-width: 800px;
}

.content-wrap ul {
  margin-bottom: 1rem;
}

.content-wrap li {
  margin-bottom: 0.35rem;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-featured {
  border-color: var(--primary);
  border-width: 2px;
}

.card h2, .card h3 {
  margin-top: 0;
}

.card h2 a, .card h3 a {
  color: var(--primary-dark);
}

.card p {
  color: #4b5563;
}

.card .btn {
  margin-top: 0.75rem;
}

/* --- Area List Inline --- */
.area-list-inline {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.area-list-inline li {
  margin: 0;
}

.area-list-inline a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.area-list-inline a:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* --- Feature List --- */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* --- Service Location List --- */
.service-location-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.service-location-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.service-location-list li:last-child {
  border-bottom: none;
}

.service-location-list a {
  font-weight: 600;
  font-size: 1.05rem;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
}

.cta-section .btn {
  margin: 0.35rem;
}

/* --- Service Hero --- */
.service-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
}

.service-hero h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.service-hero .hero-tagline {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-reassurance {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* --- Trust Bar --- */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.trust-icon {
  font-size: 1.1rem;
  color: var(--accent);
}

/* --- Benefits Grid --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.benefit-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.benefit-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.benefit-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.benefit-card p {
  font-size: 0.88rem;
  color: #6b7280;
  margin-bottom: 0;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: left;
}

.stars {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.testimonial-text {
  font-style: italic;
  color: #374151;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.testimonial-author {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 0;
}

/* --- Steps Grid --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  counter-reset: step;
}

.step-card {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.88rem;
  color: #6b7280;
  margin-bottom: 0;
}

/* --- FAQ --- */
.faq-list {
  margin-top: 1rem;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a2e;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item p {
  margin-top: 0.75rem;
  color: #4b5563;
  line-height: 1.6;
}

/* --- CTA Box (inline) --- */
.cta-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.cta-box h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

.cta-phone {
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #374151;
}

.required {
  color: #dc2626;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.contact-details {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 8px;
}

.contact-details h2 {
  margin-top: 0;
}

.contact-phone a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* --- Things to Do Page --- */
.things-to-do-item {
  margin-bottom: 2.5rem;
}

.things-to-do-item h2 {
  margin-bottom: 0.75rem;
}

/* --- Responsive Map Embed (16:9) --- */
.map-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Footer --- */
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 2.5rem 0;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}

/* Footer GBP Map */
.footer-map {
  text-align: center;
}

.footer-map-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-map-embed {
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}

.footer-map-embed iframe {
  width: 280px;
  height: 180px;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }
  .footer-map-embed iframe {
    width: 100%;
    max-width: 320px;
  }
}

.footer-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--primary-light);
}

.site-footer a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Print Styles --- */
@media print {
  .site-header,
  .site-footer,
  .hero,
  .cta-section,
  .btn,
  .nav-toggle-label {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .card {
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
  }
}
