/* ============================================
   Cream of the Crop Nursery — Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;

  --cream-50: #faf9f6;
  --cream-100: #F5F1E8;
  --cream-200: #e8e0d0;
  --cream-300: #d4c9b4;

  --text-dark: #1a1a1a;
  --text-medium: #3d3d3d;
  --text-light: #6b6b6b;
  --text-white: #ffffff;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.15);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-medium);
  background-color: var(--cream-50);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

/* --- Section Tag --- */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-600);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--emerald-600);
  color: var(--text-white);
  border-color: var(--emerald-600);
}

.btn-primary:hover {
  background: var(--emerald-700);
  border-color: var(--emerald-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--emerald-700);
  border-color: var(--emerald-300);
}

.btn-secondary:hover {
  background: var(--emerald-50);
  border-color: var(--emerald-500);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--text-white);
  color: var(--emerald-700);
  border-color: var(--text-white);
}

.btn-white:hover {
  background: var(--cream-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-white {
  background: transparent;
  color: var(--text-white);
  border-color: var(--text-white);
}

.btn-outline-white:hover {
  background: var(--text-white);
  color: var(--emerald-700);
  transform: translateY(-2px);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-200);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--emerald-700);
}

.logo-icon {
  color: var(--emerald-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-medium);
  position: relative;
}

.nav-links a:not(.btn):hover {
  color: var(--emerald-600);
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-500);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  padding-top: 100px;
  padding-bottom: 0;
  background: linear-gradient(135deg, var(--cream-50) 0%, var(--emerald-50) 100%);
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-700);
  background: var(--emerald-100);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero h1 span {
  color: var(--emerald-600);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-medium);
}

.trust-item svg {
  color: var(--emerald-500);
  flex-shrink: 0;
}

/* Hero Image */
.hero-image {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.image-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 500px;
}

.image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-accent {
  position: absolute;
  bottom: -20px;
  left: -30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--cream-50);
  width: 200px;
  height: 200px;
}

.image-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  top: 30px;
  right: -20px;
  background: var(--text-white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  z-index: 2;
}

.floating-card-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.floating-card-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--emerald-700);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* --- About --- */
.about {
  padding: 100px 0;
  background: var(--cream-50);
}

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

.about-image-stack {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: -40px;
  right: -30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--cream-50);
  width: 55%;
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  top: -20px;
  right: 20px;
  background: var(--emerald-600);
  color: var(--text-white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
}

.about-badge svg {
  color: var(--emerald-200);
}

.about-content .section-tag {
  margin-bottom: 16px;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content > p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-features {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--emerald-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-600);
}

.feature h4 {
  margin-bottom: 4px;
  color: var(--text-dark);
}

.feature p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* --- Services --- */
.services {
  padding: 100px 0;
  background: var(--cream-100);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

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

.service-card {
  background: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-200);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--emerald-50), var(--emerald-100));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-600);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--emerald-600);
  color: var(--text-white);
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--text-dark);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Gallery --- */
.gallery {
  padding: 100px 0;
  background: var(--cream-50);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 78, 59, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.gallery-overlay span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
}

.gallery-item.large {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

/* --- Testimonial --- */
.testimonial {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-900) 100%);
}

.testimonial-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.quote-icon {
  color: var(--emerald-300);
  margin-bottom: 24px;
  opacity: 0.6;
}

.testimonial blockquote {
  margin-bottom: 32px;
}

.testimonial blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--text-white);
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--emerald-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
}

.author-name {
  display: block;
  font-weight: 700;
  color: var(--text-white);
  font-size: 1rem;
}

.author-location {
  display: block;
  font-size: 0.85rem;
  color: var(--emerald-300);
}

/* --- Contact --- */
.contact {
  padding: 100px 0;
  background: var(--cream-50);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--text-white);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.contact-card:hover {
  border-color: var(--emerald-200);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--emerald-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-600);
}

.contact-card h4 {
  margin-bottom: 6px;
  color: var(--text-dark);
}

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

.contact-card a {
  color: var(--emerald-600);
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--emerald-800);
  text-decoration: underline;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 400px;
}

/* --- CTA Banner --- */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-800) 100%);
  text-align: center;
}

.cta-banner h2 {
  color: var(--text-white);
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.15rem;
  color: var(--emerald-100);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  background: var(--emerald-900);
  padding: 60px 0 0;
  color: var(--emerald-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
}

.footer-brand .footer-logo svg {
  color: var(--emerald-400);
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--emerald-300);
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4 {
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--emerald-300);
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-bottom {
  border-top: 1px solid var(--emerald-800);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--emerald-400);
}

.footer-bottom a {
  color: var(--emerald-300);
}

.footer-bottom a:hover {
  color: var(--text-white);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--emerald-600);
  color: var(--text-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--emerald-700);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Default visible state for reduced-motion / no-JS */
.reveal {
  opacity: 1;
  transform: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-container {
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.large {
    grid-column: span 2;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream-50);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a.btn {
    width: 100%;
    justify-content: center;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 100px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-image {
    order: -1;
    justify-content: center;
  }

  .image-accent {
    left: 0;
    width: 160px;
    height: 160px;
  }

  .floating-card {
    right: 0;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-image-stack {
    max-width: 480px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.large {
    grid-column: span 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .image-accent {
    display: none;
  }

  .floating-card {
    display: none;
  }
}
