/* ═══════════════════════════════════════════════
   global.css — Bütün səhifələrdə ortaq stillər
   Davines.az
═══════════════════════════════════════════════ */

/* ─── RESET & ROOT ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #ffffff;
  --warm:     #f5f5f5;
  --sand:     #e0e0e0;
  --stone:    #999999;
  --bark:     #555555;
  --espresso: #1a1a1a;
  --accent:   #1a1a1a;
  --green:    #1a1a1a;
  --white:    #ffffff;
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'Montserrat', system-ui, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--sans); background: var(--cream); color: var(--espresso); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ─── HEADER & NAV ────────────────────────────────────────────── */
header { position: sticky; top: 0; z-index: 100; background: var(--cream); border-bottom: 1px solid var(--warm); }

nav {
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px; height: 72px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 32px;
}

.nav-logo {
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  letter-spacing: .06em; color: var(--espresso); text-transform: lowercase;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 13px; letter-spacing: .02em; color: var(--bark);
  font-weight: 400; transition: color .2s; white-space: nowrap;
}
.nav-links a:hover  { color: var(--espresso); }
.nav-links a.active { color: var(--espresso); font-weight: 500; }

.nav-actions { display: flex; align-items: center; gap: 20px; justify-self: end; }
.nav-actions > button,
.nav-actions > a {
  background: none; border: none; cursor: pointer;
  font-size: 12px; letter-spacing: .06em; color: var(--bark);
  font-family: var(--sans); transition: color .2s;
  position: relative; display: inline-flex; align-items: center;
}
.nav-actions > button:hover,
.nav-actions > a:hover { color: var(--espresso); }

.nav-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--espresso); color: var(--cream);
  font-size: 9px; font-weight: 600; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); letter-spacing: 0;
}

.lang-switch { display: flex; align-items: center; gap: 2px; background: var(--warm); border-radius: 20px; padding: 3px; }
.lang-switch a {
  font-size: 11px; letter-spacing: .1em; font-weight: 500;
  color: var(--stone); padding: 5px 12px; border-radius: 20px;
  transition: background .2s, color .2s; cursor: pointer;
}
.lang-switch a.active { background: var(--espresso); color: var(--cream); }
.lang-switch a:hover:not(.active) { color: var(--espresso); }

/* ─── BREADCRUMB ──────────────────────────────────────────────── */
.breadcrumb {
  max-width: 1400px; margin: 0 auto; padding: 16px 40px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--stone); letter-spacing: .04em; flex-wrap: wrap;
}
.breadcrumb a { color: var(--stone); transition: color .2s; }
.breadcrumb a:hover { color: var(--espresso); }
.breadcrumb-sep { color: var(--sand); }
.breadcrumb span { color: var(--bark); }

/* ─── SECTION SHARED ──────────────────────────────────────────── */
.section { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.stripe      { background: var(--warm);     padding: 72px 0; overflow: hidden; }
.stripe-alt  { background: var(--cream);    padding: 72px 0; overflow: hidden; }
.stripe-dark { background: var(--espresso); padding: 56px 0; overflow: hidden; }

.section-label {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--stone); display: block; margin-bottom: 10px;
}
.section-title {
  font-family: var(--serif); font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400; line-height: 1.15; color: var(--espresso);
}
.section-title em { font-style: italic; }

/* ─── NEWSLETTER ──────────────────────────────────────────────── */
.nl-section {
  position: relative; overflow: hidden;
  background: var(--warm); padding: 72px 40px;
  border-top: 1px solid var(--sand);
}
.nl-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 80% at 75% 50%, rgba(180,160,130,.1) 0%, transparent 65%),
              radial-gradient(ellipse 40% 60% at 15% 80%, rgba(100,120,90,.07) 0%, transparent 60%);
  pointer-events: none;
}
.nl-inner {
  position: relative; max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.nl-title {
  font-family: var(--serif); font-size: clamp(32px, 4vw, 52px);
  font-weight: 300; color: var(--espresso); line-height: 1.1; margin-bottom: 12px;
}
.nl-title em { font-style: italic; color: var(--bark); }
.nl-right { display: flex; flex-direction: column; }
.nl-form {
  display: flex; border: 1px solid var(--sand); border-radius: 3px;
  overflow: hidden; background: var(--cream); margin-bottom: 14px;
  transition: border-color .25s;
}
.nl-form:focus-within { border-color: var(--stone); }
.nl-form input {
  flex: 1; border: none; background: transparent;
  font-family: var(--sans); font-size: 13px; padding: 15px 20px;
  color: var(--espresso); outline: none;
}
.nl-form input::placeholder { color: var(--stone); }
.nl-form button {
  background: var(--espresso); color: var(--cream); border: none;
  padding: 15px 28px; font-family: var(--sans); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .2s;
}
.nl-form button:hover { background: var(--bark); }
.nl-note { font-size: 11px; color: var(--stone); line-height: 1.6; }
.nl-note a { color: var(--bark); border-bottom: 1px solid var(--sand); text-decoration: underline; text-underline-offset: 2px; }
.nl-note a:hover { color: var(--espresso); }

/* ─── FOOTER ──────────────────────────────────────────────────── */
footer { background: var(--espresso); color: var(--sand); padding: 60px 0 32px; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(212,201,184,.12); margin-bottom: 28px;
}
.footer-contact-block { margin-bottom: 12px; }
.contact-label {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(212,201,184,.5); margin-bottom: 2px; font-weight: 400;
}
.contact-value { font-size: 14px; color: var(--stone); font-weight: 300; line-height: 1.5; }
.contact-value a { color: var(--stone); transition: color .2s; }
.contact-value a:hover { color: var(--cream); }
.footer-brand .nav-logo { color: var(--cream); font-size: 22px; display: block; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: var(--stone); max-width: 240px; font-weight: 300; margin-bottom: 20px; }
.footer-col h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); margin-bottom: 16px; font-weight: 500; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: var(--stone); font-weight: 300; transition: color .2s; }
.footer-col ul li a:hover { color: var(--cream); }
.footer-bottom { display: flex; align-items: center; justify-content: flex-end; }
.footer-ayvus { font-size: 11px; color: var(--stone); font-weight: 300; }
.footer-ayvus a { color: var(--stone); font-weight: 500; transition: color .2s; }
.footer-ayvus a:hover { color: var(--cream); }

