:root {
  /* Red & Light Sky Blue Palette */
  --color-red-primary: #dc2626;
  --color-red-hover: #b91c1c;
  --color-red-light: #fef2f2;
  --color-red-badge: #ffe4e6;
  --color-red-dark: #991b1b;

  --color-sky-lightest: #f0f9ff;
  --color-sky-bg: #e0f2fe;
  --color-sky-card: #ffffff;
  --color-sky-border: #bae6fd;
  --color-sky-accent: #38bdf8;
  --color-sky-deep: #0284c7;
  --color-sky-dark: #0369a1;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-soft: #64748b;
  --text-on-red: #ffffff;

  --border-light: #cbd5e1;
  --border-card: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -1px rgba(2, 132, 199, 0.12), 0 2px 6px -1px rgba(220, 38, 38, 0.06);
  --shadow-lg: 0 10px 24px -3px rgba(2, 132, 199, 0.15), 0 4px 10px -2px rgba(220, 38, 38, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  --focus-ring: #dc2626;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  background-color: var(--color-sky-lightest);
  color: var(--text-main);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--color-sky-lightest);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p, li, blockquote, label, input, textarea, select {
  font-size: 1rem;
  color: var(--text-muted);
}

strong, b {
  color: var(--text-main);
  font-weight: 600;
}

a {
  color: var(--color-red-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover, a:focus {
  color: var(--color-red-hover);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--color-red-primary);
  color: var(--text-on-red);
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.8125rem;
  z-index: 9999;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 0.75rem;
}

/* ==========================================================================
   SLIM, NON-STICKY UNIFIED HEADER (Moves up on scroll)
   ========================================================================== */
.site-header {
  position: relative; /* Not sticky, moves up when scrolling */
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid var(--color-sky-border);
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
  padding: 0.45rem 1.25rem;
  z-index: 1000;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Slim Clean Logo */
.brand-wrapper {
  display: flex;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-red-primary), var(--color-red-dark));
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.25);
}

.brand-logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-red-primary);
}

.brand-logo-accent {
  color: var(--color-sky-deep);
}

/* Slim Desktop Navigation */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.35rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-red-primary);
  background-color: var(--color-sky-bg);
}

.nav-link[aria-current="page"] {
  color: var(--color-red-primary);
  background-color: var(--color-red-light);
  border: 1px solid rgba(220, 38, 38, 0.18);
  font-weight: 700;
}

/* 3-Dot Toggle Button for Small Screen */
.nav-toggle-btn {
  display: none;
  background: #ffffff;
  border: 1px solid var(--color-sky-border);
  color: var(--color-red-primary);
  font-size: 1.25rem;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.nav-toggle-btn:hover {
  background-color: var(--color-sky-bg);
  border-color: var(--color-sky-deep);
}

/* ==========================================================================
   BUTTONS: SIMPLE, SLIM, SMALL TEXT
   ========================================================================== */
.btn-gold, .btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-red-primary);
  color: var(--text-on-red) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-red-primary);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.22);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-gold:hover, .btn-red:hover {
  background-color: var(--color-red-hover);
  border-color: var(--color-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: var(--color-sky-dark) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  padding: 0.48rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-sky-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  margin-left: 0.5rem;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background-color: var(--color-sky-bg);
  border-color: var(--color-sky-deep);
  color: var(--color-red-primary) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTIONS (Refined Sky Blue & Red UI)
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.94) 0%, rgba(254, 242, 242, 0.92) 100%),
              url('images/hero-celebration-table-lights.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid var(--color-sky-border);
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.5rem;
  text-align: center;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background: #ffffff;
  color: var(--color-red-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-red-badge);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  color: var(--text-main);
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   PAGE LAYOUT & SECTIONS
   ========================================================================== */
main {
  flex: 1 0 auto;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) 1.5rem;
}

.readable-container {
  max-width: 72ch;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) 1.5rem;
}

.readable-container h2 {
  font-size: 1.6rem;
  margin: 2rem 0 0.85rem;
  color: var(--text-main);
  border-bottom: 2px solid var(--color-sky-bg);
  padding-bottom: 0.4rem;
}

