/* Winegate Brand Font (served via secure route) */
@font-face {
  font-family: 'Winegate';
  src: url('/fonts/Winegate-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color Palette */
  /* Color Palette */
  
  /* brand-orange scale */
  --brand-orange-100: #ecd9c4;
  --brand-orange-200: #dab990;
  --brand-orange-300: #c99a5e;
  --brand-orange-400: #c39155;
  --brand-orange-500: #bb782d;
  --brand-orange-600: #996225;
  --brand-orange-700: #774c1d;
  --brand-orange-800: #543614;
  --brand-orange-900: #32200c;
  --brand-orange: var(--brand-orange-500);

  /* brand-beige scale */
  --brand-beige-100: #f6f0e9;
  --brand-beige-200: #ede1d3;
  --brand-beige-300: #e4d3be;
  --brand-beige-400: #e5d3bd;
  --brand-beige-500: #dfc9af;
  --brand-beige-600: #b7a590;
  --brand-beige-700: #8f8170;
  --brand-beige-800: #675d51;
  --brand-beige-900: #403a32;
  --brand-beige: var(--brand-beige-500);

  /* brand-olive scale */
  --brand-olive-100: #e4e3c8;
  --brand-olive-200: #cac697;
  --brand-olive-300: #b1aa66;
  --brand-olive-400: #b2ac5e;
  --brand-olive-500: #a19a39;
  --brand-olive-600: #847e2f;
  --brand-olive-700: #666224;
  --brand-olive-800: #49461a;
  --brand-olive-900: #2b2a0f;
  --brand-olive: var(--brand-olive-500);

  /* brand-dark-green scale */
  --brand-dark-green-100: #bcc4be;
  --brand-dark-green-200: #7d8f81;
  --brand-dark-green-300: #425e49;
  --brand-dark-green-400: #3d5342;
  --brand-dark-green-500: #112b17;
  --brand-dark-green-600: #0e2313;
  --brand-dark-green-700: #0b1b0f;
  --brand-dark-green-800: #08130b;
  --brand-dark-green-900: #050d07;
  --brand-dark-green: var(--brand-dark-green-500);

  /* brand-teal scale */
  --brand-teal-100: #bcccca;
  --brand-teal-200: #92aca9;
  --brand-teal-300: #678b87;
  --brand-teal-400: #3d6c66;
  --brand-teal-500: #114a44;
  --brand-teal-600: #0e3d38;
  --brand-teal-700: #0b2f2c;
  --brand-teal-800: #08221f;
  --brand-teal-900: #051513;
  --brand-teal: var(--brand-teal-500);

  /* brand-olive-dark scale */
  --brand-olive-dark-100: #d0d5c0;
  --brand-olive-dark-200: #b2ba98;
  --brand-olive-dark-300: #949e70;
  --brand-olive-dark-400: #778448;
  --brand-olive-dark-500: #58681f;
  --brand-olive-dark-600: #485519;
  --brand-olive-dark-700: #384314;
  --brand-olive-dark-800: #28300e;
  --brand-olive-dark-900: #191d09;
  --brand-olive-dark: var(--brand-olive-dark-500);

  /* brand-mauve scale */
  --brand-mauve-100: #dcd1d2;
  --brand-mauve-200: #c6b3b4;
  --brand-mauve-300: #af9597;
  --brand-mauve-400: #99777a;
  --brand-mauve-500: #82595d;
  --brand-mauve-600: #6b494c;
  --brand-mauve-700: #53393c;
  --brand-mauve-800: #3c292b;
  --brand-mauve-900: #24191a;
  --brand-mauve: var(--brand-mauve-500);
  
  --white: #FFFFFF;
  --black: #1a1a1a;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-800: #1f2937;

  /* Typography */
  --font-display: 'RobinChandler', serif;
  --font-body: 'Fivo Sans', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;

  /* Type Scale */
  --text-xs: 0.64rem;
  --text-sm: 0.8rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--brand-dark-green-700); /* Deep premium background */
  color: var(--brand-beige-300); /* Readable light beige text */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

/* Picture-as-background for hero/CTA sections */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.btn {
  --color: var(--brand-beige-400); /* Default fallback */
  
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  position: relative;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  
  color: var(--color);
  background: rgba(17, 43, 23, 0.4); /* Semi-transparent dark green tint */
  backdrop-filter: blur(2px);
  border: 2px solid var(--color);
  border-radius: 6px;
  
  overflow: hidden;
  z-index: 1;
  transition: color 0.5s;
}

.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--color);
  
  /* Large circle for the fill effect */
  height: 300px;
  width: 300px;
  border-radius: 50%;
  
  /* Start position */
  top: 100%;
  left: 100%;
  transition: all 0.7s;
}

