/* ==========================================================================
   Little Afton Flowers — site styles
   ========================================================================== */

:root {
  --green: #3a7f41;
  --green-dark: #2f6b35;
  --ink: #2b2b26;
  --ink-soft: #5a5a52;
  --cream: #fbf9f4;
  --cream-deep: #f2ede2;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 43, 38, 0.10);
  --max-width: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { font-weight: 600; margin: 0 0 0.5em; line-height: 1.2; }
h2.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 0.3em;
}
p.section-kicker {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 0.6em;
}

.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  background: var(--green);
  color: var(--white);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn.btn-outline-dark {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green);
}
.btn.btn-outline-dark:hover { background: var(--green); color: var(--white); }

/* Screen-reader-only text and keyboard skip link */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.8em 1.4em;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(43,43,38,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: 48px; }
.brand .brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}
nav.main-nav a.active,
nav.main-nav a:hover { color: var(--green-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,35,20,0.35) 0%, rgba(30,35,20,0.55) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 620px; }
.hero-content p.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #d9f2d9;
  margin-bottom: 0.8em;
}
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.4em; }
.hero-content p.lead { font-size: 1.05rem; margin-bottom: 1.6em; color: #f1f1e9; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30,35,20,0.5);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.2em; }
.breadcrumb { font-size: 0.9rem; color: #e7f4e7; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Generic sections ---------- */
section { padding: 5.5rem 0; }
section.tight { padding: 3.5rem 0; }
.bg-white { background: var(--white); }
.bg-cream-deep { background: var(--cream-deep); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }
.two-col.reverse .col-img { order: 2; }

.col-text .kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.6em;
  display: block;
}
.col-text p { color: var(--ink-soft); }

/* ---------- Seasons / galleries ---------- */
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  margin-top: 2.8rem;
}
.season-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Pause / play control for the season photo carousels */
.gallery-pause {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(20, 24, 16, 0.55);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease;
}
.gallery-pause:hover { background: rgba(20, 24, 16, 0.8); }
@media (hover: none), (max-width: 900px) {
  .gallery-pause { width: 44px; height: 44px; }
  .gallery-pause svg { width: 18px; height: 18px; }
}
.gallery-pause svg { width: 16px; height: 16px; fill: currentColor; }
.gallery-pause:focus-visible,
.gallery-scroll:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 2px;
}
.gallery-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0;
  -webkit-overflow-scrolling: touch;
}
.gallery-scroll::-webkit-scrollbar { height: 6px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 6px; }
.gallery-scroll img {
  scroll-snap-align: start;
  flex: 0 0 100%;
  height: 230px;
  object-fit: cover;
}
.season-card .season-body { padding: 1.4rem 1.5rem 1.7rem; }
.season-card h3 { font-size: 1.25rem; margin-bottom: 0.5em; }
.season-card p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

.dot-row { display: flex; gap: 6px; justify-content: center; padding: 10px 0 0; }
.dot-row span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(43,43,38,0.18);
}

.story-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3.5rem;
}
.story-block h2 { font-size: 1.35rem; }
.story-block p { color: var(--ink-soft); margin: 0; }
.story-block a { color: var(--green-dark); text-decoration: underline; }
@media (max-width: 760px) { .story-sections { grid-template-columns: 1fr; } }

/* A photo carousel used in a two-column image slot (not a season card) */
.photo-carousel {
  position: relative;
  width: 100%;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-carousel .gallery-scroll { min-width: 0; }
/* min-width:0 stops each photo's natural width forcing the column wider */
.photo-carousel .gallery-scroll img { height: auto; min-width: 0; }
.two-col .col-img { min-width: 0; }

/* ---------- Icon list ---------- */
.icon-list { list-style: none; margin: 1.4rem 0; padding: 0; }
.icon-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  color: var(--ink-soft);
}
.icon-list li::before {
  content: "✿";
  color: var(--green);
  font-size: 1.05rem;
  line-height: 1.5;
  flex-shrink: 0;
}

/* ---------- Banner / quote ---------- */
.banner-quote {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
  color: var(--white);
  text-align: center;
}
.banner-quote::after { content: ""; position: absolute; inset: 0; background: rgba(20,30,15,0.55); }
.banner-quote .container { position: relative; z-index: 2; }
.banner-quote p {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  max-width: 760px;
  margin: 0 auto;
  font-weight: 500;
}

/* ---------- Simple photo grid (u-pick / events) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.photo-grid img { border-radius: var(--radius); height: 200px; object-fit: cover; box-shadow: var(--shadow); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--green); color: var(--white); text-align: center; }
.newsletter h2 { color: var(--white); }
.newsletter p { color: #f0faf0; margin-bottom: 1.6rem; }
.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}
.newsletter-form input[type=email] {
  flex: 1;
  min-width: 220px;
  padding: 0.9em 1.2em;
  border-radius: 100px;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
}
.newsletter-form .btn { background: var(--ink); }
.newsletter-form .btn:hover { background: #000; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4em;
  margin-top: 1.1em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8em 1em;
  border-radius: 10px;
  border: 1px solid rgba(43,43,38,0.18);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { margin-top: 1.6rem; }

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.info-card p { color: var(--ink-soft); margin: 0 0 1.2rem; }
.info-card iframe { width: 100%; height: 220px; border: 0; border-radius: 10px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-group { margin-top: 2.6rem; }
.faq-group:first-child { margin-top: 0; }
.faq-group h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.faq-list details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.4rem;
  font-weight: 600;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green-dark);
  font-size: 1.4rem;
  font-weight: 500;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list .faq-a { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }
.faq-list .faq-a p { margin: 0; }
.faq-list .faq-a a {
  color: var(--green-dark);
  text-decoration: underline;
  padding: 0.2em 0;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: #2c3324;
  color: #d8ddd0;
  padding: 3.5rem 0 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h2 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.footer-grid p, .footer-grid a { color: #c3cbb7; font-size: 0.92rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.1rem; }
.footer-grid li a {
  display: inline-block;
  padding: 0.55rem 0;
}
.footer-grid a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-brand img { height: 40px; width: 40px; }
.footer-brand span { color: var(--white); font-weight: 700; }
.footer-bottom {
  padding-top: 1.4rem;
  text-align: center;
  font-size: 0.82rem;
  color: #9aa58b;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse .col-img { order: 0; }
  .seasons-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  nav.main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    box-shadow: var(--shadow);
    display: none;
  }
  nav.main-nav.is-open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 24px 1.5rem;
  }
  nav.main-nav li { border-bottom: 1px solid rgba(43,43,38,0.06); }
  nav.main-nav li a { display: block; padding: 0.85rem 0; }
  .nav-toggle { display: flex; }
  section { padding: 3.6rem 0; }
}

/* Menu collapses to the three-line icon a bit earlier now that it has 7 links */
@media (min-width: 761px) and (max-width: 900px) {
  nav.main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    box-shadow: var(--shadow);
    display: none;
  }
  nav.main-nav.is-open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 24px 1.5rem;
  }
  nav.main-nav li { border-bottom: 1px solid rgba(43,43,38,0.06); }
  nav.main-nav li a { display: block; padding: 0.85rem 0; }
  .nav-toggle { display: flex; }
}

/* ---------- Looping video (U-Pick time-lapse) ---------- */
.video-wrap { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--cream-deep);
}
@media (max-width: 900px) { .video-wrap { max-width: 340px; } }
.video-wrap + .col-text a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
