/* ============================================================
   ARKO Remodeling — styles
   Palette matched to the ARKO business card:
   near-black, white, warm brass/gold.
   ============================================================ */
:root {
  --bg: #101113;
  --bg-2: #16171A;
  --card: #1C1D21;
  --text: #F5F5F3;
  --muted: #9C9C96;
  --brass: #C6A15B;
  --brass-bright: #D8B36A;
  --brass-deep: #A57F35;
  --brass-border: rgba(198, 161, 91, 0.28);
  --line: rgba(255, 255, 255, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 480px; margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.dot { color: var(--brass); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero / logo ---------- */
.hero { text-align: center; padding: 52px 0 34px; }

.logo-img {
  display: block;
  width: min(300px, 76%);
  height: auto;
  margin: 0 auto;
}

.tagline {
  margin-top: 24px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.tagline::before, .tagline::after { content: ""; width: 26px; height: 1px; background: var(--brass-border); }

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px;
  padding: 0 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(180deg, var(--brass-bright), var(--brass-deep));
  color: #17130A;
  box-shadow: 0 6px 22px rgba(198, 161, 91, 0.25);
  border: none;
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(198, 161, 91, 0.35); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--brass-border);
}
.btn-outline:hover { border-color: var(--brass); }

.actions { display: flex; flex-direction: column; gap: 14px; padding-bottom: 26px; }

/* ---------- Sections ---------- */
.sect { padding-top: 42px; }

h2 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.32em; margin-left: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  text-align: center;
  margin-bottom: 22px;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.gallery button {
  display: block; width: 100%;
  aspect-ratio: 4 / 5;
  border: none; padding: 0; border-radius: 10px;
  overflow: hidden; cursor: pointer;
  background: var(--card);
  -webkit-tap-highlight-color: transparent;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.gallery button:hover img { transform: scale(1.04); }
.gallery button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: none; padding: 0; margin: auto;
  background: transparent;
  width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh;
  display: none;
  align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(8, 8, 9, 0.94); }

.lightbox img {
  max-width: 92vw; max-height: 82dvh;
  border-radius: 8px;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.6);
  touch-action: pan-y;
}

.lb-close, .lb-nav {
  position: fixed; z-index: 2;
  background: rgba(28, 29, 33, 0.85);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lb-close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-close:hover, .lb-nav:hover { border-color: var(--brass); color: var(--brass); }

.lb-caption {
  position: fixed; left: 0; right: 0;
  bottom: max(18px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 13px; color: var(--muted);
  padding: 0 60px;
}

/* ---------- Links ---------- */
.links { display: flex; flex-direction: column; gap: 12px; }

.link-card {
  display: flex; align-items: center; gap: 14px;
  min-height: 60px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500; font-size: 15px;
  transition: border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.link-card:hover { border-color: var(--brass-border); }
.link-card:active { transform: scale(0.99); }

.icon-circle {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: rgba(198, 161, 91, 0.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--brass);
}

.arrow { margin-left: auto; color: var(--muted); font-size: 22px; line-height: 1; }

.badge {
  margin-left: auto;
  display: flex; align-items: center;
  background: rgba(198, 161, 91, 0.12);
  border: 1px solid var(--brass-border);
  color: var(--brass-bright);
  font-size: 12.5px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Form ---------- */
.form-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 20px 24px;
}

.form-lead { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.field { margin-bottom: 14px; }

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit; font-size: 16px; /* 16px prevents iOS zoom-on-focus */
  padding: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); }
.field ::placeholder { color: var(--muted); }

.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239C9C96' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field select:invalid { color: var(--muted); }
.field select option { color: var(--text); background: var(--card); }

.field textarea { resize: vertical; min-height: 96px; }

/* Honeypot — hidden from humans, present for bots */
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.form-error {
  color: #E8896F;
  font-size: 14px;
  text-align: center;
  margin: 0 0 14px;
}

.btn-submit { width: 100%; font-size: 15.5px; font-weight: 700; }
.btn-submit[disabled] { opacity: 0.6; cursor: wait; }

.form-success { text-align: center; padding: 18px 4px 8px; color: var(--text); }
.form-success svg { color: var(--brass); margin-bottom: 12px; }
.form-success h3 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 22px; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.form-success p { color: var(--muted); font-size: 14.5px; }
.form-success .cant-wait { margin-top: 18px; margin-bottom: 12px; }
.form-success .btn { text-decoration: none; }

/* ---------- Estimate popup ---------- */
.popup {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  width: calc(100% - 24px);
  max-width: 440px;
  z-index: 50;
  background: linear-gradient(180deg, #1E1F24, var(--bg-2));
  border: 1px solid var(--brass-border);
  border-radius: 16px;
  padding: 22px 20px 18px;
  text-align: center;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.popup.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .popup { transition: opacity 0.2s ease; transform: translate(-50%, 0); }
}

.popup-close {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  background: transparent; border: none;
  color: var(--muted); font-size: 22px; line-height: 1;
  cursor: pointer; border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
.popup-close:hover { color: var(--text); }

.popup-kicker {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}
.popup h3 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 20px; font-weight: 700; letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.popup-text { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.popup-cta { width: 100%; min-height: 52px; font-size: 15px; font-weight: 700; }
.popup-call {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
}
.popup-call span { color: var(--brass-bright); font-weight: 600; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 52px 20px 44px;
  color: var(--muted);
  font-size: 13px; line-height: 2;
}
footer .lic { letter-spacing: 0.1em; margin-top: 6px; font-size: 12px; }