.btn:hover {
  /* Default hover text color. 
     Note: This might be overridden by specific buttons if they need different contrast 
     (e.g., primary needs light text, secondary needs dark).
     We set a safer default here but Primary will override.
  */
  color: #fff;
}

.btn:hover::before {
  top: -50px;
  left: -50px;
}

.btn:active::before {
  background: var(--color-dark); /* Use a darker shade if available, or just var(--color) */
  transition: background 0s;
}

.btn-primary {
  --color: var(--brand-orange-500);
  --color-hover-bg: var(--brand-orange-600); /* Darker orange for hover */
  --color-hover-text: var(--brand-beige-100); /* Very light beige for text */
  
  background-color: transparent;
  border-color: var(--brand-orange-500);
  color: var(--brand-orange-500);
}

/* Primary Button Hover Specifics */
.btn-primary::before {
  background: var(--color-hover-bg);
}

.btn-primary:hover {
  color: var(--color-hover-text);
  border-color: var(--color-hover-bg); /* Match border to the fill */
}

.btn-secondary {
  --color: var(--brand-beige-500);
  --color-hover-bg: var(--brand-beige-500);
  --color-hover-text: var(--brand-dark-green-900); /* Ensure high contrast */
  
  color: var(--brand-beige-500);
  border-color: var(--brand-beige-500);
}

.btn-secondary:hover {
  color: var(--color-hover-text);
}

/* Tertiary Button (Animated Send Request) */
.btn-tertiary {
  font-family: inherit;
  font-size: var(--text-sm);
  background: var(--brand-olive-dark-300); /* Updated Base: Olive Dark 300 */
  color: var(--brand-beige-100);
  padding: 0.7em 1em; /* Symmetric padding */
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.btn-tertiary span {
  display: block;
  margin-left: 0.3em;
  transition: all 0.3s ease-in-out;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-tertiary svg {
  display: block;
  transform-origin: center center;
  transition: transform 0.3s ease-in-out;
}

.btn-tertiary:hover {
  background: var(--brand-mauve-500); /* Hover: Mauve 500 */
}

.btn-tertiary:hover .svg-wrapper {
  animation: fly-1 0.6s ease-in-out infinite alternate;
}

.btn-tertiary:hover svg {
  transform: translateX(4.2em) rotate(45deg) scale(1.1); /* Increased to ~50px for better centering */
}

.btn-tertiary:hover span {
  transform: translateX(200%); /* ensuring it's fully gone */
  opacity: 0;
}

.btn-tertiary:active {
  transform: scale(0.95);
}

@keyframes fly-1 {
  from {
    transform: translateY(0.1em);
  }

  to {
    transform: translateY(-0.1em);
  }
}

/* Social Media Icons */
.social-wrapper {
  display: inline-flex;
  list-style: none;
  height: auto;
  width: 100%;
  font-family: var(--font-body);
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-left: 0px;
  padding-top: 25px;
  justify-content: center;
}

.social-wrapper .icon {
  position: relative;
  background: var(--brand-olive-400);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 15px; /* Scaled down from 18px */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  color: var(--brand-dark-green-900); /* Default icon color */
}

/* Hover Effects */
.social-wrapper .icon:hover {
  color: #fff;
  transform: translateY(-5px);
}

.social-wrapper .facebook:hover {
  background: #1877f2; /* Official Facebook Blue */
}

.social-wrapper .twitter:hover {
  background: #1da1f2; /* Official Twitter Blue */
}

.social-wrapper .instagram:hover {
  background: #e4405f; /* Official Instagram Pink */
}

.social-wrapper .whatsapp-ar:hover,
.social-wrapper .whatsapp-es:hover {
  background: #25d366; /* Official Whatsapp Green */
}

.social-wrapper .email:hover {
  background: #427d7f;
}

/* Flag Badge */
.social-wrapper .badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border: 2px solid #fff;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-wrapper .badge svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* Client Logos & Names */
.client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-12);
  width: 100%;
}

.client-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  opacity: 0.6;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: default;
}

