:root {
  --brand: #0067c7;
  --brand-dark: #073b73;
  --ink: #172033;
  --muted: #5f6b7a;
  --line: #d9e3ee;
  --soft: #f4f8fb;
  --accent: #1f8a70;
  --warn: #b26b00;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

a {
  color: var(--brand);
}

/* ── MAIN NAVBAR (same as index.html) ── */
.header-nightsky .navbar {
  position: fixed;
  top: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, .9);
  padding: 0;
  margin-bottom: 0;
  width: 100%;
  border: none;
  border-radius: 0;
}
.header-nightsky .navbar::after { content: ""; display: table; clear: both; }

.header-nightsky .navbar-header { display: flex; align-items: center; flex-direction: row-reverse; }
.header-nightsky .navbar-brand {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 15px;
  margin: 0;
  line-height: 30px;
  white-space: nowrap;
  flex: 1;
  justify-content: center;
}
.header-nightsky .navbar-brand:hover { color: #0073e6; }
.header-nightsky .navbar-brand span { color: #0073e6; }

.header-nightsky .navbar-toggle {
  background-color: transparent;
  margin: 13px 15px;
  border: 1px solid #0073e6;
  padding: 9px 10px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.header-nightsky .navbar-toggle .icon-bar {
  background-color: #fff;
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  transition: all 0.3s ease;
}
.header-nightsky .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; }
.header-nightsky .navbar-toggle.open .icon-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header-nightsky .navbar-toggle.open .icon-bar:nth-child(2) { opacity: 0; }
.header-nightsky .navbar-toggle.open .icon-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header-nightsky #myNavbar { display: none; }
.header-nightsky .navbar-nav {
  list-style: none;
  padding: 0;
  margin: 5px 0;
}
.header-nightsky .navbar-nav > li > a {
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  display: block;
  padding: 15px;
  line-height: 20px;
  border-radius: 10px;
}
.header-nightsky .navbar-nav > li > a:hover,
.header-nightsky .navbar-nav > li > a:focus { color: #0073e6; background-color: transparent; }

.nav-item-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.95);
  min-width: 200px;
  padding: 10px 0;
  border-radius: 8px;
  border: 1px solid #0073e6;
  display: none;
  flex-direction: column;
  z-index: 1000;
}
.nav-item-dropdown:hover .dropdown-menu { display: flex; }
.dropdown-menu a {
  padding: 10px 20px !important;
  color: #fff !important;
  font-size: 15px !important;
  text-decoration: none !important;
}
.dropdown-menu a:hover { background: #0073e6; }

@media(min-width: 768px) {
  .header-nightsky .navbar-toggle { display: none; }
  .header-nightsky .navbar-header { float: left; display: block; }
  .header-nightsky .navbar-brand { flex: unset; justify-content: flex-start; }
  .header-nightsky #myNavbar { display: block !important; }
  .header-nightsky .navbar-collapse { width: auto; border-top: 0; box-shadow: none; }
  .header-nightsky .navbar-right { float: right !important; margin-right: -15px; display: block; }
  .header-nightsky .navbar-nav > li { float: left; margin-right: 10px; }
}
@media(max-width: 767px) {
  .dropdown-menu {
    position: static;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    display: flex;
    margin-left: 15px;
  }
}

/* ── 3-STATE MOBILE MENU ── */
.nav-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1004;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-container {
  position: fixed;
  top: 0; right: 0; height: 100%;
  background: #ffffff;
  z-index: 1005;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(0, 115, 230, 0.1);
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
}

.mobile-nav-container.nav-state-0 {
  transform: translateX(100%);
  width: 0;
  box-shadow: none;
  border-left: none;
}

.mobile-nav-container.nav-state-1 {
  transform: translateX(0);
  width: 60px;
}

.mobile-nav-container.nav-state-2 {
  transform: translateX(0);
  width: 85%;
  max-width: 320px;
}

.nav-state-2 ~ .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* FAB Button (State 0 access) */
.mobile-menu-fab {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #0073e6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1003;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,115,230,0.4);
  transition: all 0.3s ease;
}

.mobile-menu-fab svg {
  width: 24px !important; height: 24px !important; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none;
}

/* Hide old hamburger on mobile when new menu is active */
@media(max-width: 767px) {
  .header-nightsky .navbar-toggle { display: none !important; }
  .header-nightsky #myNavbar { display: none !important; }
}

@media(min-width: 768px) {
  .mobile-menu-fab, .mobile-nav-container, .nav-backdrop { display: none !important; }
}

.mobile-nav-header {
  padding: 15px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  min-width: 320px;
  background: #f8faff;
}

.mobile-nav-brand {
  color: #333; font-weight: bold; font-size: 18px; display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.mobile-nav-brand img { width: 30px !important; height: 30px !important; border-radius: 4px;}
.mobile-nav-brand span { color: #0073e6;}

.nav-close-btn {
  background: transparent; border: none; color: #333; cursor: pointer; padding: 5px;
}
.nav-close-btn svg { width: 24px !important; height: 24px !important; stroke: currentColor; stroke-width: 2; }

.mobile-nav-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  min-width: 320px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  padding: 15px 18px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  border-left: 3px solid transparent;
}
.mobile-nav-item:hover, .mobile-nav-item:active {
  background: #f0f7ff;
  border-left-color: #0073e6;
  color: #0073e6;
}

.mobile-nav-icon {
  width: 24px !important; height: 24px !important;
  margin-right: 15px;
  stroke: #0073e6; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.mobile-nav-text {
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s;
}

.nav-state-1 .mobile-nav-text, 
.nav-state-1 .mobile-nav-header,
.nav-state-1 .mobile-nav-dropdown {
  opacity: 0;
  pointer-events: none;
}

.nav-state-1 .mobile-nav-item {
  padding: 15px 18px;
}

.mobile-nav-dropdown {
  background: #fcfcfc;
  padding: 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-nav-dropdown-item {
  display: block;
  padding: 12px 25px 12px 60px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.mobile-nav-dropdown-item:hover { color: #0073e6; background: #f0f7ff; text-decoration: none; }

/* Handle for swiping indication */
.mobile-nav-handle {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 40px;
  background: #ccc;
  border-radius: 2px;
}

/* Keep old .site-nav hidden (unused now) */
.site-nav { display: none; }

.hero {
  background: linear-gradient(105deg, rgba(7, 59, 115, 0.93), rgba(0, 103, 199, 0.72)), url("../images/cabinet-medical-oftalmologie-braila-dr-vlad-cristina-optica-medicala.jpg") center/cover;
  color: var(--white);
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 120px 20px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9f3e4;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--white);
  color: var(--brand-dark);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.62);
  color: var(--white);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.hero-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
}

.hero-panel dl {
  margin: 0;
}

.hero-panel dt {
  margin-top: 14px;
  font-weight: 800;
}

.hero-panel dd {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 56px 20px;
}

.section.alt {
  background: var(--soft);
}

.container {
  max-width: 1160px;
  margin: 0 auto;
}

.section-title {
  max-width: 800px;
  margin: 0 0 28px;
}

.section-title h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: start;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.info-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-dark);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-link {
  display: block;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.service-link strong {
  display: block;
  margin-bottom: 7px;
  color: var(--brand-dark);
}

.service-link span {
  color: var(--muted);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-item {
  background: var(--white);
  padding: 18px;
}

.trust-item strong {
  display: block;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
}

.faq details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.nap {
  background: var(--brand-dark);
  color: var(--white);
  padding: 34px 20px;
}

.nap-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.nap p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.footer {
  padding: 28px 20px;
  background: #101722;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.footer a {
  color: var(--white);
}

@media (max-width: 860px) {
  .nav-inner,
  .hero-inner,
  .two-col,
  .nap-inner {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    display: grid;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-inner {
    padding-top: 52px;
  }

  .service-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 8px;
  }

  .nav-links a {
    flex: 1 1 auto;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .nav-links .phone-link {
    flex: 1 1 100%;
    text-align: center;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 42px 16px;
  }
}

/* ── STICKY CONTACT BUTTONS ── */
.sticky-contact {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}
.sticky-btn:hover { transform: scale(1.05); color: #fff; }
.sticky-btn svg { width: 20px; height: 20px; }
.whatsapp-btn { background: #075e54; }
.phone-btn { background: #0073e6; }

@media(max-width: 768px) {
  .sticky-contact {
    bottom: 0; right: 0; left: 0;
    flex-direction: row;
    gap: 0;
    border-radius: 0;
  }
  .sticky-btn {
    flex: 1;
    border-radius: 0;
    min-height: 46px;
    padding: 10px 8px;
    font-size: 14px;
  }
}
