/* ==========================================================================
   Kestrel Event Studio — Stylesheet (style.css)
   Editorial Event Organization Landing Page & Privacy Policy
   ========================================================================== */

:root {
  --bg-page: #F8F6F1;
  --bg-surface: #FFFFFF;
  --bg-subtle: #EFECE4;
  --bg-tint: #E7EFEA;
  --bg-dark: #162B24;
  --bg-dark-elevated: #1F3B31;

  --text-primary: #1C2420;
  --text-secondary: #4A5751;
  --text-muted: #67756E;
  --text-inverse: #F7F5F0;

  --brand-primary: #1B362D;
  --brand-primary-hover: #264B3F;
  --brand-accent: #B86B2B;
  --brand-accent-hover: #9B561D;
  --brand-accent-soft: #F9EFE6;

  --border-light: #DFD9CE;
  --border-strong: #C5BCAE;
  --error-color: #B42318;
  --error-bg: #FEF3F2;
  --success-color: #166534;
  --success-bg: #ECFDF3;

  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --shadow-sm: 0 1px 3px rgba(22, 43, 36, 0.06);
  --shadow-md: 0 8px 24px rgba(22, 43, 36, 0.08);
  --shadow-lg: 0 16px 40px rgba(22, 43, 36, 0.14);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --container-max: 1200px;
  --header-height: 76px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--brand-accent);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  margin-top: 0;
  line-height: 1.24;
  letter-spacing: -0.015em;
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: var(--bg-subtle);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background-color: var(--brand-primary);
  color: var(--text-inverse);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 2000;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--text-inverse);
}

/* Utility Visibility States */
.is-hidden {
  display: none !important;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Reading Progress Bar */
.reading-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(27, 54, 45, 0.08);
  z-index: 1100;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  transition: width 0.16s ease-out;
}

