/*
Theme Name: Raincity Painting
Theme URI: https://booking.raincityrestoration.com
Author: Raincity Restoration
Description: Painting estimate booking landing page for Raincity Restoration. Single-page theme with embedded 3-step booking modal, reviews, video testimonials, and Google Business Profile section. All content editable via ACF.
Version: 1.0.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: raincity-painting
*/

:root {
  --cream: #F5F4EF;
  --cream-2: #EDEBE2;
  --mint: #3EE8A6;
  --mint-soft: #E0F9EE;
  --navy: #0E1450;
  --navy-2: #1A2065;
  --line: #D8D5CC;
  --muted: #6B6E80;
  --radius: 10px;
  --shadow: 0 30px 80px rgba(14, 20, 80, 0.18), 0 4px 16px rgba(14, 20, 80, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
  min-height: 100vh;
}

.page { min-height: 100vh; position: relative; display: flex; flex-direction: column; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px; border-bottom: 1px solid var(--line);
  font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 500; color: var(--navy); background: var(--cream);
}
.topbar .left, .topbar .right { display: flex; gap: 28px; align-items: center; }
.topbar a { color: var(--navy); text-decoration: none; }
.topbar a:hover { color: var(--mint); }

.hero {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 70px 24px 40px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(62,232,166,0.10), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(62,232,166,0.06), transparent 50%);
  pointer-events: none;
}
.hero img.mark { width: 64px; margin-bottom: 24px; opacity: .9; }
.hero h1 {
  font-size: clamp(40px, 7vw, 96px); font-weight: 800; letter-spacing: 0.04em;
  line-height: 1; text-transform: uppercase; color: var(--navy); margin-bottom: 18px;
}
.hero h1 .accent { color: var(--mint); }
.hero p.sub {
  font-size: 16px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-bottom: 36px;
}
.hero .cta-row {
  display: flex; gap: 14px; align-items: center;
  flex-wrap: wrap; justify-content: center;
}
.hero .btn-open {
  background: var(--navy); color: var(--cream); border: none;
  padding: 24px 46px; font-size: 17px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: var(--radius); cursor: pointer; font-family: inherit;
  transition: transform .18s, background .18s, box-shadow .18s;
  box-shadow: 0 14px 38px rgba(14, 20, 80, 0.28), 0 0 0 4px rgba(62, 232, 166, 0.22);
  position: relative;
  animation: ctaPulse 2.4s ease-in-out infinite;
}
.hero .btn-open:hover {
  background: var(--navy-2); transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(14, 20, 80, 0.34), 0 0 0 6px rgba(62, 232, 166, 0.32);
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 14px 38px rgba(14, 20, 80, 0.28), 0 0 0 4px rgba(62, 232, 166, 0.22); }
  50%      { box-shadow: 0 14px 38px rgba(14, 20, 80, 0.28), 0 0 0 10px rgba(62, 232, 166, 0.10); }
}
.hero .micro-note {
  margin-top: 14px; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.hero .micro-note .mint { color: var(--mint); }

.topbar .pill-cta {
  background: var(--mint); color: var(--navy);
  padding: 9px 18px; border-radius: 999px;
  font-weight: 800; letter-spacing: 0.12em; font-size: 11px;
  text-transform: uppercase; border: none; cursor: pointer;
  font-family: inherit; transition: transform .15s, background .15s;
}
.topbar .pill-cta:hover { transform: translateY(-1px); background: #2DD18F; }

.cta-banner {
  background: var(--navy); color: var(--cream);
  padding: 56px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(62,232,166,0.18), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(62,232,166,0.12), transparent 60%);
  pointer-events: none;
}
.cta-banner h3 {
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 10px; position: relative;
}
.cta-banner h3 .accent { color: var(--mint); }
.cta-banner p {
  font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; opacity: 0.78; margin-bottom: 26px;
  position: relative;
}
.cta-banner button {
  background: var(--mint); color: var(--navy); border: none;
  padding: 22px 42px; font-size: 15px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: var(--radius); cursor: pointer; font-family: inherit;
  transition: transform .15s, background .15s;
  position: relative; box-shadow: 0 10px 30px rgba(62, 232, 166, 0.35);
}
.cta-banner button:hover { background: #2DD18F; transform: translateY(-2px); }

.final-cta {
  background: var(--mint); padding: 64px 32px; text-align: center;
}
.final-cta h3 {
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 12px;
}
.final-cta p {
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); font-weight: 600; opacity: 0.78;
  margin-bottom: 26px;
}
.final-cta button {
  background: var(--navy); color: var(--cream); border: none;
  padding: 22px 42px; font-size: 15px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: var(--radius); cursor: pointer; font-family: inherit;
  transition: transform .15s, background .15s;
  box-shadow: 0 10px 30px rgba(14, 20, 80, 0.30);
}
.final-cta button:hover { background: var(--navy-2); transform: translateY(-2px); }

.sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 12px 16px;
  background: rgba(245, 244, 239, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  z-index: 900;
}
.sticky-cta button {
  width: 100%; background: var(--navy); color: var(--cream);
  border: none; padding: 18px; font-size: 14px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--radius); cursor: pointer; font-family: inherit;
  box-shadow: 0 -2px 12px rgba(14, 20, 80, 0.12);
}

