:root {
  --slate: #565b5c;
  --slate-dark: #3f4445;
  --ink: #1d2121;
  --body: #4a5052;
  --bg: #ffffff;
  --bg-alt: #f5f6f6;
  --line: #e3e6e6;
  --shadow: 0 8px 24px rgba(29, 33, 33, 0.08);
  --shadow-hover: 0 14px 34px rgba(29, 33, 33, 0.14);
  --radius: 6px;
  --container: 1140px;
  --font-head: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--slate); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--slate); color: #fff;
  padding: 8px 16px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 52px; width: auto; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.site-nav > ul { list-style: none; display: flex; gap: 6px; align-items: center; }
.site-nav a {
  display: block; padding: 10px 14px; font-weight: 700; font-size: 15px;
  color: var(--ink); border-radius: 4px; letter-spacing: 0.02em;
}
.site-nav a:hover { color: var(--slate); background: var(--bg-alt); }
.has-dropdown { position: relative; }
.caret {
  display: inline-block; margin-left: 6px; vertical-align: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.dropdown {
  display: block; list-style: none;
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  max-height: 70vh; overflow-y: auto;
}
.dropdown a { padding: 9px 18px; font-weight: 500; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- hero ---------- */
.hero, .page-hero {
  position: relative; display: flex; align-items: center;
  background-size: cover; background-position: center;
  min-height: 480px;
}
.page-hero { min-height: 300px; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(24, 28, 28, 0.78) 25%, rgba(24, 28, 28, 0.35) 70%);
}
.hero-inner { position: relative; padding: 110px 24px; width: 100%; }
.hero-inner > * { max-width: 620px; }
.hero h1 {
  color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700;
  letter-spacing: 0.01em; margin-bottom: 14px;
}
.page-hero h1 { position: relative; color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); padding: 70px 0; }
.hero-sub { color: #f0f2f2; font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.hero-note { color: #d7dcdc; font-size: 0.95rem; margin-bottom: 4px; }
.hero-call { color: #fff; font-weight: 700; margin-bottom: 26px; }
.hero-call a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--slate); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 13px 30px; border-radius: 4px; border: 0; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--slate-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-small { padding: 9px 20px; font-size: 13px; }
.btn-invert { background: #fff; color: var(--slate); }
.btn-invert:hover { background: var(--bg-alt); color: var(--slate-dark); }
.cta-band .btn-invert { color: var(--slate-dark); }
.cta-band .btn-invert:hover { color: var(--slate); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 0 0 88px; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: #000;
}
.rule { display: block; width: 190px; height: 2px; background: var(--slate); margin: 14px auto 0; }
.lead { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.eyebrow {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.8rem; color: var(--slate); margin-bottom: 14px;
}

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split-body .h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 18px; }
.split-body p { margin-bottom: 16px; }
.split-body .btn { margin-top: 8px; }

/* ---------- video ---------- */
.video-section video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); box-shadow: var(--shadow); background: #000; }

/* ---------- services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; display: flex; border-radius: var(--radius); overflow: hidden;
  min-height: 340px; isolation: isolate; box-shadow: var(--shadow);
}
.service-card > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s; z-index: -2;
}
.service-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 24, 24, 0.25) 0%, rgba(20, 24, 24, 0.82) 78%);
}
.service-card:hover > img { transform: scale(1.05); }
.service-card:hover { box-shadow: var(--shadow-hover); }
.service-body {
  margin-top: auto; padding: 26px 24px; display: flex; flex-direction: column;
  align-items: flex-start; gap: 10px;
}
.service-title {
  font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: #fff;
}
.service-text { color: #e4e8e8; font-size: 0.94rem; line-height: 1.55; }
.service-body .btn-small { margin-top: 4px; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border-bottom: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center; padding: 38px 26px 42px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--slate); }
.feature-ico { width: 44px; height: 44px; color: var(--ink); margin: 0 auto 16px; }
.feature h3 { font-size: 0.95rem; letter-spacing: 0.08em; margin-bottom: 8px; }
.feature p { font-size: 0.95rem; }

/* ---------- justified gallery ---------- */
.jgallery { display: flex; flex-wrap: wrap; gap: 10px; }
.jg-item {
  display: block; overflow: hidden; border-radius: 4px; position: relative;
  height: var(--row-h, 180px); flex-grow: 0; flex-shrink: 0; flex-basis: auto;
  cursor: zoom-in;
}
.jg-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.25s, transform 0.35s;
}
.jg-item:hover img { opacity: 0.88; transform: scale(1.04); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(15, 18, 18, 0.92);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, 0.12); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 22px;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial {
  background: #fff; border-bottom: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 26px 26px; text-align: center;
  display: flex; flex-direction: column; gap: 20px;
}
.testimonial blockquote { font-style: italic; font-size: 0.97rem; }
.testimonial figcaption { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin-top: auto; }

/* ---------- specs / images ---------- */
.specs {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 6px;
}
.specs li {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 0.88rem; font-weight: 700; color: var(--slate-dark);
}
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 46px; }
.img-grid .jg-item { height: auto; width: 100%; }
.img-grid .jg-item img { width: 100%; height: 230px; object-fit: cover; }
.img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.img-row img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- cta band ---------- */
.cta-band { background: var(--slate); color: #fff; padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #dde1e1; margin-bottom: 26px; }
.cta-band a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 40px 0; }
.contact-card {
  display: flex; gap: 14px; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  font-size: 0.92rem; color: var(--body); transition: box-shadow 0.2s, transform 0.2s;
}
a.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ico-wrap {
  flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; color: var(--slate);
}
.contact-card strong { color: var(--ink); word-break: break-word; }
.contact-form { display: grid; gap: 16px; margin-top: 40px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 4px; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--slate); border-color: var(--slate); }
.contact-form .btn { justify-self: start; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; padding: 64px 24px 48px; }
.footer-heading { font-size: 1.05rem; margin-bottom: 6px; }
.footer-rule { display: block; width: 52px; height: 2px; background: var(--slate); margin-bottom: 20px; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { color: var(--body); font-weight: 500; }
.footer-links a:hover { color: var(--slate-dark); }
.footer-contact { list-style: none; display: grid; gap: 12px; font-size: 0.95rem; }
.footer-contact li { display: flex; gap: 10px; align-items: baseline; }
.footer-contact .ico { width: 16px; height: 16px; flex: 0 0 16px; transform: translateY(2px); color: var(--slate); }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: var(--slate); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.footer-social a:hover { background: var(--slate-dark); }
.footer-social .ico { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; font-size: 0.85rem; color: #8a9092; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features, .testimonials { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: #fff; padding: 20px 24px; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.28s;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li > a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0 18px; max-height: 0; overflow: hidden;
    transition: max-height 0.3s;
  }
  .has-dropdown.open .dropdown { max-height: 600px; }
  .section { padding: 60px 0; }
  .hero { min-height: 420px; }
  .services-grid, .features, .testimonials { grid-template-columns: 1fr; }
  .hero-inner { padding: 80px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
