/* ==========================================================================
   Black Sea Carpet Cleaning — styles
   Design tokens mirror the original build (oklch, same values).
   ========================================================================== */

@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --background: oklch(99.5% 0.003 220);
  --foreground: oklch(21% 0.045 240);
  --card: oklch(100% 0 0);
  --primary: oklch(48% 0.115 224);
  --muted-foreground: oklch(52% 0.03 235);
  --deep: oklch(24% 0.055 240);
  --deep-foreground: oklch(97% 0.01 220);
  --surface: oklch(97.5% 0.008 220);
  --gold: oklch(78% 0.14 78);
  --gold-strong: oklch(70% 0.14 78);
  --gold-foreground: oklch(24% 0.055 240);
  --border: oklch(91.5% 0.012 230);

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px oklch(21% 0.045 240 / 0.05);
  --shadow-md: 0 4px 16px oklch(21% 0.045 240 / 0.08);
  --shadow-lg: 0 18px 40px oklch(21% 0.045 240 / 0.16);

  --container: 1180px;
  --header-h: 76px;
  --header-border: 1px;
  /* what the sticky header actually occupies - the anchor scroll offset */
  --header-total: calc(var(--header-h) + var(--header-border));
  --font-head: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, sans-serif;
}

/* --------------------------------------------------------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-total);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--foreground);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.075rem; font-weight: 700; }

p { margin: 0 0 1rem; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--deep);
  color: var(--deep-foreground);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container-narrow { max-width: 860px; }

/* ------------------------------------------------------- buttons --------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-gold {
  --btn-bg: var(--gold);
  --btn-fg: var(--gold-foreground);
  box-shadow: var(--shadow-md);
}
.btn-gold:hover { --btn-bg: var(--gold-strong); }

.btn-outline {
  --btn-fg: var(--deep);
  border-color: var(--deep);
}
.btn-outline:hover { --btn-bg: var(--deep); --btn-fg: var(--deep-foreground); }

.btn-ghost-light {
  --btn-fg: var(--deep-foreground);
  border-color: oklch(97% 0.01 220 / 0.35);
  background: oklch(97% 0.01 220 / 0.08);
}
.btn-ghost-light:hover { background: oklch(97% 0.01 220 / 0.18); }

.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-block: 1.75rem 0;
}
.btn-row-center { justify-content: center; margin-top: 2.75rem; }

/* -------------------------------------------------------- header --------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(100% 0 0 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: var(--header-border) solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}
.brand-tag { font-size: 0.78rem; color: var(--muted-foreground); }

.nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--foreground);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--primary); border-bottom-color: var(--gold); }

.header-cta { padding: 0.7rem 1.3rem; font-size: 0.78rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.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); }

/* ------------------------------------------------------ sections --------- */

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section-surface { background: var(--surface); }
.section-deep {
  background: var(--deep);
  color: var(--deep-foreground);
}
.section-deep h2, .section-deep h3 { color: var(--deep-foreground); }

.eyebrow {
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.eyebrow-gold { color: var(--gold); }

.section-lede {
  max-width: 62ch;
  color: var(--muted-foreground);
  font-size: 1.03rem;
}
.section-deep .section-lede { color: oklch(97% 0.01 220 / 0.78); }

/* ---------------------------------------------------------- hero --------- */

.hero {
  background: var(--deep);
  color: var(--deep-foreground);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero-inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { color: var(--deep-foreground); }
.hero .lede {
  font-size: 1.1rem;
  color: oklch(97% 0.01 220 / 0.82);
  max-width: 54ch;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid oklch(97% 0.01 220 / 0.24);
  border-radius: 999px;
  background: oklch(97% 0.01 220 / 0.08);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pill-badge svg {
  width: 1em; height: 1em;
  fill: none; stroke: var(--gold);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem 1.75rem;
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  font-size: 0.95rem;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.trust-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1600 / 1104;
  object-fit: cover;
}
.hero-card {
  background: var(--card);
  color: var(--foreground);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.3rem;
  max-width: 340px;
  margin: -3rem auto 0;
  position: relative;
}
.hero-card-title {
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.hero-card-text {
  font-size: 0.88rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* --------------------------------------------------------- cards --------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card p { color: var(--muted-foreground); font-size: 0.95rem; }
.card > p:last-child { margin-bottom: 0; }

.check-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.93rem;
}
.check-list li {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.6rem;
  align-items: start;
}
.check-list li::before {
  content: "";
  margin-top: 0.42em;
  width: 0.72rem;
  height: 0.4rem;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------- process --------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
}
.step { border-top: 1px solid var(--border); padding-top: 1.15rem; }
.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: oklch(78% 0.03 230);
  margin-bottom: 0.6rem;
}
.step p { color: var(--muted-foreground); font-size: 0.95rem; margin: 0; }

/* ------------------------------------------------------- gallery --------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 2.25rem;
}
.filter {
  padding: 0.6rem 1.15rem;
  border: 1px solid oklch(97% 0.01 220 / 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--deep-foreground);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.filter:hover { background: oklch(97% 0.01 220 / 0.12); }
.filter.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-foreground);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.shot {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: oklch(97% 0.01 220 / 0.06);
  box-shadow: var(--shadow-md);
}
.shot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.shot figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.shot .tag { color: var(--gold); }
.shot .tag-before { color: oklch(97% 0.01 220 / 0.62); }

.gallery-empty {
  text-align: center;
  color: oklch(97% 0.01 220 / 0.7);
  padding-block: 2rem;
}

/* ------------------------------------------------------- reviews --------- */

.reviews-panel {
  margin-top: 2.5rem;
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.reviews-panel > p:not(.stars) {
  max-width: 60ch;
  margin-inline: auto;
  color: var(--muted-foreground);
}
.stars {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}
.stars svg { width: 1.35rem; height: 1.35rem; fill: var(--gold); }

/* --------------------------------------------------- service area -------- */

.area-inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.area-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}
.area-list li::before {
  content: "";
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid var(--primary);
}

/* ---------------------------------------------------------- form --------- */

.quote-head { text-align: center; margin-bottom: 2.5rem; }
.quote-head .section-lede { margin-inline: auto; }

.quote-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem 1.5rem;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.95rem;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 0; border-color: var(--primary); }

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: oklch(57.7% 0.245 27.325); }

.error {
  margin: 0;
  font-size: 0.83rem;
  color: oklch(52% 0.22 27.325);
}
.hint {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted-foreground);
}

