/* ============================================================
   OlumaDent — style.css (nucleu)
   Design system + componente globale (header, nav, footer,
   butoane, bară mobilă, cookie, progres). Scris de mână.
   Componentele de pagină: components.css
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  /* Culori */
  --bg:        #FBF8F4;  /* alb cald */
  --surface:   #F2EBE1;  /* nisip */
  --surface-2: #EFE6D9;  /* nisip mai cald */
  --accent:    #7C9A82;  /* salvie */
  --accent-ink:#5e7a64;  /* salvie închis (text pe deschis) */
  --accent-2:  #E8C9B8;  /* piersică pal */
  --text:      #2E2A26;  /* maro închis */
  --muted:     #5b554d;  /* text secundar */
  --muted-2:   #7a7368;  /* text terțiar */
  --line:      #E4D9C9;  /* contur cald */
  --line-soft: #ECE3D6;
  --wa:        #25D366;  /* WhatsApp */
  --dark:      #2E2A26;

  /* Tipografie */
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Formă & mișcare */
  --maxw:   1180px;
  --gutter: 24px;
  --radius: 18px;
  --radius-lg: 30px;
  --ease:   cubic-bezier(.16, .84, .44, 1);
  --shadow-soft: 0 20px 50px -30px rgba(46, 42, 38, .5);
}

/* ── Reset & bază ──────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-anim] { animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
img { height: auto; }
input, textarea, select, button { font-family: inherit; }
::selection { background: var(--accent-2); color: var(--text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Keyframes din design */
@keyframes od-breathe  { 0%,100% { transform: translate(0,0) scale(1); }   50% { transform: translate(0,-14px) scale(1.05); } }
@keyframes od-breathe2 { 0%,100% { transform: translate(0,0) scale(1); }   50% { transform: translate(10px,12px) scale(1.06); } }
@keyframes od-fadeup   { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes od-draw     { from { stroke-dashoffset: 1400; }                 to { stroke-dashoffset: 0; } }
@keyframes od-float    { 0%,100% { transform: translateY(0); }             50% { transform: translateY(-9px); } }

/* ── Accesibilitate ────────────────────────────────────────── */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--text); color: #fff; padding: 10px 16px;
  border-radius: 10px; text-decoration: none; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ── Bară de progres ───────────────────────────────────────── */
.scroll-progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 90; transition: transform .12s linear; pointer-events: none;
}

/* ── Butoane ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; text-decoration: none; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn svg { flex: none; }

.btn-sm  { padding: 10px 16px; font-size: 14px; }
.btn-lg  { padding: 15px 26px; font-size: 16px; }
.btn-block { flex: 1; padding: 14px; border-radius: 14px; font-size: 15.5px; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -14px rgba(124,154,130,1); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -14px rgba(124,154,130,1); }

.btn-secondary { background: #fff; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { transform: translateY(-3px); border-color: var(--accent); }

.btn-call { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -12px rgba(124,154,130,.9); }
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(124,154,130,1); }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px -12px rgba(37,211,102,.9); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(37,211,102,1); }

.btn.is-loading { opacity: .7; pointer-events: none; }

/* ── Header & navigație ────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 248, 244, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(46, 42, 38, .07);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 23px; letter-spacing: -.01em; }

.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-link {
  position: relative; text-decoration: none; font-size: 15px; font-weight: 500;
  color: #4a443d; transition: color .2s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link.is-active { font-weight: 600; color: var(--text); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 4px; }

.nav-mobile-actions { display: none; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 0; cursor: pointer; text-decoration: none;
}
.icon-btn-wa { border-radius: 999px; background: var(--wa); color: #fff; }
.icon-btn-menu { border-radius: 13px; background: var(--surface); border: 1px solid var(--line-soft); }

.mobile-menu { border-top: 1px solid rgba(46,42,38,.07); background: var(--bg); padding: 14px var(--gutter) 22px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-link {
  text-decoration: none; font-size: 17px; font-weight: 500; padding: 12px 6px;
  border-bottom: 1px solid rgba(46,42,38,.06); color: var(--text);
}
.mobile-link:last-child { border-bottom: 0; }
.mobile-link.is-active { color: var(--accent); font-weight: 600; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: #d8d2c8; padding: clamp(48px, 7vw, 80px) 0 30px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(216,210,200,.16);
}
.footer-about { max-width: 300px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-name { font-family: var(--font-head); font-weight: 600; font-size: 21px; color: var(--bg); }
.footer-tagline { font-size: 14px; line-height: 1.6; color: #aaa49a; margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-heading {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #8e887e; margin-bottom: 5px;
}
.footer-link { color: #d8d2c8; text-decoration: none; font-size: 14.5px; transition: color .2s var(--ease); }
.footer-link:hover { color: #fff; }
.footer-text { color: #aaa49a; font-size: 14.5px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 13px; color: #8e887e;
}
.footer-legal { display: flex; gap: 20px; }
.footer-link-sm { color: #8e887e; text-decoration: none; transition: color .2s var(--ease); }
.footer-link-sm:hover { color: #d8d2c8; }
.footer-gdpr { font-size: 12px; color: #6f6a61; margin: 18px 0 0; line-height: 1.6; max-width: 680px; }

/* ── Bară fixă mobilă ──────────────────────────────────────── */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(251,248,244,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(46,42,38,.1);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}

/* ── Cookie notice ─────────────────────────────────────────── */
.cookie-banner {
  position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 80;
  max-width: 540px; margin-left: auto;
  background: var(--dark); color: #f2ede4;
  padding: 16px 18px; border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.5);
  display: flex; align-items: center; gap: 14px;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-text { font-size: 13.5px; line-height: 1.55; margin: 0; color: #e6e0d6; }
.cookie-text a { color: #fff; text-decoration: underline; }
.cookie-banner .btn { flex: none; white-space: nowrap; }

/* ── Comutare desktop ⇄ mobil (hamburger sub 980px) ────────── */
@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .nav-mobile-actions { display: flex; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 72px; } /* spațiu pentru bara fixă */
  .cookie-banner { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (min-width: 981px) {
  .mobile-menu { display: none; }
}
@media (max-width: 540px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner .btn { width: 100%; }
}
