/* ========================================
   BRANDS PAGE STYLES
   Based on restaurants styles with modifications
======================================== */

:root {
  --font-head: 'Montserrat Alternates', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Premium colors */
  --clr-dark: #1A2F2A;
  --clr-cream: #F8F6F3;
  --clr-light: #FEFDFB;
  --clr-sage: #7A8A72;
  --clr-gold: #BFA660;
  --clr-turquoise: #5A8789;
  --clr-warm-gray: #8B7F77;
  
  /* Layout variables */
  --header-h: clamp(70px, 10vh, 120px);
  --footer-h: clamp(50px, 7vh, 70px);
  --container-padding: clamp(1rem, 3vw, 2rem);
  --nav-width: 60px;
  --image-width: 35%;
  
  /* Animation variables */
  --dur: 1.2s;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Focus ring */
  --focus-ring: 3px solid var(--clr-gold);
}

/* Reset and base styles - same as restaurants */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--clr-dark);
  background: var(--clr-cream);
  letter-spacing: 0.5px;
  line-height: 1.6;
}

/* Accessibility - same as restaurants */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--clr-dark);
  color: var(--clr-light);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

button:focus, a:focus, .nav-dot:focus {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Typography */
h1, h2 {
  font-family: var(--font-head);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

h1 { font-size: clamp(1.1rem, 2.5vw, 1.8rem); }
h2 { font-size: clamp(1rem, 2.2vw, 1.6rem); }
h3 { font-size: clamp(0.9rem, 1.8vw, 1.3rem); }
p { 
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

/* Header - same as restaurants */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--clr-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
  z-index: 30;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.back-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: var(--clr-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-home:hover {
  background: var(--clr-gold);
  color: var(--clr-light);
  transform: translateX(-3px);
}

.logo-img {
  height: clamp(35px, 5vw, 60px);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.language-switcher {
  display: flex;
  gap: clamp(0.3rem, 1vw, 0.8rem);
  flex-wrap: wrap;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--clr-dark);
  font-family: var(--font-head);
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  font-weight: 400;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  position: relative;
  transition: all 0.3s ease;
  opacity: 0.6;
  border-radius: 4px;
}

.lang-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--clr-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.lang-btn:hover, .lang-btn:focus { 
  opacity: 1; 
  background: rgba(191, 166, 96, 0.1);
}
.lang-btn.active { 
  opacity: 1; 
  color: var(--clr-gold); 
}
.lang-btn.active::after { 
  transform: scaleX(1); 
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-h);
  background: var(--clr-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  z-index: 20;
}

.footer-link {
  display: flex;
  align-items: center;
  color: var(--clr-light);
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  padding: 0.5rem;
  border-radius: 4px;
  position: relative;
}

.footer-link:hover, .footer-link:focus {
  transform: translateY(-3px);
  color: var(--clr-gold);
}

/* Phone number display on desktop */
@media (min-width: 769px) {
  .phone-link::after {
    content: '+49 0176 3638 5781';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-dark);
    color: var(--clr-light);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }
  
  .phone-link::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--clr-dark);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .phone-link:hover::after,
  .phone-link:hover::before {
    opacity: 1;
  }
}

/* Main Layout */
#scroll-area {
  position: fixed;
  top: var(--header-h);
  bottom: var(--footer-h);
  left: 0;
  right: 0;
  overflow: hidden;
  background: var(--clr-cream);
  z-index: 10;
}

/* Navigation Dots - Adjusted for 8 sections */
.global-nav-zone {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: var(--nav-width);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.02);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clr-light);
  border: 2px solid var(--clr-gold);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.nav-dot.active {
  background: var(--clr-gold);
  transform: scale(1.2);
}

.nav-dot:hover {
  transform: scale(1.1);
}

/* Panels */
.panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--dur) var(--easing), opacity var(--dur) var(--easing);
  overflow: hidden;
  padding-left: var(--nav-width);
}

.panel.active {
  transform: translateY(0);
  opacity: 1;
}

/* Image Zone */
.image-zone {
  width: var(--image-width);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  flex-shrink: 0;
}

.panel-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.panel-image:hover {
  transform: scale(1.02);
}

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

/* Text Zone */
.text-zone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-gold) transparent;
}

.text-zone::-webkit-scrollbar { width: 8px; }
.text-zone::-webkit-scrollbar-thumb { 
  background-color: var(--clr-gold); 
  border-radius: 4px; 
}

