:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #eef4fb;
  --primary: #1261A0;
  --accent: #F5C400;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(2, 12, 27, 0.08), 0 2px 8px rgba(2, 12, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
}

/* Load Google Fonts once */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Merriweather:wght@400;700&display=swap");

/* Global font setup */
body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fafafa;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Merriweather", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

footer {
  background: var(--primary);
  color: #fff;
  margin-top: 2rem;
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
  }
}

.footer-nav,
.social {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav a,
.social a {
  color: #fff;
  opacity: .95;
  border-radius: 8px;
  padding: .25rem .5rem;
}

.footer-nav a {
  transition: text-decoration 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  opacity: 1;
}

.social a {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social a:hover {
  transform: scale(1.2);
  opacity: 1;
}

.copyright {
  opacity: .9;
  font-size: .95rem;
}

/* Header and Navigation Styles - Shared across all pages */
header.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(18, 97, 160, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alternative header style for contact/schedule/privacy pages */
header.site-header.sticky-header {
  position: sticky;
  background: #F5C400;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0rem;
  gap: 1rem;
}

/* Alternative nav for simpler pages */
.nav.simple-nav {
  padding: .75rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Alternative brand for simpler pages */
.brand.simple-brand {
  gap: .75rem;
  font-weight: 800;
  color: var(--primary);
  font-size: 1rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.6);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .7);
  color: #fff;
  padding: .5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Simple menu toggle for contact/schedule/privacy */
.menu-toggle.simple-toggle {
  display: none;
  border: 1px solid var(--border);
  padding: .5rem .75rem;
  border-radius: 10px;
  background: #fff;
  color: var(--fg);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Sidebar Styles - for index and others pages */
.sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar.open {
  right: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.sidebar-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.sidebar-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--fg);
  padding: .5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sidebar-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  transform: translateX(20px);
  opacity: 0;
}

.sidebar.open .nav-item {
  transform: translateX(0);
  opacity: 1;
}

.sidebar.open .nav-item:nth-child(1) {
  transition-delay: 0.1s;
}

.sidebar.open .nav-item:nth-child(2) {
  transition-delay: 0.15s;
}

.sidebar.open .nav-item:nth-child(3) {
  transition-delay: 0.2s;
}

.sidebar.open .nav-item:nth-child(4) {
  transition-delay: 0.25s;
}

.sidebar.open .nav-item:nth-child(5) {
  transition-delay: 0.3s;
}

.sidebar.open .nav-item:nth-child(6) {
  transition-delay: 0.35s;
}

.nav-item:hover {
  background: var(--muted);
  transform: translateX(5px);
  padding-left: 2rem;
}

.nav-item.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-item.active .nav-icon {
  color: var(--primary);
}

.nav-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.nav-item:hover .nav-icon {
  transform: scale(1.1);
}

.nav-item:last-child {
  border-bottom: none;
}

/* Sidebar Social Section */
.sidebar-social {
  margin-top: auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--muted);
}

.sidebar-social h4 {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 50%;
  color: var(--fg);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.social-links a:nth-child(1):hover {
  background: #1da1f2;
  border-color: #1da1f2;
}

.social-links a:nth-child(2):hover {
  background: #e4405f;
  border-color: #e4405f;
}

.social-links a:nth-child(3):hover {
  background: #4267b2;
  border-color: #4267b2;
}

.social-links a:nth-child(4):hover {
  background: #0077b5;
  border-color: #0077b5;
}

/* Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1rem;
}

.desktop-nav a {
  color: #fff;
  font-weight: 600;
  padding: .5rem .75rem;
  position: relative;
  transition: all 0.3s ease;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.desktop-nav a:hover::after {
  width: 80%;
}

/* Simple Navigation Links - for contact/schedule/privacy pages */
.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  padding: .4rem .6rem;
  border-radius: 8px;
}

.nav-links a:hover {
  background: var(--muted);
}

/* Responsive behavior */
@media (min-width: 901px) {
  .menu-toggle {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .sidebar,
  .sidebar-overlay {
    display: none;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  /* Simple navigation responsive styles */
  .menu-toggle.simple-toggle {
    display: inline-block;
  }
  
  .nav-links.simple-nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 56px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    padding: .5rem;
  }
  
  .nav-links.simple-nav-links.open {
    display: flex;
  }
}