/* ============================================================
   Byron Tropical Plants — Main Stylesheet
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Open+Sans:wght@300;400;600&display=swap');

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: #333;
  background: #fff;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Variables ---------- */
:root {
  --green-dark:  #2d6a2d;
  --green-mid:   #3d8b3d;
  --green-light: #5aab5a;
  --red-accent:  #c0392b;
  --white:       #ffffff;
  --off-white:   #f8f8f5;
  --text-dark:   #222;
  --text-mid:    #555;
  --shadow:      0 4px 18px rgba(0,0,0,0.12);
  --radius:      8px;
  --transition:  0.3s ease;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 60px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav ul li a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--green-dark);
  background: rgba(45,106,45,0.08);
}

.btn-quote {
  background: transparent;
  border: 2px solid var(--green-dark);
  color: var(--green-dark) !important;
  padding: 8px 20px !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
  transition: all var(--transition) !important;
}

.btn-quote:hover {
  background: var(--green-dark) !important;
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--green-dark);
  border-radius: 3px;
  transition: all var(--transition);
}

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    padding: 16px 0;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; }
  nav ul li a { display: block; padding: 12px 24px; border-radius: 0; }
  .btn-quote { margin: 8px 24px; display: inline-block; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px;
  max-width: 800px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 32px;
  opacity: 0.92;
}

.hero .btn-primary {
  display: inline-block;
  background: var(--green-mid);
  color: #fff;
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.hero .btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* Wave divider */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('../images/services-hero.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 72px 24px; }

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

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--green-dark);
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

/* ---------- About Section ---------- */
.about-section {
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--green-dark);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-mid);
  margin-bottom: 16px;
}

.about-img img {
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  max-height: 380px;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Services Cards ---------- */
.services-section { background: #fff; }

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

.card {
  background: var(--off-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.16);
}

.card-icon {
  background: var(--green-dark);
  color: #fff;
  font-size: 2.4rem;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-body {
  padding: 24px 20px;
}

.card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.card-body p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--green-mid);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.card-link:hover { color: var(--green-dark); }

@media (max-width: 900px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards-grid { grid-template-columns: 1fr; } }

/* ---------- Quality Section ---------- */
.quality-section {
  background: var(--off-white);
}

.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.quality-img img {
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  max-height: 380px;
}

.quality-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--green-dark);
  margin-bottom: 16px;
}

.quality-text p {
  color: var(--text-mid);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .quality-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- CTA Banner ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}

.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--green-dark);
  padding: 14px 40px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
}

/* ============================================================
   PLANT SERVICES PAGE
   ============================================================ */
.services-detail {
  background: #fff;
}

.services-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.services-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--green-dark);
  font-style: italic;
  margin-bottom: 24px;
}

.services-intro p {
  color: var(--text-mid);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* ============================================================
   PLANT RANGE PAGE
   ============================================================ */
.range-section {
  background: #fff;
}

.range-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.range-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--green-dark);
  font-style: italic;
  margin-bottom: 24px;
}

.range-intro p {
  color: var(--text-mid);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.plant-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 32px 0;
}

.plant-tag {
  background: var(--green-dark);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-section {
  background: #fff;
  padding: 48px 24px 72px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45,106,45,0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #fff;
  font-size: 2rem;
}

@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.lightbox-close:hover { color: #ccc; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 12px 16px;
  border-radius: 4px;
  transition: background var(--transition);
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail .icon {
  font-size: 1.4rem;
  color: var(--green-mid);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail p {
  color: var(--text-mid);
  font-size: 1rem;
}

.contact-detail a {
  color: var(--green-mid);
  transition: color var(--transition);
}
.contact-detail a:hover { color: var(--green-dark); }

/* Contact Form */
.contact-form h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(61,139,61,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.btn-submit {
  display: inline-block;
  background: var(--green-dark);
  color: #fff;
  padding: 14px 44px;
  border: none;
  border-radius: 30px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.5px;
}

.btn-submit:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
}

.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid var(--green-mid);
  color: var(--green-dark);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-top: 16px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
              url('../images/hero-plants.jpg') center/cover no-repeat;
  color: #fff;
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.85;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #fff;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer-col ul li a:hover { opacity: 1; }

.footer-col p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 8px;
}

.footer-col a {
  color: #fff;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.footer-col a:hover { opacity: 1; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.7;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
