/* ============================================================
   WAITMATE — Premium Waiting Experience Platform
   Mobile-first, standalone CSS
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #F5F8F9;
  color: #1A2830;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #3D8B9E;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #152228;
}

a:focus-visible {
  outline: 2px solid #3D8B9E;
  outline-offset: 3px;
  border-radius: 3px;
}

ul, ol {
  list-style: none;
}

/* --- PORTFOLIO CREDIT BAR --- */
.portfolio-credit {
  background-color: #E4EEF1;
  border-bottom: 1px solid #C2D4DA;
  text-align: center;
  padding: 6px 16px;
  font-size: 0.75rem;
  color: #6B808A;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.portfolio-credit a {
  color: #3D8B9E;
  font-weight: 500;
  text-decoration: none;
}

.portfolio-credit a:hover {
  text-decoration: underline;
}

/* --- SITE HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 247, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #C2D4DA;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1A2830;
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo:hover {
  color: #3D8B9E;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav ul li a {
  color: #1A2830;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

nav ul li a:hover {
  background-color: #E4EEF1;
  color: #3D8B9E;
}

nav ul li a.nav-cta {
  background-color: #3D8B9E;
  color: #FFFFFF;
  padding: 7px 16px;
}

nav ul li a.nav-cta:hover {
  background-color: #2D7082;
  color: #FFFFFF;
}

/* hide nav on small screens, show just the CTA */
@media (max-width: 640px) {
  nav ul li:not(:last-child) {
    display: none;
  }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  letter-spacing: 0.01em;
}

.btn:focus-visible {
  outline: 3px solid #3D8B9E;
  outline-offset: 3px;
}

.btn-primary {
  background-color: #3D8B9E;
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(61, 139, 158, 0.2);
}

.btn-primary:hover {
  background-color: #2D7082;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(61, 139, 158, 0.25);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: 10px;
}

/* --- HERO --- */
.hero {
  padding: 80px 20px 100px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding: 100px 40px 120px;
    gap: 80px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 120px 40px 140px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #E4EEF1;
  border: 1px solid #C2D4DA;
  border-radius: 100px;
  padding: 5px 14px 5px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6B808A;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #1A2830;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: #3D8B9E;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 500;
  color: #6B808A;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-size: 1rem;
  color: #1A2830;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 0.78rem;
  color: #6B808A;
  line-height: 1.5;
  max-width: 400px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-clock {
  filter: drop-shadow(0 8px 40px rgba(61, 139, 158, 0.08));
}

.hero-clock-label {
  margin-top: 0.5rem;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3D8B9E;
}

/* --- TRUST BAR --- */
.trust-bar {
  border-top: 1px solid #C2D4DA;
  border-bottom: 1px solid #C2D4DA;
  background-color: #FFFFFF;
  padding: 20px;
}

.trust-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6B808A;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.trust-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-list li {
  font-size: 0.8125rem;
  color: #6B808A;
  font-weight: 500;
  padding: 4px 12px;
  border: 1px solid #C2D4DA;
  border-radius: 100px;
}

/* --- SHARED SECTION STYLES --- */
.section {
  padding: 80px 20px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-inner--narrow {
  max-width: 660px;
  text-align: center;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3D8B9E;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.section-label-light {
  color: rgba(184, 212, 220, 0.6);
}

.section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1A2830;
  margin-bottom: 20px;
}

.section-intro {
  font-size: 1.0625rem;
  color: #6B808A;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 56px;
}

@media (min-width: 768px) {
  .section {
    padding: 100px 40px;
  }
}

/* --- FEATURE CARDS --- */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: #FFFFFF;
  border: 1px solid #C2D4DA;
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: #3D8B9E;
  box-shadow: 0 6px 32px rgba(61, 139, 158, 0.08);
  transform: translateY(-2px);
}

.card-icon {
  margin-bottom: 24px;
}

.feature-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: #1A2830;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9375rem;
  color: #6B808A;
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3D8B9E;
  background-color: #E4EEF1;
  border: 1px solid #C2D4DA;
  border-radius: 100px;
  padding: 3px 10px;
}