.client-item:hover {
  opacity: 1;
  transform: translateY(-5px);
}

.client-logo {
  height: 60px; /* Fixed square dimension */
  width: 60px;
  padding: var(--space-2);
  border-radius: 50%; /* Make it round */
  background: rgba(255, 255, 255, 0.03); /* Subtle backdrop to show shape */
  /* Beige-out effect: Sepia for warmth, Hue Rotate to match beige, Brightness/Contrast tweaks */
  filter: grayscale(100%) sepia(100%) hue-rotate(35deg) brightness(0.9) contrast(0.8); 
  transition: all 0.4s ease;
  object-fit: contain;
}

.client-item:hover .client-logo {
  filter: grayscale(0%) sepia(0%);
  background: rgba(255, 255, 255, 0.1); /* Slightly more visible on hover */
  transform: scale(1.1);
}

.client-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--brand-beige-400);
  transition: color 0.3s ease;
}

.client-item:hover .client-name {
  color: var(--brand-beige-200);
}

@media (max-width: 768px) {
  .client-logos {
    gap: var(--space-8);
  }
  
  .client-logo {
    height: 40px;
  }
  
  .client-name {
    font-size: var(--text-md);
  }
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-6) !important;
  }
  
  .footer-legal ul {
    justify-content: center;
  }
  
  .footer-social {
    justify-content: center !important;
  }
  
  .footer-copy {
    order: 3; /* Copyright last on mobile */
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-dark-green-900);
  border-top: 1px solid var(--brand-olive-dark-800);
  padding: var(--space-4) var(--space-6);
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cookie-content p {
  font-size: var(--text-sm);
  color: var(--brand-beige-400);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.cookie-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: 4px;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.cookie-accept {
  background: var(--brand-orange-500);
  color: var(--brand-beige-100);
}

.cookie-accept:hover {
  background: var(--brand-orange-600);
}

.cookie-link {
  font-size: var(--text-xs);
  color: var(--brand-beige-500);
  text-decoration: underline;
}

.cookie-link:hover {
  color: var(--brand-beige-300);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

/* Skip Navigation Link (Accessibility) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-orange-500);
  color: var(--brand-beige-100);
  padding: var(--space-2) var(--space-4);
  border-radius: 0 0 4px 4px;
  z-index: 10000;
  transition: top 0.2s ease;
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--brand-beige-100);
  outline-offset: 2px;
}

/* Form Loading States */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: "";
  position: absolute;
  right: 1em;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Keyboard Focus States (Accessibility) */
:focus-visible {
  outline: 2px solid var(--brand-orange-500);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-orange-500);
  outline-offset: 2px;
}

/* Remove default outline since we're using focus-visible */
:focus:not(:focus-visible) {
  outline: none;
}

/* Form Feedback Animation */
@keyframes highlight-pulse {
  0% { box-shadow: 0 0 0 0 rgba(187, 120, 45, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(187, 120, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(187, 120, 45, 0); }
}

.feedback-highlight {
  animation: highlight-pulse 1s ease-out;
}

/* ============================
   FOOTER STYLES
   ============================ */

.site-footer {
  background: var(--brand-dark-green-900);
  border-top: 1px solid var(--brand-olive-dark-800);
  padding: var(--space-12) 0 var(--space-10);
}

/* Footer Matrix Layout */
.footer-grid {
  margin-top: var(--space-8); /* Add margin top per user request */
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* Reverted to equal width */
  column-gap: var(--space-8);
  row-gap: var(--space-2); /* Reduced significantly to bring bottom row up */
  border-bottom: 1px solid var(--brand-olive-dark-800);
  /* padding-bottom removed to reduce perception of space */
}

/* Row 1, Col 1: Logo + Tagline */
/* Row 2, Col 1: Logo + Tagline */
.footer-brand-header {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center horizontally */
  justify-content: center; /* Center vertically in grid cell */
  text-align: center;
}

/* Row 2, Col 2: Copyright */
.footer-copyright-column {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

/* Row 2, Col 3: Language Selector */
.footer-lang-column {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transform: translateX(-90%); /* Center on the grid line between Col 2 and Col 3 */
  width: max-content; /* Ensure block only takes necessary width */
}

/* Row 1, Col 1: Contact */
.footer-contact-column {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  text-align: center; /* Center aligned within the shifted block */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center aligned within the shifted block */
  justify-self: end; /* Align block to right of Col 1 */
  transform: translateX(50%); /* Shift block to center on the grid line */
  z-index: 1; /* Ensure visibility */
  width: max-content; /* Ensure block only takes necessary width */
}

/* Row 1, Col 2: Navigation */
.footer-column:nth-child(5) { /* 5th child because of new cols */
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  text-align: left;
  justify-self: end; /* Moves the block to the right edge of Col 2, closer to Legal */
}

/* Row 1, Col 3: Legal */
.footer-column:nth-child(6) { /* 6th child */
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  text-align: left;
}

.footer-column {
  min-width: 0;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--space-3);
  text-decoration: none;
  margin-bottom: var(--space-4);
}

.footer-logo img {
  width: 120px; 
  height: 120px;
  object-fit: contain;
}

.footer-logo .logo-img {
    transform: translateY(-20%); /* Center on the grid line between Col 2 and Col 3 */
}

.footer-logo span {
  font-size: var(--text-2xl);
  color: var(--brand-beige-100);
  letter-spacing: 1px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.footer-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--brand-olive-400);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.footer-contact-section {
  margin-bottom: var(--space-4);
}

.footer-contact-section .footer-heading {
  margin-bottom: var(--space-2);
}

/* Footer Headings */
.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-beige-200);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-4);
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--brand-beige-400);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--brand-orange-400);
}

