/* ============================================================
   SHARED.CSS — Sepiolite Mine (sepiolitemine.com)
   Common styles used across all pages.
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', system-ui, sans-serif; color: #1a1a1a; background: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== DESIGN TOKENS ===== */
:root {
  --gold:        #C9922A;
  --gold-light:  #E8B84B;
  --gold-dark:   #9A6E1A;
  --earth:       #1C1410;
  --earth-mid:   #2E2118;
  --earth-soft:  #3D2E1E;
  --stone:       #7A6652;
  --stone-light: #B8A898;
  --cream:       #F7F3EE;
  --cream-dark:  #EDE6DC;
  --white:       #FFFFFF;
  --text-dark:   #1C1410;
  --text-mid:    #4A3728;
  --text-light:  #7A6652;
  --accent-teal: #2C8C7A;
  --accent-blue: #1A5C8C;
  --transition:  0.35s cubic-bezier(0.4,0,0.2,1);
  --shadow-sm:   0 2px 8px rgba(28,20,16,0.08);
  --shadow-md:   0 8px 32px rgba(28,20,16,0.14);
  --shadow-lg:   0 24px 64px rgba(28,20,16,0.20);
  --radius:      12px;
  --radius-lg:   24px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--earth); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===== UTILITY ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; color: var(--earth); margin-bottom: 1.25rem; }
.section-title span { color: var(--gold); }
.section-title--white { color: var(--white); }
.section-subtitle { font-size: 1.05rem; line-height: 1.75; color: var(--text-light); max-width: 640px; }
.section-subtitle--white { color: rgba(255,255,255,0.72); }
.btn { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.85rem 2rem; border-radius: 6px; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; transition: var(--transition); font-family: 'Inter', system-ui, sans-serif; cursor: pointer; }
.btn-primary { background: var(--gold); color: var(--earth); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,146,42,0.38); }
.btn-outline { border: 2px solid rgba(255,255,255,0.45); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline-dark { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline-dark:hover { background: var(--gold); color: var(--earth); }
.btn-dark { background: var(--earth); color: var(--white); border: 2px solid var(--earth); }
.btn-dark:hover { background: var(--earth-mid); transform: translateY(-2px); }
.divider { width: 56px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 1.5rem; }
.divider--center { margin: 0 auto 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(28,20,16,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid rgba(201,146,42,0.15);
}
#navbar.scrolled {
  background: rgba(28,20,16,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
  border-bottom-color: rgba(201,146,42,0.25);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 60px; }
.nav-logo { display: flex; align-items: center; gap: 0.65rem; }
.nav-logo svg { width: 36px; height: 36px; flex-shrink: 0; transition: var(--transition); }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-main { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--white); line-height: 1; }
.nav-logo-sub { font-size: 0.58rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
#navbar .nav-links a { font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.75) !important; letter-spacing: 0.03em; transition: color 0.25s ease; position: relative; padding: 0.25rem 0; }
#navbar .nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--gold); border-radius: 1px; transition: width 0.3s ease; }
#navbar .nav-links a:hover { color: #FFFFFF !important; }
#navbar .nav-links a:hover::after { width: 100%; }
#navbar .nav-links a.active { color: #FFFFFF !important; }
#navbar .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

/* Language selector */
.lang-selector { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 0.3rem; padding: 0.35rem 0.6rem; border-radius: 4px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); cursor: pointer; transition: all 0.25s ease; }
.lang-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }
.lang-chevron { transition: transform 0.2s ease; }
.lang-btn[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }
.lang-dropdown { position: absolute; top: calc(100% + 6px); right: 0; background: rgba(28,20,16,0.97); border: 1px solid rgba(201,146,42,0.25); border-radius: 6px; padding: 0.35rem 0; min-width: 60px; display: none; box-shadow: 0 8px 24px rgba(0,0,0,0.4); z-index: 1001; list-style: none; margin: 0; }
.lang-dropdown.open { display: block; }
.lang-dropdown li { margin: 0; padding: 0; }
.lang-dropdown a { display: block; padding: 0.45rem 0.85rem; font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.65); letter-spacing: 0.06em; transition: all 0.2s ease; text-decoration: none; }
.lang-dropdown a:hover { color: var(--gold-light); background: rgba(201,146,42,0.1); }
.lang-dropdown li[aria-selected="true"] a { color: var(--gold); }
.nav-cta .btn-nav-cta { display: inline-flex; align-items: center; justify-content: center; padding: 0.6rem 1.75rem; border-radius: 6px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; font-family: 'Inter', system-ui, sans-serif; cursor: pointer; text-decoration: none !important; background: var(--gold) !important; color: var(--earth) !important; border: none; box-shadow: 0 2px 8px rgba(201,146,42,0.3); transition: all 0.3s ease; white-space: nowrap; line-height: 1.2; }
.nav-cta .btn-nav-cta:hover { background: var(--gold-light) !important; color: var(--earth) !important; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,146,42,0.45); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown */
.mobile-menu {
  display: none;
  background: rgba(28,20,16,0.98);
  border-top: 1px solid rgba(201,146,42,0.2);
  padding: 1.25rem 1.5rem 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu nav a {
  display: block; padding: 0.75rem 0.5rem;
  font-size: 0.92rem; font-weight: 500;
  color: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s ease;
}
.mobile-menu nav a:hover { color: var(--gold-light); }
.mobile-menu nav a.btn-nav-cta {
  margin-top: 0.75rem;
  background: var(--gold) !important; color: var(--earth) !important;
  border-radius: 6px; padding: 0.75rem 1rem; font-weight: 700;
  border-bottom: none; text-align: center;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar { padding: 0.75rem 0; background: var(--cream); border-bottom: 1px solid var(--cream-dark); margin-top: 60px; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--stone); }
.breadcrumb a { color: var(--stone); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--stone-light); font-size: 0.7rem; }
.breadcrumb .current { color: var(--earth); font-weight: 600; }

/* ===== FOOTER CTA ===== */
.footer-cta { padding: 4.5rem 0; background: var(--cream); }
.footer-cta h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--earth); margin-bottom: 1rem; }
.footer-cta p { color: var(--text-light); max-width: 560px; margin: 0 auto 2rem; line-height: 1.7; }
.footer-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== SITE FOOTER ===== */
.site-footer { background: var(--earth); color: rgba(255,255,255,0.65); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.65; margin: 1rem 0 1.25rem; color: rgba(255,255,255,0.55); }
.footer-logo { display: flex; align-items: center; gap: 0.65rem; }
.footer-logo svg { width: 36px; height: 36px; }
.footer-col h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.65); font-size: 0.85rem; transition: var(--transition); }
.footer-social a:hover { background: var(--gold); color: var(--earth); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.78rem; color: rgba(255,255,255,0.35); transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--gold); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE — SHARED COMPONENTS ===== */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta, .nav-sep { display: none !important; }
  .hamburger { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
