/* ===========================================================
   FEMS TECHNOLOGIES — stylesheet
   Brand colors sampled from assets/logo.png
   =========================================================== */

:root {
  --teal: #4D8083;
  --teal-dark: #35595C;
  --teal-tint: #EAF1F1;
  --brown: #804E48;
  --brown-dark: #623A35;
  --brown-tint: #F3E9E7;
  --ink: #1F2A2E;
  --ink-soft: #435055;
  --paper: #FBFAF8;
  --paper-alt: #F3F1ED;
  --white: #FFFFFF;
  --line: #E3E0DA;

  --font-head: "Sora", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --container: 1160px;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(31, 42, 46, 0.08);
  --shadow-strong: 0 20px 45px rgba(31, 42, 46, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--teal-dark); text-decoration: none; }

ul { padding: 0; margin: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 14px;
}

.section { padding: 96px 0; }
.section--alt { background: var(--teal-tint); }
.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark p { color: #C6CFD1; }
.section--dark h2 { color: var(--white); }

.section-head {
  max-width: 680px;
  margin: 0 0 52px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.section-head p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--brown);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--brown-dark); transform: translateY(-2px); box-shadow: var(--shadow-strong); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal-dark);
}
.btn-outline:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 250, 248, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(31,42,46,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 54px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--brown);
  transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(77,128,131,0.12), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(128,78,72,0.10), transparent 50%),
    var(--paper);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--teal); }
.hero-lead {
  font-size: 1.15rem;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-actions .btn-outline {
  border-color: var(--line);
  color: var(--ink);
}
.hero-actions .btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.hero-tags span {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 560px; margin: 0 auto; }

/* ---------- Quick strip ---------- */
.quick-strip {
  background: var(--ink);
  padding: 34px 0;
}
.quick-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--paper);
}
.quick-item .num {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.quick-item p { margin: 0; color: #C6CFD1; font-size: 0.92rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.about-copy p { font-size: 1.02rem; }

.pillars {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.pillar-card h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.pillar-card .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brown);
  flex-shrink: 0;
}
.pillar-card:nth-child(2) .dot { background: var(--teal); }
.pillar-card p { margin: 0; font-size: 0.96rem; }

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: var(--teal);
}
.value-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.value-card:nth-child(3n+2) .value-icon { background: var(--brown-tint); color: var(--brown-dark); }
.value-card h3 { font-size: 1.05rem; }
.value-card p { font-size: 0.95rem; margin: 0; }

/* ---------- Services / Expertise ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--teal);
}
.service-card:nth-child(2n)::before { background: var(--brown); }
.service-card .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--teal);
  letter-spacing: 0.08em;
}
.service-card:nth-child(2n) .num { color: var(--brown); }
.service-card h3 { margin-top: 10px; font-size: 1.3rem; }
.service-card > p { font-size: 0.97rem; }
.service-list { display: grid; gap: 9px; margin-top: 16px; }
.service-list li {
  display: flex;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  align-items: flex-start;
}
.service-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brown);
  margin-top: 8px;
  flex-shrink: 0;
}
.service-card:nth-child(2n) .service-list li::before { background: var(--teal); }

/* ---------- Industries ---------- */
.industry-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: var(--shadow);
}
.industry-band .tag-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.industry-text h3 { margin-bottom: 6px; font-size: 1.25rem; }
.industry-text p { margin: 0; max-width: 560px; }

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}
.process-step {
  position: relative;
  padding-top: 8px;
}
.process-step .step-index {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  color: rgba(255,255,255,0.16);
  display: block;
  margin-bottom: 6px;
}
.process-step h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 6px;
}
.process-step p { font-size: 0.9rem; margin: 0; }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
}
.why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.why-item .check {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  margin-top: 2px;
}
.why-item p { margin: 0; color: var(--ink); font-weight: 500; font-size: 0.98rem; }

/* ---------- Commitment / CTA ---------- */
.commitment {
  background: linear-gradient(120deg, var(--teal-dark), var(--ink) 70%);
  border-radius: 24px;
  padding: 64px;
  color: var(--white);
  text-align: center;
}
.commitment h2 { color: var(--white); max-width: 760px; margin-inline: auto; }
.commitment p { color: #D6E1E2; max-width: 700px; margin: 0 auto 32px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-card .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 600;
}
.contact-email {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin: 10px 0 26px;
  word-break: break-word;
}
.contact-email:hover { color: var(--teal-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #AAB6B9;
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 42px; }
.footer-tagline { max-width: 360px; color: #9AA7AA; font-size: 0.92rem; margin-top: 12px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-links a { color: #9AA7AA; display: block; font-size: 0.92rem; padding: 5px 0; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #7C898C;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .quick-strip .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 96px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .commitment { padding: 40px 26px; }
  .industry-band { padding: 30px; }
  .section { padding: 68px 0; }
}
