/* ============================================================
   Urban Bees — Main Stylesheet
   v1.1 — June 2026
   Font: Poppins via Google Fonts
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: clip; }

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.75; }
ul { list-style: none; }

/* ---------- CSS Custom Properties ---------- */
:root {
  --black: #1a1a1a;
  --white: #ffffff;
  --green: #4a7a45;
  --green-light: #e8f0e6;
  --cream: #f7f5f0;
  --amber: #b06b10;
  --max-width: 1800px;
  --page-padding: 4vw;
  --content-width: 900px;
  --header-height: 80px;
  --transition: 0.3s ease;
}

/* ---------- Typography ---------- */
h1 { font-size: clamp(1.5rem, 1.97vw, 1.97rem); font-weight: 300; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 300; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 300; line-height: 1.5; }
h4 { font-size: 1rem; font-weight: 500; }
p { font-size: 1rem; font-weight: 300; }

strong { font-weight: 500; }
em { font-style: italic; }

.text-center { text-align: center; }
.text-small { font-size: 0.8rem; }

/* ---------- Layout Utilities ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--page-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

.header-logo img {
  height: 52px;
  width: auto;
  transition: filter var(--transition);
}

/* Logo natural colour on transparent header */
.site-header.transparent .header-logo img {
  filter: none;
}

.site-header.scrolled .header-logo img {
  filter: none;
}

/* ---------- Nav ---------- */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a,
.nav-folder-btn {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
  transition: opacity var(--transition);
  padding: 0;
}

.header-nav a:hover,
.nav-folder-btn:hover { opacity: 0.6; }

/* Transparent header — white text */
.site-header.transparent .header-nav a,
.site-header.transparent .nav-folder-btn,
.site-header.transparent .social-icon { color: var(--white); }

.site-header.scrolled .header-nav a,
.site-header.scrolled .nav-folder-btn,
.site-header.scrolled .social-icon { color: var(--black); }

/* Pages with plain title hero — nav always visible */
body:has(.page-hero) .site-header {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
body:has(.page-hero) .site-header .header-nav a,
body:has(.page-hero) .site-header .nav-folder-btn,
body:has(.page-hero) .site-header .social-icon { color: var(--black); }

/* Folder / dropdown */
.nav-folder {
  position: relative;
}

.nav-folder-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  min-width: 220px;
  padding: 1rem 0 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateX(-50%) translateY(-6px);
  pointer-events: none;
}

/* Bridge the gap between nav button and dropdown so hover isn't lost */
.nav-folder-dropdown::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  height: 1rem;
}

.nav-folder:hover .nav-folder-dropdown,
.nav-folder-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-folder-dropdown a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--black) !important;
  text-transform: none;
  transition: background var(--transition);
}

.nav-folder-dropdown a:hover { background: var(--cream); opacity: 1; }

/* Social icons in header */
.header-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: opacity var(--transition);
}

.social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.social-icon:hover { opacity: 0.6; }

/* ---------- Burger / Mobile Nav ---------- */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.burger-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  padding: calc(var(--header-height) + 2rem) var(--page-padding) 2rem;
  overflow-y: auto;
}

.mobile-nav.open { display: block; }

.mobile-nav ul { display: flex; flex-direction: column; gap: 0; }
.mobile-nav li { border-bottom: 1px solid rgba(0,0,0,0.08); }

.mobile-nav a,
.mobile-nav-folder-btn {
  display: block;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 400;
  background: none;
  border: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--black);
}

.mobile-nav-sub { display: none; padding-left: 1rem; }
.mobile-nav-sub.open { display: block; }
.mobile-nav-sub a { font-size: 0.95rem; padding: 0.6rem 0; }

.mobile-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  color: var(--black);
}

.mobile-social svg { width: 20px; height: 20px; fill: currentColor; }
.mobile-social a { width: auto; opacity: 0.6; transition: opacity 0.2s; }
.mobile-social a:hover { opacity: 1; }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.65;
  transition: transform 0.6s ease;
}

/* Video variant of hero background */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Full-width proportional video hero (homepage) */
.hero--video {
  min-height: unset;
  display: block;
  position: relative;
}