.form-status {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.4em;
}
.form-status.is-error { color: oklch(52% 0.22 27.325); }
.form-status.is-ok { color: oklch(45% 0.13 155); }

/* ----------------------------------------------------------- faq --------- */

.faq-list { margin-top: 2.25rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--muted-foreground);
  border-bottom: 2px solid var(--muted-foreground);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-item > p {
  margin: 0;
  padding-bottom: 1.3rem;
  color: var(--muted-foreground);
  max-width: 78ch;
}

/* ------------------------------------------------------- contact --------- */

.contact-inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 1.1rem;
}
.contact-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.98rem;
}
.contact-list svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.social-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid oklch(97% 0.01 220 / 0.16);
  border-radius: var(--radius-lg);
  background: oklch(97% 0.01 220 / 0.05);
}
.social-card p { color: oklch(97% 0.01 220 / 0.75); font-size: 0.95rem; }
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
  margin-top: 1.4rem;
}
.social-grid a {
  padding: 0.85rem 1.1rem;
  border: 1px solid oklch(97% 0.01 220 / 0.18);
  border-radius: var(--radius);
  background: oklch(97% 0.01 220 / 0.06);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.15s ease;
}
.social-grid a:hover { background: oklch(97% 0.01 220 / 0.14); }

/* -------------------------------------------------------- footer --------- */

.site-footer {
  background: var(--background);
  padding-block: 2.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}
.site-footer p { margin: 0 0 0.35rem; }
.footer-strong { font-weight: 700; color: var(--foreground); }

/* ---------------------------------------------------- mobile bar --------- */

.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: oklch(24% 0.055 240 / 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid oklch(97% 0.01 220 / 0.14);
}
.mobile-bar a {
  flex: 1;
  padding: 0.7rem 0.5rem;
  border: 1px solid oklch(97% 0.01 220 / 0.28);
  border-radius: 999px;
  color: var(--deep-foreground);
  text-align: center;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.mobile-bar-cta {
  background: var(--gold);
  border-color: var(--gold) !important;
  color: var(--gold-foreground) !important;
}

/* ==================================================== breakpoints ======== */

@media (min-width: 640px) {
  .quote-form { gap: 1.25rem 1.5rem; }
}

@media (min-width: 1024px) {
  .hero {
    min-height: calc(100vh - var(--header-total));
    min-height: calc(100svh - var(--header-total));
    display: grid;
    align-content: center;
  }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-card {
    position: absolute;
    right: -1rem;
    bottom: -1.75rem;
    margin: 0;
  }
  .area-inner { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1.15fr 1fr; }
}

@media (max-width: 1023px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li + li { border-top: 1px solid var(--border); }
  .nav a { display: block; padding: 0.85rem 0; border-bottom: none; }

  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .mobile-bar { display: flex; }
  body { padding-bottom: 4.25rem; }
}

@media (max-width: 480px) {
  .btn { padding: 0.8rem 1.25rem; font-size: 0.8rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .brand-name { font-size: 0.92rem; }
  .brand-tag { font-size: 0.72rem; }
}

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