.panel-text {
  width: 100%;
  max-width: 700px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Background Themes */
.bg-cream { background: var(--clr-cream); }
.bg-light { background: var(--clr-light); }
.bg-sage { 
  background: linear-gradient(135deg, var(--clr-sage) 0%, #6B7A63 100%); 
  color: var(--clr-light); 
}
.bg-gradient { 
  background: linear-gradient(135deg, var(--clr-cream) 0%, var(--clr-light) 100%); 
}
.bg-turquoise { 
  background: linear-gradient(135deg, var(--clr-turquoise) 0%, #4A7275 100%); 
  color: var(--clr-light); 
}
.bg-dark { 
  background: var(--clr-dark); 
  color: var(--clr-light); 
}
.bg-gold { 
  background: linear-gradient(135deg, var(--clr-gold) 0%, #A08456 100%); 
  color: var(--clr-light); 
}

/* Specific Components */
.quote-box {
  font-size: clamp(0.85rem, 1.6vw, 1.2rem);
  font-style: italic;
  color: var(--clr-gold);
  margin: 0.5rem 0;
  font-family: var(--font-head);
  font-weight: 200;
  line-height: 1.25;
}

.bg-dark .quote-box,
.bg-sage .quote-box,
.bg-turquoise .quote-box {
  color: var(--clr-light);
  opacity: 0.9;
}

/* Reflection Points */
.reflection-points {
  margin: 0.5rem 0;
  width: 100%;
}

.point {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.65rem, 1.1vw, 0.8rem);
  line-height: 1.3;
}

/* Philosophy List */
.philosophy-list {
  list-style: none;
  margin: 0.5rem 0;
  width: 100%;
}

.philosophy-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--clr-sage);
  color: var(--clr-warm-gray);
  font-size: clamp(0.65rem, 1.1vw, 0.8rem);
  line-height: 1.3;
}

/* Value List - Brand specific */
.value-list {
  list-style: none;
  margin: 1rem 0;
  text-align: left;
}

.value-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  color: var(--clr-light);
}

/* Process Elements */
.process-elements {
  margin: 1.5rem 0;
}

.process-elements p {
  font-size: clamp(1rem, 2vw, 1.4rem);
  margin: 0.8rem 0;
  font-family: var(--font-head);
  font-weight: 300;
  letter-spacing: 1px;
}

.big-text {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-family: var(--font-head);
  font-weight: 200;
  margin: 1rem 0;
  color: var(--clr-gold);
}

.bg-turquoise .big-text {
  color: var(--clr-light);
}

/* Stories */
.stories-container {
  margin: 1.5rem 0;
}

.stories-container p {
  margin: 1rem 0;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  line-height: 1.4;
  color: var(--clr-light);
}

.story-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--clr-light);
  text-decoration: none;
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--clr-gold);
  transition: all 0.3s ease;
}

.story-link:hover {
  color: var(--clr-gold);
  transform: translateY(-2px);
}

/* Portfolio Text */
.portfolio-text p {
  margin: 0.8rem 0;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  line-height: 1.4;
}

/* Investment Points */
.investment-points {
  margin: 1.5rem 0;
}

.investment-points p {
  margin: 1rem 0;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 1.4;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--clr-dark);
  color: var(--clr-light);
  text-decoration: none;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 30px;
  transition: all 0.3s ease;
  margin-top: 1rem;
  font-family: var(--font-head);
  cursor: pointer;
  border: none;
}

.bg-gold .cta-button {
  background: var(--clr-light);
  color: var(--clr-dark);
}

.cta-button:hover, .cta-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Modal - Brand specific form */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--clr-light);
  border-radius: 10px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--clr-dark);
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--clr-gold);
  transform: rotate(90deg);
}

.modal h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--clr-dark);
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: var(--clr-gold);
}

#contactForm button {
  background: var(--clr-gold);
  color: var(--clr-dark);
  border: none;
  padding: 1rem;
  border-radius: 5px;
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

#contactForm button:hover {
  background: var(--clr-sage);
  color: var(--clr-light);
  transform: translateY(-2px);
}

.form-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--clr-warm-gray);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 0.5rem;
  border-radius: 4px;
}

.lightbox-close:hover, .lightbox-close:focus {
  transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
  html, body {
    height: auto;
    overflow: auto;
  }

  :root {
    --header-h: 80px;
    --footer-h: 50px;
    --nav-width: 0;
    --image-width: 100%;
  }

  header {
    height: auto;
    min-height: 80px;
    flex-wrap: wrap;
    padding: 10px 15px;
  }

  .back-home {
    width: 35px;
    height: 35px;
  }

  .logo-img {
    height: 30px;
    position: static;
    transform: none;
    margin: 0 auto;
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 5px;
  }

  #scroll-area {
    position: relative;
    top: 0;
    height: auto;
    overflow: visible;
    padding-top: 90px;
    padding-bottom: 60px;
  }

  .panel {
    position: relative;
    transform: none;
    opacity: 1;
    height: auto;
    flex-direction: column;
    padding: 30px 15px;
    padding-left: 15px;
  }

  .global-nav-zone {
    position: relative;
    top: auto;
    transform: none;
    width: 100%;
    height: 40px;
    flex-direction: row;
    justify-content: center;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
  }

  .image-zone {
    width: 100%;
    order: 2;
  }

  .text-zone {
    order: 3;
    overflow-y: visible;
    padding: 2rem 1rem;
  }

  .panel-text {
    text-align: center;
    max-width: 100%;
  }
}