:root {
  --primary: #0f3d34;
  --primary-dark: #0a2a24;
  --secondary: #1d8a6e;
  --accent: #e0a526;
  --accent-dark: #c48d14;
  --on-accent: #0a2a24;
  --bg: #ffffff;
  --bg-alt: #f4f7f5;
  --text: #16241f;
  --muted: #5a6762;
  --line: #e1e8e4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 42, 36, .08);
  --header-h: 88px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon--lg { width: 36px; height: 36px; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .75rem; font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; color: var(--primary); }
.logo__sub { font-weight: 500; color: var(--secondary); }
.logo__mark {
  width: 44px; height: 32px;
  background: repeating-linear-gradient(90deg,
    currentColor 0 3px, transparent 3px 6px,
    currentColor 6px 10px, transparent 10px 11px,
    currentColor 11px 13px, transparent 13px 17px);
}
.logo--light { color: #fff; }
.logo--light .logo__sub { color: var(--accent); }

.nav { display: flex; gap: 2.25rem; align-items: center; }
.nav a { font-size: 1.24rem; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--primary); }
.nav .nav__cta { background: var(--accent); color: var(--on-accent); padding: .7rem 1.4rem; border-radius: 999px; font-weight: 700; }
.nav .nav__cta:hover { background: var(--accent-dark); color: var(--on-accent); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: .2s; }

/* Hero */
.hero {
  color: #fff;
  padding: 8rem 0 6rem;
  background:
    linear-gradient(100deg, rgba(10, 42, 36, .96) 0%, rgba(10, 42, 36, .82) 45%, rgba(15, 61, 52, .35) 100%),
    url("images/hero.jpg") center / cover no-repeat;
}
.hero__eyebrow {
  display: inline-block; margin-bottom: 1.5rem; padding: .35rem .9rem; border-radius: 999px;
  background: rgba(224, 165, 38, .15); border: 1px solid rgba(224, 165, 38, .5);
  color: #f3cf7a; font-size: .85rem; font-weight: 600;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.08; letter-spacing: -.03em; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { margin-top: 1.5rem; font-size: 1.15rem; color: rgba(255, 255, 255, .85); max-width: 54ch; }
.hero__actions { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin-top: 4rem; }
.hero__badges li { display: flex; flex-direction: column; padding-left: 1rem; border-left: 3px solid var(--accent); }
.hero__badges strong { font-size: 1.9rem; line-height: 1.1; }
.hero__badges span { font-size: .85rem; color: rgba(255, 255, 255, .7); }

/* Buttons */
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px rgba(224, 165, 38, .35); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { transform: translateY(-2px); }

/* Sections */
.section { padding: 6rem 0; }
.section--alt { background: var(--bg-alt); }
.section__eyebrow {
  display: block; margin-bottom: .6rem; color: var(--secondary);
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
}
.section__title { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; color: var(--primary); margin-bottom: 1rem; }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head p { color: var(--muted); font-size: 1.05rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__badge {
  position: absolute; left: -1.5rem; bottom: -1.5rem; padding: 1.25rem 1.5rem;
  background: var(--accent); color: var(--on-accent); border-radius: var(--radius); box-shadow: var(--shadow);
}
.about__badge strong { display: block; font-size: 2.2rem; line-height: 1; }
.about__badge span { font-size: .85rem; }
.about__text p { color: var(--muted); }
.about__text p + p { margin-top: 1rem; }
.about__text strong { color: var(--primary); }

.features { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 5rem; }
.feature {
  padding: 1.75rem; background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--secondary);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.feature:nth-child(even) { border-top-color: var(--accent); }
.feature__icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1rem;
  border-radius: 12px; background: rgba(29, 138, 110, .12); color: var(--secondary);
}
.feature:nth-child(even) .feature__icon { background: rgba(224, 165, 38, .16); color: var(--accent-dark); }
.feature strong { display: block; font-size: 1.4rem; color: var(--primary); }
.feature span { color: var(--muted); font-size: .92rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.service {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.service:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10, 42, 36, .15); }
.service img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service__body { padding: 1.5rem; border-top: 4px solid var(--accent); }
.service:nth-child(even) .service__body { border-top-color: var(--secondary); }
.service__num { color: var(--accent-dark); font-weight: 800; font-size: .85rem; }
.service h3 { color: var(--primary); font-size: 1.2rem; margin: .3rem 0 .6rem; }
.service p { color: var(--muted); font-size: .95rem; }

.note {
  display: flex; align-items: center; gap: 1.25rem; margin-top: 2.5rem; padding: 1.4rem 1.75rem;
  background: linear-gradient(120deg, var(--primary), #17594b); color: #fff; border-radius: var(--radius);
}
.note .icon { color: var(--accent); }

/* Projects */
.projects { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.project {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; min-height: 320px;
  color: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.project img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10, 42, 36, .95) 10%, rgba(10, 42, 36, .2) 75%);
}
.project:hover img { transform: scale(1.06); }
.project__body { padding: 1.6rem; }
.project h3 { font-size: 1.4rem; }
.project p { margin-top: .3rem; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.tag {
  display: inline-block; margin-bottom: .75rem; padding: .3rem .75rem; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.project--cta {
  align-items: center;
  background: linear-gradient(120deg, var(--secondary), var(--primary));
}
.project--cta::after { display: none; }
.project--cta .project__body { padding: 2.5rem; }
.project--cta h3 { font-size: 1.8rem; color: var(--accent); }
.project--cta .btn { margin-top: 1.25rem; }

/* Contact */
.section--dark { background: var(--primary); color: #fff; }
.section--dark .section__title { color: #fff; }
.section--dark .section__eyebrow { color: var(--accent); }
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; }
.contact__lead { color: rgba(255, 255, 255, .75); margin-bottom: 2rem; }
.contact__list { list-style: none; display: grid; gap: 1.1rem; }
.contact__list li { display: flex; align-items: center; gap: 1rem; }
.contact__icon {
  display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--accent);
}
.contact__list small {
  display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .55);
}
.contact__list a { font-weight: 600; font-size: 1.05rem; }
.contact__list a:hover { color: var(--accent); }
.company { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.75rem; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.map { margin-top: 2rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); }
.map iframe { width: 100%; height: 100%; border: 0; }

.form {
  display: grid; gap: 1rem; padding: 2.25rem; color: var(--text);
  background: var(--bg); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.form h3 { color: var(--primary); font-size: 1.4rem; margin-bottom: .25rem; }
.form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 500; }
.form .optional { color: var(--muted); font-weight: 400; }
.form input, .form textarea {
  font: inherit; padding: .75rem .9rem; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg-alt); resize: vertical;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--secondary); outline-offset: -1px; border-color: transparent; background: var(--bg); }
.form button { justify-self: start; }
.form__status { font-size: .9rem; min-height: 1.2em; }
.form__status.is-error { color: #c62828; }
.form__status.is-ok { color: #2e7d32; }

/* Footer */
.footer { padding: 2.5rem 0; background: var(--primary-dark); color: rgba(255, 255, 255, .65); font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.footer p { margin-top: .6rem; }
.footer__meta { display: flex; gap: 1.5rem; }
.footer a:hover { color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .about, .contact { grid-template-columns: 1fr; gap: 3rem; }
  .about__badge { left: 1rem; bottom: -1.25rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .logo { font-size: 1.35rem; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 1rem; width: 100%; text-align: center; }
  .nav .nav__cta { border-radius: 0; }

  .hero { padding: 5rem 0 4rem; }
  .section { padding: 4rem 0; }
  .projects { grid-template-columns: 1fr; }
  .note { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .form { padding: 1.5rem; }
}
