/* =========================================================
   Public Site Styles
   For:
   - index.php
   - questionnaire.php
   - thank-you.php
   ========================================================= */

:root {
  --bg: #f4efe7;
  --bg-soft: #efe8de;
  --surface: #fcfaf6;
  --surface-soft: #f6f0e7;
  --text: #1f1a15;
  --text-dark: #111111;
  --muted: #6c6258;
  --muted-2: #6f6f6f;
  --border: #e1d5c4;
  --border-soft: #d7cab8;
  --accent: #c59d62;
  --accent-dark: #ab844a;
  --gold-start: #d4af37;
  --gold-end: #f5d76e;
  --gold-hover-start: #c19b2e;
  --gold-hover-end: #e6c85c;
  --success: #28c76f;
  --success-hover: #22b863;
  --dark: #121212;
  --white: #ffffff;
  --error-bg: #fff1f1;
  --error-border: #e7bcbc;
  --success-bg: #eef6ef;
  --success-border: #cfe0d0;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.18);
  --radius: 18px;
  --radius-lg: 22px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: 'Inter', serif;
  line-height: 1.1;
  margin: 0 0 14px;
}

/* =========================================
   GLOBAL PAGE HEIGHT + STICKY FOOTER FIX
   ========================================= */

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover { transform: translateY(-1px); opacity: 0.98; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--text-dark); border: 1px solid var(--border); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  color: #1a1a1a;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-hover-start), var(--gold-hover-end));
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35);
}

.btn-green { background: var(--success); color: var(--white); }
.btn-green:hover { background: var(--success-hover); }
.btn[disabled] { opacity: 0.75; cursor: not-allowed; transform: none; }

.btn-hero {
  font-size: 16px;
  padding: 16px 36px;
  min-height: 56px;
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.35);
  animation: heroButtonFade 1s ease-out forwards;
  opacity: 0;
}

.btn-hero:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.45);
}

@keyframes heroButtonFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-alt { background: linear-gradient(to bottom, #F7ECC7, #f1ece5); }
.section-soft { background: #f8f4ee; }

/* index.php */
.home-page .hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.home-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/night_fountains_backyard.jpg") center/cover no-repeat;
  filter: blur(2px);
  transform: scale(1.05);
  z-index: 1;
  animation: slowZoomPreview 25s ease-in-out infinite alternate;
}

.home-page .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.35));
  z-index: 2;
}

