/* ===== CSS Variables ===== */
:root {
  /* Colors */
  --primary: #1a5d3a;
  --primary-light: #2e7d4a;
  --primary-dark: #0d2e1d;
  --accent-light: #e8f5e9;
  --text: #333333;
  --text-light: #666666;
  --light-gray: #f8f9fa;
  --white: #ffffff;
  --border: #e0e0e0;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

  /* Spacing */
  --section-padding: 80px;
  --container-width: 1200px;

  /* Transitions */
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
}

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

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

ul {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

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

.section {
  padding: var(--section-padding) 0;
}

.section--gray {
  background-color: var(--light-gray);
}

.section--accent {
  background-color: var(--accent-light);
}

.section--dark {
  background-color: var(--primary-dark);
  color: var(--white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section__subtitle {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background-color: var(--primary-light);
}

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

.btn--outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn--white {
  background-color: var(--white);
  color: var(--primary);
}

.btn--white:hover {
  background-color: var(--accent-light);
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo span {
  color: var(--primary-dark);
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

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

.nav__toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-dark);
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--white) 100%);
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero__title span {
  color: var(--primary);
}

.hero__text {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
}

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

.hero__graphic {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero__graphic::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.03) 20px,
    rgba(255, 255, 255, 0.03) 40px
  );
}

.hero__graphic-text {
  color: var(--white);
  font-size: 4rem;
  font-weight: 700;
  z-index: 1;
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-card__icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card__icon svg {
  width: 30px;
  height: 30px;
  color: var(--primary);
}

.service-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

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

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 1rem;
}

.service-card__link:hover {
  gap: 0.75rem;
}

/* ===== Features/Why Us ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.feature {
  text-align: center;
}

.feature__icon {
  width: 80px;
  height: 80px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature__icon svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.feature__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature__text {
  color: var(--text-light);
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat__number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat__label {
  color: var(--text-light);
  font-size: 1rem;
}

/* ===== CTA Section ===== */
.cta {
  text-align: center;
  padding: 100px 0;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  display: block;
}

.footer__text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer__link:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition);
}

.footer__social a:hover {
  background-color: var(--primary);
}

.footer__social svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

/* ===== Page Header ===== */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--white) 100%);
  text-align: center;
}

.page-header__title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header__text {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== About Page ===== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-intro__image {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-intro__image-text {
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
}

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

.value-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.value-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.value-card__text {
  color: var(--text-light);
}

/* ===== Services Page Detail ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 100px;
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail__content h3 {
  margin-bottom: 1rem;
}

.service-detail__content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.service-detail__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-detail__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text);
}

.service-detail__list svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-detail__visual {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--white) 100%);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.service-detail__icon {
  width: 120px;
  height: 120px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail__icon svg {
  width: 60px;
  height: 60px;
  color: var(--white);
}

/* ===== Careers Page ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefit-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.benefit-card__icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.benefit-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.positions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.position-card {
  background-color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition);
}

.position-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.position-card__info h4 {
  margin-bottom: 0.25rem;
}

.position-card__meta {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item__icon {
  width: 50px;
  height: 50px;
  background-color: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item__icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.contact-item__content h4 {
  margin-bottom: 0.25rem;
}

.contact-item__content p,
.contact-item__content a {
  color: var(--text-light);
}

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

.contact-map {
  background-color: var(--light-gray);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .hero__title {
    font-size: 2.75rem;
  }

  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__graphic {
    max-width: 350px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .about-intro {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

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

  .hero__title {
    font-size: 2rem;
  }

  .nav__list {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: all var(--transition);
  }

  .nav__list.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__toggle {
    display: flex;
  }

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

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .stat__number {
    font-size: 2.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

  .position-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .page-header__title {
    font-size: 2rem;
  }
}
