/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLES FOR OUNCE
   ========================================================================== */

/* Outfit font import from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* 1. Core Variables & Design System */
:root {
  /* Color Palette (HEX) */
  --primary: #1F1F1F;      /* Primární: Tmavá charcoal */
  --secondary: #AEBDB4;    /* Sekundární: Jemná sage zelená */
  --btn-color: #B88A5A;    /* Tlačítka: Teplá zlatá/bronzová */
  --background: #FAF9F6;   /* Pozadí: Teplá krémová/off-white */
  --text: #333333;         /* Běžný text: Tmavě šedá */
  --muted: #6B7A72;        /* Tlumený text: Tmavší sage šedá */
  --accent: #B88A5A;       /* Akcent: Zlatá */
  
  --white: #FFFFFF;
  --light-gray: #F1EFEA;
  --card-bg: #FAF9F6;
  --card-border: rgba(174, 189, 180, 0.3); /* Transparentní sage */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.02); /* Velmi jemné stíny */
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.04);
  
  /* Spacing System (8px Grid) */
  --space-4: 0.25rem;   /* 4px */
  --space-8: 0.5rem;    /* 8px */
  --space-12: 0.75rem;  /* 12px */
  --space-16: 1rem;     /* 16px */
  --space-24: 1.5rem;   /* 24px */
  --space-32: 2rem;     /* 32px */
  --space-48: 3rem;     /* 48px */
  --space-64: 4rem;     /* 64px */
  
  /* Layout Rules */
  --container-width: 85%;
  --max-width: 1440px;
  --border-radius: 8px; /* Konzistentní zaoblení */
  --border-radius-sm: 4px;
  
  /* Typography Scale (1.25 Ratio) */
  --font-base: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-size-base: 1rem; /* 16px */
}

/* 2. Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-base);
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--background);
}

/* Base Headings Hierarchy with Responsive Clamp */
h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--primary);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--primary);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--primary);
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--primary);
}

p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

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

/* Utilities */
.container {
  width: var(--container-width);
  max-width: var(--max-width);
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

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

.uppercase {
  text-transform: uppercase;
}

.section-padding {
  padding: var(--space-64) 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: var(--space-48) 0;
  }
}

/* 3. Reusable Components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: var(--border-radius);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--btn-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #a47648; /* Ztmavený odstín zlaté */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(184, 138, 90, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Navigation bar */
.navbar-wrapper {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  gap: var(--space-32);
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 500;
}

.nav-cta {
  display: block;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transition: all 0.3s ease;
  transform-origin: left center;
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--background);
    flex-direction: column;
    padding: 100px var(--space-32) var(--space-32);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    gap: var(--space-24);
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .nav-cta {
    display: none;
  }
}

/* Hero Section */
.hero {
  padding: var(--space-32) 0 var(--space-48) 0;
  min-height: calc(60vh - 80px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.hero-content h1 {
  font-weight: 300; /* Lehký prémiový font pro nadpis */
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--btn-color); /* Hnědá/zlatá brand barva */
  max-width: 85%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-content .desc {
  max-width: 85%;
}

.hero-cta-wrapper {
  margin-top: var(--space-8);
}

.hero-benefits-list {
  display: flex;
  gap: var(--space-24);
  margin-top: var(--space-16);
  flex-wrap: wrap;
}

.hero-benefit-item {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-benefit-item i {
  color: var(--accent);
}

.hero-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-48);
  }

  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero-subtitle, .hero-content .desc {
    max-width: 100%;
  }

  .hero-benefits-list {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-benefits-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-12);
  }
}

/* Benefits Section ("Co OUNCE přináší") */
.benefits-section {
  background-color: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.section-header {
  margin-bottom: var(--space-48);
}

.section-header h2 {
  font-weight: 300;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-24);
}

