
/* ==========================================
   PLANTGEN TISSUE CULTURE
   RESPONSIVE WEBSITE CSS
========================================== */

:root {
  --green: #2F6B3C;
  --dark-green: #214D2D;
  --gold: #DDBB2F;
  --cream: #FAF8F2;
  --white: #FFFFFF;
  --text: #595959;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--cream);
  color: var(--green);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(92%, 1200px);
  margin-inline: auto;
}

section {
  scroll-margin-top: 100px;
}

section h2 {
  color: var(--green);
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.25;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 26px;
  min-height: 46px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--dark-green);
  font-weight: 600;
  transition: .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px #00000015;
}

/* ==========================================
   NAVBAR
========================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 8px 0;
  background: var(--white);
  box-shadow: 0 2px 10px #0000000d;
  transition: box-shadow .25s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  list-style: none;
}

.nav-links a {
  color: var(--green);
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 3px;
  margin: 5px 0;
  background: white;
  border-radius: 3px;
}

/* ==========================================
   HERO SECTION
========================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: #344d2c;
}

.hero-banner {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(12, 28, 13, .78),
    rgba(12, 28, 13, .48) 50%,
    rgba(12, 28, 13, .08)
  );
}

.hero-content {
  padding-top: 70px;
  padding-bottom: 70px;
  color: white;
}

.hero-content h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.13;
}

.hero-content h1 span {
  color: var(--gold);
}

.hero-tagline {
  margin-bottom: 16px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
}

.hero-description {
  max-width: 620px;
  margin-bottom: 28px;
  color: #ffffffed;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ==========================================
   BENEFITS
========================================== */

.benefits,
.about,
.laboratory,
.why-choose,
.gallery,
.contact {
  padding: 76px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.benefit-card,
.lab-card,
.why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 30px 22px;
  border-radius: 22px;
  background: white;
  text-align: center;
  box-shadow: 0 8px 28px #00000008;
}

.benefit-card:nth-child(even) {
  background: #FFF9E9;
}

.benefit-card i,
.lab-card i,
.why-card i {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 2.5rem;
}

.benefit-card h3,
.lab-card h3,
.why-card h3 {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 1.2rem;
  line-height: 1.4;
}

.benefit-card p,
.lab-card p,
.why-card p {
  color: var(--text);
  font-size: .96rem;
  line-height: 1.7;
}

/* ==========================================
   ABOUT
========================================== */

.about {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.about-text h2 {
  margin-bottom: 24px;
  text-align: left;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--text);
  line-height: 1.85;
}

.about-features {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
}

.about-features div {
  color: var(--green);
  font-weight: 500;
}