.hero--video .hero-bg.hero-video {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  opacity: 1;
  inset: unset;
}

/* Poster image — absolute overlay, fades out when video plays */
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.4s;
}

.hero--video.video-playing .hero-poster {
  opacity: 0;
  pointer-events: none;
}

.hero--video .hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Video play/pause button */
.video-play-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 10;
  width: clamp(20px, 3vw, 32px);
  height: clamp(20px, 3vw, 32px);
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: clamp(0.45rem, 0.8vw, 0.7rem);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.video-play-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.video-play-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
  padding: 0 var(--page-padding);
  max-width: 1000px;
}

.hero-content h1 { color: var(--white); margin-bottom: 0.5rem; }
.hero-content p { font-size: 1.1rem; opacity: 0.9; margin-top: 1rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.lead { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 300; line-height: 1.5; }

/* Short hero variant (for inner pages) */
.hero--short {
  min-height: 60vh;
}

.hero--short .hero-bg {
  opacity: 0.5;
}

/* No-image hero (plain title page) */
.page-hero {
  padding: calc(var(--header-height) + 3rem) var(--page-padding) 1.5rem;
  text-align: center;
}

.page-hero h1 { margin-bottom: 0; }

/* ---------- Content Sections ---------- */
.section {
  padding: 6rem var(--page-padding);
}

.section--cream { background: var(--cream); }
.section--black { background: var(--black); color: var(--white); }
.section--white { background: var(--white); }
.section--amber { background: var(--amber); color: var(--white); }

.section + .section { padding-top: 4rem; }

/* ---------- Rich Text Content ---------- */
.rich-text h3 { margin-bottom: 1.5rem; }
.rich-text p { margin-bottom: 1rem; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul { list-style: disc; padding-left: 1.5rem; }
.rich-text ul li { margin-bottom: 0.5rem; }
.rich-text a { text-decoration: underline; }
.rich-text strong { font-weight: 500; }

/* Service blocks */
.services-list { margin-top: 2rem; }
.service-item { margin-bottom: 1.5rem; }
.service-item h4 { margin-bottom: 0.3rem; }

/* ---------- Gallery Grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2.5rem;
  padding: 0.5rem var(--page-padding) 4rem;
  background: var(--white);
}

.gallery-item {
  position: relative;
  background: var(--white);
  text-decoration: none;
  display: block;
}

.gallery-item-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: var(--white);
  padding: 2rem 1.25rem 1rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transform: translateY(4px);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item-label {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--black);
  opacity: 0.55;
  font-style: italic;
  line-height: 1.4;
}

/* ---------- Quote Section ---------- */
.quote-section {
  padding: 7rem var(--page-padding);
  text-align: center;
  background: var(--cream);
}

.quote-section blockquote {
  max-width: var(--content-width);
  margin: 0 auto;
}

.quote-section blockquote p {
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 300;
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

.quote-section cite {
  font-style: normal;
  font-size: 0.9rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

/* ---------- Blog Section ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.blog-card { display: flex; flex-direction: column; }

.blog-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 1.25rem;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.04); }

.blog-card-meta {
  font-size: 0.8rem;
  opacity: 0.55;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.75rem;
}

.blog-card h2 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-card h2 a:hover { opacity: 0.7; }

.blog-card-excerpt {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 1.25rem;
  flex: 1;
}

.read-more {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline;
}

/* ---------- Blog Article Page ---------- */
.blog-header {
  padding: calc(var(--header-height) + 5rem) var(--page-padding) 3rem;
  text-align: center;
}

.blog-header h1 { max-width: var(--content-width); margin: 0 auto 1rem; }

.blog-meta {
  font-size: 0.85rem;
  opacity: 0.55;
}

.blog-hero-image {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
}

.blog-body {
  padding: 4rem var(--page-padding);
}

.blog-body .content-narrow { font-size: 1.05rem; line-height: 1.8; }
.blog-body p { margin-bottom: 1.4rem; }
.blog-body h2, .blog-body h3 { margin: 2.5rem 0 1rem; }
.blog-body ul, .blog-body ol { padding-left: 1.75rem; margin-bottom: 1.4rem; }
.blog-body li { margin-bottom: 0.5rem; }
.blog-body a { text-decoration: underline; color: var(--green); }
.blog-body img { margin: 2.5rem 0; border-radius: 2px; }
.blog-back-link { display: inline-block; margin-bottom: 2rem; font-size: 0.85rem; text-decoration: underline; }

/* ---------- Fundraising / CTA ---------- */
.donation-cta {
  background: var(--black);
  color: var(--white);
  padding: 5rem var(--page-padding);
  text-align: center;
}

.donation-cta h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; margin-bottom: 1rem; }
.donation-cta h2 { max-width: 700px; margin: 0 auto 2rem; }
.donation-cta p { max-width: 600px; margin: 0 auto 2.5rem; opacity: 0.75; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition);
}

.btn--primary {
  background: var(--black);
  color: var(--white);
}

.btn--primary:hover { background: #333; opacity: 1; }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.6);
}

.btn--outline-white:hover { background: var(--white); color: var(--black); opacity: 1; }

.btn--outline {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(0,0,0,0.35);
}

.btn--outline:hover { background: var(--black); color: var(--white); opacity: 1; }

/* ---------- Contact Block ---------- */
.contact-block { text-align: center; }
.contact-block h2 { margin-bottom: 2rem; }
.contact-block p { margin-bottom: 0.6rem; }
.contact-block address { font-style: normal; line-height: 1.9; }
.contact-block a { text-decoration: underline; }

/* ---------- Team / People Grid ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.person-card { text-align: center; }

.person-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 2px;
}

.person-card h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.25rem; }
.person-card p { font-size: 0.9rem; opacity: 0.7; }

/* ---------- Back-link ---------- */
.breadcrumb {
  padding: calc(var(--header-height) + 1.5rem) var(--page-padding) 0;
  font-size: 0.82rem;
  opacity: 0.5;
}

.breadcrumb a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 3rem var(--page-padding);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer-social a:hover { opacity: 1; }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
}

.footer-links a {
  font-size: 0.8rem;
  opacity: 0.55;
  transition: opacity var(--transition);
  letter-spacing: 0.03em;
}

.footer-links a:hover { opacity: 1; }

.footer-copyright {
  font-size: 0.75rem;
  opacity: 0.35;
}

/* ---------- Newsletter ---------- */
.newsletter-section {
  position: relative;
  background: url('../images/newwebsite2026/bow-bells-house/5.wideshotrussiansageragwortsalvia.jpg') center/cover no-repeat;
  color: var(--white);
}
.section.newsletter-section {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  pointer-events: none;
}
.newsletter-section .container {
  position: relative;
  z-index: 1;
}
.newsletter-section h2 { margin-bottom: 0.75rem; }
.newsletter-section p { opacity: 0.85; margin-bottom: 1.5rem; }
.newsletter-form { position: relative; }
.newsletter-fields {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.newsletter-fields input[type="email"] {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.92);
  color: var(--black);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  width: 300px;
  max-width: 100%;
}
.newsletter-fields input[type="email"]::placeholder { color: var(--black); opacity: 0.45; }
.newsletter-fields button {
  padding: 0.75rem 1.75rem;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.newsletter-fields button:hover { opacity: 0.85; }
.newsletter-small { font-size: 0.8rem; opacity: 0.45; margin-bottom: 0; }
.newsletter-preview-link { color: var(--white); opacity: 0.75; text-underline-offset: 3px; white-space: nowrap; }
.newsletter-preview-link:hover { opacity: 1; }
.newsletter-result { margin-top: 1rem; font-size: 1rem; }
.newsletter-result--ok { opacity: 0.9; }
.newsletter-result--err { color: #f87171; }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--black);
  color: var(--white);
  padding: 1.25rem var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 2000;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.cookie-banner p { flex: 1; min-width: 200px; opacity: 0.85; }

.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

.cookie-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
  letter-spacing: 0.04em;
}

.cookie-btn--accept { background: var(--white); color: var(--black); }
.cookie-btn--decline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.4); }

