:root {
  --color-bg: #f2f5f7;
  --color-surface: #ffffffd9;
  --color-surface-strong: #fffffff2;
  --color-muted: #d2dae1;
  --color-text: #1e2d38;
  --color-text-soft: #465867;
  --color-accent: #f59c5b;
  --color-accent-deep: #d8742c;
  --font-base: "Segoe UI", Arial, sans-serif;
  --font-heading: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --shadow-soft: 0 10px 28px #25343f22;
  --shadow-hover: 0 14px 34px #25343f2e;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --content-max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: radial-gradient(circle at top, #ffffff, var(--color-bg) 62%);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-accent-deep);
}

header,
main,
footer {
  width: min(100%, var(--content-max));
  margin-inline: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 25;
  padding: var(--space-3) var(--space-4);
  backdrop-filter: blur(10px);
}

.topbar {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-3) var(--space-4);
  border: 1px solid #dce3e9;
}

.brand {
  display: block;
}

.brand img {
  width: 4rem;
  position: relative;
  z-index: 20;
}

.brand img {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.brand:hover img {
  transform: rotate(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .brand img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .brand img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 576px) {
  .brand img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 400px) {
  .brand img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

nav ul {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

nav a {
  display: inline-block;
  background: var(--color-surface-strong);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 #ffffff, 0 3px 8px #25343f14;
  border: 1px solid #d5dde4;
}

main {
  padding: 0 var(--space-4) var(--space-6);
}

section,
article,
aside,
form {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px #1f313f14;
  padding: var(--space-5);
  margin-top: var(--space-5);
}

p {
  max-width: 75ch;
}

.hero-grid,
.three-col,
.policy-grid,
.contact-grid {
  display: grid;
  gap: var(--space-4);
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.policy-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}

.cta-link,
button {
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-link,
button[type="submit"],
#accept-all {
  background: var(--color-accent);
  color: #1f2326;
  box-shadow: 0 7px 16px #f59c5b3f;
}

.cta-link:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.soft-btn {
  background: var(--color-muted);
  color: var(--color-text);
}

label {
  display: block;
  font-weight: 600;
  margin-top: var(--space-2);
}

input,
textarea {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #b7c0c7;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  font: inherit;
  background: #ffffffef;
}

input:focus,
textarea:focus {
  outline: 2px solid #ff9b5180;
  border-color: var(--color-accent);
}

small {
  display: block;
  min-height: 1.2rem;
  color: #b02727;
  margin-top: 0.25rem;
}

fieldset {
  border: 1px solid #c8d0d5;
  border-radius: var(--radius-sm);
  margin-top: var(--space-4);
  padding: var(--space-3);
}

.inline-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.inline-consent input {
  width: auto;
  margin-top: 0.2rem;
}

.disclaimer {
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-3);
  font-weight: 600;
}

footer {
  margin-top: var(--space-5);
  padding: var(--space-5) var(--space-4);
  background: #25343f;
  color: #f4f7f8;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

footer a {
  color: #f4f7f8;
}

footer nav ul {
  justify-content: flex-start;
  margin-top: var(--space-2);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  width: min(100%, var(--content-max));
  margin-inline: auto;
  background: var(--color-surface-strong);
  box-shadow: 0 -8px 24px #25343f2a;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: var(--space-4);
}

.cookie-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.toggle {
  appearance: none;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: #9ca7af;
  position: relative;
  transition: background 0.2s ease;
}

.toggle::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
}

.toggle:checked {
  background: var(--color-accent);
}

.toggle:checked::after {
  transform: translateX(22px);
}

.hidden {
  display: none;
}

.accent-block {
  background: linear-gradient(130deg, #ffffffed, #f59c5b20);
  border: 1px solid #f59c5b4a;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.kpi-item {
  background: #ffffffd7;
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kpi-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.news-ticker {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #ffffffd7;
  padding: var(--space-2);
}

.ticker-track {
  display: inline-flex;
  gap: var(--space-4);
  white-space: nowrap;
  min-width: 100%;
  animation: ticker-scroll 19s linear infinite;
}

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-hover);
  background: #fffffff0;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 #ff9b5172;
  animation: pulse 1.8s infinite;
}

.interactive-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.interactive-checklist {
  display: grid;
  gap: var(--space-2);
}

.interactive-checklist label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: 0;
}

.interactive-checklist input {
  width: auto;
  margin-top: 0;
}

.tab-btn {
  border-radius: 999px;
  border: 1px solid #aeb9c0;
  background: #fff;
  padding: 0.55rem 0.95rem;
}

.tab-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.history-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.history-filter-btn {
  border: 1px solid #aeb9c0;
  background: #fff;
}

.history-filter-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.history-item.hidden {
  display: none;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: fade-slide 0.35s ease;
}

.accordion-item {
  border: 1px solid #c7d0d6;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-2);
  background: #ffffffdb;
}

.accordion-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--color-text);
  padding: 0;
  box-shadow: none;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.accordion-item.open .accordion-content {
  max-height: 220px;
}

.breath-tool {
  display: grid;
  gap: var(--space-3);
}

.breath-display {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
}

.breath-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 6px solid #bfc9d1;
  margin: 0 auto;
  animation: breathe 8s ease-in-out infinite;
}

.local-note {
  border-left: 4px solid #25343f;
  padding-left: var(--space-3);
  color: var(--color-text-soft);
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 #ff9b5172;
  }

  70% {
    box-shadow: 0 0 0 12px #ff9b5100;
  }

  100% {
    box-shadow: 0 0 0 0 #ff9b5100;
  }
}

@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(0.9);
    border-color: #bfc9d1;
  }

  50% {
    transform: scale(1.08);
    border-color: #ff9b51;
  }
}

@media (max-width: 980px) {

  .hero-grid,
  .three-col,
  .policy-grid,
  .contact-grid,
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {

  header,
  main,
  footer {
    width: 100%;
  }

  .hero-grid,
  .three-col,
  .policy-grid,
  .contact-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  section,
  article,
  aside,
  form {
    padding: var(--space-4);
  }

  .cookie-banner {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    width: 100%;
  }
}