/* Marsh Cove Dental & Implant Center — Shared Stylesheet */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111827;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* === VARIABLES === */
:root {
  --green-dark: #1B5E20;
  --green-mid: #2E7D32;
  --green-light: #388E3C;
  --green-pale: #E8F5E9;
  --amber: #F59E0B;
  --amber-hover: #D97706;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --white: #ffffff;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.10), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 16px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.125rem; }

p { color: var(--text-secondary); }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--wide {
  max-width: 960px;
}

section {
  padding: 56px 0;
}

/* === HEADER === */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 9px 16px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.header-phone:hover {
  background: #C8E6C9;
}

.header-phone svg {
  width: 16px;
  height: 16px;
  fill: var(--green-dark);
  flex-shrink: 0;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--amber);
  color: #1a0a00;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn--primary:hover {
  background: var(--amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.40);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--full {
  width: 100%;
  font-size: 1.0625rem;
  padding: 18px 28px;
}

.btn--lg {
  font-size: 1.125rem;
  padding: 18px 36px;
}

/* === HERO === */
.hero {
  background: #0A3813;
  position: relative;
  overflow: hidden;
  padding: 74px 0 83px;
  text-align: center;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* YouTube video cover */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* YouTube's native video still — served from their CDN, no local image needed */
  background: url(https://img.youtube.com/vi/z1p9Jh3UD8o/maxresdefault.jpg) center center / cover no-repeat;
}

.hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Scale to always cover: wider of 100vw or 177vh (16:9) */
  width: 100vw;
  height: 56.25vw;   /* 16:9 at 100vw */
  min-height: 100%;
  min-width: 177.78vh; /* 16:9 at 100vh */
  border: none;
  pointer-events: none;
  /* Fade in once the video is buffered */
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* Triggered by JS after video buffers — fades video in over poster image */
.hero-video-wrap.video-ready iframe {
  opacity: 1;
}

/* Dark gradient overlay over the video — Option A: left→right */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.32) 100%
  );
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.0625rem;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-trust {
  color: rgba(255,255,255,0.65);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-trust .dot {
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
}

/* === SCROLL HINT (mobile only) === */
.scroll-hint {
  display: none; /* hidden on desktop */
  position: absolute;
  bottom: clamp(16px, 4vh, 32px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.75);
  width: 36px;
  height: 36px;
  animation: scroll-bounce 1.6s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-hint svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 768px) {
  .scroll-hint {
    display: block;
  }
}

/* === TRUST BAR === */
.trust-bar {
  background: var(--white);
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid var(--border);
}

.trust-item:last-child {
  border-right: none;
}

.trust-icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--green-dark);
}

.trust-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

/* === SECTION HEADERS === */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-mid);
  margin-bottom: 10px;
}

.section-title {
  margin-bottom: 14px;
}

.section-intro {
  font-size: 1.0625rem;
  margin-bottom: 44px;
  color: var(--text-secondary);
}

/* === HOW IT WORKS === */
.how-it-works {
  background: #F9FAFB;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(27,94,32,0.30);
}

.step-body h3 {
  color: var(--text-primary);
  margin-bottom: 5px;
  font-size: 1.0625rem;
}

.step-body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

/* === DOCTORS SECTION === */
.doctors {
  background: var(--white);
}

.doctors-card {
  background: linear-gradient(135deg, #F0FDF4 0%, #E8F5E9 100%);
  border: 1px solid #C8E6C9;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.doctors-photo {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.doctors-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.doctors-content h2 {
  color: var(--green-dark);
  margin-bottom: 12px;
}

.doctors-content p {
  font-size: 1rem;
  line-height: 1.65;
}

.doctors-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cred-badge {
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
}

/* === SURVEY SECTION === */
.survey-section {
  background: #F9FAFB;
  border-top: 3px solid var(--amber);
}

.survey-section .section-eyebrow {
  color: var(--amber);
}

.survey-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.survey-header {
  background: var(--green-dark);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.survey-header-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.survey-header-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.survey-header-text {
  color: var(--white);
}

.survey-header-text h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 2px;
}

.survey-header-text p {
  color: rgba(255,255,255,0.72);
  font-size: 0.8125rem;
  margin: 0;
}

.survey-embed {
  padding: 0;
}

.survey-embed iframe {
  display: block;
  width: 100%;
  min-height: 500px;
  border: none;
}

/* === FAQ === */
.faq {
  background: var(--white);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  gap: 12px;
  transition: background 0.15s;
}

.accordion-trigger:hover {
  background: #F9FAFB;
}

.accordion-trigger.active {
  background: var(--green-pale);
  color: var(--green-dark);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-pale);
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.accordion-trigger.active .accordion-icon {
  background: var(--green-dark);
  transform: rotate(45deg);
}

.accordion-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--green-dark);
}

