/* ==========================================================================
   EverydayBritainGuide — base styles
   ========================================================================== */

:root {
  --color-deep-blue: #1d3557;
  --color-cream: #f7f3e9;
  --color-forest-green: #2a6f4f;
  --color-muted-red: #a23b3b;
  --color-light-gray: #eceeef;
  --color-text: #22282f;
  --color-white: #ffffff;
  --radius: 6px;
  --transition-fast: 0.25s ease;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--color-deep-blue);
  margin-top: 0;
}

p { margin-top: 0; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

img, .img-placeholder { max-width: 100%; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-deep-blue);
  color: var(--color-white);
}
.btn-primary:hover {
  background: #142540;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-deep-blue);
  border-color: var(--color-deep-blue);
}
.btn-secondary:hover {
  background: var(--color-deep-blue);
  color: var(--color-white);
  text-decoration: none;
}

/* ==========================================================================
   Header / Hero
   ========================================================================== */

.site-header {
  background: var(--color-deep-blue);
  color: var(--color-white);
  padding-bottom: 60px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.logo {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
}
.logo:hover { text-decoration: none; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-white);
  font-weight: 500;
}
.main-nav a:hover {
  color: var(--color-cream);
  text-decoration: none;
}

.menu-toggle { display: none; }
.menu-btn { display: none; }

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  color: var(--color-light-gray);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-header .btn-secondary {
  color: var(--color-white);
  border-color: var(--color-white);
}
.site-header .btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-deep-blue);
}

/* ==========================================================================
   Image placeholders (16:9, gray template)
   ========================================================================== */

.img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #c9ccd0;
  border: 1px dashed #9aa0a6;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5b6066;
  font-size: 0.95rem;
  text-align: center;
  padding: 10px;
}

.site-header .img-placeholder {
  max-width: 1100px;
  margin: 40px auto 0;
}

.section-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.site-header .hero-img {
  max-width: 1100px;
  margin: 40px auto 0;
}

.about-feature {
  margin: 32px 0 0;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 70px 0;
}

.section-cream { background: var(--color-cream); }
.section-gray { background: var(--color-light-gray); }

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.about-item {
  background: var(--color-white);
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 1px solid #e0ddd3;
}

.about-icon {
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 10px;
}

.about-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.two-col.reverse .col-text { order: 2; }
.two-col.reverse .col-media { order: 1; }

.feature-list {
  margin: 20px 0 0;
  padding-left: 20px;
}
.feature-list li { margin-bottom: 10px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.testimonial-card {
  background: var(--color-white);
  border-left: 4px solid var(--color-forest-green);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 14px;
}

.testimonial-card footer {
  font-weight: 600;
  color: var(--color-deep-blue);
  font-style: normal;
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-form {
  max-width: 600px;
  margin-top: 30px;
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid #d8dadc;
}

.form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-row label {
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--color-deep-blue);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  padding: 10px 12px;
  border: 1px solid #c3c7cb;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-forest-green);
  outline-offset: 1px;
}

.form-row-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.form-row-checkbox input {
  margin-top: 4px;
}

.field-error {
  color: var(--color-muted-red);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-deep-blue);
  color: var(--color-light-gray);
  padding: 50px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 30px;
}

.footer-col h3 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-col p { color: var(--color-light-gray); }

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 8px; }

.footer-links a,
.footer-col a {
  color: var(--color-light-gray);
}
.footer-links a:hover,
.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding: 18px 20px;
  font-size: 0.9rem;
}

/* ==========================================================================
   Cookie banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-deep-blue);
  color: var(--color-white);
  padding: 18px 20px;
  z-index: 1000;
  border-top: 2px solid var(--color-forest-green);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-content p {
  margin: 0;
  flex: 1 1 400px;
  font-size: 0.92rem;
}

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

.cookie-banner-actions {
  flex: 0 0 auto;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 53, 87, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 20px;
}

.modal-overlay[hidden] { display: none; }

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

.modal h3 {
  color: var(--color-forest-green);
  margin-bottom: 12px;
}

.modal p { margin-bottom: 22px; }

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.legal-main h1 {
  margin-bottom: 10px;
}

.legal-main h2 {
  font-size: 1.3rem;
  margin-top: 34px;
}

.legal-main .updated {
  color: #5b6066;
  margin-bottom: 30px;
}

.breadcrumb {
  padding: 16px 20px 0;
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive — tablet
   ========================================================================== */

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-deep-blue);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-fast);
    width: 100%;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 20px;
  }

  .main-nav ul li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .main-nav ul li a {
    display: block;
    padding: 14px 0;
  }

  .menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 10;
  }

  .menu-line {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }

  .menu-toggle:checked ~ .main-nav {
    max-height: 400px;
  }

  .menu-toggle:checked ~ .menu-btn .line1 {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle:checked ~ .menu-btn .line2 {
    opacity: 0;
  }
  .menu-toggle:checked ~ .menu-btn .line3 {
    transform: translateY(-8px) rotate(-45deg);
  }

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

  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col.reverse .col-text,
  .two-col.reverse .col-media {
    order: unset;
  }

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

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

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */

@media (max-width: 600px) {
  .section { padding: 50px 0; }

  .hero-content h1 { font-size: 1.6rem; }
  .hero-content p { font-size: 1rem; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .contact-form { padding: 22px; }
}