.readable-container p {
  margin-bottom: 1.15rem;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  display: inline-block;
  color: var(--color-red-primary);
  background: var(--color-red-light);
  border: 1px solid var(--color-red-badge);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 0.6rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-soft);
}

/* Split Story Rows */
.split-story {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  margin-bottom: 3.5rem;
}

.split-story.reverse {
  flex-direction: row-reverse;
}

.split-text {
  flex: 1 1 50%;
  min-width: 0;
}

.split-text h2 {
  font-size: 1.7rem;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.split-text p {
  margin-bottom: 1rem;
}

.split-media {
  flex: 1 1 50%;
  min-width: 0;
}

.split-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--color-sky-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* UI Panels & Cards */
.glass-panel {
  background: #ffffff;
  border: 1px solid var(--color-sky-border);
  border-left: 4px solid var(--color-red-primary);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.glass-panel h3 {
  font-size: 1.15rem;
  color: var(--color-red-primary);
  margin-bottom: 0.4rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.card {
  background-color: #ffffff;
  border: 1px solid var(--color-sky-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--color-sky-deep);
  box-shadow: var(--shadow-md);
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid var(--color-sky-border);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.card p {
  flex-grow: 1;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.card-link {
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-red-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-link:hover {
  color: var(--color-red-hover);
  text-decoration: underline;
}

/* Numbered Badge */
.milestone-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-red-primary);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 5px rgba(220, 38, 38, 0.25);
}

/* Timeline Layout */
.timeline-list {
  list-style: none;
  position: relative;
  padding-left: 1.75rem;
  margin: 1.75rem 0;
  border-left: 2px solid var(--color-sky-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem - 5px);
  top: 0.35rem;
  width: 8px;
  height: 8px;
  background-color: var(--color-red-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--color-red-light);
}

.timeline-time {
  font-size: 0.78rem;
  color: var(--color-red-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: block;
}

.timeline-title {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  margin: 1.75rem 0;
  background: #ffffff;
  border: 1px solid var(--color-sky-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-sky-bg);
  font-size: 0.95rem;
}

th {
  background-color: var(--color-sky-bg);
  color: var(--color-sky-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tr:nth-child(even) {
  background-color: #fafcfe;
}

/* FAQ Details/Accordion */
details {
  background-color: #ffffff;
  border: 1px solid var(--color-sky-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  padding: 0.85rem 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

details[open] {
  border-color: var(--color-red-primary);
}

summary {
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-red-primary);
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Forms & Drafter */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-main);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--color-red-primary);
  box-shadow: 0 0 0 3px var(--color-red-light);
}

.draft-output-panel {
  background-color: #ffffff;
  border: 1px solid var(--color-sky-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.draft-preview-box {
  white-space: pre-wrap;
  background: var(--color-sky-lightest);
  padding: 1rem;
  border: 1px dashed var(--color-sky-border);
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  color: var(--text-main);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  min-height: 110px;
}

.draft-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER (Cohesive Light Sky Blue & Red)
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 2px solid var(--color-sky-border);
  padding: 2.75rem 1.5rem 1.75rem;
  margin-top: 3.5rem;
  color: var(--text-soft);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand-title {
  color: var(--color-red-primary);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-top p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 0.4rem;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links-list a:hover {
  color: var(--color-red-primary);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--color-sky-bg);
  padding-top: 1.25rem;
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--text-soft);
}

.footer-bottom a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-red-primary);
}

/* ==========================================================================
   RESPONSIVE & MOBILE (3-Dot Menu Dropdown)
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-list {
    gap: 0.15rem;
  }
  .nav-link {
    padding: 0.3rem 0.5rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 860px) {
  .nav-toggle-btn {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 2px solid var(--color-red-primary);
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.15);
    padding: 0.85rem 1.25rem;
  }

  .site-nav.is-open {
    display: block;
    animation: menuSlideDown 0.18s ease-out;
  }

  @keyframes menuSlideDown {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-link {
    font-size: 0.875rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
  }

  .split-story, .split-story.reverse {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}