.trust-strip {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  padding: 18px 24px; background: var(--cream);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--navy);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip .dot { color: var(--mint); font-size: 16px; line-height: 1; }

.footer-band {
  background: var(--cream-2); padding: 16px 32px; text-align: center;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy); font-weight: 600;
}
.footer-band a { color: var(--navy); text-decoration: none; }
.footer-band a:hover { color: var(--mint); }
.topbar .right a { color: var(--navy); text-decoration: none; }
.topbar .right a:hover { color: var(--mint); }

.overlay {
  position: fixed; inset: 0; background: rgba(14, 20, 80, 0.55);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px; animation: fadeIn .25s ease;
}
.overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal {
  width: 100%; max-width: 580px; background: var(--cream);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  animation: slideUp .3s ease; max-height: 92vh;
  display: flex; flex-direction: column;
}
.modal-header {
  background: var(--navy); color: var(--cream);
  padding: 22px 28px; display: flex; align-items: center; justify-content: space-between;
}
.modal-header .title {
  font-size: 18px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.modal-header .close {
  background: transparent; border: none; color: var(--cream);
  font-size: 24px; cursor: pointer; line-height: 1;
  padding: 4px 10px; border-radius: 4px; transition: background .15s;
}
.modal-header .close:hover { background: rgba(255,255,255,0.1); }

.progress {
  display: flex; gap: 4px; padding: 14px 28px 0; background: var(--cream);
}
.progress .seg {
  flex: 1; height: 4px; background: var(--line);
  border-radius: 2px; transition: background .25s;
}
.progress .seg.active { background: var(--mint); }
.progress .seg.done { background: var(--navy); }

.modal-body { padding: 28px; overflow-y: auto; flex: 1; }
.step { display: none; }
.step.active { display: block; }

.field-label {
  font-size: 15px; font-weight: 600; color: var(--navy);
  margin-bottom: 14px;
}
.field-label + .options { margin-bottom: 26px; }
.options { display: grid; gap: 10px; }
.options.two { grid-template-columns: 1fr 1fr; }
.options.four { grid-template-columns: 1fr 1fr; }
.opt {
  border: 1.5px solid var(--line); background: #fff; color: var(--navy);
  padding: 18px 12px; border-radius: var(--radius);
  cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 600; text-align: center;
  transition: all .15s;
}
.opt:hover { border-color: var(--navy); }
.opt.selected {
  border-color: var(--mint); background: var(--mint-soft); color: var(--navy);
  box-shadow: 0 0 0 3px rgba(62,232,166,0.18);
}

.input-row { display: flex; gap: 10px; margin-bottom: 10px; }
.input-row > * { flex: 1; min-width: 0; }
.input, .select {
  width: 100%; padding: 16px 16px;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy);
  border-radius: var(--radius); font-family: inherit;
  font-size: 15px; margin-bottom: 10px;
  transition: border .15s, box-shadow .15s;
}
.input::placeholder { color: var(--muted); font-weight: 400; }
.input:focus, .select:focus {
  outline: none; border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(62,232,166,0.18);
}
.section-label {
  font-size: 15px; font-weight: 600; color: var(--navy);
  margin: 4px 0 12px;
}

