/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --green-primary:  #2e7d32;
  --green-dark:     #1b5e20;
  --green-light:    #4caf50;
  --green-pale:     #e8f5e9;
  --green-border:   #a5d6a7;

  --text-dark:      #1a1a2e;
  --text-body:      #444;
  --text-muted:     #6b7280;

  --bg-white:       #ffffff;
  --bg-light:       #f8faf8;
  --border-color:   #e2e8e2;

  --shadow-sm:      0 2px 8px  rgba(0, 0, 0, 0.06);
  --shadow-md:      0 6px 24px rgba(0, 0, 0, 0.10);
  --shadow-card:    0 2px 12px rgba(46, 125, 50, 0.07);

  --radius:         10px;
  --radius-sm:      6px;
  --transition:     0.25s ease;

  --container:      1200px;
  --header-h:       70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }
address { font-style: normal; }

/* ============================================================
   Utility
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--green-primary); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
}
.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn--outline {
  background: transparent;
  color: var(--green-primary);
  border-color: var(--green-primary);
}
.btn--outline:hover {
  background: var(--green-pale);
}

.btn--full {
  width: 100%;
  text-align: center;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-primary);
  align-items: center;
  letter-spacing: -0.5px;
}

/* Nav */
.nav__list {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 3px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--green-primary);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link.active         { color: var(--green-primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  margin-top: var(--header-h);
  padding: 110px 0 90px;
  background: linear-gradient(140deg, var(--green-pale) 0%, #f0f7f0 40%, #fff 70%);
  border-bottom: 1px solid var(--green-border);
}

.hero {
  margin-top: var(--header-h);
  padding: 80px 0;
  background: linear-gradient(140deg, var(--green-pale) 0%, #f0f7f0 40%, #fff 70%);
  border-bottom: 1px solid var(--green-border);
}

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

.hero__content {
  text-align: left;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 38px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__logo-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
}

.hero__logo-text {
  font-size: 56px;
  font-weight: 700;
  color: var(--green-primary);
  letter-spacing: -1px;
}

/* ============================================================
   Section Commons
   ============================================================ */
.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--bg-light);
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__title {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.section__line {
  width: 48px; height: 3px;
  background: var(--green-primary);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section__subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

/* ============================================================
   About
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.about__text {
  color: var(--text-body);
  margin-bottom: 18px;
  font-size: 16px;
}

.about__values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-pale);
  border: 1px solid var(--green-border);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green-dark);
}

.value-icon {
  color: var(--green-light);
  font-size: 11px;
}

/* ISO cert card */
.cert-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  background: var(--bg-white);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.cert-img {
  width: 100%;
  height: auto;
  margin: 0 auto 14px;
  object-fit: contain;
}

.cert-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Fallback when image fails */
.cert-placeholder .cert-img { display: none; }
.cert-placeholder::before {
  content: 'ISO Certificate';
  display: block;
  background: var(--green-pale);
  border: 2px dashed var(--green-border);
  border-radius: 8px;
  padding: 48px 20px;
  color: var(--green-primary);
  font-weight: 600;
  margin-bottom: 14px;
  font-size: 14px;
}

/* ============================================================
   Services
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-border);
}

.service-card__icon {
  width: 52px; height: 52px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green-primary);
  transition: background var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--green-primary);
  color: #fff;
}

.service-card__icon svg {
  width: 26px; height: 26px;
}

.service-card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   Contacts
   ============================================================ */
.contacts__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-border);
}

.contact-item__icon {
  width: 56px; height: 56px;
  background: var(--green-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-primary);
  flex-shrink: 0;
  transition: background var(--transition);
}

.contact-item:hover .contact-item__icon {
  background: var(--green-primary);
  color: #fff;
}

.contact-item__icon svg {
  width: 24px; height: 24px;
}

.contact-item__body h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.contact-item__body address,
.contact-item__body a {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-item__body a:hover { color: var(--green-primary); }


/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--green-dark);
  color: #e8f5e9;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr 1.5fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 56px;
}

.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.footer__logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.footer__tagline {
  font-size: 13px;
  color: #a5d6a7;
  margin-top: 6px;
}

.footer__heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #81c784;
  margin-bottom: 18px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: 14px;
  color: #c8e6c9;
}
.footer__links a:hover { color: #fff; }

.footer__address {
  font-size: 14px;
  color: #c8e6c9;
  line-height: 1.75;
  margin-bottom: 12px;
}

.footer__contact-link {
  font-size: 14px;
  color: #c8e6c9;
  display: inline-block;
  margin-bottom: 5px;
}
.footer__contact-link:hover { color: #fff; }

.footer__iso-img {
  width: 270px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 8px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #a5d6a7;
}

/* ============================================================
   Responsive — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about__grid {
    grid-template-columns: 1fr 260px;
    gap: 40px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }

  /* Hero — shrink logo column on tablet */
  .hero__inner {
    grid-template-columns: 1fr 260px;
    gap: 40px;
  }
}

/* ============================================================
   Responsive — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Hamburger */
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px 24px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: block; }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }
  .nav__link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
  }
  .nav__link:last-child { border-bottom: none; }

  /* Hero — stack logo on top, text below */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero__logo {
    order: -1;
    justify-content: flex-start;
  }
  .hero__logo-img {
    max-width: 200px;
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cert-card {
    position: static;
    max-width: 300px;
  }

  /* Contacts */
  .contacts__row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ============================================================
   Responsive — Small Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .services__grid {
    grid-template-columns: 1fr;
  }


  .section {
    padding: 64px 0;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

