:root {
  --bg: #17161a;
  --bg-soft: #d6d7d7;
  --bg-services: #62647d;
  --bg-services-2: #ccd0d5;
  --bg-contact: #d2d2de;
  --text: #2a2a2a;
  --text-light: #d5d5d5;
  --muted: #a1a1a1;
  --accent: #1e3a8a;
  --accent-rgb: 30, 58, 138;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

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

html, body {
  margin: 0;
  padding: 0;
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

section[id] { scroll-margin-top: var(--nav-h); }

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

a { color: var(--accent); }

/* ---------- nav ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}

.site-nav .brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.site-nav ul a:hover,
.site-nav ul a.is-active {
  border-bottom-color: #fff;
}

.hamburger {
  display: none;
  width: 28px;
  height: 22px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.hamburger span,
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.hamburger::before { top: 0; }
.hamburger span { top: 50%; transform: translateY(-50%); }
.hamburger::after { bottom: 0; }

.hamburger.is-open::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.is-open span { opacity: 0; }
.hamburger.is-open::after { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 760px) {
  .site-nav ul {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(0, 0, 0, 0.92);
    transform: translateY(calc(-100% - var(--nav-h)));
    transition: transform 0.25s ease;
    padding: 12px 0;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .site-nav ul.is-open { transform: translateY(0); }
  .site-nav ul a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-nav ul a:hover,
  .site-nav ul a.is-active {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
  }
  .hamburger { display: block; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero > * { position: relative; }

.hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
  line-height: 1.1;
}

.hero .tagline {
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.18em;
  color: var(--text-light);
  margin: 0;
}

.hero--solid { background: #000; min-height: 50vh; }
.hero--center { align-items: center; text-align: center; }
.hero--center .hero-inner { text-align: center; }

.hero--portrait { background: #000; min-height: auto; padding-bottom: 0; }
.hero--portrait .hero-inner {
  display: flex;
  justify-content: center;
  padding: 20px 0 0;
}
.hero--portrait img {
  max-height: 70vh;
  width: auto;
  border-radius: 4px;
}

/* ---------- sections ---------- */
.section {
  padding: 64px 24px;
}

@media (max-width: 760px) {
  .section { padding: 40px 18px; }
}

.section.dark { background: var(--bg); color: var(--text-light); }
.section.light { background: #fff; }
.section.muted { background: #f5f5f7; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 32px;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.section.dark .section-title { color: #fff; }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
  border: 6px solid #fff;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery a:hover img { transform: scale(1.05); }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-portrait { max-width: 220px; }
}

.about-portrait {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.08);
}

.about-body {
  font-size: 15px;
  line-height: 1.65;
  color: #3a3a3a;
}

.about-body p { margin: 0 0 14px; }

.about-body .lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
}

.about-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }

.bio-card {
  margin: 22px 0 18px;
  padding: 18px 20px;
  background: #f5f5f7;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}

.bio-name {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.bio-name span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666;
  margin-top: 2px;
}

.bio-creds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.bio-creds li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.45;
  color: #3a3a3a;
}

.bio-creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.about-body .signature {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: #5a5a5a;
  letter-spacing: 0.02em;
}

/* ---------- services ---------- */
.services-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 32px;
}

.services-images img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 760px) {
  .services-images { grid-template-columns: 1fr; }
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 760px) {
  .services-list { grid-template-columns: 1fr; }
}

.services-list li {
  background: #fff;
  border: 1px solid #e2e2e6;
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 14px;
}

.services-list .icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.10);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.services-list .icon svg { width: 18px; height: 18px; }

/* ---------- contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 16px; }
}

.contact-card,
.form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(20, 20, 30, 0.04), 0 8px 24px rgba(20, 20, 30, 0.06);
  padding: 24px;
}

@media (max-width: 760px) {
  .contact-card, .form-card { padding: 20px; border-radius: 10px; }
}

.contact-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}

.contact-card .lede {
  color: #555;
  font-size: 13px;
  margin: 0 0 16px;
  line-height: 1.5;
}

.contact-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.contact-btn {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font: inherit;
  transition: transform 0.06s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(20, 20, 30, 0.06);
}

.contact-btn:hover { filter: brightness(1.12); box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.35); }
.contact-btn:active { transform: translateY(1px); }
.contact-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.contact-btn .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-btn .icon svg { width: 18px; height: 18px; }

.contact-btn .btn-text { display: grid; gap: 2px; min-width: 0; }
.contact-btn .btn-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.contact-btn .btn-value {
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.contact-btn--secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  box-shadow: none;
}
.contact-btn--secondary:hover {
  background: rgba(var(--accent-rgb), 0.06);
  filter: none;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.15);
}
.contact-btn--secondary .icon {
  background: rgba(var(--accent-rgb), 0.10);
  color: var(--accent);
}
.contact-btn--secondary .btn-label { opacity: 1; color: #666; }

.contact-card .hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 13px;
  color: #555;
  text-align: center;
}

.contact-card .hours svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent); }

.form-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}

.form-card .lede {
  color: #555;
  font-size: 13px;
  margin: 0 0 18px;
  line-height: 1.5;
}

form.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form .field {
  display: grid;
  gap: 6px;
}

.contact-form .field > .field-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4d4d8;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18);
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form .name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 520px) {
  .contact-form .name-row { grid-template-columns: 1fr; }
}

.contact-form .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-form .chip {
  position: relative;
  cursor: pointer;
}

.contact-form .chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-form .chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #d4d4d8;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  transition: all 0.12s ease;
  user-select: none;
}

.contact-form .chip:hover span { border-color: #999; color: var(--text); }

.contact-form .chip input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.contact-form .chip input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.30);
}

.contact-form .honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.required { color: var(--accent); }

.contact-form button[type="submit"] {
  justify-self: stretch;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 14px 28px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  box-shadow: 0 1px 2px rgba(20, 20, 30, 0.06);
}

.contact-form button[type="submit"]:hover {
  filter: brightness(1.12);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.35);
}
.contact-form button[type="submit"]:active { transform: translateY(1px); }
.contact-form button[type="submit"][disabled] { background: #888; cursor: not-allowed; filter: none; box-shadow: none; }

.contact-form button .spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  display: none;
}

.contact-form.is-submitting button .label { display: none; }
.contact-form.is-submitting button .spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.form-status.is-success { display: block; background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.form-status.is-error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.form-note {
  font-size: 12px;
  color: #5a5a5a;
  margin: 0;
}

/* ---------- footer ---------- */
.site-footer {
  background: #111;
  color: var(--muted);
  text-align: center;
  padding: 28px 24px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer a { color: var(--muted); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 12px 18px;
  line-height: 1;
}

.lightbox .lb-close { top: 10px; right: 10px; font-size: 36px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

.lightbox button:hover { color: #ccc; }