/* Contact Info */
.footer-contact {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--brand-beige-400);
}

.footer-contact a {
  color: var(--brand-beige-300);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--brand-orange-400);
}

.footer-region {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.footer-region .flag {
  font-size: 1.1em;
}

/* Bottom Bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  padding-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--brand-beige-500);
  margin: 0;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--brand-beige-400);
}

.language-switcher select {
  background: var(--brand-dark-green-800);
  border: 1px solid var(--brand-olive-dark-700);
  color: var(--brand-beige-200);
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-3);
  border-radius: 4px;
  cursor: pointer;
}

.language-switcher select:hover {
  border-color: var(--brand-olive-400);
}

/* Footer Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  
  /* Reset grid placement for tablet */
  
  /* Order 3: Brand */
  .footer-brand-header {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: center;
    align-items: center;
    margin-bottom: var(--space-6);
  }

  /* Order 4: Copyright (Left) */
  .footer-copyright-column {
    grid-column: 1 / 2;
    grid-row: 4;
    justify-content: flex-start;
    text-align: left;
    margin-bottom: 30px; /* Add extra spacing at bottom on mobile */
  }

  /* Order 4: Lang (Right) */
  .footer-lang-column {
    grid-column: 2 / 3;
    grid-row: 4;
    justify-content: flex-end; /* Align to right edge for balance */
    transform: translateX(0); /* Reset desktop transform */
    width: auto; /* Reset width constraint */
    margin-bottom: 30px; /* Add extra spacing at bottom on mobile */
  }
  
  /* Order 1: Contact (Full) */
  .footer-contact-column {
    grid-column: 1 / -1; /* Full width on tablet */
    grid-row: 1;
    text-align: center;
    align-items: center;
    justify-self: center; /* Explicitly center on tablet */
    transform: translateX(0); /* Reset desktop transform */
    width: auto; /* Reset width constraint */
  }
  
  /* Order 2: Nav (Left) */
  .footer-column:nth-child(5) { /* Nav */
    grid-column: 1 / 2;
    grid-row: 2;
    justify-self: center;
  }
  
  /* Order 2: Legal (Right) */
  .footer-column:nth-child(6) { /* Legal */
    grid-column: 2 / 3;
    grid-row: 2;
    justify-self: center;
  }

  .footer-logo {
    justify-content: center;
  }
  
  /* Reset desktop transforms on mobile/tablet to avoid gaps */
  .footer-logo .logo-img {
    transform: none;
  }
  
  .winegate-wordmark-footer {
    transform: none;
  }
  
  .social-wrapper {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand-header {
    grid-row: 4;
  }
  .footer-copyright-column {
    grid-row: 5;
  }
  .footer-lang-column {
    grid-row: 6;
    margin-bottom: 30px; /* Add extra spacing at bottom on mobile */
  }
  .footer-contact-column {
    grid-row: 1;
  }
  .footer-column:nth-child(5) {
    grid-row: 2;
    justify-self: center; /* Reset to center on mobile */
  }
  .footer-column:nth-child(6) {
    grid-row: 3;
  }

  .footer-brand-header,
  .footer-copyright-column,
  .footer-lang-column,
  .footer-contact-column,
  .footer-column:nth-child(5),
  .footer-column:nth-child(6) {
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-contact {
    text-align: center;
  }
  
  .footer-region {
    justify-content: center;
  }
  
  /* Hide footer bottom since content moved to grid */
  .footer-bottom {
    display: none;
  }
}

/* ============================
   HEADER STYLES
   ============================ */

.site-header {
  padding: 0;
  border-bottom: 1px solid var(--brand-olive-dark-800);
  position: relative;
  z-index: 100;
  background: var(--brand-dark-green-700);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 120px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header-nav-list {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-nav-list a {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.header-nav-list a:hover {
  opacity: 1;
  color: var(--brand-orange-400);
}

/* Language selector (header) */
.header-lang {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--brand-beige-400);
  border-left: 1px solid var(--brand-olive-dark-800);
  padding-left: var(--space-6);
}

.header-lang svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.header-lang select,
.mobile-lang select {
  background: var(--brand-dark-green-900);
  border: 1px solid var(--brand-beige-600);
  color: var(--brand-beige-100);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-2);
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--space-6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f6f0e9' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
}

.header-lang select:hover,
.mobile-lang select:hover {
  border-color: var(--brand-orange-400);
}

.header-lang select:focus,
.mobile-lang select:focus {
  border-color: var(--brand-orange-500);
  outline: none;
  box-shadow: 0 0 0 2px rgba(187, 120, 45, 0.3);
}

.header-lang select option,
.mobile-lang select option {
  background: var(--brand-dark-green-900);
  color: var(--brand-beige-100);
  padding: var(--space-2);
}

/* Burger button */
.burger-btn {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand-beige-300);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.burger-btn.is-open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.is-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-btn.is-open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none; /* hidden on desktop */
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  .header-container {
    height: 80px;
  }

  .header-container .logo img,
  .header-container .logo picture img {
    height: 60px;
  }

  .winegate-wordmark {
    height: 28px;
  }

  .header-right {
    display: none; /* hide desktop nav + lang on mobile */
  }

  .burger-btn {
    display: flex; /* show burger on mobile */
  }

  .mobile-menu {
    display: none; /* default hidden */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 13, 7, 0.97);
    z-index: 150;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-12);
    padding: var(--space-8);
  }

  .mobile-menu.is-open {
    display: flex;
  }

  .mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
  }

  .mobile-nav-list a {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--brand-beige-200);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color var(--transition-fast);
  }

  .mobile-nav-list a:hover {
    color: var(--brand-orange-400);
  }

  .mobile-lang {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--brand-beige-400);
    padding-top: var(--space-6);
    border-top: 1px solid var(--brand-olive-dark-800);
  }

  .mobile-lang select {
    font-size: var(--text-base);
    padding: var(--space-2) var(--space-4);
    padding-right: var(--space-8);
  }
}

