/* ===================================
   SOLIS FOODS — COMMON STYLES
   Shared CSS for all pages
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&family=Caveat:wght@700&display=swap');

/* === CSS VARIABLES === */
:root {
  --gold: #D4A853;
  --gold-light: #F0C97A;
  --gold-dark: #A87830;
  --brown: #3E1F05;
  --brown-mid: #7B4214;
  --cream: #FDF6E3;
  --cream-dark: #F5E6C0;
  --white: #FFFFFF;
  --dark: #1A0A00;
  --text: #3D2000;
  --text-light: #7A5430;
  --accent-red: #C0392B;
  --accent-green: #27AE60;
  --shadow: rgba(62, 31, 5, 0.15);
  --shadow-strong: rgba(62, 31, 5, 0.3);
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-hand: 'Caveat', cursive;
  --radius: 20px;
  --radius-lg: 32px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Section spacing for maintainability */
  --section-gap: 4px;
  --section-padding-top: 4rem;
  --section-padding-bottom: 4rem;
}

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* === CUSTOM CURSOR === */
.cursor {
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.3s;
  mix-blend-mode: multiply;
  -webkit-mix-blend-mode: multiply;
  will-change: transform;
}

.cursor-follower {
  width: 36px; height: 36px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s, height 0.3s, border-color 0.3s;
  opacity: 0.7;
}

body:hover .cursor { opacity: 1; }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 5%;
  display: flex;
  align-items: center;
  gap: 2rem;
  background: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(253, 246, 227, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px var(--shadow);
  padding: 0.8rem 5%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brown);
}

.logo-icon { font-size: 2px; }

.logo { height: 50px; width: 100px; }

@media (max-width: 768px) {
  .logo { height: 35px; width: 70px; }
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  margin-left: auto;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-bottom: 3px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--gold-dark); }
.nav-link.active::after { width: 100% !important; }

.nav-cta {
  background: var(--brown);
  color: var(--cream);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-strong);
}

/* === LANGUAGE SELECTOR === */
.language-selector {
  display: flex;
  align-items: center;
}

#languageSelect {
  padding: 0.5rem 1rem;
  border: 2px solid var(--gold);
  border-radius: 50px;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233E1F05' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2.2rem;
}

#languageSelect:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
}

#languageSelect:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

#languageSelect option {
  background: var(--cream);
  color: var(--brown);
  font-weight: 500;
  padding: 0.5rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
}

.hamburger span {
  width: 100%;
  height: 2.5px;
  background: var(--brown);
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* === MOBILE MENU === */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(253, 246, 227, 0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 1.5rem;
  z-index: 999;
  box-shadow: 0 8px 32px var(--shadow);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.m-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.m-link:hover {
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold-dark);
}

/* === BUTTONS === */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--brown);
  color: var(--cream);
  box-shadow: 0 4px 20px rgba(62, 31, 5, 0.2);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--brown);
  border: 2px solid var(--brown);
}

.btn-ghost:hover {
  background: var(--brown);
  color: var(--cream);
}

.btn-secondary {
  background: var(--gold);
  color: var(--brown);
  padding: 0.7rem 1.6rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-secondary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* === BACK TO TOP === */
#backTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--shadow-strong);
  font-size: 1.2rem;
}

#backTop.visible {
  opacity: 1;
  visibility: visible;
}

#backTop:hover {
  background: var(--gold-dark);
  transform: translateY(-5px);
}

/* === REVEAL ANIMATIONS === */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 0 5%;
}

.section-tag {
  display: inline-block;
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold-dark);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--brown);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-title .gold {
  color: var(--gold);
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  body[dir='rtl'] .hamburger {
    margin-left: 0;
    margin-right: auto;
  }

  body[dir='rtl'] .nav-links {
    margin-left: 0;
    margin-right: auto;
  }

  body[dir='rtl'] #languageSelect {
    background-position: left 0.7rem center;
    padding-left: 2.2rem;
    padding-right: 1rem;
  }
}
