/* ============================================================
   Romario Flooring — landing page styles
   Palette: navy (trust) + amber (CTA only) + warm neutrals
   ============================================================ */

:root {
  --navy: #132a47;
  --navy-2: #1d3e66;
  --navy-3: #2a507f;
  --amber: #f5a623;
  --amber-dark: #e8940f;
  --ink: #1c2733;
  --ink-soft: #4c5a68;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --line: #e3e8ee;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(19, 42, 71, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.15rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-sub {
  color: var(--ink-soft);
  max-width: 46rem;
  margin: 0 0 2rem;
}

.accent { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--amber);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(232, 148, 15, 0.35);
}
.btn-primary:hover { background: var(--amber-dark); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-lg { padding: 0.9rem 1.7rem; font-size: 1.05rem; }
.btn-submit { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
}
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1.05rem; letter-spacing: 0.06em; }
.logo-text small { font-size: 0.58rem; letter-spacing: 0.14em; opacity: 0.75; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.header-phone svg { width: 18px; height: 18px; }
.header-phone:hover { color: var(--amber); }
.btn-header { padding: 0.5rem 1.1rem; font-size: 0.92rem; }

/* Small screens: icon-only call button (the sticky bottom bar has "Call Now") */
@media (max-width: 599px) {
  .header-phone span { display: none; }
  .header-phone svg { width: 22px; height: 22px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, var(--navy-3) 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber);
  margin: 0 0 0.75rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 34rem;
  margin: 0 0 1.5rem;
}
.hero-badge {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.5);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.75rem;
  max-width: 30rem;
}
.hero-badge svg { width: 34px; height: 34px; color: var(--amber); flex: none; }
.hero-badge strong { display: block; }
.hero-badge span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.5rem; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero-points li::before { content: "✓ "; color: var(--amber); font-weight: 700; }
.hero-visual img {
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

/* ---------- Trust bar ---------- */
.trustbar { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.trustbar-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
  padding: 1.1rem 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--navy);
}
.trust-item svg { width: 22px; height: 22px; color: var(--amber-dark); flex: none; }

/* ---------- Cards / services ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--amber);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}
.card-icon svg { width: 24px; height: 24px; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.step p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
.steps-note {
  background: rgba(245, 166, 35, 0.12);
  border-left: 4px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1.1rem;
  color: var(--ink);
  font-size: 0.95rem;
  max-width: 46rem;
}

/* ---------- Before / after slider ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.ba {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
  -webkit-user-select: none;
}
.ba img { width: 100%; pointer-events: none; }
.ba-after-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--ba-pos, 50%));
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 2.4rem;
  left: var(--ba-pos, 50%);
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.ba-handle span::before {
  content: "⟷";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
}
.ba-range {
  position: absolute;
  inset: 0 0 2.4rem 0;
  width: 100%;
  height: auto;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba-label {
  position: absolute;
  top: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(19, 42, 71, 0.75);
  pointer-events: none;
}
.ba-label-before { left: 0.75rem; }
.ba-label-after { right: 0.75rem; background: rgba(232, 148, 15, 0.9); color: var(--navy); }
.ba-caption {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
}

/* ---------- Reviews ---------- */
.stars { color: var(--amber-dark); letter-spacing: 0.15em; font-size: 1rem; margin-bottom: 0.5rem; }
.review { margin: 0; }
.review p { font-size: 0.98rem; color: var(--ink); }
.review footer { margin-top: 0.75rem; font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }
.reviews-more { margin: 1.5rem 0 0; }
.reviews-more a { color: var(--navy-2); font-weight: 700; }

/* ---------- Lead form ---------- */
.section-form {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
.form-pitch h2 { color: #fff; }
.form-pitch > p { color: rgba(255, 255, 255, 0.85); max-width: 30rem; }
.form-points {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.9);
}
.form-points li::before { content: "✓ "; color: var(--amber); font-weight: 700; }
.form-review {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  max-width: 26rem;
}
.form-review p { margin: 0; font-style: italic; color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; }

.lead-form { color: var(--ink); }
.form-title { margin-bottom: 1.25rem; font-size: 1.25rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.req { color: #c0392b; }
.optional { color: var(--ink-soft); font-weight: 400; font-size: 0.82rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(42, 80, 127, 0.15);
}
.field input[aria-invalid="true"] { border-color: #c0392b; }
.field-hint { font-size: 0.8rem; color: var(--ink-soft); margin: 0.35rem 0 0; }

.photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.photo-previews:empty { display: none; }
.photo-preview {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(19, 42, 71, 0.85);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#turnstile-slot:not(:empty) { margin-bottom: 1rem; }

.form-error {
  background: #fdecea;
  color: #b03a2e;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  margin: 0.9rem 0 0;
}
.form-fineprint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 0.9rem 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 5.5rem; /* bottom space for mobile bar */
  font-size: 0.92rem;
}
.footer-inner { display: grid; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand p { margin: 0; line-height: 1.35; }
.footer-info p { margin: 0.25rem 0; }
.footer-info a { color: var(--amber); text-decoration: none; font-weight: 700; }
.footer-copy { margin: 0; font-size: 0.8rem; opacity: 0.7; }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  background: #fff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
}
.mobile-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 0.5rem;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
}
.mobile-bar svg { width: 18px; height: 18px; }
.mobile-bar-call { color: var(--navy); }
.mobile-bar-cta { background: var(--amber); color: var(--navy); }

/* ---------- Thank-you page ---------- */
.ty-main {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 3.5rem 0;
}
.ty-card { max-width: 34rem; text-align: center; }
.ty-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #e8f7ee;
  color: #1e8e4e;
  display: grid;
  place-items: center;
}
.ty-check svg { width: 34px; height: 34px; }
.ty-card p { color: var(--ink-soft); }
.ty-steps {
  text-align: left;
  margin: 1.25rem 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}
.ty-steps li { margin-bottom: 0.4rem; }

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .trustbar-inner { grid-template-columns: repeat(4, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
}

@media (min-width: 980px) {
  .section { padding: 4.5rem 0; }
  .hero { padding: 4.5rem 0 5rem; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; }
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .form-layout { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
  .mobile-bar { display: none; }
  .site-footer { padding-bottom: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