.home-page .hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.home-page .hero-content h1,
.home-page .hero-content p { color: #fff; }

.home-page .hero-cta {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.home-page .section-soft {
  padding: 60px 0 50px;
}
.home-page .spotlight-section { padding: 60px 0; }
.home-page .section h2,
.home-page .section-soft h2,
.home-page .spotlight-header h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  letter-spacing: -0.02em;
}
.home-page .grid { display: grid; gap: 20px; }
.home-page .footer { background: #111; color: #fff; padding: 40px 0; text-align: center; }

.btn-cta-bottom {
  border: 1.5px solid rgba(80, 60, 30, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  color: #111;
  text-shadow: 0 1px 0 rgba(212, 175, 55, 0.35), 0 0 6px rgba(212, 175, 55, 0.25);
}

.btn-cta-bottom:hover {
  border-color: rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  text-shadow: 0 1px 0 rgba(212, 175, 55, 0.45), 0 0 10px rgba(212, 175, 55, 0.35);
}

.site-footer {
  background: #0e0e0e;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 28px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.footer-brand {
  color: #d4af37;
  font-weight: 500;
}

.home-page .hero-content h1 {
  font-family: 'Inter', sans-serif;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.5px;
  max-width: 620px;
  margin: 0 auto 12px;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 0 18px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 0, 0, 0.25);
}

.home-page .hero-content p {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 22px;
}

.home-page .hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.5;
}

.home-page .hero-gradient-text {
  background: linear-gradient(90deg, #e7c86a 0%, #ffffff 30%, #d4af37 55%, #ffffff 75%, #e7c86a 100%);
  background-size: 200% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent !important;
  animation: heroGradientShimmer 6s ease-in-out infinite;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroGradientShimmer {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.home-page .hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 10px;
  text-align: center;
}

.home-page .hero-top-divider {
  width: 240px;
  max-width: 70%;
  height: 3px;
  margin: 10px auto 20px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, #f5e2a8, transparent);
}

.home-page .hero-center-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 10px;
  width: 100%;
}

.home-page .hero-divider-stack {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 18px auto 24px;
}

.home-page .hero-divider-stack .hero-divider {
  display: block;
  width: fit-content;
  min-width: 280px;
  max-width: 520px;
  height: 2px;
  margin: 6px auto;
  background: linear-gradient(to right, transparent, #d4af37, transparent);
}

.home-page .hero-divider-stack .hero-sub {
  margin: 0;
  text-align: center;
  line-height: 1.35;
}

.home-page .hero-animate-0,
.home-page .hero-animate-2,
.home-page .hero-animate-3 {
  opacity: 0;
  transform: translateY(12px);
  animation: heroCenterFade 0.8s ease-out forwards;
}

.home-page .hero-animate-1 {
  opacity: 0;
  transform: translateY(10px) scaleX(0.98);
  animation: heroDividerGlow 1s ease-out forwards;
}

.home-page .hero-animate-0 { animation-delay: 0.1s; }
.home-page .hero-animate-1 { animation-delay: 0.25s; }
.home-page .hero-animate-2 { animation-delay: 0.45s; }
.home-page .hero-animate-3 { animation-delay: 0.65s; }

@keyframes heroCenterFade {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroDividerGlow {
  0% { opacity: 0; transform: translateY(10px) scaleX(0.98); box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
  55% { opacity: 1; transform: translateY(0) scaleX(1); box-shadow: 0 0 10px rgba(212, 175, 55, 0.18); }
  100% { opacity: 1; transform: translateY(0) scaleX(1); box-shadow: 0 0 5px rgba(212, 175, 55, 0.10); }
}

.home-page .spotlight-section { background: linear-gradient(to bottom, #f6f1e8, #f2ece3); }
.home-page .project-spotlight-section { background: #f8f4ee; margin-top: -20px; }

.home-page .spotlight-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 20px;
}

.home-page .spotlight-header h2 { margin-bottom: 10px; }
.home-page .spotlight-kicker { margin: 0; color: #6c6258; font-size: 0.98rem; }

.home-page .spotlight-panel {
  position: relative;
  display: block;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.home-page .spotlight-track {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  min-height: 640px;
}

.home-page .spotlight-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

.home-page .spotlight-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 2;
}

.home-page .project-spotlight-media img,
.home-page .spotlight-slide img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.home-page .spotlight-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(141, 116, 72, 0.75);
  font-size: 28px;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.home-page .spotlight-arrow:hover {
  color: #d4af37;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

.home-page .testimonial-spotlight .spotlight-slide {
  background: linear-gradient(180deg, #fbf7f1 0%, #f4ede2 100%);
  border: 1px solid rgba(197, 157, 98, 0.14);
  border-radius: 28px;
  padding: 48px 52px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
  text-align: center;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-page .testimonial-spotlight blockquote {
  margin: 18px auto 24px;
  max-width: 760px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #2a241e;
}

.home-page .stars {
  color: #d4af37;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.home-page .testimonial-spotlight .author {
  font-size: 0.95rem;
  color: #7a6d5e;
}

.home-page .project-slide {
  background: linear-gradient(180deg, #fcfaf6 0%, #f3ebdf 100%);
  border: 1px solid rgba(197, 157, 98, 0.14);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
  min-height: 640px;
}

.home-page .project-spotlight-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}

.home-page .project-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.home-page .project-spotlight-media img.project-img-fountains {
  object-position: center 38%;
  transform: scale(0.96);
}

.home-page .project-spotlight-media img.project-img-stones {
  object-position: center 32%;
}

.home-page .project-spotlight-copy {
  padding: 28px 32px 34px;
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-page .project-spotlight-copy h3 {
  margin-bottom: 10px;
  color: #1f1a15;
  font-size: 1.9rem;
}

.home-page .project-spotlight-copy p {
  margin: 0 auto;
  max-width: 760px;
  color: #5a4f43;
  line-height: 1.75;
  font-size: 1.02rem;
}

.home-page .section-soft {
  padding: 42px 0 36px;
}

.home-page .section-soft h2 {
  text-align: center;
  margin-bottom: 22px;
  color: #1f1a15;
}

.home-page .process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(340px, 560px));
  justify-content: center;
  align-items: stretch;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.home-page .process-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 320px;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.home-page .process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
}

.home-page .process-media {
  min-height: 320px;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.home-page .process-card h3 {
  margin: 0 0 8px;
  color: #ffffff;
}

.home-page .process-card p {
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.home-page .process-media-video {
  position: relative;
  min-height: 320px;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
}

.home-page .process-media-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.home-page .process-media-pinterest {
  position: relative;
  min-height: 320px;
  height: 100%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58)),
    url("/images/pinterest_bw_logo.png") center/cover no-repeat;
  color: #fff;
}

.home-page .process-media-video::after,
.home-page .process-media-pinterest::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.68) 0%,
    rgba(0, 0, 0, 0.28) 45%,
    rgba(0, 0, 0, 0.08) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.home-page .pinterest-card {
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.home-page .pinterest-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-page .process-media-pinterest h3,
.home-page .process-media-pinterest p {
  color: #fff;
}

.home-page .process-media-pinterest .btn {
  margin-top: 16px;
  align-self: flex-start;
  position: relative;
  z-index: 2;
}

.home-page .video-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
}

.home-page .process-cta {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  position: relative;
  z-index: 2;
}

.home-page .cta-section {
  text-align: center;
  padding: 70px 20px 90px;
  background: radial-gradient(circle at top center, rgba(212, 175, 55, 0.08), transparent 40%), linear-gradient(to bottom, #f5eee4, #eee4d7);
  border-top: 1px solid rgba(197, 157, 98, 0.10);
}

.home-page .cta-lead {
  font-size: 1.1rem;
  color: #555;
  margin: 0 0 18px;
}

.home-page .cta-section .btn {
  font-size: 16px;
  padding: 16px 36px;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
}


/* =========================================================
   QUESTIONNAIRE INTRO MODAL
   ========================================================= */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 18, 18, 0.62);
  backdrop-filter: blur(8px);
}

.intro-overlay.is-hidden {
  display: none !important;
}

.intro-modal {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  animation: introModalIn 240ms ease both;
}

.intro-modal h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.intro-modal p {
  color: var(--muted);
  margin-top: 0;
}

.intro-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  display: grid;
  gap: 10px;
}

.intro-list li {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

.intro-close {
  width: 100%;
}

@keyframes introModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* questionnaire.php */
.questionnaire-page { background: var(--bg); line-height: 1.6; }

.questionnaire-page .topbar {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 14px 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.questionnaire-page .hero {
  background: linear-gradient(rgba(17, 17, 17, 0.62), rgba(17, 17, 17, 0.62)), url("/images/pool_water_gradient_green.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 84px 20px 64px;
}

.questionnaire-page .hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: end;
}

.questionnaire-page .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.questionnaire-page h1::before {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  margin: 0 auto 14px;
  background: linear-gradient(to right, transparent, #d4af37, transparent);
}
.questionnaire-hero h1 {
  font-size: clamp(2.7rem, 4.8vw, 3.6rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;

  /* ðŸ”¥ SAME BLACK GLOW FROM HERO */
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);

  margin-bottom: 12px;
}

.questionnaire-page .hero p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.04rem;
}

.questionnaire-page .hero-card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.questionnaire-page .hero-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.questionnaire-page .hero-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.questionnaire-page .content { padding: 44px 0 84px; }

.questionnaire-page .layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.questionnaire-page .sidebar,
.questionnaire-page .form-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.questionnaire-page .sidebar {
  padding: 24px;
  position: sticky;
  top: 20px;
}

.questionnaire-page .sidebar h3 { font-size: 1.35rem; margin-bottom: 14px; }
.questionnaire-page .sidebar p { color: var(--muted); margin-top: 0; }

.questionnaire-page .sidebar-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.questionnaire-page .sidebar-list li {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

.questionnaire-page .form-shell { padding: 28px; }

.questionnaire-page .notice {
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--success-border);
  background: var(--success-bg);
  font-size: 0.95rem;
}

.questionnaire-page .notice.error {
  border-color: var(--error-border);
  background: var(--error-bg);
}

.questionnaire-page .section + .section { margin-top: 30px; }

.questionnaire-page .section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.questionnaire-page .section-title span { font-size: 0.92rem; color: var(--muted); }
.questionnaire-page .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.questionnaire-page .field { display: flex; flex-direction: column; gap: 8px; }
.questionnaire-page .field.full { grid-column: 1 / -1; }
.questionnaire-page label { font-size: 0.95rem; font-weight: 600; }

.questionnaire-page input,
.questionnaire-page select,
.questionnaire-page textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 14px 14px;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.questionnaire-page input:focus,
.questionnaire-page select:focus,
.questionnaire-page textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(197, 157, 98, 0.16);
}

.questionnaire-page textarea { min-height: 132px; resize: vertical; }

.questionnaire-page .options {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.questionnaire-page .option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.questionnaire-page .option input {
  width: auto;
  margin-top: 4px;
  padding: 0;
}

.questionnaire-page .helper { font-size: 0.84rem; color: var(--muted); margin: -2px 0 0; }

.questionnaire-container {
  padding-bottom: 32px;
}

.questionnaire-page .upload {
  padding: 16px;
  border: 2px dashed #d9c7a7;
  border-radius: 14px;
  background: #fcfaf7;
}

.questionnaire-page .consent {
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.questionnaire-page .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.questionnaire-page .button-group { display: flex; gap: 12px; flex-wrap: wrap; }

.questionnaire-page .footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
}

.address-confirmed-message {
  margin-top: 8px;
  color: #15803d; /* nice green */
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.address-input-wrap {
  position: relative;
}

.address-input-wrap input {
  padding-right: 40px; /* make room for check */
}

.address-checkmark {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  color: #15803d;
  font-size: 1.2rem;
  font-weight: 700;
  pointer-events: none;

  opacity: 0;
  transition: all 0.25s ease;
}

/* visible state */
.address-checkmark.is-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

footer {
  margin-top: 16px;
}

/* =========================================================
   QUESTIONNAIRE PHASE FLOW
   ========================================================= */

.questionnaire-phase {
  display: none;
  opacity: 0;
  transform: translateY(12px);
}

.questionnaire-phase.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: questionnairePhaseFade 280ms ease both;
}

@keyframes questionnairePhaseFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.questionnaire-page .actions {
  display: block;
  margin-top: 28px;
}

.questionnaire-page .actions .helper {
  margin-bottom: 20px;
}

.phase-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(214, 177, 92, 0.28);
}

.phase-hidden {
  display: none !important;
}

.phase-next,
.phase-submit {
  opacity: 0.72;
  filter: grayscale(0.25);
}

.phase-next.is-ready,
.phase-submit.is-ready {
  opacity: 1;
  filter: none;
  background: linear-gradient(135deg, #1f8f4d, #36c56f);
  border-color: rgba(54, 197, 111, 0.75);
  color: #fff;
  box-shadow: 0 14px 30px rgba(31, 143, 77, 0.28);
}

@media (max-width: 640px) {
  .phase-controls {
    flex-direction: column;
  }

  .phase-controls .btn {
    width: 100%;
  }
}

/* thank-you.php */
.thankyou-page {
  position: relative;
  min-height: 100vh;
  color: var(--white);
  overflow-x: hidden;
  overflow-y: auto;
}

.thankyou-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/poolwater.png") center/cover no-repeat;
  filter: blur(6px);
  transform: scale(1.1);
  animation: slowZoom 14s ease-in-out infinite alternate;
  z-index: 1;
}

.thankyou-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.35));
  z-index: 2;
}

.thankyou-page .wrap {
  position: relative;
  z-index: 3;
  width: min(100%, 900px);
  margin: auto;
  padding: 24px 24px 48px;
}

.thankyou-page .card {
  background: rgba(255, 255, 255, 0.94);
  color: #181818;
  border: 1px solid rgba(221, 214, 203, 0.9);
  border-radius: var(--radius-lg);
  padding: 42px 34px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.thankyou-page h1,
.thankyou-page h2 {
  font-family: 'Inter', serif;
  margin-top: 0;
}

.thankyou-page h1 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  margin-bottom: 14px;
  color: var(--text-dark);
}

.thankyou-page p {
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 16px;
  color: #2f2f2f;
}

.thankyou-page .subtle { color: var(--muted-2); font-size: 0.95rem; }

.thankyou-page .next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 34px;
}

.thankyou-page .step {
  background: #faf7f2;
  border: 1px solid #ebdfcf;
  border-radius: 16px;
  padding: 18px;
  text-align: left;
}

.thankyou-page .step strong { display: block; margin-bottom: 8px; color: var(--text-dark); }
.thankyou-page .actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }

/* Responsive */
@media (max-width: 980px) {
  .questionnaire-page .hero-grid,
  .questionnaire-page .layout,
  .questionnaire-page .grid {
    grid-template-columns: 1fr;
  }

  .questionnaire-page .sidebar { position: static; }
  .home-page .spotlight-panel { grid-template-columns: 1fr; gap: 16px; }
  .home-page .spotlight-arrow { justify-self: center; }
  .home-page .spotlight-track { min-height: auto; }
  .home-page .project-slide { min-height: auto; }
  .home-page .project-spotlight-media { aspect-ratio: 4 / 3; }
  .home-page .project-spotlight-copy { min-height: auto; }
  .home-page .process-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    gap: 20px;
  }

  .home-page .process-card,
  .home-page .process-media,
  .home-page .process-media-video,
  .home-page .process-media-pinterest {
    min-height: 280px;
  }
}

@media (max-width: 780px) {
  .home-page .hero-content h1 { font-size: 2.4rem; }
  .home-page .hero-sub { font-size: 1rem; }
  .home-page .section { padding: 72px 0; }
  .home-page .cta-section { padding: 48px 20px 64px; }
  .home-page .testimonial-spotlight .spotlight-slide { padding: 32px 24px; }
  .home-page .testimonial-spotlight blockquote { font-size: 1.05rem; line-height: 1.7; }
  .home-page .project-spotlight-copy { padding: 22px 20px 26px; }
  .home-page .project-spotlight-copy h3 { font-size: 1.5rem; }
  .thankyou-page .next-steps { grid-template-columns: 1fr; }
  .thankyou-page .card { padding: 34px 22px; }
}

/* =========================================================
   Homepage Layout System Patch
   ========================================================= */

.home-page .section {
  padding: 72px 0;
}

.home-page .spotlight-section {
  padding: 56px 0;
}

.home-page .section-soft {
  padding: 42px 0 36px;
  background: linear-gradient(to bottom, #f3ede4, #eee6da);
}

.home-page .cta-section {
  padding: 54px 20px 64px;
}

.home-page .section h2,
.home-page .section-soft h2,
.home-page .spotlight-header h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 14px;
  color: #1f1a15;
}

.home-page .spotlight-kicker,
.home-page .cta-lead {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #6c6258;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.home-page .spotlight-header {
  max-width: 760px;
  margin: 0 auto 18px;
}

.home-page .spotlight-panel,
.home-page .process-grid,
.home-page .cta-section .container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.home-page .hero-content {
  max-width: 760px;
}

.home-page .section-title-accent {
  width: 72px;
  height: 2px;
  margin: 0 auto 18px;
  background: linear-gradient(to right, transparent, #d4af37, transparent);
}

/* =========== end layout  */

@media (min-width: 981px) {
  .home-page .spotlight-arrow.spotlight-prev { left: -8px; }
  .home-page .spotlight-arrow.spotlight-next { right: -8px; }
  .home-page .spotlight-section { padding: 40px 0; }
  .home-page .spotlight-header { margin: 0 auto 14px; }
  .home-page .spotlight-track { min-height: 320px; }
  .home-page .testimonial-spotlight .spotlight-slide {
    min-height: 320px;
    padding: 30px 36px;
  }
}

@media (max-width: 780px) {
  .home-page .spotlight-section { padding: 44px 0; }
  .home-page .spotlight-header { margin-bottom: 16px; }
  .home-page .spotlight-prev { left: 8px; }
  .home-page .spotlight-next { right: 8px; }
  .home-page .spotlight-arrow {
    width: 44px;
    height: 44px;
    font-size: 24px;
    color: rgba(141, 116, 72, 0.65);
  }
}

.seo-projects { padding: 40px 0; }
.seo-project-grid { display: grid; gap: 20px; }
.seo-project-grid h3 { font-size: 1.1rem; margin-bottom: 6px; }
.seo-project-grid p { font-size: 0.95rem; color: #5a4f43; }

@keyframes slowZoomPreview {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

@keyframes slowZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.20); }
}



/* =========================================================
   QUESTIONNAIRE MODAL + CENTERED FORM OVERRIDES
   ========================================================= */

.questionnaire-page .sidebar {
  display: none !important;
}

.questionnaire-page .layout {
  grid-template-columns: 1fr !important;
}

.questionnaire-page .form-shell {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}
