:root {
  --color-primary: #d96868;
  --color-surface: #fbf6f6;
  --color-accent: #6a7e3f;
  --color-accent-dark: #4c5c2d;
  --color-text: #27301a;
  --color-white: #ffffff;
  --color-muted: #eef3e6;
  --font-family-base: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  --font-size-base: 1rem;
  --font-size-h1: clamp(2rem, 4vw, 3rem);
  --font-size-h2: clamp(1.5rem, 3vw, 2rem);
  --font-size-h3: 1.15rem;
  --line-height-base: 1.6;
  --shadow-soft: 0 8px 24px rgba(76, 92, 45, 0.12);
  --shadow-hover: 0 14px 26px rgba(76, 92, 45, 0.2);
  --radius-sm: 0.5rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.2rem;
  --space-xs: 0.4rem;
  --space-sm: 0.8rem;
  --space-md: 1.2rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-surface);
  background-image: radial-gradient(circle at 8% 8%, rgba(106, 126, 63, 0.05), transparent 32%), radial-gradient(circle at 92% 92%, rgba(217, 104, 104, 0.07), transparent 28%);
}

a {
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

main a {
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

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

header,
main,
footer,
.cookie-banner {
  width: min(1100px, 92%);
  margin: 0 auto;
}

header {
  margin-top: var(--space-md);
}

.top-bar,
.main-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.main-bar {
  margin-top: var(--space-sm);
}

.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;
  display: flex;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
}

main {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

main section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.5s ease;
}

main section:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

h1,
h2,
h3 {
  line-height: 1.25;
  color: var(--color-accent-dark);
  margin-top: 0;
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

.hero {
  text-align: center;
  background: linear-gradient(160deg, rgba(106, 126, 63, 0.1), rgba(217, 104, 104, 0.1));
}

.unique-block {
  border-left: 4px solid var(--color-accent);
  background: linear-gradient(180deg, #ffffff, var(--color-muted));
}

.highlight-card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(106, 126, 63, 0.1);
  margin-top: var(--space-sm);
}

.interactive-section {
  position: relative;
  overflow: hidden;
}

.button,
button {
  display: inline-block;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover,
button:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

button.active {
  background: var(--color-primary);
}

figure {
  margin: var(--space-md) 0 0;
}

img,
iframe {
  max-width: 100%;
  border: 0;
  border-radius: var(--radius-md);
  display: block;
}

ul {
  padding-left: 1.1rem;
}

form {
  display: grid;
  gap: var(--space-xs);
}

.planner-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.planner-card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(76, 92, 45, 0.18);
  margin-bottom: var(--space-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
}

.planner-card:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 92, 45, 0.45);
}

.planner-card.is-hidden {
  display: none;
}

.faq-item {
  border: 1px solid rgba(76, 92, 45, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
  background: rgba(251, 246, 246, 0.7);
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
}

.faq-item p {
  margin-top: var(--space-sm);
}

label {
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(76, 92, 45, 0.3);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--color-text);
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 500;
}

.checkbox-line input {
  width: auto;
}

.error-message {
  min-height: 1.1rem;
  margin: 0 0 var(--space-sm);
  color: #b21212;
  font-size: 0.92rem;
}

.disclaimer p {
  font-weight: 600;
}

footer {
  margin-bottom: var(--space-lg);
}

footer p {
  margin: 0;
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.cookie-banner {
  position: fixed;
  right: 4%;
  bottom: 1rem;
  width: min(460px, 92%);
  background: var(--color-white);
  border: 1px solid rgba(76, 92, 45, 0.25);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: var(--space-md);
  z-index: 1000;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner h2 {
  margin-bottom: 0.2rem;
}

.cookie-actions {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

@media (max-width: 860px) {

  .top-bar,
  .main-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  main section {
    padding: var(--space-md);
  }

  .top-bar p,
  .main-bar p {
    margin: 0;
  }
}

@media (max-width: 520px) {
  .cookie-actions button {
    width: 100%;
  }
}