:root {
  --color-primary: #A98B76;
  --color-secondary: #BFA28C;
  --color-light: #F3E4C9;
  --color-accent: #BABF94;
  --color-text: #2f2620;
  --color-bg: #fffaf3;
  --font-display: "Segoe Print", "Bradley Hand", cursive;
  --font-body: "Trebuchet MS", "Gill Sans", sans-serif;
  --shadow-soft: 0 8px 22px rgba(47, 38, 32, 0.12);
  --shadow-hover: 0 12px 28px rgba(47, 38, 32, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: radial-gradient(circle at top right, rgba(191, 162, 140, 0.15), transparent 45%), var(--color-bg);
  line-height: 1.55;
}

header,
footer,
main,
section,
article,
nav,
form,
figure {
  width: 100%;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 228, 201, 0.96);
  border-bottom: 1px solid rgba(169, 139, 118, 0.2);
}

nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

li a {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

a,
button {
  transition: all 0.25s ease;
}

a {
  color: var(--color-text);
}

a:hover {
  color: var(--color-primary);
}

.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;
  }
}

.hero {
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-4) var(--space-6);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: center;
}

.hero article {
  background: linear-gradient(140deg, rgba(191, 162, 140, 0.2), rgba(186, 191, 148, 0.3));
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 var(--space-2);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 var(--space-2);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 var(--space-3);
}

.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border-radius: 999px;
  background: var(--color-accent);
}

.pricing {
  font-size: 1.35rem;
}

.button,
button[type="submit"],
.cookie-actions button {
  display: inline-block;
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button[type="submit"]:hover,
.cookie-actions button:hover {
  background: var(--color-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

main>section:not(.hero) {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

#features,
#benefits,
#faq,
#trust,
#local {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

#features>h2,
#benefits>h2,
#faq>h2,
#trust>h2,
#local>h2 {
  grid-column: 1 / -1;
}

article {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
}

form {
  display: grid;
  gap: var(--space-2);
  max-width: 720px;
  background: #fff;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

input,
textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  border: 1px solid rgba(169, 139, 118, 0.45);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

small {
  min-height: 1.1rem;
  color: #9b2c2c;
}

.consent {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.cta {
  text-align: center;
  background: linear-gradient(160deg, rgba(169, 139, 118, 0.16), rgba(186, 191, 148, 0.22));
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
}

iframe {
  border: 0;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

footer {
  margin-top: var(--space-5);
  background: #ede0cf;
  padding: var(--space-4);
  text-align: center;
}

footer nav {
  justify-content: center;
  padding: 0;
}

.cookie-banner {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  max-width: 420px;
  background: #fff;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
}

.cookie-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.hidden {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.ingredient-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.tab-button {
  border: 1px solid rgba(169, 139, 118, 0.45);
  background: #fff;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
}

.tab-button:hover,
.tab-button.active {
  background: var(--color-light);
  border-color: var(--color-primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeInPanel 0.35s ease;
}

.faq-item {
  display: block;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.faq-answer {
  margin-top: var(--space-2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  #features,
  #benefits,
  #faq,
  #trust,
  #local {
    grid-template-columns: 1fr;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    left: var(--space-2);
    right: var(--space-2);
    bottom: var(--space-2);
    max-width: none;
  }
}