/* =========================================================
   Plantcel Biotech LLP — Stylesheet
   Aesthetic: botanical editorial · deep green · warm cream
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette */
  --green-900: #122821;
  --green-800: #1c3a2e;
  --green-700: #2a5240;
  --green-500: #4a8268;
  --green-300: #a9c7b5;
  --green-100: #e3ecdf;

  --cream-100: #fbf8f0;
  --cream-200: #f4eedf;
  --cream-300: #ebe2cb;

  --gold-500: #c89a3b;
  --gold-400: #d6b25c;

  --ink: #0e1c17;
  --muted: #5e6f66;

  /* Type */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Layout */
  --max-w: 1240px;
  --radius: 4px;
  --shadow-soft: 0 10px 30px -15px rgba(18, 40, 33, 0.18);
  --shadow-strong: 0 25px 50px -20px rgba(18, 40, 33, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream-100);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle grain overlay for atmosphere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.15 0 0 0 0 0.12 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  z-index: 999;
  mix-blend-mode: multiply;
}

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

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

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

/* =========================================================
   Typography
   ========================================================= */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--green-900);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-variation-settings: 'opsz' 144;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-variation-settings: 'opsz' 96;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-variation-settings: 'opsz' 48;
}

h4 {
  font-size: 1.15rem;
  font-variation-settings: 'opsz' 24;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--green-700);
}

.lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.55;
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 240, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 58, 46, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Full stacked logo (icon + PLANTCEL + BIOTECH) at medium size */
.brand-logo-full {
  height: 70px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.brand:hover .brand-logo-full {
  opacity: 0.85;
}

/* Icon-only class (unused but kept) */
.brand-icon {
  display: none;
}

.brand-text {
  display: none;
}

/* Legacy: keep brand-mark hidden */
.brand-mark {
  display: none;
}

.brand>span:not(.brand-text):not(.brand-name):not(.brand-sub) {
  display: none;
}

/* Footer brand styles */
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-brand-row img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream-100);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--green-900);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-700);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--green-800);
  color: var(--cream-100) !important;
  padding: 10px 22px !important;
  border-radius: 100px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--green-900);
  transition: 0.3s;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--green-800);
  color: var(--cream-100);
}

.btn-primary:hover {
  background: var(--green-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: transparent;
  color: var(--green-900);
  border: 1.5px solid var(--green-800);
}

.btn-outline:hover {
  background: var(--green-800);
  color: var(--cream-100);
}

/* =========================================================
   Hero (home)
   ========================================================= */
.hero {
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  margin: 20px 0 28px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--green-700);
}

.hero-meta {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--green-100) 0%, var(--cream-200) 100%);
  border-radius: 50% 50% 4px 4px / 40% 40% 4px 4px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-strong);
}

.hero-visual svg {
  width: 90%;
  height: 90%;
}

.hero-stat {
  position: absolute;
  background: var(--cream-100);
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--cream-300);
}

.hero-stat:nth-child(2) {
  bottom: 40px;
  left: 10px;
}

.hero-stat:nth-child(3) {
  top: 80px;
  right: 70px;
}

.hero-stat strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--green-800);
  display: block;
  line-height: 1;
}

.hero-stat span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--green-800);
  color: var(--cream-100);
  position: relative;
}

.section-alt h2,
.section-alt h3,
.section-alt h4 {
  color: var(--cream-100);
}

.section-alt .eyebrow {
  color: var(--gold-400);
}

.section-alt .eyebrow::before {
  background: var(--gold-400);
}

.section-alt .lead {
  color: var(--cream-200);
}

.section-cream {
  background: var(--cream-200);
}

.section-header {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-header h2 {
  margin: 18px 0 18px;
}

/* =========================================================
   Product Cards (home + products page)
   ========================================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.product-card {
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.product-card-media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.product-card-media svg {
  width: 50%;
  height: 50%;
  opacity: 0.95;
}

.product-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 60%);
}

.product-card-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  margin-bottom: 12px;
}

.product-card p {
  color: var(--muted);
  margin-bottom: 20px;
  flex: 1;
}

.product-card .arrow-link {
  font-weight: 600;
  color: var(--green-800);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s ease;
}

.product-card .arrow-link:hover {
  gap: 14px;
}

/* =========================================================
   Feature list (Why Tissue Culture)
   ========================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature {
  padding: 40px 32px;
  background: var(--green-800);
}

.feature-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-400);
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  display: block;
}

.feature h4 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.feature p {
  color: var(--cream-200);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================================================
   Stats strip
   ========================================================= */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 0;
  border-top: 1px solid var(--cream-300);
  border-bottom: 1px solid var(--cream-300);
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--green-800);
  display: block;
  line-height: 1;
  font-weight: 500;
}

.stat-item span {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
  display: block;
}

/* =========================================================
   CTA Banner
   ========================================================= */
.cta-banner {
  background: var(--green-900);
  color: var(--cream-100);
  padding: 80px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: var(--cream-100);
}

.cta-banner h4 {
  color: var(--cream-100);
}

