:root {
  --primary: #B6ADAF;
  --primary-dark: #8f8588;
  --bg-light: #f5f3f4;
  --bg-dark: #3d383a;
  --bg-alt: #e8e4e5;
  --text: #2a2628;
  --text-on-dark: #f5f3f4;
  --accent: #5c5558;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(42, 38, 40, 0.12);
  --radius: 8px;
  --max-width: 1140px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.65;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--bg-dark);
}

ul, ol {
  padding-left: 1.35rem;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3.5vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 0.5rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link img {
  height: 40px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

.disclaimer-bar {
  margin-top: var(--header-h);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-size: 0.8rem;
  padding: 0.6rem 0;
  text-align: center;
}

.disclaimer-bar p {
  margin: 0;
  max-width: 52rem;
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-dark) center/cover no-repeat;
  margin-bottom: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(42, 38, 40, 0.72);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 3rem 1rem;
}

.hero h1,
.hero p {
  color: var(--text-on-dark);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--accent);
  color: var(--text-on-dark);
}

.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text);
}

.btn-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--bg-dark);
}

.btn-dark:hover {
  background: var(--accent);
}

section {
  padding: 3.5rem 0;
}

.section-light { background: var(--bg-light); color: var(--text); }
.section-primary { background: var(--primary); color: var(--text); }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-alt { background: var(--bg-alt); color: var(--text); }

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p,
.section-dark li,
.section-dark .grid-2,
.section-dark .grid-2 h3,
.section-dark .grid-2 p,
.section-dark strong,
.section-dark em {
  color: var(--text-on-dark);
}

.section-dark a {
  color: var(--text-on-dark);
  text-decoration: underline;
}

.section-dark a:hover {
  color: var(--primary);
}

.section-primary h2,
.section-primary h3 {
  color: var(--text);
}

.lead {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--primary);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card i {
  font-size: 1.5rem;
  color: var(--accent);
}

.section-dark .card i {
  color: var(--primary);
}

.icon-list {
  list-style: none;
  padding: 0;
}

.icon-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.icon-list i {
  font-size: 1.35rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.section-dark .icon-list i {
  color: var(--primary);
}

.numbered-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.numbered-steps li {
  counter-increment: step;
  padding: 1rem 1rem 1rem 3.5rem;
  position: relative;
  margin-bottom: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.numbered-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: var(--text-on-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.quote-block {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--white);
  margin: 1.5rem 0;
  font-style: italic;
}

.split-feature {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.split-feature img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.faq-item {
  border-bottom: 1px solid var(--primary-dark);
  padding: 1rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item[open] summary {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.events-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.events-table th,
.events-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--bg-alt);
}

.events-table td {
  color: var(--text);
  background: var(--white);
}

.events-table th {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-dark .events-table td,
.section-primary .events-table td,
.section-alt .events-table td {
  color: var(--text);
  background: var(--white);
}

.section-dark .events-table tbody tr:hover td {
  background: var(--bg-light);
}

.calculator-box,
.builder-box {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 520px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
  color: var(--text);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.checkbox-group input {
  width: auto;
  margin-top: 0.35rem;
}

.result-panel {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: none;
}

.result-panel.visible {
  display: block;
}

.method-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.method-tags label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
}

.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 2.5rem 0 1.5rem;
}

.site-footer a {
  color: var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h3 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid var(--accent);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

.map-wrap iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

.policy-content {
  max-width: 800px;
}

.policy-content h2 {
  margin-top: 2rem;
}

.trust-panel {
  background: var(--white);
  border: 2px solid var(--primary-dark);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.trust-panel h2 {
  margin-bottom: 0.75rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.trust-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.trust-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  color: #ffffff;
  padding: 1.25rem;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-banner h2,
.cookie-banner p,
.cookie-banner label,
.cookie-banner .toggle-row,
.cookie-banner .toggle-row span {
  color: #ffffff;
}

.cookie-banner a {
  color: #f0ecee;
  text-decoration: underline;
}

.cookie-banner a:hover {
  color: #ffffff;
}

.cookie-banner .btn {
  color: #ffffff;
  border-color: #ffffff;
}

.cookie-banner .btn:not(.btn-outline):not(.btn-dark) {
  background: var(--accent);
}

.cookie-banner .btn-dark,
.cookie-banner .btn-outline {
  background: transparent;
}

.cookie-banner .btn:hover,
.cookie-banner .btn-outline:hover,
.cookie-banner .btn-dark:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.policy-content + .site-footer,
main.section-light {
  padding-top: 1rem;
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cookie-settings {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--accent);
}

.cookie-settings.open {
  display: block;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.toggle-row input[type="checkbox"]:disabled {
  opacity: 0.7;
}

.thank-you-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}

.thank-you-page i {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.health-intro-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

.health-quote {
  margin: 0;
  font-size: 1.05rem;
}

.health-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.health-card {
  border-left-color: var(--primary-dark);
}

.health-card h3 {
  font-size: 1.05rem;
}

.do-dont-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.do-dont-col {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.do-col {
  border-top: 4px solid var(--accent);
}

.dont-col {
  border-top: 4px solid var(--primary-dark);
}

.do-dont-col h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.do-col h3 i {
  color: var(--accent);
}

.dont-col h3 i {
  color: var(--bg-dark);
}

.check-list,
.warn-list {
  list-style: none;
  padding: 0;
}

.check-list li,
.warn-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent);
}

.warn-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  width: 1.15rem;
  height: 1.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.15rem;
  background: var(--primary);
  color: var(--text);
  border-radius: 50%;
}

.health-steps {
  margin-bottom: 1.5rem;
}

.health-footer-note {
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px dashed var(--primary-dark);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .split-feature,
  .health-intro-grid,
  .health-cards,
  .do-dont-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--primary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open {
    max-height: 80vh;
    overflow-y: auto;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
  }

  .main-nav a {
    display: block;
    padding: 0.65rem 0;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 64px;
  }

  section {
    padding: 2.5rem 0;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-actions .btn {
    width: 100%;
    text-align: center;
  }
}
