/* =========================================================
   BritishHomeCraft — Stylesheet
   Color palette: Navy blue, warm ivory, muted burgundy,
   natural wood brown, soft gray
   ========================================================= */

:root {
  --navy: #1f2d44;
  --navy-dark: #152034;
  --ivory: #f7f3ea;
  --burgundy: #7a2e3a;
  --burgundy-dark: #5f2330;
  --wood-brown: #8a5a3b;
  --soft-gray: #e4e1da;
  --text-dark: #262320;
  --text-muted: #5b574f;
  --white: #ffffff;
  --radius: 6px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.btn {
  display: inline-block;
  padding: 0.75em 1.6em;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

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

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

.btn-outline {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

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

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.site-header {
  background-color: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9em 1.5em;
  position: relative;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ivory);
}

.logo:hover {
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  gap: 1.8em;
  align-items: center;
}

.main-nav a {
  color: var(--ivory);
  font-weight: 500;
}

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

.nav-cta {
  background-color: var(--burgundy);
  padding: 0.5em 1.2em;
  border-radius: var(--radius);
  color: var(--white) !important;
}

.nav-cta:hover {
  background-color: var(--burgundy-dark);
}

/* Burger toggle — hidden on desktop */
.nav-toggle,
.burger {
  display: none;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5em;
  padding: 3em 1.5em;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 2.6rem;
  margin-bottom: 0.5em;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5em;
}

.hero-image {
  flex: 1;
}

/* =========================================================
   PHOTO PLACEHOLDER (16:9, gray template)
   ========================================================= */

.photo-placeholder {
  background-color: var(--soft-gray);
  border: 1px solid #c9c5bb;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   CONTENT SECTIONS
   ========================================================= */

.content-section {
  padding: 4em 1.5em;
}

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

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3em;
}

.section-inner.reverse {
  flex-direction: row;
}

.section-text {
  flex: 1;
}

.section-inner > .photo-placeholder {
  flex: 1;
}

.feature-list li {
  padding-left: 1.4em;
  position: relative;
  margin-bottom: 0.5em;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--wood-brown);
  font-weight: 700;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */

.section-heading {
  max-width: 700px;
  margin: 0 auto 2.5em;
  text-align: center;
  padding: 0 1.5em;
}

.testimonials {
  padding: 4em 1.5em;
  background-color: var(--navy);
}

.testimonials .section-heading h2,
.testimonials .section-heading p {
  color: var(--ivory);
}

.testimonial-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8em;
}

.testimonial-card {
  background-color: var(--ivory);
  border-radius: var(--radius);
  padding: 1.8em;
  border: 1px solid #dcd8cd;
}

.testimonial-card .quote {
  font-style: italic;
  color: var(--text-dark);
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--wood-brown);
  margin-bottom: 0;
}

/* =========================================================
   CONTACT FORM
   ========================================================= */

.contact-section {
  padding: 4em 1.5em;
  background-color: var(--white);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background-color: var(--ivory);
  border: 1px solid #dcd8cd;
  border-radius: var(--radius);
  padding: 2em;
}

.form-row {
  margin-bottom: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.form-row label {
  font-weight: 600;
  color: var(--navy);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  padding: 0.7em;
  border: 1px solid #c9c5bb;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--white);
  color: var(--text-dark);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--wood-brown);
}

.checkbox-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6em;
}

.checkbox-row label {
  font-weight: 400;
  color: var(--text-muted);
}

.field-error {
  border-color: var(--burgundy) !important;
}

/* =========================================================
   MODAL
   ========================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(31, 45, 68, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1em;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 2em;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.modal-box h3 {
  color: var(--burgundy);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background-color: var(--navy-dark);
  color: var(--soft-gray);
  padding: 3em 1.5em 1.5em;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2em;
}

.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--ivory);
  margin-bottom: 0.4em;
}

.site-footer p {
  color: #c7c4bb;
}

.site-footer a {
  color: var(--soft-gray);
}

.footer-col h4 {
  color: var(--ivory);
  margin-bottom: 0.8em;
}

.footer-col ul li {
  margin-bottom: 0.5em;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2em auto 0;
  border-top: 1px solid #2a3850;
  padding-top: 1.2em;
  text-align: center;
  font-size: 0.9rem;
  color: #9ea4b0;
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--navy-dark);
  color: var(--soft-gray);
  padding: 1.2em 1.5em;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  flex-wrap: wrap;
  z-index: 3000;
  border-top: 3px solid var(--burgundy);
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  color: var(--soft-gray);
  flex: 1;
  min-width: 240px;
}

.cookie-banner a {
  color: var(--ivory);
  text-decoration: underline;
}

.cookie-actions {
  flex-shrink: 0;
}

/* =========================================================
   RESPONSIVE — TABLET & MOBILE (breakpoint 900px)
   ========================================================= */

@media (max-width: 900px) {

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 26px;
    cursor: pointer;
    z-index: 1100;
  }

  .burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--ivory);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 1em 1.5em 1.5em;
    gap: 1em;
  }

  .nav-cta {
    display: inline-block;
  }

  /* checkbox-driven open state */
  .nav-toggle:checked ~ .main-nav {
    max-height: 420px;
  }

  .nav-toggle:checked ~ .burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked ~ .burger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2.5em 1.5em;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section-inner,
  .section-inner.reverse {
    flex-direction: column;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 1.7rem;
  }

  .content-section,
  .testimonials,
  .contact-section {
    padding: 2.5em 1em;
  }

  .contact-form {
    padding: 1.5em;
  }
}