.cta-row { display: flex; gap: 10px; margin-top: 22px; }
.cta-row > * { flex: 1; }
.btn {
  background: var(--navy); color: var(--cream); border: none;
  padding: 18px 18px; font-size: 15px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: var(--radius); cursor: pointer; font-family: inherit;
  transition: background .15s, transform .15s, opacity .15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:hover { background: var(--navy-2); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.full { width: 100%; }
.btn.ghost {
  background: transparent; color: var(--navy); border: 1.5px solid var(--navy);
}
.btn.ghost:hover { background: var(--navy); color: var(--cream); }

.time-intro {
  font-size: 15px; color: var(--muted); line-height: 1.55; margin-bottom: 18px;
}
.time-grid {
  display: grid; grid-template-columns: 70px 1fr 1fr 1fr;
  gap: 8px; margin-bottom: 20px;
}
.time-grid .head {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy);
  padding: 8px 4px; text-align: center;
}
.time-grid .day {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  color: var(--navy); display: flex; align-items: center; padding-left: 4px;
}
.time-cell {
  background: #fff; border: 1.5px solid var(--line); border-radius: 8px;
  height: 52px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .12s; color: var(--line); font-size: 22px;
}
.time-cell:hover { border-color: var(--navy); color: var(--navy); }
.time-cell.selected {
  background: var(--mint); border-color: var(--mint); color: var(--navy);
}

.success-state { text-align: center; padding: 30px 10px; }
.success-state .check {
  width: 72px; height: 72px; margin: 0 auto 22px;
  background: var(--mint); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 36px; font-weight: 800;
}
.success-state h3 {
  font-size: 24px; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 14px;
}
.success-state p { color: var(--muted); font-size: 15px; line-height: 1.55; }

.disclosure {
  padding: 0 28px 18px; font-size: 12px; line-height: 1.55;
  color: var(--muted); text-align: center;
}
.modal-footer-bar { background: var(--mint); height: 6px; }

.section {
  padding: 72px 32px 60px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.section.alt { background: var(--cream-2); }
.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--navy);
  text-align: center; margin-bottom: 10px;
}
.section .eyebrow {
  text-align: center; font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--mint);
  font-weight: 700; margin-bottom: 12px;
}
.section .lede {
  text-align: center; font-size: 15px; color: var(--muted);
  max-width: 560px; margin: 0 auto 40px; line-height: 1.55;
}

.review-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; max-width: 1100px; margin: 0 auto;
}
.review-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 22px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 2px 10px rgba(14, 20, 80, 0.04);
}
.review-card .stars { color: var(--mint); font-size: 18px; letter-spacing: 2px; }
.review-card .quote {
  font-size: 15px; line-height: 1.6; color: var(--navy);
  font-weight: 500; flex: 1;
}
.review-card .meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.review-card .author {
  font-size: 13px; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.review-card .source {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em;
}

.video-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; max-width: 1000px; margin: 0 auto;
}
.video-card {
  background: var(--navy); border-radius: 14px;
  aspect-ratio: 1 / 1; position: relative; overflow: hidden;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--cream); text-align: center;
}
.video-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(62,232,166,0.12), transparent 60%);
}
.video-card .play {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--mint); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; z-index: 1;
  box-shadow: 0 8px 24px rgba(14,20,80,0.35);
}
.video-card .label {
  position: absolute; bottom: 18px; left: 0; right: 0;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); font-weight: 600;
}
.video-card iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-card.has-video .play,
.video-card.has-video .label,
.video-card.has-video::before { display: none; }

