:root {
  --bg: #f3f6f6;
  --surface: #ffffff;
  --surface-soft: #f5f9f9;
  --text: #0f1c1c;
  --text-muted: #445b5b;
  --primary: #009975;
  --primary-dark: #006d55;
  --steel: #6e7c7c;
  --border: #d8e2e2;
  --shadow: 0 14px 36px rgba(15, 28, 28, 0.07);
  --shadow-strong: 0 20px 45px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(0, 153, 117, 0.08), transparent 33%),
    radial-gradient(circle at 90% -4%, rgba(110, 124, 124, 0.12), transparent 30%),
    var(--bg);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2.6rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(243, 246, 246, 0.88);
  border-bottom: 1px solid rgba(110, 124, 124, 0.18);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1.3rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand img {
  width: clamp(150px, 18vw, 190px);
}

.header-slogan {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--steel);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
  pointer-events: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
}

.lang-switch select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: #2d4343;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  min-width: 64px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-switch select:focus-visible {
  outline: 2px solid rgba(0, 153, 117, 0.24);
  border-color: var(--primary);
}

.main-nav a {
  color: #2e4343;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary);
  border-color: rgba(0, 153, 117, 0.45);
}

.nav-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  width: 44px;
  height: 40px;
  display: none;
  place-content: center;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
  display: block;
}

.hero {
  padding: 0.6rem 0 4.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.2rem;
  align-items: start;
}

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.95rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.1rem, 3.85vw, 3.3rem);
  margin-bottom: 1.1rem;
  max-width: 18ch;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 0.95rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.08rem;
  margin-bottom: 0.48rem;
}

.hero-text,
.trust-note {
  color: var(--text-muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.9rem 0 1.15rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0.82rem 1.42rem;
  min-height: 46px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(120deg, #009975, #00ab84);
  box-shadow: 0 13px 24px rgba(0, 153, 117, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 16px 28px rgba(0, 153, 117, 0.4);
}

.btn-secondary {
  color: #163030;
  background: var(--surface);
  border: 1px solid var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(0, 153, 117, 0.36);
}

.hero-card,
.service-card,
.pillars article,
.contact-form {
  background: var(--surface);
  border: 1px solid rgba(110, 124, 124, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.55rem 1.45rem 1.35rem;
  position: relative;
  overflow: hidden;
  margin-top: -0.9rem;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), rgba(0, 153, 117, 0.2));
}

.hero-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.hero-card li + li {
  margin-top: 0.55rem;
}

.hero-metrics {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.metric {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 153, 117, 0.14);
  border-radius: 12px;
  padding: 0.72rem 0.76rem;
}

.metric strong {
  display: block;
  font-size: 0.82rem;
  color: #203434;
  margin-bottom: 0.15rem;
}

.metric span {
  display: block;
  color: #4f6262;
  font-size: 0.76rem;
  line-height: 1.4;
}

section {
  padding: 5rem 0;
}

.section-head {
  margin-bottom: 1.85rem;
}

.section-head p:last-child {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  max-width: 64ch;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
}

.service-card {
  padding: 1.35rem 1.2rem;
  transition: transform 220ms ease, box-shadow 220ms ease;
  min-height: 186px;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2.4rem;
  align-items: start;
}

.about-content p,
.about p {
  color: var(--text-muted);
}

.pillars {
  display: grid;
  gap: 0.95rem;
}

.pillars article {
  padding: 1.05rem 1.1rem;
  border-left: 4px solid rgba(0, 153, 117, 0.34);
}

.pillars p {
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.3rem;
  align-items: start;
}

.contact-intro p {
  color: var(--text-muted);
}

.contact-details {
  display: grid;
  gap: 0.72rem;
  margin-top: 1.2rem;
}

.contact-detail-item {
  display: block;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(110, 124, 124, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.contact-detail-line {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.contact-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: rgba(0, 153, 117, 0.12);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contact-icon svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  display: block;
  fill: currentColor;
}

.contact-detail-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  font-weight: 700;
}

.contact-detail-item a,
.contact-detail-item address {
  margin: 0;
  color: #203636;
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
}

.contact-separator {
  color: var(--steel);
  font-weight: 700;
}

.contact-detail-item a:hover {
  color: var(--primary-dark);
}

.contact-map-wrap {
  margin-top: 1.15rem;
  border: 1px solid rgba(110, 124, 124, 0.16);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 520px;
}

.contact-map-wrap iframe {
  border: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  max-height: 340px;
  display: block;
}

.contact-subnote {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.contact-form {
  padding: 1.65rem;
  box-shadow: 0 18px 38px rgba(17, 33, 33, 0.1);
}

.contact-form h3 {
  margin-bottom: 1.15rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.38rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334a4a;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.84rem;
  margin-bottom: 0.95rem;
  color: var(--text);
  font: inherit;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid rgba(0, 153, 117, 0.24);
  border-color: var(--primary);
}

.form-note {
  margin: 0.8rem 0 0;
  min-height: 1.4em;
  font-size: 0.93rem;
  color: var(--steel);
}

.form-note.success {
  color: var(--primary-dark);
}

.form-note.error {
  color: #b13333;
}

.site-footer {
  border-top: 1px solid rgba(110, 124, 124, 0.2);
  padding: 2rem 0;
  background: #e9efef;
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--steel);
  font-size: 0.9rem;
}

.section-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[dir="rtl"] body {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

html[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

html[dir="rtl"] .main-nav {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .hero-card ul {
  padding-left: 0;
  padding-right: 1.15rem;
}

html[dir="rtl"] .pillars article {
  border-left: 0;
  border-right: 4px solid rgba(0, 153, 117, 0.34);
}

html[dir="rtl"] .contact-icon {
  order: 2;
}

html[dir="rtl"] .contact-detail-line {
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .header-slogan {
    position: static;
    transform: none;
    order: 4;
    width: 100%;
    text-align: center;
    margin: 0.35rem 0 0.25rem;
    white-space: nowrap;
    font-size: 0.72rem;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .lang-switch {
    order: 4;
    margin-top: 0.2rem;
  }

  .nav-toggle {
    order: 3;
    display: grid;
  }

  .header-slogan {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .main-nav {
    position: absolute;
    top: 84px;
    right: 1rem;
    left: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 0.85rem;
    flex-direction: column;
    align-items: flex-start;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .main-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding-top: 0.6rem;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    margin-top: 0;
  }

  .contact-map-wrap {
    max-width: 100%;
  }

  .container {
    width: min(100% - 1.6rem, var(--container));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