.cookie-banner[hidden] { display: none; }

/* ---------- Legal pages ---------- */
.legal-content {
  padding: calc(var(--header-height) + 4rem) var(--page-padding) 5rem;
}

.legal-content h1 { margin-bottom: 2.5rem; }
.legal-content h2 { margin: 2.5rem 0 1rem; font-size: 1.2rem; font-weight: 500; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { padding-left: 1.75rem; list-style: disc; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content a { text-decoration: underline; }

/* ---------- Testimonial ---------- */
.testimonial-quote {
  border-left: 3px solid var(--green);
  padding: 1.5rem 0 1.5rem 2rem;
  margin: 3rem 0;
}

.testimonial-quote p {
  font-size: 1rem;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-quote cite {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
}

/* ---------- Project Gallery (smaller items) ---------- */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 3rem var(--page-padding) 4rem;
  background: var(--white);
}

.project-gallery-item {
  background: var(--white);
}

.project-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-gallery-item:hover img { transform: scale(1.03); }

.project-gallery-caption {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--black);
  opacity: 0.55;
  font-style: italic;
  line-height: 1.4;
}

/* ---------- Wilder Mile specific ---------- */
.wilder-mile-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--cream);
  padding: 2rem;
}

.step-card h4 { font-size: 1rem; font-weight: 500; margin-bottom: 0.75rem; }
.step-card p { font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header-nav,
  .header-social { display: none; }

  .burger-btn { display: flex; }

  .site-header.transparent .burger-btn { color: var(--white); }
  .site-header.scrolled .burger-btn { color: var(--black); }

  /* Pages with plain title hero — burger always dark */
  body:has(.page-hero) .site-header .burger-btn { color: var(--black); }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section { padding: 4rem var(--page-padding); }
}