/* ─── WHATSAPP FLOAT ──────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; width: 52px; height: 52px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.35); z-index: 999;
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,.45); }
.wa-float svg { color: #fff; }

/* ─── TOAST ───────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--espresso); color: var(--cream); padding: 12px 28px;
  border-radius: 3px; font-size: 12px; letter-spacing: .06em; opacity: 0;
  transition: opacity .3s, transform .3s; pointer-events: none; z-index: 999; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── ANNOUNCEMENT BAR ────────────────────────────────────────── */
.bar {
  background: var(--green); color: var(--cream); text-align: center;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 20px; font-family: var(--sans); font-weight: 400;
}

/* ─── LINK UNDERLINE ──────────────────────────────────────────── */
.link-underline {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bark); border-bottom: 1px solid var(--sand);
  padding-bottom: 2px; transition: border-color .2s, color .2s;
}
.link-underline:hover { color: var(--accent); border-color: var(--accent); }

/* ─── PAGE TITLE (shared simple pages) ───────────────────────── */
.page-title-wrap { max-width: 1400px; margin: 0 auto; padding: 0 40px; margin-top: 36px; margin-bottom: 24px; }
.page-title-wrap h1 { font-family: var(--serif); font-size: 36px; font-weight: 400; color: var(--espresso); line-height: 1.1; }

/* ─── HAMBURGER BUTTON ────────────────────────────────────────── */
.nav-burger {
  display: none !important;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  width: 36px; height: 36px; flex-shrink: 0;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px; background: var(--espresso);
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE MENU ─────────────────────────────────────────────── */
.mobile-menu-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 200; opacity: 0; transition: opacity .3s;
}
.mobile-menu-overlay.active { display: block; opacity: 1; }

.mobile-menu {
  position: fixed; top: 0; right: -100%; width: min(320px, 85vw); height: 100dvh;
  background: var(--cream); z-index: 201;
  display: flex; flex-direction: column;
  transition: right .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 24px rgba(0,0,0,.1);
}
.mobile-menu.open { right: 0; }

.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 68px; border-bottom: 1px solid var(--warm); flex-shrink: 0;
}
.mobile-menu-close {
  background: none; border: none; cursor: pointer; color: var(--bark);
  display: flex; align-items: center; justify-content: center;
  padding: 4px; transition: color .2s;
}
.mobile-menu-close:hover { color: var(--espresso); }

.mobile-menu-links {
  flex: 1; overflow-y: auto; padding: 12px 0;
}
.mobile-menu-links li a {
  display: block; padding: 15px 24px;
  font-size: 15px; font-weight: 400; color: var(--bark);
  letter-spacing: .02em; transition: color .2s, background .2s;
  border-bottom: 1px solid var(--warm);
}
.mobile-menu-links li:last-child a { border-bottom: none; }
.mobile-menu-links li a:hover,
.mobile-menu-links li a.active { color: var(--espresso); background: var(--warm); }

.mobile-menu-footer {
  padding: 20px 24px; border-top: 1px solid var(--warm); flex-shrink: 0;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-burger { display: flex !important; }
  .nav-lang-desktop { display: none !important; }
  nav { grid-template-columns: auto 1fr; padding: 0 16px; }
  .nav-actions { justify-self: end; margin-left: auto; }
  .breadcrumb { display: none; }
  .nl-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .page-title-wrap { padding: 0 24px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  nav { padding: 0 16px; height: 60px; }
  .section { padding: 0 16px; }
  .stripe { padding: 44px 0; }
  .stripe-alt { padding: 40px 0 44px; }
  .stripe-dark { padding: 40px 0; }
  .breadcrumb { padding: 12px 16px; }
  .nl-section { padding: 44px 16px; }
  .nl-form button { padding: 15px 18px; font-size: 9px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { padding: 0 16px; }
  .footer-col h4 { margin-bottom: 10px; }
  .page-title-wrap { padding: 0 16px; margin-top: 24px; }
  .page-title-wrap h1 { font-size: 28px; }
}
