:root {
  --color-bg: #0d0d0d;
  --color-bg-soft: #161616;
  --color-fg: #f5f3ee;
  --color-fg-muted: #b8b5ae;
  --color-line: rgba(245, 243, 238, 0.12);
  --color-accent: #c98a4b;
  --radius: 18px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 1180px;
  --header-height: 104px;
  --space-section: clamp(64px, 8vw, 120px);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

#about,
#process,
#services,
#projects,
#reviews,
#faq,
#request {
  scroll-margin-top: var(--header-height);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.header.is-scrolled {
  background: rgba(13, 13, 13, 0.8);
  border-bottom-color: var(--color-line);
}

.header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-fg);
}

.logo__icon {
  width: 40px;
  height: auto;
  display: block;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo__word {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

.logo__tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
  line-height: 1;
}

.header__inner { gap: 24px; }

.header__cta {
  padding: 11px 22px;
  font-size: 13px;
  flex-shrink: 0;
}

.header__support {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-fg-muted);
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.header__support:hover { color: var(--color-fg); }
@media (max-width: 860px) {
  .header__support { display: none; }
}
@media (min-width: 861px) {
  .nav__support-item { display: none; }
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--color-fg);
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.menu-toggle i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-fg);
  position: relative;
}
.menu-toggle i::before,
.menu-toggle i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-fg);
}
.menu-toggle i::before { top: -6px; }
.menu-toggle i::after { top: 6px; }

/* Nav — inline on desktop, slide-down panel on mobile */
.nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-fg-muted);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--color-fg); }

@media (max-width: 860px) {
  .header__cta { display: none; }
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99;
    background: var(--color-bg-soft);
    padding: calc(var(--header-height) + 8px) 24px 40px;
    max-height: 100vh;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav ul {
    max-width: var(--container);
    margin: 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .nav a { font-size: 22px; padding: 8px 0; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 90px;
}

.hero__bg {
  position: absolute;
  inset: -8% 0 0 0;
  height: 116%;
  background:
    url("../img/projects/cam-hiwatch-opora.jpg") center right / cover no-repeat,
    #0d0d0d;
  transform: scale(1.08);
  animation: hero-zoom 18s ease-out forwards;
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.82) 72%, #0d0d0d 100%),
    linear-gradient(90deg, rgba(13,13,13,0.75) 0%, rgba(13,13,13,0.25) 60%, rgba(13,13,13,0.15) 100%);
}
@keyframes hero-zoom {
  from { transform: scale(1.15); }
  to { transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; transform: none; }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(245, 243, 238, 0.4);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll-dot {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-fg);
  animation: hero-scroll-dot 1.8s ease-in-out infinite;
}
@keyframes hero-scroll-dot {
  0% { opacity: 0; transform: translateY(-4px); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-dot { animation: none; }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__cta-top {
  display: inline-flex;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(48px, 9vw, 108px);
  line-height: 0.95;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__title-serif {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 450;
  font-optical-sizing: auto;
}

.hero__title-bold {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin-top: 24px;
  max-width: 480px;
  font-size: 16px;
  color: var(--color-fg-muted);
}

.hero__stats {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 180px;
}

.hero__stat-num {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1;
  color: var(--color-accent);
}

.hero__stat-label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-fg-muted);
}

@media (max-width: 640px) {
  .hero__stats { gap: 28px 36px; }
  .hero__stats li { max-width: 140px; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s var(--ease-out), opacity 0.2s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary {
  background: var(--color-fg);
  color: var(--color-bg);
}
.btn--primary:hover { box-shadow: 0 10px 30px rgba(245, 243, 238, 0.18); }

/* Lead form */
.lead {
  padding: 110px 0;
  background: var(--color-bg);
  border-top: 1px solid rgba(245, 243, 238, 0.08);
}

.lead__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.lead__kicker {
  display: block;
  font-size: clamp(32px, 4vw, 48px);
}

.lead__title {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.01em;
  margin-top: 2px;
}

.lead__text {
  margin-top: 20px;
  max-width: 380px;
  color: var(--color-fg-muted);
  font-size: 16px;
}

.lead__text a {
  color: var(--color-fg);
  text-decoration: underline;
}

.lead__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  color: var(--color-fg-muted);
}

.field input[type="text"],
.field input[type="tel"],
.field textarea {
  background: var(--color-bg-soft);
  border: 1px solid rgba(245, 243, 238, 0.14);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--color-fg);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-fg-muted);
}

.field--check input {
  margin-top: 3px;
}

.field--check a { color: var(--color-fg); text-decoration: underline; }

.lead__submit {
  border: none;
  cursor: pointer;
  margin-top: 6px;
  width: fit-content;
}

.lead__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lead__status {
  font-size: 14px;
  min-height: 20px;
}

.lead__status[data-state="ok"] { color: #8fbf8f; }
.lead__status[data-state="error"] { color: #d98b8b; }

@media (max-width: 780px) {
  .lead__inner { grid-template-columns: 1fr; gap: 36px; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-bg-soft);
  border: 1px solid rgba(245, 243, 238, 0.12);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(140%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner p {
  flex: 1 1 280px;
  font-size: 13px;
  color: var(--color-fg-muted);
}

.cookie-banner a { color: var(--color-fg); text-decoration: underline; }

.cookie-banner__actions {
  display: flex;
  gap: 10px;
}

.cookie-banner .btn {
  padding: 10px 18px;
  font-size: 13px;
}

.btn--ghost {
  background: transparent;
  color: var(--color-fg);
  border: 1px solid rgba(245, 243, 238, 0.25);
}

/* Footer */
.site-footer {
  background: var(--color-bg-soft);
  padding: 56px 0 0;
}

.footer__bottom {
  margin-top: 44px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}
.footer__copy {
  font-size: 13px;
  color: var(--color-fg-muted);
}
.footer__meta {
  font-size: 12.5px;
  color: rgba(184, 181, 174, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer__meta a { color: var(--color-fg-muted); transition: color 0.2s ease; }
.footer__meta a:hover { color: var(--color-fg); }
.footer__dot { opacity: 0.5; }

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand .logo__tag {
  text-transform: none;
  letter-spacing: 0.02em;
}

.social {
  display: flex;
  gap: 12px;
}

.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(245, 243, 238, 0.18);
  color: var(--color-fg);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social__link:hover {
  background: var(--color-fg);
  color: var(--color-bg);
  border-color: var(--color-fg);
}

@media (max-width: 640px) {
  .hero { align-items: flex-end; padding-bottom: 56px; }
  .hero__subtitle { max-width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav { transition: none; }
  .accordion__icon,
  .accordion__index,
  .accordion__link,
  .projects__item figcaption,
  .projects__item figcaption::after {
    transition: none !important;
  }
}