.accordion-trigger.active .accordion-icon svg {
  fill: var(--white);
}

.accordion-body {
  display: none;
  padding: 0 22px 20px;
}

.accordion-body.open {
  display: block;
}

.accordion-body p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* === FOOTER === */
.site-footer {
  background: #0A3813;
  color: rgba(255,255,255,0.75);
  padding: 44px 0 32px;
}

.footer-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-location {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-loc-name {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 4px;
}

.footer-location p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  margin: 0;
}

.footer-location a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.footer-directions {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--amber) !important;
  text-decoration: none;
  transition: opacity 0.15s;
}

.footer-directions:hover {
  opacity: 0.8;
}

@media (max-width: 400px) {
  .footer-locations {
    grid-template-columns: 1fr;
  }
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 8px;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
}

/* === BEFORE & AFTER === */
.before-after {
  background: #0F2311;
  padding: 64px 0;
}

.before-after .section-eyebrow {
  color: var(--amber);
}

.before-after .section-title {
  color: var(--white);
}

.before-after .section-intro {
  color: rgba(255,255,255,0.65);
}

.ba-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.ba-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  line-height: 0;
}

.ba-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.ba-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 24px 16px 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.ba-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ba-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.38);
  margin: 0;
}

/* ============================================
   THANK YOU PAGE STYLES
   ============================================ */

/* === CONFIRMATION HERO === */
.confirm-section {
  background: #F9FAFB;
  padding: 52px 0 48px;
  text-align: center;
}

.checkmark-wrap {
  width: 64px;
  height: 64px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border: 2px solid #A5D6A7;
}

.checkmark-wrap svg {
  width: 32px;
  height: 32px;
  fill: var(--green-dark);
}

.confirm-eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.confirm-section h1 {
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.confirm-section .lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* === SOCIAL PROOF LINE === */
.social-proof-line {
  text-align: center;
  padding: 20px 20px 0;
  color: var(--green-dark);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* === TRUST BOXES === */
.trust-boxes {
  display: flex;
  gap: 12px;
  margin: 36px 0;
}

.trust-box {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.trust-box-icon {
  width: 40px;
  height: 40px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.trust-box-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--green-dark);
}

.trust-box-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

/* === CTA SECTION === */
.cta-section {
  padding: 0 0 48px;
}

.cta-subtext {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.5;
}

.cta-subtext a {
  color: var(--green-mid);
  font-weight: 600;
  text-decoration: underline;
}

/* === DIVIDER === */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0 24px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* === SECONDARY OPTION === */
.secondary-option {
  text-align: center;
  padding-bottom: 16px;
}

.secondary-talk {
  font-size: 0.9375rem;
  color: var(--text-body);
  margin-bottom: 4px;
}

.secondary-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--green-mid);
  text-decoration: underline;
  transition: color 0.15s;
}

.secondary-link:hover {
  color: var(--green-dark);
}

.secondary-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* === STICKY BAR (mobile) === */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  z-index: 200;
  /* Hidden by default — JS adds .sticky-bar--visible when CTA scrolls out of view */
  transform: translateY(100%);
  transition: transform 0.3s ease;
  /* Only show on mobile */
  display: none;
}

@media (max-width: 640px) {
  .sticky-bar {
    display: block;
  }

  .sticky-bar--visible {
    transform: translateY(0);
  }

  body {
    padding-bottom: 80px;
  }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
    justify-content: center;
  }

  .hero-video-wrap {
    background-position: 72% 35%;
  }
}

@media (max-width: 500px) {
  .trust-bar-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
  }

  .trust-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .trust-boxes {
    flex-direction: column;
  }

  .hero {
    padding: 48px 0 56px;
  }

  section {
    padding: 44px 0;
  }

  .doctors-card {
    padding: 28px 20px;
  }
}

@media (min-width: 640px) {
  .doctors-card {
    flex-direction: row;
    align-items: flex-start;
  }

  .doctors-photo {
    width: 220px;
    flex-shrink: 0;
    height: 280px;
  }

  .trust-bar-inner {
    max-width: 640px;
  }
}
