/* Layout & UI system */

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

section,
header,
footer,
main {
  max-width: 100%;
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 16, 14, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-strong);
  font-family: var(--font-heading);
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text-strong);
  text-decoration: none;
}

.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.logo__mark svg {
  width: 20px;
  height: 20px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.04);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-strong);
  cursor: pointer;
  padding: 0;
}

.burger__lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.burger__lines span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger[aria-expanded="true"] .burger__lines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__lines span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__lines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 1rem 0 1.5rem;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile a {
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.85rem 0.25rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:hover,
.nav-mobile a[aria-current="page"] {
  color: var(--primary-hover);
}

.nav-mobile .btn {
  margin-top: 1rem;
  width: 100%;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 1100px) {
  .nav-desktop {
    display: flex;
  }

  .burger {
    display: none;
  }

  .header-actions .btn--primary {
    display: inline-flex;
  }
}

@media (max-width: 1099px) {
  .header-actions .btn--primary.desktop-only {
    display: none;
  }
}

/* Sections */
.section {
  padding: var(--section-space) 0;
}

.section--tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--alt {
  background: rgba(23, 29, 26, 0.55);
  border-block: 1px solid var(--border);
}

.section--surface {
  background: var(--bg-elevated);
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head.center {
  margin-inline: auto;
  text-align: center;
}

.section__head.center .lead {
  margin-inline: auto;
}

/* Grids */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 60%, rgba(201, 168, 76, 0.04)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 38px,
      rgba(255, 255, 255, 0.015) 38px,
      rgba(255, 255, 255, 0.015) 39px
    );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.25rem;
}

.hero-value {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Trust strip */
.trust-strip {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 0;
}

.trust-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.trust-item strong {
  display: block;
  color: var(--text-strong);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.trust-item__dot {
  width: 10px;
  height: 10px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(61, 143, 95, 0.2);
}

@media (min-width: 768px) {
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .trust-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Process */
.process-list {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.process-item {
  display: grid;
  gap: 0.75rem;
  padding: 1.35rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

@media (min-width: 700px) {
  .process-item {
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
  }
}

.process-item__num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--solar);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.25);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 52rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text-strong);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 650;
  padding: 1.1rem 1.2rem;
  min-height: 56px;
  cursor: pointer;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--primary-hover);
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item__btn[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg);
  background: rgba(61, 143, 95, 0.15);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item__panel.is-open {
  grid-template-rows: 1fr;
}

.faq-item__panel-inner {
  overflow: hidden;
}

.faq-item__panel-inner > div {
  padding: 0 1.2rem 1.2rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 2rem);
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-field .req {
  color: var(--solar);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-strong);
  font: inherit;
  appearance: none;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted-soft);
}

.form-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61, 143, 95, 0.2);
  outline: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.form-privacy {
  font-size: 0.88rem;
  color: var(--muted-soft);
}

.form-privacy a {
  color: var(--primary-hover);
}

.form-error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0;
}

/* Contact meta */
.contact-meta {
  display: grid;
  gap: 1rem;
}

.contact-meta__item {
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.contact-meta__item strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--text-strong);
  margin-bottom: 0.35rem;
}

.contact-meta__item a {
  color: var(--text);
  text-decoration: none;
}

.contact-meta__item a:hover {
  color: var(--primary-hover);
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(61, 143, 95, 0.07), transparent);
}

.page-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted-soft);
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
}

.page-hero .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  color: var(--primary-hover);
}

.page-hero .breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--muted-soft);
}

/* Footer */
.site-footer {
  background: #090c0b;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 32ch;
}

.footer-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--solar);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--text-strong);
}

.footer-contact {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer-contact a,
.contact-meta a,
[data-email],
[data-domain] {
  overflow-wrap: anywhere;
}

[data-phone-row][hidden],
[data-address-row][hidden] {
  display: none !important;
}

.footer-contact a {
  color: var(--text);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--primary-hover);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: var(--muted-soft);
}

.footer-meta button {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
}

.footer-meta button:hover {
  color: var(--primary-hover);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 5000;
  padding: 1rem;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__panel {
  pointer-events: auto;
  width: min(100%, 920px);
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.25rem 1.35rem;
}

.cookie-banner__panel h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.cookie-banner__panel > p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-actions .btn {
  flex: 1 1 auto;
  min-width: 140px;
}

.cookie-settings {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: none;
}

.cookie-settings.is-open {
  display: block;
}

.cookie-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-cat:last-of-type {
  border-bottom: none;
}

.cookie-cat strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.95rem;
}

.cookie-cat span {
  font-size: 0.85rem;
  color: var(--muted-soft);
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__slider {
  position: absolute;
  inset: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.switch__slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: var(--text);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.switch input:checked + .switch__slider {
  background: var(--primary-deep);
  border-color: var(--primary);
}

.switch input:checked + .switch__slider::before {
  transform: translateX(20px);
}

.switch input:disabled + .switch__slider {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(61, 143, 95, 0.18), rgba(47, 107, 122, 0.12));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .cta-band {
    grid-template-columns: 1.4fr auto;
    align-items: center;
  }
}

/* Table-like list */
.factor-list {
  display: grid;
  gap: 0.75rem;
}

.factor-item {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.factor-item strong {
  color: var(--text-strong);
  font-family: var(--font-heading);
}

@media (min-width: 700px) {
  .factor-list.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Thanks page */
.thanks-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 3rem 0;
  text-align: center;
}

.thanks-card {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* Photo media frames */
.media-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.media-frame--hero {
  aspect-ratio: 16 / 11;
  min-height: 280px;
}

.media-frame--landscape {
  aspect-ratio: 16 / 10;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame--hero img {
  object-position: 72% center;
}

.media-frame--doc img {
  object-position: center 18%;
}

.media-frame--storage img {
  object-position: center center;
}

.media-frame--install img {
  object-position: center 28%;
}

.media-caption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--muted-soft);
}

@media (max-width: 700px) {
  .media-frame--hero img {
    object-position: 60% center;
  }

  .media-frame--doc img {
    object-position: center 12%;
  }
}