.benefit-card {
  background-color: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: var(--space-32);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-card:hover {
  border-color: var(--btn-color);
  box-shadow: var(--shadow-md);
}

.benefit-icon-wrapper {
  font-size: 1.4rem;
  color: var(--btn-color);
  margin-bottom: var(--space-32);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.benefit-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-12);
  line-height: 1.35;
  letter-spacing: 0.01em;
  max-width: 100%;
}

.benefit-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 100%;
}

@media (max-width: 1100px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-24);
  }
}

@media (max-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }
}

/* Programs Section ("Dva programy") */
.programs-section {
  background-color: var(--white);
}

.programs-tagline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-12);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin: var(--space-16) auto var(--space-8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tagline-segment {
  color: var(--muted);
}

.tagline-segment.accent {
  color: var(--muted);
  font-weight: 500;
}

.tagline-divider {
  color: var(--muted);
  font-weight: 300;
}

.programs-desc {
  margin-top: var(--space-16);
  font-size: 0.95rem;
  max-width: 65%;
  margin-left: auto;
  margin-right: auto;
}

.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  margin-bottom: 0;
}

.program-card {
  background-color: var(--background);
  border-radius: var(--border-radius);
  border: 1px solid var(--card-border);
  padding: var(--space-48);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  overflow: hidden;
  transition: all 0.3s ease;
}

.program-card:hover {
  border-color: var(--btn-color);
  box-shadow: var(--shadow-sm);
}

.program-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--btn-color);
  letter-spacing: 0.05em;
}

.program-card h3 {
  font-weight: 300;
  line-height: 1.3;
}

.program-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.program-card-bg-img {
  position: absolute;
  width: 260px;
  height: 100px; /* Shortened crop height to ensure absolutely no text is visible */
  object-fit: cover;
  object-position: bottom center;
  opacity: 0.28; /* Increased opacity for more prominent graphics */
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bg-img-left {
  bottom: -20px;
  left: -40px;
  transform: rotate(15deg);
}

.bg-img-right {
  bottom: -20px;
  right: -40px;
  transform: rotate(-15deg);
}

.program-card:hover .bg-img-left {
  transform: scale(1.12) rotate(8deg) translateY(-5px);
  opacity: 0.40;
}

.program-card:hover .bg-img-right {
  transform: scale(1.12) rotate(-8deg) translateY(-5px);
  opacity: 0.40;
}

.programs-actions {
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .programs-desc {
    max-width: 100%;
    padding: 0 15px;
  }

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

  .program-card {
    padding: var(--space-32);
  }
}

/* Tea Categories ("Kategorie čajů") */
.category-pretitle {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: var(--btn-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-8);
}

.categories-desc {
  margin-top: var(--space-12);
  font-size: 0.95rem;
  max-width: 60%;
  margin-left: auto;
  margin-right: auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-16);
  margin-top: var(--space-32);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.category-img-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--space-16);
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

.category-card:hover .category-img-wrapper {
  border-color: var(--secondary);
}

.category-img-wrapper img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.category-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.category-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Tooltip pro detailní popis kategorie čaje */
.category-card {
  position: relative;
  cursor: pointer;
}

.category-tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--primary);
  color: var(--white);
  padding: var(--space-12) var(--space-16);
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  line-height: 1.4;
  width: 240px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  text-align: left;
}

.category-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--primary) transparent transparent transparent;
}

.category-card:hover .category-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-24);
  }
}

@media (max-width: 768px) {
  .categories-desc {
    max-width: 100%;
    padding: 0 15px;
  }
}

@media (max-width: 576px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-img-wrapper {
    width: 120px;
    height: 120px;
  }
}

/* Pilotní provoz */
.pilot-section {
  background-color: var(--white);
}

.pilot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-64);
  align-items: center;
}

.pilot-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.pilot-content h2 {
  font-weight: 300;
}

.pilot-content p {
  max-width: 90%;
}