.about-image {
  height: 420px;
  overflow: hidden;
  border-radius: 20px;
  background: #eee;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ==========================================
   LABORATORY
========================================== */

.laboratory {
  background: #F4F0E6;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

/* ==========================================
   WHY CHOOSE US
========================================== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

/* ==========================================
   GALLERY
   Same 4:3 image ratio on all screens
   Original photos remain uncropped
========================================== */

.gallery {
  background: #F4F0E6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.gallery-item {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: center;
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-item {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #e8e5dc;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  margin: 0;
  padding: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-item img {
    height: 180px;
  }
}


.gallery-item p {
  padding: 12px 4px 0;
  margin: 0;
  color: var(--green);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

/* ==========================================
   CTA
========================================== */

.cta {
  padding: 70px 0;
  background: var(--green);
  color: white;
  text-align: center;
}

.cta h2 {
  margin-bottom: 16px;
  color: white;
}

.cta p {
  margin-bottom: 26px;
  color: #ffffffeb;
  font-size: 1.05rem;
}

/* ==========================================
   CONTACT
========================================== */

.contact {
  background: white;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
  gap: 48px;
}

.contact-info h2 {
  margin-bottom: 18px;
  text-align: left;
}

.contact-text {
  margin-bottom: 28px;
  color: var(--text);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-item i {
  width: 22px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--green);
  font-size: 1.1rem;
}

.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 16px;
}

/* ==========================================
   FOOTER
========================================== */

footer {
  padding: 55px 0;
  background: #1F3927;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .7fr 1fr;
  gap: 40px;
}

.footer-about h3 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.footer-about p {
  max-width: 420px;
  color: #ffffffcc;
  line-height: 1.8;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.footer-links a,
.footer-contact a {
  color: #ffffffd9;
  overflow-wrap: anywhere;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold);
}

.footer-contact .contact-item {
  margin-bottom: 5px;
  color: #ffffffd9;
}

.footer-contact .contact-item i {
  color: var(--gold);
}

.copyright {
  padding: 18px 12px;
  background: #172A1D;
  color: #ffffffcc;
  text-align: center;
}

.copyright p {
  font-size: .85rem;
}

/* ==========================================
   FLOATING CALL / WHATSAPP / INSTAGRAM
========================================== */

.floating-contact {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.contact-float {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  color: white;
  font-size: 23px;
  box-shadow: 0 5px 18px #0000002e;
  transition: transform .2s ease;
}

.contact-float:hover {
  transform: translateY(-3px);
}

.call-float {
  background: var(--green);
}

.whatsapp-float {
  background: #25D366;
}

.instagram-float {
  background: #C13584;
}

/* ==========================================
   SCROLL REVEAL
========================================== */

.benefit-card,
.lab-card,
.why-card,
.gallery-item,
.about-grid {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.benefit-card.show,
.lab-card.show,
.why-card.show,
.gallery-item.show,
.about-grid.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1000px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: .84rem;
  }

  .logo img {
    height: 58px;
  }

  .lab-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    gap: 30px;
  }
}

/* ==========================================
   MOBILE NAVIGATION
========================================== */

@media (max-width: 760px) {
  .navbar {
    padding: 10px 0;
  }

  .nav-container {
    position: relative;
    gap: 12px;
  }

  .logo img {
    height: 56px;
    max-width: 220px;
  }

  .nav-toggle {
    display: block;
    flex-shrink: 0;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 12px;
    border-radius: 14px;
    background: white;
    box-shadow: 0 10px 28px #00000026;
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links li + li {
    border-top: 1px solid #eeeeee;
  }

  .nav-links a {
    display: block;
    padding: 13px 10px;
    font-size: 1rem;
  }

  /* Mobile hero */

  .hero {
    min-height: 620px;
  }

  .hero-banner img {
    object-position: 70% center;
  }

  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(12, 28, 13, .68),
      rgba(12, 28, 13, .30)
    );
  }

  .hero-content {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-content h1 {
    font-size: clamp(2.1rem, 8vw, 3.3rem);
  }

  .hero-description {
    font-size: .96rem;
    line-height: 1.7;
  }

  /* Mobile section spacing */

  .benefits,
  .about,
  .laboratory,
  .why-choose,
  .gallery,
  .contact {
    padding: 54px 0;
  }

  section h2 {
    margin-bottom: 30px;
    font-size: clamp(1.7rem, 6vw, 2.3rem);
  }

  /* Benefits */

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .benefit-card,
  .lab-card,
  .why-card {
    padding: 22px 13px;
    border-radius: 18px;
  }

  .benefit-card i,
  .lab-card i,
  .why-card i {
    margin-bottom: 13px;
    font-size: 2rem;
  }

  .benefit-card h3,
  .lab-card h3,
  .why-card h3 {
    margin-bottom: 10px;
    font-size: 1.02rem;
  }

  .benefit-card p,
  .lab-card p,
  .why-card p {
    font-size: .86rem;
    line-height: 1.6;
  }

  /* About */

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-text h2 {
    text-align: center;
  }

  .about-text p {
    font-size: .95rem;
  }

  .about-text .btn {
    width: 100%;
  }

  .about-image {
    height: 270px;
  }

  /* Laboratory and why choose us */

  .lab-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  /* Mobile gallery */

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
  }

  .gallery-item p {
    padding: 10px 2px 0;
    font-size: .88rem;
    line-height: 1.45;
  }

  /* CTA */

  .cta {
    padding: 54px 0;
  }

  .cta p {
    font-size: .95rem;
  }

  /* Contact */

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info h2,
  .contact-text {
    text-align: center;
  }

  .contact-map iframe {
    min-height: 280px;
  }

  /* Footer */

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Floating contact icons */

  .floating-contact {
    right: 12px;
    bottom: max(14px, env(safe-area-inset-bottom));
    gap: 9px;
  }

  .contact-float {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    font-size: 20px;
  }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 360px) {
  .container {
    width: 94%;
  }

  .logo img {
    height: 48px;
    max-width: 175px;
  }

  .hero {
    min-height: 560px;
  }

  .benefits-grid,
  .lab-grid,
  .why-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    gap: 12px 8px;
  }

  .gallery-item p {
    font-size: .8rem;
  }

  .floating-contact {
    right: 8px;
    gap: 6px;
  }

  .contact-float {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 18px;
  }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .benefit-card,
  .lab-card,
  .why-card,
  .gallery-item,
  .about-grid {
    opacity: 1;
    transform: none;
  }
}