.gmb-wrap {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: 0 2px 10px rgba(14, 20, 80, 0.04);
}
.gmb-info { padding: 32px 28px; }
.gmb-info .rating-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.gmb-info .rating-num { font-size: 36px; font-weight: 800; color: var(--navy); }
.gmb-info .stars { color: var(--mint); font-size: 20px; letter-spacing: 2px; }
.gmb-info .count {
  font-size: 13px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.gmb-info h3 {
  font-size: 22px; font-weight: 800; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.04em; margin: 14px 0 10px;
}
.gmb-info p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.gmb-info .gmb-cta {
  display: inline-block; margin-top: 18px;
  background: var(--navy); color: var(--cream);
  padding: 12px 22px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none;
}
.gmb-info .gmb-cta:hover { background: var(--navy-2); }
.gmb-map {
  background: var(--cream-2); min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gmb-map iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 900px) {
  .review-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 700px; }
  .gmb-wrap { grid-template-columns: 1fr; }
  .gmb-map iframe { min-height: 280px; }
}
@media (max-width: 600px) {
  .review-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }
  .section { padding: 48px 16px 36px; }
  .section h2 { font-size: clamp(24px, 7vw, 32px); }
  .section .lede { font-size: 14px; margin-bottom: 28px; }
  .topbar { padding: 10px 14px; gap: 8px; font-size: 11px; flex-wrap: wrap; }
  .topbar .left, .topbar .right { gap: 8px; }
  .topbar .right span,
  .topbar .right a:not(.pill-cta) { display: none; }
  .topbar .pill-cta { padding: 9px 14px; font-size: 11px; }
  .hero { padding: 38px 16px 80px; min-height: auto; }
  .hero img.mark { width: 48px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(34px, 11vw, 56px); margin-bottom: 14px; }
  .hero p.sub { font-size: 12px; margin-bottom: 24px; padding: 0 8px; }
  .hero .btn-open {
    padding: 18px 22px; font-size: 13px;
    box-shadow: 0 8px 24px rgba(14, 20, 80, 0.28), 0 0 0 3px rgba(62, 232, 166, 0.22);
    animation: none;
    width: 100%; max-width: 320px;
  }
  .hero .micro-note { font-size: 10px; margin-top: 16px; padding: 0 12px; line-height: 1.6; }
  .trust-strip {
    gap: 0; padding: 14px 12px;
    flex-direction: column; align-items: flex-start;
    font-size: 11px; letter-spacing: 0.08em;
  }
  .trust-strip span { padding: 4px 0; gap: 10px; }
  .modal { max-width: 100%; max-height: 96vh; }
  .modal-header { padding: 16px 18px; }
  .modal-body { padding: 20px 18px; }
  .modal-header .title { font-size: 14px; letter-spacing: 0.06em; }
  .field-label, .section-label { font-size: 14px; margin-bottom: 12px; }
  .input { padding: 14px; font-size: 16px; /* 16px avoids iOS zoom on focus */ }
  .opt { padding: 16px 8px; font-size: 14px; }
  .options.four { grid-template-columns: 1fr 1fr; gap: 8px; }
  .btn { padding: 16px 12px; font-size: 13px; letter-spacing: 0.08em; }
  .cta-row { gap: 8px; margin-top: 18px; }
  .time-grid { grid-template-columns: 46px 1fr 1fr 1fr; gap: 6px; }
  .time-grid .head { font-size: 10px; padding: 6px 2px; }
  .time-grid .day { font-size: 12px; padding-left: 2px; }
  .time-cell { height: 44px; font-size: 18px; }
  .time-intro { font-size: 14px; margin-bottom: 14px; }
  .disclosure { padding: 0 18px 14px; font-size: 11px; }
  .sticky-cta { display: block; padding: 10px 14px; }
  .sticky-cta button { padding: 16px; font-size: 13px; }
  body { padding-bottom: 76px; }
  .cta-banner { padding: 40px 16px; }
  .cta-banner h3 { font-size: clamp(22px, 6.5vw, 30px); }
  .cta-banner p { font-size: 11px; letter-spacing: 0.12em; margin-bottom: 20px; }
  .cta-banner button { padding: 18px 28px; font-size: 13px; }
  .final-cta { padding: 44px 16px; }
  .final-cta h3 { font-size: clamp(22px, 6.5vw, 30px); }
  .final-cta p { font-size: 11px; letter-spacing: 0.12em; margin-bottom: 20px; }
  .final-cta button { padding: 18px 28px; font-size: 13px; }
  .footer-band { padding: 14px 18px; font-size: 10px; letter-spacing: 0.14em; }
  .review-card { padding: 22px 18px; }
  .review-card .quote { font-size: 14px; }
  .gmb-info { padding: 24px 22px; }
  .gmb-info .rating-num { font-size: 30px; }
  .gmb-info h3 { font-size: 18px; }
  .gmb-map { min-height: 240px; }
  .video-card .play { width: 52px; height: 52px; font-size: 20px; }
  .video-card .label { font-size: 10px; letter-spacing: 0.14em; bottom: 14px; }
}
@media (max-width: 380px) {
  .video-grid { grid-template-columns: 1fr; max-width: 280px; }
}
