/* ============================================
   Conejo Valley DeMolay - Design System
   Modern navy/gold refresh
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --navy: #0a1628;
  --navy-light: #1a3a5c;
  --navy-medium: #0f2440;
  --gold: #d4a843;
  --gold-light: #e8c76a;
  --gold-dark: #b8912e;
  --gold-text: #8a6d1b;
  --white: #ffffff;
  --off-white: #f8f6f0;
  --gray-100: #f1efe9;
  --gray-200: #e8e6e0;
  --gray-300: #d1cfc9;
  --gray-400: #a8a6a0;
  --gray-500: #6b6966;
  --gray-600: #4a4845;
  --slate: #2d3748;
  --red: #c53030;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.1);
  --shadow-lg: 0 8px 24px rgba(10, 22, 40, 0.12);
  --shadow-xl: 0 16px 48px rgba(10, 22, 40, 0.16);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --- Accessibility Utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p + p { margin-top: var(--space-md); }

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-primary:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background-color: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  min-height: 44px;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--navy);
  box-shadow: var(--shadow-md);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
}

.nav-logo:hover {
  color: var(--gold);
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
  color: var(--gold);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-base);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--slate);
  font-size: 0.9375rem;
  border-radius: 0;
}

.nav-dropdown-menu a:hover {
  background-color: var(--gray-100);
  color: var(--navy);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 600px;
  padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-4xl);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-medium) 50%, var(--navy-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 60%);
}

.hero .container {
  position: relative;
}

.hero-right-graphic {
  position: absolute;
  right: var(--space-md);
  top: 0.75rem;
  width: clamp(150px, 19vw, 240px);
  opacity: 1;
  transform: none;
  filter: drop-shadow(0 12px 28px rgba(10, 22, 40, 0.45));
  pointer-events: none;
  z-index: 0;
}

.hero-right-graphic img {
  width: 100%;
  height: auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 100px;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero h1 {
  color: var(--white);
  font-size: 3.25rem;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero h1 .highlight {
  color: var(--gold);
}

.hero-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Decorative geometric element */
.hero-decoration {
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 400px;
  height: 400px;
  border: 2px solid rgba(212, 168, 67, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.hero-decoration::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  bottom: 40px;
  border: 2px solid rgba(212, 168, 67, 0.06);
  border-radius: 50%;
}

/* --- Section Styles --- */
.section {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background-color: var(--off-white);
}

.section-dark {
  background-color: var(--navy);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.125rem;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.section-label {
  display: inline-block;
  color: var(--gold-text);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  gap: var(--space-xl);
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.card p {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

/* --- News Cards --- */
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--gray-200);
}

.news-card-body {
  padding: var(--space-lg);
}

.news-card-date {
  color: var(--gold-text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.news-card-title {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.news-card-title a {
  color: var(--navy);
}

.news-card-title a:hover {
  color: var(--gold);
}

.news-card-excerpt {
  color: var(--gray-500);
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-medium) 100%);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb .current {
  color: var(--gold);
}

/* --- Content Area (for inner pages) --- */
.content-area {
  padding: var(--space-3xl) 0;
}

.content-area .container {
  max-width: 800px;
}

.content-area h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.content-area h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.content-area p {
  margin-bottom: var(--space-md);
  color: var(--gray-600);
  line-height: 1.7;
}

.content-area p a,
.content-area li a,
.section p a,
.card p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-area p a:hover,
.content-area li a:hover,
.section p a:hover,
.card p a:hover {
  color: var(--gold);
}

.content-area ul,
.content-area ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.content-area ul { list-style: disc; }
.content-area ol { list-style: decimal; }

.content-area li {
  margin-bottom: var(--space-sm);
  color: var(--gray-600);
  line-height: 1.6;
}

.content-area blockquote {
  border-left: 4px solid var(--gold);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: var(--off-white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--gray-600);
}

.content-area img {
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
}

/* --- Info Cards (for feature highlights) --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.info-card {
  padding: var(--space-xl);
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold);
}

.info-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.info-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* --- CTA Section --- */
.cta-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- Links List --- */
.links-list {
  display: grid;
  gap: var(--space-md);
}

.link-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.link-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.link-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  color: var(--gold-dark);
  font-size: 1.25rem;
}

.link-item-text h2 {
  font-size: 1rem;
  margin-bottom: 0.125rem;
}

.link-item-text p {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin: 0;
}

/* --- Contact Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  align-items: start;
}

.contact-detail {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border-radius: var(--radius-md);
  color: var(--gold-dark);
  font-size: 1.25rem;
}

.contact-detail h3 {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-detail p {
  color: var(--slate);
  margin: 0;
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-embed iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-about p {
  font-size: 0.9375rem;
  margin-top: var(--space-md);
  line-height: 1.6;
}

.footer-heading {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* --- Calendar --- */
.calendar-desktop {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.calendar-mobile {
  display: none;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* --- Video Embed (responsive) --- */
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Post single --- */
.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
}

.post-meta-date {
  color: var(--gold-text);
  font-weight: 600;
  font-size: 0.9375rem;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-200);
}

.post-nav a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--navy);
    padding: var(--space-lg);
    gap: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    padding: 0.75rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 0;
    margin: var(--space-sm) 0;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    color: rgba(255, 255, 255, 0.7);
    padding-left: var(--space-xl);
    border-bottom: none;
  }

  .nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
  }

  .nav-logo {
    font-size: 0.9375rem;
  }

  .nav-logo img {
    height: 32px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  }

  .hero h1 { font-size: 2.25rem; }
  .hero-description { font-size: 1.0625rem; }
  .hero-right-graphic { display: none; }
  .hero-decoration { display: none; }

  .card-grid-2,
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .calendar-desktop {
    display: none;
  }

  .calendar-mobile {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-about {
    margin-bottom: var(--space-xl);
  }

  /* Footer accordion sections */
  .footer-grid > div:not(.footer-about) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: var(--space-md) 0;
    margin-bottom: 0;
    min-height: 44px;
    user-select: none;
    -webkit-user-select: none;
  }

  .footer-heading::after {
    content: '+';
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    margin-left: var(--space-sm);
  }

  .footer-heading.open::after {
    content: '\2212';
  }

  .footer-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
    padding: 0;
  }

  .footer-links.open {
    max-height: 300px;
    padding-bottom: var(--space-md);
  }

  .footer-links a {
    min-height: 40px;
    padding: 0.375rem 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .cta-section {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 300px; }
}

/* --- PWA Install Banner --- */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--navy);
  color: var(--white);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  animation: pwa-slide-up 0.4s ease forwards;
}

@keyframes pwa-slide-up {
  to { transform: translateY(0); }
}

.pwa-install-banner.hidden {
  animation: pwa-slide-down 0.3s ease forwards;
}

@keyframes pwa-slide-down {
  to { transform: translateY(100%); }
}

.pwa-install-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.pwa-install-banner-text {
  flex: 1;
  min-width: 0;
}

.pwa-install-banner-title {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.pwa-install-banner-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.pwa-install-btn {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.pwa-install-btn:hover {
  background: var(--gold-light);
}

.pwa-install-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--transition-fast);
}

.pwa-install-close:hover {
  color: var(--white);
}

@media (max-width: 480px) {
  .pwa-install-banner {
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-md);
  }

  .pwa-install-banner-text {
    flex: 1 1 calc(100% - 80px);
  }

  .pwa-install-close {
    order: -1;
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
  }

  .pwa-install-btn {
    width: 100%;
    text-align: center;
    padding: 0.625rem;
  }
}
