/* ============================================
   2Botanicals — Indoor Plants & Landscaping
   Shared Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --green-dark:   #2a3d2b;
  --green-mid:    #4a6741;
  --green-light:  #7a9e6e;
  --green-pale:   #c8d9c0;
  --cream:        #f5f1ea;
  --cream-dark:   #ede8de;
  --sand:         #d4c9b0;
  --brown:        #6b5a3e;
  --white:        #ffffff;
  --text-dark:    #1e2a1f;
  --text-mid:     #4a5349;
  --text-light:   #7a8a79;
  --accent:       #8fb37a;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --nav-h:        80px;
  --radius:       4px;
  --transition:   0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
  text-wrap: balance; /* headings are short — balance keeps them from leaving a lone word on the last line */
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }
p  {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  text-wrap: pretty; /* asks supporting browsers to avoid stranding a single word on its own line */
}

/* ---- Utility ---- */
.container { width: 90%; max-width: 1240px; margin: 0 auto; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-mid);
  display: block;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}
.section-title em { font-style: italic; color: var(--green-mid); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  transition: var(--transition);
}
.btn-primary {
  background: var(--green-dark);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-mid); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green-dark);
}
.btn-outline:hover { background: var(--green-dark); color: var(--white); }
.btn-light {
  background: var(--white);
  color: var(--green-dark);
}
.btn-light:hover { background: var(--cream); }
.divider {
  width: 50px; height: 2px;
  background: var(--green-light);
  margin: 1.25rem 0;
}
.divider-center { margin: 1.25rem auto; }
.text-center { text-align: center; }

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

.nav-logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.nav-logo img {
  display: block;
  height: 102px;
  width: auto;
  margin-top: 50px;
  position: relative;
  z-index: 11;
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-logo span { color: var(--green-mid); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-item {
  position: relative;
}
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 1.1rem;
  height: var(--nav-h);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  font-weight: 400;
  transition: color var(--transition);
}
.nav-item > a:hover,
.nav-item.active > a { color: var(--green-mid); }
.nav-item > a .chevron {
  font-size: 0.6rem;
  opacity: 0.5;
  transition: transform var(--transition);
}
.nav-item:hover > a .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%; left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-top: 3px solid var(--green-mid);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.65rem 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  border-bottom: 1px solid var(--cream-dark);
  transition: all var(--transition);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--cream); color: var(--green-dark); padding-left: 1.6rem; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-search-btn {
  background: none; border: none;
  color: var(--text-dark);
  font-size: 1rem;
  padding: 0.4rem;
  transition: color var(--transition);
}
.nav-search-btn:hover { color: var(--green-mid); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
  padding: 1.5rem 0;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.7rem 5%;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  border-bottom: 1px solid var(--cream-dark);
  transition: all var(--transition);
}
.mobile-nav a:hover { color: var(--green-mid); padding-left: 7%; }
.mobile-nav .mobile-sub a { padding-left: 8%; font-size: 0.78rem; color: var(--text-light); }

.footer-brand img {
  width: 110px;
  height: auto;
  max-width: 100%;
  display: block;
}

/* ============================================
   PAGE HERO / BANNER
   ============================================ */
.page-hero {
  margin-top: var(--nav-h);
  height: 380px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--green-dark);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.page-hero:hover .page-hero-bg { transform: scale(1); }
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(2.5rem, 5vw, 4rem); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.breadcrumb a { color: var(--green-pale); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  padding: 5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--green-mid); border-color: var(--green-mid); color: var(--white); }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.footer-col ul li {
  margin-bottom: 0.6rem;
}
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--green-pale); }
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}
.footer-contact-item i { color: var(--green-pale); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: var(--green-pale); }
.footer-affiliates { padding-bottom: 2.5rem; }
.footer-affiliates h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.footer-affiliates-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-affiliates-row img {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity var(--transition);
}
.footer-affiliates-row img:hover { opacity: 1; }
/* BFA, IPF, NAFAS, City & Guilds and Floral Hearts logos sit on squarer
   artwork than the two wordmark logos that follow them, so at a shared
   height they read as noticeably smaller — sized up ~32% total to compensate. */
.footer-affiliates-row img:nth-child(-n+5) { height: 45px; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-inner img {
  display: block;
  max-width: 90vw;
  max-height: min(70vh, 560px);
  object-fit: contain;
  margin: 0 auto;
}
.lightbox-close {
  position: absolute;
  top: -2.5rem; right: 0;
  background: none; border: none;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 10000;
}
.lightbox-prev:hover, .lightbox-next:hover { background: var(--green-mid); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-caption {
  max-width: 90vw;
  margin: 1rem auto 0;
  text-align: center;
  color: var(--white);
}
.lightbox-caption h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.lightbox-caption .lb-loc {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-pale);
  margin-bottom: 0.6rem;
}
.lightbox-caption .lb-loc:empty,
.lightbox-caption h3:empty,
.lightbox-caption p:empty { display: none; }
.lightbox-caption p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto;
}
.lightbox-counter {
  position: absolute;
  top: 0.6rem; left: 0.6rem;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.85);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  z-index: 10;
}
.lightbox-counter:empty { display: none; }

@media (max-width: 640px) {
  .lightbox-inner img { max-height: 60vh; }
  .lightbox-prev, .lightbox-next {
    width: 40px; height: 40px;
    font-size: 1.1rem;
  }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-caption h3 { font-size: 1.15rem; }
  .lightbox-caption p { font-size: 0.82rem; }
  .lightbox-close { top: -2.2rem; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .page-hero { height: 260px; }
  .footer-affiliates-row { justify-content: flex-start; gap: 1.25rem 1.75rem; }
  .footer-affiliates-row img { height: 26px; }
  .footer-affiliates-row img:nth-child(-n+5) { height: 34px; }
}