/* ============================
   WINEGATE SVG WORDMARK
   ============================ */

.brand-wordmark {
  display: flex;
  align-items: center;
}

.winegate-wordmark {
  height: 40px;
  width: auto;
  /* Filter to change black SVG to brand-beige-100 (#F5EDE1) */
  filter: invert(93%) sepia(5%) saturate(500%) hue-rotate(338deg) brightness(103%) contrast(92%);
  transition: filter 0.2s ease;
}

.winegate-wordmark:hover {
  filter: invert(70%) sepia(20%) saturate(600%) hue-rotate(340deg) brightness(95%) contrast(90%);
}

.winegate-wordmark-footer {
  height: 40px; /* Increased to match header size properly */
  margin-top: auto; /* Push to bottom of flex container */
  margin-bottom: 0px; /* Ensure flush with bottom */
  transform: translateY(+5%);
}

/* Fallback text styles when SVG fails to load */
.winegate-fallback {
  font-family: 'Winegate', var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: 2px;
  color: var(--brand-beige-100);
}

.winegate-fallback-footer {
  font-size: var(--text-2xl); /* Increased size */
}

/* Fallback for older browsers - hide SVG and show text */
@supports not (filter: invert(1)) {
  .winegate-wordmark {
    display: none;
  }
  .winegate-fallback {
    display: inline !important;
  }
}