.pilot-image img {
  border-radius: var(--border-radius);
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
  .pilot-grid {
    grid-template-columns: 1fr;
    gap: var(--space-48);
  }

  .pilot-content {
    text-align: center;
  }

  .pilot-content p {
    max-width: 100%;
  }

  .pilot-image {
    order: -1;
  }
}

/* Accordion Component (FAQ) */
.faq-section {
  background-color: var(--background);
}

.accordion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  margin-top: var(--space-32);
}

.accordion-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.accordion-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: var(--secondary);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-24);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  font-family: var(--font-base);
}

.accordion-icon {
  font-size: 0.9rem;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
  padding: 0 var(--space-24);
  color: var(--text);
  font-size: 0.95rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding-bottom: var(--space-24);
}

@media (max-width: 992px) {
  .accordion-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }
}

/* Contact Section & Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-64);
  margin-top: var(--space-32);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.contact-info h2 {
  font-weight: 300;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  font-size: 1.05rem;
}

.contact-details li i {
  color: var(--accent);
  font-size: 1.2rem;
  width: 24px;
}

/* Form Styles */
.contact-form {
  background-color: var(--white);
  padding: var(--space-48);
  border-radius: var(--border-radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.form-group label .required {
  color: var(--accent);
  margin-left: 2px;
}

.form-control {
  font-family: var(--font-base);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  background-color: var(--background);
  color: var(--text);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--btn-color);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(184, 138, 90, 0.1);
}

.form-control::placeholder {
  color: #b2b8b4;
  opacity: 1;
  font-weight: 300;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Form Success & Error States */
.form-success-card {
  background-color: var(--white);
  padding: var(--space-48);
  border-radius: var(--border-radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-16);
  min-height: 420px;
}

.form-success-icon {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: var(--space-8);
}

.form-success-card h3 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
}

.form-success-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 400px;
}

.form-error-msg {
  padding: var(--space-16);
  border-radius: var(--border-radius);
  background-color: #fdf2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-error-msg a {
  color: #991b1b;
  text-decoration: underline;
  font-weight: 500;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-48);
  }

  .contact-form,
  .form-success-card {
    padding: var(--space-32);
  }
}

/* Footer Styles */
.footer-wrapper {
  background-color: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: var(--space-64) 0 var(--space-32);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-48);
  margin-bottom: var(--space-48);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.footer-logo img {
  height: 40px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 80%;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-24);
  color: var(--primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-legal-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom {
  border-top: 1px solid var(--light-gray);
  padding-top: var(--space-32);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: var(--space-16);
}

.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Cookie Consent Bar */
.cookie-bar {
  position: fixed;
  bottom: -150px;
  left: 0;
  width: 100%;
  background-color: var(--white);
  border-top: 1px solid var(--card-border);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-bar.show {
  bottom: 0;
}

.cookie-container {
  width: var(--container-width);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-24) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-32);
}

.cookie-text {
  flex-grow: 1;
}

.cookie-text h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.cookie-text p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: var(--space-12);
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.cookie-btn-accept {
  background-color: var(--btn-color);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background-color: #a47648;
}

.cookie-btn-reject {
  background-color: var(--light-gray);
  color: var(--text);
}

.cookie-btn-reject:hover {
  background-color: #e5e2da;
}

.cookie-btn-settings {
  background-color: transparent;
  border-color: var(--secondary);
  color: var(--muted);
}

.cookie-btn-settings:hover {
  background-color: var(--light-gray);
  color: var(--text);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1010;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: var(--space-32);
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.cookie-modal-header h3 {
  font-weight: 400;
}

.cookie-modal-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.cookie-option-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-16);
}

.cookie-option-desc h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.cookie-option-desc p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--light-gray);
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--secondary);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

input:disabled + .slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-12);
}

@media (max-width: 768px) {
  .cookie-container {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-16) 0;
    gap: var(--space-16);
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .cookie-btn {
    flex-grow: 1;
    text-align: center;
    padding: 0.5rem 0.5rem;
    font-size: 0.8rem;
  }
}