@media (max-width: 600px) {
  :root { --page-padding: 5vw; }

  h1 { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  h3 { font-size: clamp(1.05rem, 4vw, 1.3rem); }

  .blog-grid { grid-template-columns: 1fr; }

  .cookie-banner { flex-direction: column; align-items: flex-start; }

  .footer-links { gap: 0.4rem 1rem; }

  .people-grid { grid-template-columns: 1fr; }
}

/* ---------- Scroll-in Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Project prev/next navigation ---------- */
.project-nav {
  background: #4a7a45;
  background: var(--green);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.project-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 36px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-poster { opacity: 1 !important; }
}

.project-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.3rem 1.5rem;
  transition: background 0.2s;
  flex: 1;
}

.project-nav-link--empty {
  flex: 1;
}

.project-nav-prev-link { justify-content: flex-start; }
.project-nav-next-link { justify-content: flex-end; }

.project-nav-link:hover,
.project-nav-link:focus-visible {
  background: rgba(255,255,255,0.12);
  outline: none;
}

.project-nav-arrow {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.project-nav-label {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-nav-counter {
  color: rgba(255,255,255,0.65);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  white-space: nowrap;
  padding: 0 1rem;
  display: flex;
  align-items: center;
}

@media (max-width: 600px) {
  .project-nav-label { display: none; }
  .project-nav-link { padding: 0.3rem 0.75rem; flex: 0 0 auto; }
  .project-nav-link--empty { flex: 0 0 32px; }
  .project-nav-arrow { font-size: 1.1rem; }
  .project-nav-counter { flex: 1; justify-content: center; font-size: 0.75rem; }
}



/* ---------- Swipe hint toast ---------- */
.project-swipe-hint {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: rgba(26, 26, 26, 0.82);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0.6rem 1.4rem;
  border-radius: 99px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
}

.project-swipe-hint--visible {
  opacity: 1;
}

/* Only show toast on touch devices */
@media (hover: hover) {
  .project-swipe-hint { display: none; }
}

@media (min-width: 901px) {
  .hero--video {
    background: var(--white);
  }
  .hero--video .hero-bg.hero-video {
    width: auto;
    height: 50vh;
    margin: 0 auto;
  }
}
