/* ── Rapport Greetings Pages — Shared Stylesheet ── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #F8FAFC;
  color: #0F172A;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html    { scroll-behavior: auto; }
  *       { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Nav ── */
.site-nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 6px;
}
.nav-logo span {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.01em;
}
.nav-logo:focus-visible { outline: 3px solid #7DD3FC; outline-offset: 3px; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }

.nav-back {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748B;
  text-decoration: none;
  display: none;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.15s;
}
.nav-back:hover { color: #0F172A; }
@media (min-width: 640px) { .nav-back { display: flex; } }

.btn-primary {
  background-color: #0369A1;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background-color: #025d8e; transform: translateY(-1px); box-shadow: 0 8px 24px -4px rgba(3,105,161,.38); }
.btn-primary:active { transform: none; }
.btn-primary:focus-visible { outline: 3px solid #7DD3FC; outline-offset: 3px; }

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #94A3B8;
}
.breadcrumb a { color: #64748B; text-decoration: none; }
.breadcrumb a:hover { color: #0F172A; }
.breadcrumb-sep { color: #CBD5E1; }

/* ── Hero ── */
.page-hero {
  background:
    radial-gradient(ellipse 70% 55% at 60% 50%, #EFF6FF 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 10% 80%, #F0F9FF 0%, transparent 55%),
    #F8FAFC;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }

.holiday-emoji {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1.25rem;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.12));
}

.holiday-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0369A1;
  margin-bottom: 0.875rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin: 0 0 0.875rem;
}

.hero-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.hero-date-dot { width: 7px; height: 7px; border-radius: 50%; background: #0369A1; flex-shrink: 0; }

.hero-subtitle {
  font-size: 1.125rem;
  color: #64748B;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Section wrapper ── */
.section { padding: 4rem 1.5rem; }
.section-alt { background: #fff; border-top: 1px solid #E2E8F0; border-bottom: 1px solid #E2E8F0; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner-narrow { max-width: 760px; margin: 0 auto; }

.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0369A1;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

/* ── Cultural context ── */
.context-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #0369A1;
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.context-card p {
  font-size: 1rem;
  color: #334155;
  line-height: 1.8;
  margin: 0;
}

/* ── Greetings grid ── */
.greetings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .greetings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .greetings-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

.greeting-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 1.25rem 1.375rem;
  position: relative;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.greeting-card:hover {
  border-color: #BAE6FD;
  box-shadow: 0 6px 28px -6px rgba(3,105,161,.13);
  transform: translateY(-2px);
}

.greeting-header { display: flex; align-items: center; justify-content: space-between; }

.greeting-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}
.badge-formal   { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.badge-warm     { background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA; }
.badge-brief    { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }

.copy-btn {
  background: none;
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  color: #94A3B8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.625rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.copy-btn:hover { background: #F1F5F9; border-color: #CBD5E1; color: #475569; }
.copy-btn.copied { background: #F0FDF4; border-color: #86EFAC; color: #16A34A; }
.copy-btn:focus-visible { outline: 3px solid #7DD3FC; outline-offset: 2px; }

.greeting-text {
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.75;
  margin: 0;
  flex: 1;
}

/* ── CTA section ── */
.cta-section {
  background: #0F172A;
  color: #fff;
  padding: 4.5rem 1.5rem;
  text-align: center;
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #38BDF8;
  margin-bottom: 1rem;
  display: block;
}
.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #fff;
}
.cta-title span { color: #38BDF8; }
.cta-subtitle {
  font-size: 1.0625rem;
  color: #94A3B8;
  line-height: 1.7;
  margin: 0 0 2rem;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0369A1;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 0.875rem;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.cta-btn:hover { background: #025d8e; transform: translateY(-2px); box-shadow: 0 12px 32px -6px rgba(3,105,161,.5); }
.cta-btn:active { transform: none; }
.cta-btn:focus-visible { outline: 3px solid #7DD3FC; outline-offset: 3px; }

.cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1.25rem;
}
.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #64748B;
}
.cta-feature-dot { width: 6px; height: 6px; border-radius: 50%; background: #38BDF8; flex-shrink: 0; }

/* ── How it works callout ── */
.hiw-callout {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.hiw-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #E0F2FE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hiw-callout h3 { font-size: 0.9375rem; font-weight: 700; color: #0C4A6E; margin: 0 0 0.25rem; }
.hiw-callout p  { font-size: 0.875rem; color: #0369A1; line-height: 1.6; margin: 0; }

/* ── Related holidays ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .related-grid { grid-template-columns: repeat(4, 1fr); } }

.related-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 0.875rem;
  padding: 1.125rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.related-card:hover {
  border-color: #BAE6FD;
  box-shadow: 0 4px 20px -4px rgba(3,105,161,.12);
  transform: translateY(-2px);
}
.related-card:focus-visible { outline: 3px solid #7DD3FC; outline-offset: 3px; border-radius: 0.875rem; }
.related-emoji { font-size: 1.5rem; line-height: 1; }
.related-name  { font-size: 0.8125rem; font-weight: 700; color: #0F172A; line-height: 1.3; }
.related-date  { font-size: 0.75rem; color: #CBD5E1; }

/* ── Calendar grid ── */
.cal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 540px)  { .cal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px)  { .cal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cal-grid { grid-template-columns: repeat(4, 1fr); } }

.cal-month {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
  transition: box-shadow 0.2s, transform 0.2s;
}
.cal-month:hover {
  box-shadow: 0 6px 24px -4px rgba(15,23,42,.1);
  transform: translateY(-2px);
}

.cal-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.cal-month-name {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cal-month-badge {
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  padding: 0 0.35rem;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5625rem 0.875rem;
  text-decoration: none;
  border-bottom: 1px solid #F1F5F9;
  transition: background 0.13s;
}
.cal-row:last-child { border-bottom: none; }
.cal-row:hover { background: #F0F9FF; }
.cal-row:hover .cal-name { color: #0369A1; }
.cal-row:focus-visible { outline: 3px solid #7DD3FC; outline-offset: -3px; }

.cal-emoji {
  font-size: 1.125rem;
  line-height: 1;
  width: 1.375rem;
  text-align: center;
  flex-shrink: 0;
}
.cal-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  flex: 1;
  line-height: 1.3;
  transition: color 0.13s;
}
.cal-date {
  font-size: 0.6875rem;
  color: #94A3B8;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid #E2E8F0;
  padding: 2.5rem 1.5rem;
  background: #fff;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-copy { font-size: 0.8125rem; color: #94A3B8; }
.footer-links { display: flex; align-items: center; gap: 1.25rem; }
.footer-links a { font-size: 0.8125rem; color: #94A3B8; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #475569; }