/* --- STAGES SECTION (DARK) --- */
.section-dark {
  background-color: #152228;
}

.section-dark h2 {
  color: #B8D4DC;
}

.section-intro-light {
  color: rgba(184, 212, 220, 0.65);
}

.stages-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 64px;
  position: relative;
}

@media (min-width: 768px) {
  .stages-list {
    grid-template-columns: repeat(7, 1fr);
    align-items: start;
  }
}

.stage-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(175, 200, 210, 0.15);
  position: relative;
}

@media (min-width: 768px) {
  .stage-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 8px;
    border-bottom: none;
    border-right: none;
  }
}

.stage-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background-color: rgba(175, 200, 210, 0.12);
  border: 1px solid rgba(175, 200, 210, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: rgba(184, 212, 220, 0.6);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .stage-number {
    margin-bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

.stage-number--highlight {
  background-color: #3D8B9E;
  border-color: #3D8B9E;
  color: #FFFFFF;
}

.stage-number--final {
  background-color: transparent;
  border-color: #B8D4DC;
  color: #B8D4DC;
}

.stage-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #B8D4DC;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.stage-content p {
  font-size: 0.8125rem;
  color: rgba(184, 212, 220, 0.6);
  line-height: 1.5;
}

.stage-rare {
  display: inline-block;
  background-color: #3D8B9E;
  color: #FFFFFF;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.stage-connector {
  display: none;
}

.stage-item--highlight .stage-content h3,
.stage-item--final .stage-content h3 {
  color: #FFFFFF;
}

.stage-item--highlight .stage-content p {
  color: rgba(184, 212, 220, 0.8);
}

/* stats row */
.stages-stat {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px 0 0;
  border-top: 1px solid rgba(175, 200, 210, 0.2);
}

@media (min-width: 640px) {
  .stages-stat {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
}

.stat {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: #B8D4DC;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8125rem;
  color: rgba(184, 212, 220, 0.55);
  line-height: 1.5;
}

.stat-divider {
  display: none;
}

@media (min-width: 640px) {
  .stat-divider {
    display: block;
    width: 1px;
    height: 60px;
    background-color: rgba(175, 200, 210, 0.2);
    flex-shrink: 0;
  }
}

/* --- TESTIMONIALS --- */
.section-testimonials {
  background-color: #FFFFFF;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background-color: #F5F8F9;
  border: 1px solid #C2D4DA;
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s ease;
}

.testimonial:hover {
  border-color: #3D8B9E;
}

.testimonial--featured {
  background-color: #E4EEF1;
  border-color: #3D8B9E;
}

.testimonial-quote-mark {
  opacity: 0.5;
}

.testimonial p {
  font-size: 0.9375rem;
  color: #1A2830;
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.875rem;
  color: #1A2830;
}

.testimonial-location {
  font-size: 0.78rem;
  color: #6B808A;
}

/* --- CTA SECTION --- */
.section-cta {
  background-color: #E4EEF1;
  border-top: 1px solid #C2D4DA;
  border-bottom: 1px solid #C2D4DA;
  text-align: center;
}

.cta-eyebrow {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.section-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 16px;
}

.section-cta p {
  font-size: 1.0625rem;
  color: #6B808A;
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-sub {
  font-size: 0.8125rem !important;
  color: #6B808A !important;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

/* --- FOOTER --- */
.site-footer {
  background-color: #152228;
  padding: 48px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: #B8D4DC;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: rgba(184, 212, 220, 0.55);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 4px 10px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #B8D4DC;
}

.footer-nav a:focus-visible {
  outline-color: #B8D4DC;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(184, 212, 220, 0.4);
  max-width: 600px;
  line-height: 1.6;
}

.footer-credit {
  font-size: 0.78rem;
  color: rgba(184, 212, 220, 0.4);
}

.footer-credit a {
  color: rgba(184, 212, 220, 0.6);
}

.footer-credit a:hover {
  color: #B8D4DC;
}

/* --- UTILITIES --- */
@media (min-width: 768px) {
  .section-intro {
    margin-bottom: 64px;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .btn-large {
    padding: 14px 24px;
    font-size: 0.9375rem;
  }
}
