/* ============ Vertexfoam ============ */
:root {
  --navy: #063767;
  --navy-700: #052c52;
  --blue: #2b6ca3;
  --blue-300: #6fa3d4;
  --ink: #12161c;
  --graphite: #1b2027;
  --graphite-2: #242a33;
  --text: #2d3440;
  --muted: #6b7380;
  --line: #e3e7ec;
  --bg: #ffffff;
  --bg-soft: #f3f5f8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 30, 60, .12);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.accent { color: var(--blue-300); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(43, 108, 163, .35); }
.btn--primary:hover { background: var(--navy); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ============ Header ============ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.06); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header__logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink);
  position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blue); transition: width .25s;
}
.nav a:not(.btn):hover::after { width: 100%; }
.nav .btn { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 150px 0 100px;
  background:
    radial-gradient(circle at 80% 20%, rgba(43,108,163,.35), transparent 55%),
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.5px) 0 0 / 14px 14px,
    linear-gradient(160deg, var(--graphite) 0%, var(--ink) 100%);
  color: #c9d1db;
  overflow: hidden;
}
.hero h1 { color: #fff; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero__lead { font-size: 1.12rem; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 40px; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__badges li {
  font-size: .85rem; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.hero__badges strong { color: #fff; }

.hero__visual { position: relative; height: 560px; }
.hero__img { margin: 0; position: absolute; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--main { width: 64%; height: 100%; right: 0; top: 0; }
.hero__img--side { width: 46%; height: 58%; left: 0; bottom: -20px; border: 6px solid var(--graphite); }
.hero__card {
  position: absolute; left: 6%; top: 8%;
  background: #fff; color: var(--ink);
  padding: 16px 22px; border-radius: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.hero__card-num { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--navy); line-height: 1; }
.hero__card-label { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ============ Strip ============ */
.strip { background: var(--navy); color: #cfe0f1; }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__inner > div { padding: 28px 20px; border-right: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; }
.strip__inner > div:last-child { border-right: 0; }
.strip strong { font-family: var(--font-head); color: #fff; font-size: 1.1rem; }
.strip span { font-size: .9rem; }

/* ============ Sections ============ */
.section { padding: 110px 0; }
.section--light { background: var(--bg-soft); }
.section--dark {
  background:
    radial-gradient(rgba(255,255,255,.04) 1px, transparent 1.5px) 0 0 / 14px 14px,
    var(--graphite);
  color: #b9c2cd;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--blue-300); }
.section__head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.section--dark .section__head p { color: #9aa4b1; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service:hover .service__img img { transform: scale(1.06); }
.service__body { padding: 24px 26px 28px; }
.service__body p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Materials */
.materials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.material {
  background: var(--graphite-2); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius); padding: 32px 26px;
  transition: border-color .3s, transform .3s;
}
.material:hover { border-color: var(--blue); transform: translateY(-4px); }
.material__tag {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 12px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1rem;
}
.material p { font-size: .93rem; margin: 0; }

/* Process */
.process {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(min(var(--steps, 4), 5), 1fr); gap: 28px;
  position: relative;
}
.process::before {
  content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px);
}
.process li { position: relative; text-align: center; padding: 0 10px; }
.process__num {
  position: relative; z-index: 1;
  display: inline-grid; place-items: center;
  width: 68px; height: 68px; border-radius: 50%; margin-bottom: 22px;
  background: #fff; border: 2px solid var(--blue);
  font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.2rem;
}
.process p { color: var(--muted); font-size: .95rem; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter {
  font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  transition: .2s;
}
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.gallery { columns: 3 280px; column-gap: 18px; }
.gallery__item {
  display: block; margin-bottom: 18px; break-inside: avoid;
  border-radius: 12px; overflow: hidden; position: relative; cursor: zoom-in;
}
.gallery__item img { width: 100%; transition: transform .5s, filter .3s; }
.gallery__item:hover img { transform: scale(1.04); filter: brightness(.9); }
.gallery__item.is-hidden { display: none; }

/* Why */
.why__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.why__img { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.why__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 18px; }
.checklist li { position: relative; padding-left: 38px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist strong { color: var(--ink); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.contact__list li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: baseline; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 18px; }
.contact__list span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-300); font-weight: 600; }
.contact__list a, .contact__list p { color: #fff; margin: 0; font-size: 1.05rem; }
.contact__list a:hover { color: var(--blue-300); }

.form {
  background: #fff; border-radius: 18px; padding: 36px;
  display: grid; gap: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.3);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: .95rem; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft);
  transition: border-color .2s, background .2s;
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.form .is-invalid { border-color: #d64545; }
.form__note { margin: 0; font-size: .88rem; color: var(--muted); min-height: 1.2em; }

/* People (yetkililer) */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 32px; }
.person {
  display: flex; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: 14px;
  background: var(--graphite-2); border: 1px solid rgba(255,255,255,.08);
  transition: border-color .2s, transform .2s;
}
.person:hover { border-color: var(--blue); transform: translateY(-2px); }
.person__icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff;
}
.person__icon svg { width: 20px; height: 20px; }
.person__text { display: flex; flex-direction: column; line-height: 1.35; }
.person__text strong { color: #fff; font-family: var(--font-head); font-size: .98rem; }
.person__text small { color: var(--blue-300); font-size: .78rem; }
.person__text span { color: #dfe5ec; font-size: .95rem; margin-top: 2px; }

.nav__phone { color: var(--navy) !important; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }

/* Footer */
.footer { background: var(--ink); color: #8b95a3; padding: 60px 0 0; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.3fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__grid > div { display: flex; flex-direction: column; gap: 8px; }
.footer h4 { font-family: var(--font-head); color: #fff; font-size: .95rem; margin: 0 0 8px; }
.footer a:hover { color: #fff; }
.footer small { color: #6b7380; }
.footer__logo { height: 40px; width: auto; align-self: flex-start; filter: brightness(0) invert(1); opacity: .9; }
.footer__tag { margin: 6px 0 0; letter-spacing: .14em; font-size: .75rem; text-transform: uppercase; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer p { margin: 0; }

/* WhatsApp */
.whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 25px rgba(37,211,102,.45);
  transition: transform .2s;
}
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 30px; height: 30px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,10,14,.94);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 88vw; border-radius: 10px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: 18px; right: 28px; font-size: 2.6rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 10px 18px; }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }

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

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .materials { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { gap: 40px; }
  .hero__visual { height: 480px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.is-open { max-height: 400px; box-shadow: 0 20px 30px rgba(0,0,0,.08); }
  .nav a:not(.btn) { padding: 16px 20px; border-top: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 16px 20px 20px; }

  .hero { padding: 120px 0 80px; }
  .hero__inner, .why__inner, .contact { grid-template-columns: 1fr; }
  .hero__visual { height: 420px; }
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .strip__inner > div:nth-child(2) { border-right: 0; }
  .strip__inner > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__phone { padding: 16px 20px; border-top: 1px solid var(--line); }
  .process::before { display: none; }
  .section { padding: 80px 0; }
  .why__img img { aspect-ratio: 4/3; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .header__logo img { height: 36px; }
  .services, .materials, .process { grid-template-columns: 1fr; }
  .hero__visual { height: 360px; }
  .hero__card { left: auto; right: 8px; top: auto; bottom: 16px; padding: 12px 16px; }
  .form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 1fr; gap: 4px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

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