.read-p-0 { width: 0%; }
.read-p-5 { width: 5%; }
.read-p-10 { width: 10%; }
.read-p-15 { width: 15%; }
.read-p-20 { width: 20%; }
.read-p-25 { width: 25%; }
.read-p-30 { width: 30%; }
.read-p-35 { width: 35%; }
.read-p-40 { width: 40%; }
.read-p-45 { width: 45%; }
.read-p-50 { width: 50%; }
.read-p-55 { width: 55%; }
.read-p-60 { width: 60%; }
.read-p-65 { width: 65%; }
.read-p-70 { width: 70%; }
.read-p-75 { width: 75%; }
.read-p-80 { width: 80%; }
.read-p-85 { width: 85%; }
.read-p-90 { width: 90%; }
.read-p-95 { width: 95%; }
.read-p-100 { width: 100%; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(248, 246, 241, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-link:hover {
  color: var(--text-primary);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--brand-primary);
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

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

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover,
.nav-link.is-current {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-accent);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--brand-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-btn.is-open .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open .menu-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-open .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.58rem 1rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: var(--text-inverse);
  border-color: var(--brand-primary);
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: var(--text-inverse);
}

.btn-secondary {
  background-color: var(--brand-accent);
  color: #FFFFFF;
  border-color: var(--brand-accent);
}

.btn-secondary:hover {
  background-color: var(--brand-accent-hover);
  border-color: var(--brand-accent-hover);
  color: #FFFFFF;
}

.btn-outline {
  background-color: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-outline:hover {
  background-color: var(--bg-tint);
  color: var(--brand-primary);
}

.btn-ghost {
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border-color: var(--border-light);
}

.btn-ghost:hover {
  background-color: #E5E0D5;
  color: var(--text-primary);
}

.btn-utility {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.btn-utility:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background-color: var(--bg-tint);
}

.icon-svg {
  flex-shrink: 0;
}

/* ==========================================================================
   Hero / Article Header
   ========================================================================== */
.article-hero {
  padding: 3.5rem 0 2.75rem;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, #F3F0E8 0%, var(--bg-page) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  background-color: var(--bg-tint);
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 54, 45, 0.16);
}

.meta-divider {
  color: var(--text-muted);
}

.reading-time {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2rem, 3.3vw, 2.85rem);
  margin-bottom: 1.15rem;
  color: var(--text-primary);
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.article-byline-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.byline-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.byline-author {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.byline-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.utility-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-figure {
  margin: 0;
  background-color: var(--bg-surface);
  padding: 0.65rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.hero-img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.figure-caption {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
  padding: 0.75rem 0.35rem 0.2rem;
}

/* ==========================================================================
   Main Editorial Layout (Sidebar + Long-Form Article)
   ========================================================================== */
.editorial-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 3.5rem;
  padding-top: 3.25rem;
  padding-bottom: 4rem;
  align-items: start;
}

.editorial-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.sidebar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-heading {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.toc-link {
  display: block;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-secondary);
  padding: 0.42rem 0.65rem;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.toc-link:hover {
  color: var(--brand-primary);
  background-color: var(--bg-page);
}

.toc-link.is-active {
  color: var(--brand-primary);
  font-weight: 600;
  border-left-color: var(--brand-accent);
  background-color: var(--brand-accent-soft);
}

.sidebar-divider {
  height: 1px;
  background-color: var(--border-light);
  margin: 1.25rem 0;
}

.sidebar-tool-box {
  margin-bottom: 1.25rem;
}

.sidebar-tool-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.sidebar-tool-desc {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.sidebar-contact-mini {
  background-color: var(--bg-page);
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.sidebar-mini-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.25rem;
}

.sidebar-mini-detail {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.sidebar-mini-email {
  font-size: 0.8rem;
  font-weight: 600;
  word-break: break-all;
}

/* Article Typography & Sections */
.editorial-article {
  max-width: 780px;
}

.article-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.article-section:last-child {
  margin-bottom: 0;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  margin-bottom: 0.45rem;
}

.article-section h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  margin-bottom: 1.1rem;
}

.article-section h3 {
  font-size: 1.3rem;
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
}

.editorial-list {
  padding-left: 1.35rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.editorial-list li {
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.callout-box {
  background-color: var(--bg-surface);
  border-left: 4px solid var(--brand-primary);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 1.35rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-sm);
}

.callout-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.45rem;
}

.callout-box p:last-child {
  margin-bottom: 0;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.article-figure {
  margin: 1.85rem 0;
  background-color: var(--bg-surface);
  padding: 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.article-img {
  width: 100%;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ==========================================================================
   Interactive Timeline Tabs
   ========================================================================== */
.timeline-widget {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 1.25rem;
}

.timeline-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.timeline-tab-btn {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-light);
  border-bottom: 3px solid transparent;
  padding: 0.95rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.timeline-tab-btn:last-child {
  border-right: none;
}

.timeline-tab-btn:hover {
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--brand-primary);
}

.timeline-tab-btn.is-active {
  background-color: var(--bg-surface);
  color: var(--brand-primary);
  border-bottom-color: var(--brand-accent);
}

.timeline-panels {
  padding: 1.6rem 1.75rem;
}

.timeline-panel h3 {
  margin-top: 0;
  font-size: 1.22rem;
  color: var(--brand-primary);
  margin-bottom: 0.9rem;
}

.phase-checklist {
  margin: 0;
  padding-left: 1.25rem;
}

.phase-checklist li {
  margin-bottom: 0.65rem;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.phase-checklist li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Data Tables
   ========================================================================== */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0 0.85rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  text-align: left;
}

.data-table caption {
  padding: 0.95rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-primary);
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.data-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background-color: #FAF9F5;
  font-weight: 700;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background-color: #FCFBF8;
}

.num-col {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
}

.table-note {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Interactive Budget Estimator
   ========================================================================== */
.calculator-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.calculator-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.calculator-header p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.42rem;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.42rem;
}

.label-row .form-label {
  margin-bottom: 0;
}

.range-value-pill {
  background-color: var(--bg-tint);
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(27, 54, 45, 0.12);
}

.form-range {
  width: 100%;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.calculator-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.calculator-results {
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.calculator-results.is-pulsing {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(184, 107, 43, 0.16);
}

.estimate-summary-box {
  background-color: var(--brand-primary);
  color: var(--text-inverse);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
}

.estimate-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.86;
  margin-bottom: 0.3rem;
}

.estimate-total {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.estimate-per-guest {
  font-size: 0.85rem;
  opacity: 0.9;
  font-variant-numeric: tabular-nums;
}

.breakdown-list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}

.breakdown-item {
  padding: 0.62rem 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.9rem;
}

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

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.breakdown-row strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--brand-primary);
}

.breakdown-contingency .breakdown-row strong {
  color: var(--brand-accent);
}

.calculator-disclaimer {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Feature Info Cards Grid
   ========================================================================== */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-top: 1.1rem;
}

.info-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
}

.info-card h4 {
  font-size: 1.05rem;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ==========================================================================
   Interactive Readiness Checklist
   ========================================================================== */
.checklist-widget {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.checklist-header p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.checklist-progress-badge {
  background-color: var(--bg-tint);
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.checklist-progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.checklist-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-primary), #2F6F58);
  transition: width 0.25s ease;
}

.progress-step-0 { width: 0%; }
.progress-step-1 { width: 12.5%; }
.progress-step-2 { width: 25%; }
.progress-step-3 { width: 37.5%; }
.progress-step-4 { width: 50%; }
.progress-step-5 { width: 62.5%; }
.progress-step-6 { width: 75%; }
.progress-step-7 { width: 87.5%; }
.progress-step-8 { width: 100%; }

.interactive-task-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.task-label {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-page);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.task-label:hover {
  border-color: var(--brand-primary);
}

.task-label.is-completed {
  background-color: var(--bg-tint);
  border-color: rgba(27, 54, 45, 0.28);
}

.task-label.is-completed .task-text {
  color: var(--text-secondary);
  text-decoration: line-through;
}

.task-checkbox {
  width: 19px;
  height: 19px;
  margin-top: 0.2rem;
  accent-color: var(--brand-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.task-text {
  font-size: 0.94rem;
  line-height: 1.55;
}

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

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.faq-header-row h2 {
  margin-bottom: 0;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question-heading {
  margin: 0;
  font-size: 1rem;
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.15rem 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.faq-trigger:hover {
  background-color: #FAF8F3;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  color: var(--brand-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-answer {
  padding: 0 1.35rem 1.25rem;
  border-top: 1px solid var(--bg-subtle);
}

.faq-answer p {
  margin: 0.9rem 0 0;
  font-size: 0.96rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Consultation & Contact Section
   ========================================================================== */
.contact-section {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  padding: 4.5rem 0;
  scroll-margin-top: var(--header-height);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-col h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  margin-bottom: 1rem;
}

.contact-details-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.6rem 0 1.25rem;
  box-shadow: var(--shadow-sm);
}

.contact-detail-row {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.contact-detail-row:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.detail-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.detail-value {
  font-style: normal;
  font-size: 0.96rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.55;
}

.email-action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.detail-link {
  font-weight: 600;
  word-break: break-all;
}

.detail-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.compliance-small-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Inquiry Form */
.inquiry-form,
.inquiry-success-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  box-shadow: var(--shadow-md);
}

.form-card-title {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.form-card-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.consent-group {
  margin-top: 0.5rem;
  margin-bottom: 1.4rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--brand-primary);
  flex-shrink: 0;
}

.field-error {
  display: block;
  font-size: 0.8rem;
  color: var(--error-color);
  font-weight: 500;
  margin-top: 0.3rem;
  min-height: 1.1rem;
}

.has-error {
  border-color: var(--error-color) !important;
  background-color: var(--error-bg) !important;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Submission Confirmation State */
.success-badge {
  display: inline-block;
  background-color: var(--success-bg);
  color: var(--success-color);
  border: 1px solid rgba(22, 101, 52, 0.25);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.submitted-summary-list {
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1rem 0 1.25rem;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}

.submitted-summary-list dt {
  font-weight: 700;
  color: var(--text-secondary);
}

.submitted-summary-list dd {
  margin: 0;
  color: var(--text-primary);
  word-break: break-word;
}

.success-followup {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Privacy Policy Page
   ========================================================================== */
.policy-hero {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 0 2.25rem;
}

.policy-container {
  max-width: 880px;
}

.policy-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 0.9rem;
}

.policy-lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.policy-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.policy-document {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2.5rem 0 4rem;
  box-shadow: var(--shadow-sm);
}

.policy-section {
  margin-bottom: 2.4rem;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-light);
}

.policy-contact-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  padding: 3.75rem 0 2.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(247, 245, 240, 0.14);
}

.footer-brand-link {
  margin-bottom: 0.95rem;
}

.footer-brand-name {
  color: #FFFFFF;
}

.footer-brand-tagline {
  color: rgba(247, 245, 240, 0.7);
}

.footer-about {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(247, 245, 240, 0.78);
  margin-bottom: 0;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E5B284;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a,
.footer-address a {
  color: rgba(247, 245, 240, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-address a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(247, 245, 240, 0.85);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link-btn:hover {
  color: #FFFFFF;
}

.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(247, 245, 240, 0.82);
}

.footer-bottom {
  padding-top: 1.5rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(247, 245, 240, 0.65);
  margin-bottom: 1rem;
}

.footer-copyright-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.84rem;
  color: rgba(247, 245, 240, 0.75);
}

.footer-copyright-row a {
  color: rgba(247, 245, 240, 0.85);
}

/* ==========================================================================
   Back-to-Top, Toast Notification & Cookie Consent Banner
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 950;
  background-color: var(--brand-primary);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.back-to-top-btn:hover {
  background-color: var(--brand-accent);
  transform: translateY(-2px);
}

.toast-notification {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  right: 1.5rem;
  z-index: 1300;
  background-color: var(--bg-dark);
  color: #FFFFFF;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--brand-accent);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 360px;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  max-width: 1080px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.6rem;
  box-shadow: var(--shadow-lg);
}

.cookie-banner-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-copy {
  flex: 1;
}

.cookie-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--brand-primary);
}

.cookie-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.cookie-prefs-panel {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border-light);
}

.cookie-pref-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.cookie-pref-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--text-primary);
  cursor: pointer;
}

.cookie-pref-item input[type="checkbox"] {
  margin-top: 0.18rem;
  accent-color: var(--brand-primary);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .editorial-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .editorial-sidebar {
    position: static;
  }

  .editorial-article {
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .primary-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-strong);
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    box-shadow: var(--shadow-md);
  }

  .primary-nav.is-open {
    display: flex;
  }

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

  .nav-link {
    display: block;
    padding: 0.65rem 0.4rem;
    border-bottom: 1px solid var(--bg-subtle);
  }

  .header-cta-btn {
    width: 100%;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner-inner {
    flex-direction: column;
  }

  .cookie-actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.1rem;
  }

  .article-hero {
    padding: 2.25rem 0 2rem;
  }

  .timeline-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-tab-btn {
    border-bottom: 1px solid var(--border-light);
  }

  .feature-cards-grid,
  .form-row-two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .calculator-card,
  .checklist-widget,
  .inquiry-form,
  .inquiry-success-card,
  .policy-document {
    padding: 1.35rem;
  }

  .checklist-header,
  .faq-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .submitted-summary-list {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ==========================================================================
   Print Stylesheet (Triggered by Print Guide / Print Policy buttons)
   ========================================================================== */
@media print {
  .site-header,
  .reading-progress-track,
  .editorial-sidebar,
  .hero-actions,
  .utility-actions,
  .calculator-btn-row,
  .checklist-actions,
  .contact-form-col,
  .cookie-banner,
  .back-to-top-btn,
  .toast-notification,
  .policy-toolbar,
  #toggleAllFaqBtn {
    display: none !important;
  }

  body {
    background-color: #FFFFFF;
    color: #000000;
    font-size: 11pt;
  }

  .editorial-layout,
  .hero-grid,
  .contact-grid {
    display: block;
  }

  .timeline-panel,
  .faq-answer {
    display: block !important;
  }

  .site-footer {
    background-color: #FFFFFF;
    color: #000000;
    border-top: 1px solid #CCCCCC;
  }

  .footer-links a,
  .footer-address,
  .footer-address a,
  .footer-disclaimer {
    color: #000000;
  }
}