.cta-banner p {
  color: var(--cream-200);
  margin-top: 16px;
}

.cta-banner .btn-primary {
  background: var(--gold-500);
  color: var(--green-900);
}

.cta-banner .btn-primary:hover {
  background: var(--gold-400);
}

.cta-banner::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--green-700), transparent 70%);
  opacity: 0.5;
}

/* =========================================================
   About page
   ========================================================= */
.about-hero {
  padding: 80px 0 60px;
  background: var(--green-800);
  color: var(--cream-100);
  position: relative;
  overflow: hidden;
}

.about-hero h1 {
  color: var(--cream-100);
  max-width: 16ch;
}

.about-hero .lead {
  color: var(--cream-200);
  margin-top: 24px;
}

.about-hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--green-500), transparent 65%);
  opacity: 0.35;
  pointer-events: none;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.two-col h2 {
  margin-bottom: 24px;
}

.two-col p {
  color: var(--muted);
  margin-bottom: 18px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.value-card {
  padding: 36px;
  border: 1px solid var(--cream-300);
  background: var(--cream-100);
  border-radius: 6px;
  transition: border-color 0.25s ease;
}

.value-card:hover {
  border-color: var(--green-500);
}

.value-card .icon {
  width: 48px;
  height: 48px;
  background: var(--green-100);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green-800);
  margin-bottom: 20px;
}

.value-card h4 {
  margin-bottom: 10px;
}

.value-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================================================
   Products page
   ========================================================= */
.variety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.variety {
  padding: 28px;
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: 6px;
  transition: all 0.25s ease;
}

.variety:hover {
  border-color: var(--green-500);
  transform: translateY(-3px);
}

.variety h4 {
  font-family: var(--font-display);
  color: var(--green-800);
  margin-bottom: 6px;
}

.variety .latin {
  font-style: italic;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: block;
}

.variety p {
  color: var(--muted);
  font-size: 0.92rem;
}

.variety-bg {
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
  border: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
}

.variety-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 40, 33, 0.9) 0%, rgba(18, 40, 33, 0.2) 100%);
  z-index: -1;
  transition: background 0.25s ease;
}

.variety-bg:hover::before {
  background: linear-gradient(to top, rgba(18, 40, 33, 0.95) 10%, rgba(18, 40, 33, 0.4) 100%);
}

.variety-bg h4 {
  color: var(--cream-100);
}

.variety-bg .latin {
  color: var(--gold-400);
}

.variety-bg p {
  color: var(--cream-200);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
  position: relative;
}

.process-step {
  position: relative;
}

.process-step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--green-500);
  font-weight: 500;
  line-height: 1;
  display: block;
  margin-bottom: 16px;
  font-variation-settings: 'opsz' 96;
}

.process-step h4 {
  margin-bottom: 10px;
}

.process-step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  margin-top: 20px;
}

.contact-form {
  background: var(--cream-100);
  padding: 48px;
  border-radius: 6px;
  border: 1px solid var(--cream-300);
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-800);
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--cream-200);
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--cream-100);
}

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

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

.contact-info-block {
  margin-bottom: 36px;
}

.contact-info-block h4 {
  color: var(--green-800);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.contact-info-block p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-info-block a {
  color: var(--green-800);
  border-bottom: 1px solid var(--green-300);
  transition: border-color 0.2s ease;
}

.contact-info-block a:hover {
  border-color: var(--green-800);
}

.address-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--green-100);
  color: var(--green-800);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  font-weight: 600;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--green-900);
  color: var(--cream-200);
  padding: 80px 0 30px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--green-300);
}

.footer h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer ul {
  list-style: none;
}

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

.footer ul li a {
  color: var(--cream-200);
  font-size: 0.93rem;
  transition: color 0.2s ease;
}

.footer ul li a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  border-top: 1px solid rgba(251, 248, 240, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--green-300);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {

  .hero-grid,
  .two-col,
  .contact-grid,
  .cta-banner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .products-grid,
  .values-grid,
  .features-grid,
  .variety-grid,
  .process-steps,
  .stats-strip,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner {
    padding: 50px;
  }

  .section {
    padding: 70px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-100);
    flex-direction: column;
    padding: 24px 32px;
    border-bottom: 1px solid var(--cream-300);
    gap: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

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

  .hero {
    padding: 60px 0 80px;
  }

  .section {
    padding: 60px 0;
  }

  .products-grid,
  .values-grid,
  .features-grid,
  .variety-grid,
  .process-steps,
  .stats-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .cta-banner {
    padding: 40px 28px;
  }

  .hero-stat:nth-child(2) {
    left: 10px;
    bottom: 10px;
  }

  .hero-stat:nth-child(3) {
    right: 10px;
    top: 10px;
  }
}

/* =========================================================
   Animations
   ========================================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeUp 0.8s ease both;
}

.reveal-delay-1 {
  animation-delay: 0.15s;
}

.reveal-delay-2 {
  animation-delay: 0.3s;
}

.reveal-delay-3 {
  animation-delay: 0.45s;
}