/* =========================================================
   KOPKO Polishing — landing page
   Palette pulled from the logo: steel blue + charcoal.
   ========================================================= */

:root {
  --ink: #0f1418;
  --ink-2: #161e25;
  --ink-3: #1f2a33;
  --line-dark: rgba(255, 255, 255, 0.1);

  --paper: #f4f6f8;
  --paper-2: #e8ecf0;
  --line: #d5dce3;

  --text: #1b232b;
  --text-muted: #5a6876;
  --text-on-dark: #e9eef3;
  --text-on-dark-muted: #9fb0c0;

  --blue: #2f6fb3;
  --blue-bright: #4a90d9;
  --blue-dark: #235a93;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(15, 20, 24, 0.35);

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 0.95rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-bright); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.35); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); border-color: #fff; }
.btn-outline { color: var(--blue-dark); border-color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,0.45); background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(15, 20, 24, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-on-dark);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.brand-text { font: 800 1.5rem/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.brand-text span { color: var(--blue-bright); font-weight: 600; }

.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a {
  color: var(--text-on-dark-muted); text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  transition: color .2s;
}
.main-nav a:hover { color: #fff; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.header-phone svg { width: 18px; height: 18px; fill: var(--blue-bright); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; padding: 10px;
  background: transparent; border: 1px solid var(--line-dark); border-radius: 10px;
  cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,14,18,0.92) 0%, rgba(10,14,18,0.7) 45%, rgba(10,14,18,0.25) 100%),
    linear-gradient(0deg, rgba(10,14,18,0.85) 0%, rgba(10,14,18,0) 40%);
}
.hero-content { position: relative; padding: 96px 0 72px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.9rem, 8vw, 5.75rem); font-weight: 800; margin-bottom: 20px; }
.shine {
  background: linear-gradient(100deg, #ffffff 0%, #a9d0f5 40%, #ffffff 55%, #7fb4ea 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 560px; font-size: 1.125rem; color: #d3dde7; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }

.hero-badges {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 14px;
}
.hero-badges li {
  padding: 14px 16px;
  border-left: 3px solid var(--blue-bright);
  background: rgba(15,20,24,0.55);
  backdrop-filter: blur(6px);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.hero-badges strong { display: block; font: 700 1.5rem/1.1 var(--font-display); text-transform: uppercase; }
.hero-badges span { font-size: 0.85rem; color: var(--text-on-dark-muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding-top: 24px; }
.section-light { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-dark .section-head p:not(.kicker) { color: var(--text-on-dark-muted); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p:not(.kicker) { color: var(--text-muted); font-size: 1.05rem; }
.kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}
.section-dark .kicker { color: var(--blue-bright); }
.muted { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-media img { transform: scale(1.04); }
.service-body { padding: 22px 24px 26px; }
.service-body p { color: var(--text-muted); font-size: 0.95rem; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.9rem; font-weight: 500; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em;
  width: 10px; height: 6px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.service-card-cta {
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
  border-color: transparent;
  color: #fff;
  justify-content: center;
}
.service-card-cta .service-body { padding: 36px 30px; }
.service-card-cta p { color: var(--text-on-dark-muted); }
.cta-icon { width: 44px; height: 44px; fill: var(--blue-bright); margin-bottom: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- Before / After ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.ba { margin: 0; }
.ba-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
  user-select: none;
}
.ba-frame > img,
.ba-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px;
  background: #fff;
  pointer-events: none;
}
.ba-handle::after {
  content: "‹ ›";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
  font: 700 1.1rem/1 var(--font-body); letter-spacing: 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
}
.ba-tag {
  position: absolute; top: 14px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(10,14,18,0.75); color: #fff;
  pointer-events: none;
}
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; background: var(--blue); }
.ba figcaption { margin-top: 14px; color: var(--text-on-dark-muted); }
.ba figcaption strong { color: #fff; }

/* ---------- Process ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::after {
  content: "";
  position: absolute; top: 46px; right: -21px;
  width: 22px; height: 2px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.step-num {
  display: block;
  font: 800 2.75rem/1 var(--font-display);
  color: var(--blue);
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

/* ---------- Why us / split ---------- */
.section-split { background: var(--paper-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
blockquote {
  margin: 0 0 24px;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--blue);
  font: 600 1.35rem/1.35 var(--font-display);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.why-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.why-list li { color: var(--text-muted); padding-left: 28px; position: relative; }
.why-list li::before {
  content: ""; position: absolute; left: 0; top: 0.4em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47,111,179,0.18);
}
.why-list strong { color: var(--text); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.g-item {
  padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-3);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.g-item:hover img { transform: scale(1.05); }
.g-wide { grid-column: span 2; grid-row: span 2; }
.gallery-more { margin-top: 28px; color: var(--text-on-dark-muted); }
.gallery-more a { color: var(--blue-bright); }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: min(1200px, 94vw); max-height: 92vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(6,9,12,0.9); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--radius-sm); margin: 0 auto; }
.lightbox-caption { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox-close {
  position: absolute; top: -46px; right: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; border: 0;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* ---------- Reviews + area ---------- */
.area-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.review-card {
  background: var(--ink); color: var(--text-on-dark);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
}
.review-card p { color: var(--text-on-dark-muted); }
.thumb { width: 52px; height: 52px; fill: var(--blue-bright); margin: 0 auto 14px; }
.review-big { font: 800 2.6rem/1 var(--font-display); text-transform: uppercase; color: #fff !important; margin-bottom: 12px; }
.review-card .btn-outline { color: #fff; border-color: var(--blue-bright); }

.chips { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: 0.9rem;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 22px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 32px 18px 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--blue);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-muted); padding-bottom: 6px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-info > p { color: var(--text-on-dark-muted); }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg {
  flex-shrink: 0;
  width: 44px; height: 44px; padding: 11px;
  border-radius: 12px; background: var(--ink-3); fill: var(--blue-bright);
}
.contact-list span { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-on-dark-muted); }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.contact-list a:hover { color: var(--blue-bright); }

.lead-form {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 32px;
  display: grid; gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form label {
  display: grid; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-on-dark-muted);
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #33424f;
  background: var(--ink);
  color: #fff;
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.lead-form textarea { resize: vertical; }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(74,144,217,0.25);
}
.lead-form .invalid { border-color: #e2685f; }
.lead-form input[type="file"] { padding: 10px; font-size: 0.9rem; color: var(--text-on-dark-muted); }
.lead-form input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px;
  border: 0; border-radius: 6px;
  background: var(--ink-3); color: #fff; font-weight: 600; cursor: pointer;
}
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; min-height: 1.4em; font-size: 0.95rem; }
.form-status.ok { color: #6fd39b; }
.form-status.err { color: #ff8f86; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0e11;
  color: var(--text-on-dark-muted);
  padding: 48px 0 28px;
  border-top: 1px solid var(--line-dark);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 50%; background: #fff; }
.footer-brand strong { display: block; color: #fff; font: 700 1.2rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; }
.footer-brand span { font-size: 0.85rem; }
.footer-nav, .footer-contact { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copyright { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 0.85rem; }

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .main-nav { gap: 16px; }
  .header-phone { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px 16px 20px;
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .main-nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); color: #fff; }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .header-cta { margin-left: auto; }

  .section { padding: 72px 0; }
  .hero { min-height: auto; }
  .hero-content { padding: 72px 0 56px; }
  .hero-badges { grid-template-columns: 1fr; max-width: 360px; }

  .ba-grid,
  .split,
  .area-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .split-media img { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    padding: 15px 8px; text-align: center;
    color: #fff; text-decoration: none; font-weight: 600; font-size: 0.92rem;
    border-right: 1px solid var(--line-dark);
  }
  .mobile-bar-primary { background: var(--blue); border-right: 0 !important; }
  body { padding-bottom: 56px; }
}

@media (max-width: 600px) {
  .brand-text { font-size: 1.25rem; }
  .header-cta .btn { display: none; }
  .services-grid,
  .steps,
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .lead-form { padding: 22px 18px; }
  .review-card { padding: 32px 22px; }
  .gallery { grid-auto-rows: 140px; gap: 10px; }
}

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