/* ============================================================
   LAYOUT — container, header, footer, sections
   ============================================================ */

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}
@media (min-width: 1024px) {
  .container {
    padding-left: var(--container-px-lg);
    padding-right: var(--container-px-lg);
  }
}

/* ── TOP BAR ─────────────────────────────────────────────── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--accent);
  color: var(--accent-foreground);
  padding: 0.375rem 0;
}
.top-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.75rem;
}
@media (min-width: 640px) {
  .top-bar-inner {
    flex-direction: row;
    gap: 0.5rem;
    font-size: 0.875rem;
  }
}
.top-bar-inner .phone-icon {
  width: 1rem;
  height: 1rem;
}
.top-bar-inner a {
  color: var(--accent-foreground);
  font-weight: 400;
}
.top-bar-inner a:hover {
  text-decoration: underline;
}

/* ── SITE HEADER ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 40;
  top: 2.25rem; /* below top-bar (mobile) */
  background-color: color-mix(in oklch, var(--primary) 95%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: box-shadow 0.3s;
}
@media (min-width: 640px) {
  .site-header { top: 2rem; }
}
.site-header.scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-logo img {
  width: 3rem;
  height: 3rem;
}
@media (min-width: 768px) {
  .site-logo img { width: 3.5rem; height: 3.5rem; }
}
.site-logo-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-foreground);
}
@media (min-width: 768px) {
  .site-logo-name { font-size: 1.5rem; }
}

/* Desktop Nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
}
.desktop-nav a,
.desktop-nav button:not(.btn-book-header) {
  color: color-mix(in oklch, var(--primary-foreground) 90%, transparent);
  font-size: 0.875rem;
  transition: color 0.15s;
  background: none;
  border: none;
  padding: 0;
}
.desktop-nav a:hover,
.desktop-nav button:not(.btn-book-header):hover {
  color: var(--primary-foreground);
}
.desktop-nav a:active,
.desktop-nav button:not(.btn-book-header):active {
  color: var(--primary-foreground);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}
.lang-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  position: relative;
  color: color-mix(in oklch, var(--primary-foreground) 70%, transparent);
}
.lang-btn:hover {
  background-color: rgba(255,255,255,0.2);
  color: var(--primary-foreground);
}
.lang-badge {
  position: absolute;
  bottom: -0.25rem;
  right: -0.25rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--primary-foreground);
  background-color: rgba(255,255,255,0.2);
  border-radius: 9999px;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-dropdown {
  position: absolute;
  top: 2.5rem;
  right: 0;
  width: 8rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  z-index: 100;
  display: none;
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  color: #334155;
  transition: background 0.1s;
}
.lang-option:hover { background: #f8fafc; }
.lang-option.active { background: #f0fdf9; color: #0f766e; font-weight: 600; }
.lang-option .check { width: 0.75rem; height: 0.75rem; color: #0d9488; }

/* ── TOP BAR UTILITIES ───────────────────────────────────── */
.topbar-phone-label { display: flex; align-items: center; gap: 0.5rem; }
.topbar-label { font-weight: 400; }
.topbar-phones { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.mobile-lang-wrap { padding: 0.5rem 0; }
.mobile-nav .lang-btn { color: var(--primary-foreground); }
#hamburger-close { display: none; }
.nav-active { color: var(--accent) !important; }

/* Book Appointment button */
.btn-book-header {
  background-color: var(--accent);
  color: var(--accent-foreground);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s;
  cursor: pointer;
}
.btn-book-header:hover {
  background-color: color-mix(in oklch, var(--accent) 90%, black);
}

/* Hamburger */
.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  background: none;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
}
@media (min-width: 1024px) {
  .hamburger-btn { display: none; }
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.5rem;
  animation: slideDown 0.3s ease;
}
.mobile-nav.open { display: flex; }
.mobile-nav a,
.mobile-nav button {
  color: color-mix(in oklch, var(--primary-foreground) 90%, transparent);
  font-size: 0.9375rem;
  text-align: left;
  padding: 0.5rem 0;
  background: none;
  border: none;
  transition: color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav button:hover {
  color: var(--primary-foreground);
}
.mobile-nav .btn-book-header {
  width: 100%;
  text-align: center;
  padding: 0.75rem;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-0.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Page offset to avoid header overlap */
.page-offset {
  padding-top: calc(5rem + 2.25rem);
}
@media (min-width: 640px) {
  .page-offset { padding-top: calc(5rem + 2rem); }
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 3rem 0;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-brand-logo img {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
}
.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
}
.footer-desc {
  color: color-mix(in oklch, var(--primary-foreground) 80%, transparent);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-contact-info {
  font-size: 0.875rem;
  color: color-mix(in oklch, var(--primary-foreground) 80%, transparent);
  line-height: 1.8;
}
.footer-contact-info a:hover { color: var(--accent); }
.footer-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: color-mix(in oklch, var(--primary-foreground) 80%, transparent);
}
.footer-links a,
.footer-links button {
  color: color-mix(in oklch, var(--primary-foreground) 80%, transparent);
  background: none;
  border: none;
  text-align: left;
  padding: 0;
  font-size: 0.9375rem;
  transition: color 0.15s;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--accent); }
.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: color-mix(in oklch, var(--primary-foreground) 80%, transparent);
}
.footer-hours-row {
  display: flex;
  justify-content: space-between;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid color-mix(in oklch, var(--primary-foreground) 20%, transparent);
  text-align: center;
  font-size: 0.875rem;
  color: color-mix(in oklch, var(--primary-foreground) 80%, transparent);
}
.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.footer-bottom-links a { transition: color 0.15s; }
.footer-bottom-links a:hover { color: var(--accent); }
.footer-copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.footer-copyright img {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
}

/* ── SECTIONS ────────────────────────────────────────────── */
section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 1024px) {
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
.section-header {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 4rem;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
@media (min-width: 1024px) {
  .section-title { font-size: 3rem; }
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  text-wrap: balance;
}

/* Grids */
.grid-2 {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
.grid-3 {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.grid-4 {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
