/* ========================================
   CABINET STOMATOLOGIC DR. IONESCU ALEXANDRU
   Global Stylesheet
   ======================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-deep: #0B3D6E;
  --blue-mid: #1565C0;
  --blue-light: #E8F1FB;
  --blue-accent: #2196F3;
  --white: #FFFFFF;
  --off-white: #F7FAFF;
  --text-dark: #0D1B2A;
  --text-mid: #3A5068;
  --text-light: #7A90A8;
  --border: #D6E4F5;
  --shadow: 0 4px 24px rgba(11,61,110,0.10);
  --shadow-lg: 0 12px 48px rgba(11,61,110,0.16);
  --radius: 16px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: var(--shadow); }

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 40px; height: 40px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 22px; height: 22px; fill: white; }
.nav-logo-text { line-height: 1.2; }
.nav-logo-text strong { display: block; font-size: 0.92rem; color: var(--blue-deep); font-weight: 600; }
.nav-logo-text span { font-size: 0.78rem; color: var(--text-light); }

.nav-links {
  display: flex; align-items: center; gap: 1.75rem; list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--text-mid); font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: var(--blue-mid); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--blue-mid); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--blue-mid); }

.nav-cta {
  background: var(--blue-mid); color: white !important;
  padding: 10px 22px; border-radius: 50px;
  font-weight: 600 !important; font-size: 0.88rem !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--blue-deep) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.nav-phone {
  display: flex; align-items: center; gap: 8px;
  color: var(--blue-deep) !important; font-weight: 600 !important;
}
.nav-phone svg { width: 16px; height: 16px; fill: var(--blue-mid); }
.nav-phone::after { display: none !important; }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 4px; flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--blue-deep);
  transition: var(--transition);
}

.mobile-menu {
  display: none; position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
  background: white; z-index: 99; padding: 2rem;
  flex-direction: column; gap: 0; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--text-dark); font-size: 1.05rem;
  font-weight: 500; padding: 1rem 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.mobile-menu .mob-cta {
  background: var(--blue-mid); color: white !important; text-align: center;
  justify-content: center; padding: 1rem; border-radius: 50px; border: none; margin-top: 1.5rem;
  font-weight: 600 !important;
}

/* ---- SECTIONS & LAYOUT ---- */
section { padding: 5rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--blue-deep); line-height: 1.2; margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem; color: var(--text-mid); font-weight: 300; line-height: 1.7;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-mid); color: white;
  padding: 14px 28px; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(21,101,192,0.35);
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21,101,192,0.4); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--blue-mid); color: var(--blue-mid);
  padding: 13px 26px; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition); background: white;
}
.btn-secondary:hover { background: var(--blue-light); }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--blue-deep);
  padding: 14px 32px; border-radius: 50px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: all var(--transition); box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 130px 2rem 5rem;
  background: linear-gradient(135deg, var(--off-white) 0%, #EAF3FF 50%, #DDEEFF 100%);
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(33,150,243,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--border);
  border-radius: 50px; padding: 6px 18px; font-size: 0.82rem;
  color: var(--blue-mid); font-weight: 600; margin-bottom: 1.5rem;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem); color: var(--blue-deep);
  line-height: 1.15; margin-bottom: 1.25rem;
}
.page-hero h1 em { font-style: italic; color: var(--blue-accent); }
.page-hero p {
  font-size: 1.05rem; color: var(--text-mid); max-width: 560px;
  margin: 0 auto 2rem; font-weight: 300; line-height: 1.7;
}
.page-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
footer {
  background: #071929; color: rgba(255,255,255,0.65);
  padding: 3.5rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand strong { display: block; color: white; font-size: 1rem; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 300px; margin-top: 0.5rem; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-logo-icon {
  width: 36px; height: 36px; 
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.footer-logo-icon svg { width: 18px; height: 18px; fill: white; }

.footer-col h4 {
  color: white; font-size: 0.82rem; font-weight: 700;
  margin-bottom: 1.25rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.55); font-size: 0.85rem;
  text-decoration: none; margin-bottom: 0.7rem; transition: color var(--transition);
}
.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 1.75rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: 0.82rem;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  section { padding: 3.5rem 1.25rem; }
  nav { padding: 0 1.25rem; }
  .page-hero { padding: 110px 1.25rem 3.5rem; }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
