/* 
 * SECTION REFERENCE FOR MOBILE TESTING:
 * 
 * 1. section-header (Header & Navigation) - Top navigation bar with logo and menu
 * 2. section-hero (Hero Section) - Large banner with welcome message and action buttons
 * 3. section-events-scroll (Events Carousel) - Scrolling carousel of upcoming events
 * 4. section-actions (Action Cards) - Green section with "Get Updates" card
 * 5. section-announcements (Announcements & Contact) - White cards with announcements and contact info
 * 6. section-footer (Footer) - Dark footer with contact information and version
 * 
 * All sections have data-section-name attributes for easy identification in dev tools.
 */

/* Base styles with senior-friendly typography and high contrast */

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

html {
  font-size: 19px; /* Larger base font size for senior-friendly reading */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #153247;
  background-color: #edf2fb; /* soft blue background similar to the reference */
}

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

a {
  color: #1f6fb2;
  text-decoration-thickness: 2px;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

/* Header & Navigation */

.site-header {
  background-color: #ffffff;
  border-bottom: 2px solid #d2e3ff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(15, 37, 70, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.logo-image {
  height: auto;
  max-height: 80px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.9;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-weight: 700;
  font-size: 1.6rem;
  color: #184c7d;
  text-decoration: none;
}

.logo-sub {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.3;
  text-align: left;
}

.nav-toggle {
  display: none;
  font-size: 1.7rem;
  background: none;
  border: 2px solid #1f6fb2;
  border-radius: 0.75rem;
  padding: 0.15rem 0.6rem;
  color: #1f6fb2;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.main-nav a,
.dropdown-toggle {
  font-size: 1.15rem;
  font-weight: 600;
  color: #184c7d;
  text-decoration: none;
}

.main-nav a:focus-visible,
.dropdown-toggle:focus-visible {
  outline: 3px solid #ffb703;
  outline-offset: 2px;
}

/* Logout button styling to match nav links */
.nav-logout-btn {
  background: transparent;
  border: none;
  color: #184c7d;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  text-decoration-thickness: 2px;
  line-height: inherit;
}

.nav-logout-btn:hover,
.nav-logout-btn:focus-visible {
  text-decoration: underline;
}

.nav-logout-btn:focus-visible {
  outline: 3px solid #ffb703;
  outline-offset: 2px;
}

.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 130%;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 12px 30px rgba(15, 37, 70, 0.18);
  padding: 0.6rem 0;
  list-style: none;
  margin: 0;
  min-width: 12rem;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Show dropdown on hover for desktop */
@media (min-width: 721px) {
  .has-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}

/* Show dropdown when .show class is added (for mobile click) */
.dropdown-menu.show {
  display: block;
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #184c7d;
}

.dropdown-menu li a:hover {
  background-color: #f0f6f1;
}

/* Hero section */

.hero {
  position: relative;
  min-height: 65vh;
}

.hero-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    rgba(7, 42, 86, 0.55),
    rgba(7, 42, 86, 0.75)
  );
}

.hero-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* treat as visual background */
}

.hero-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 750px;
}

.hero-content h1 {
  font-size: 2.7rem;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

/* Hero carousel */

.hero-slides {
  position: relative;
  min-height: 7rem;
}

.hero-slide {
  display: none;
}

.hero-slide.is-active {
  display: block;
}

.hero-slide h2 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.hero-dots {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.hero-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid #ffb703;
  background-color: transparent;
  cursor: pointer;
}

.hero-dot.is-active {
  background-color: #ffb703;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-button {
  font-size: 1.2rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-button-primary {
  background-color: #1f6fb2;
  color: #ffffff;
}

.hero-button-primary:hover,
.hero-button-primary:focus-visible {
  background-color: #165486;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 111, 178, 0.3);
}

.hero-button-secondary {
  background-color: #ffffff;
  color: #1f6fb2;
  border: 2px solid #1f6fb2;
}

.hero-button-secondary:hover,
.hero-button-secondary:focus-visible {
  background-color: #1f6fb2;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 111, 178, 0.3);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.modal-close:hover,
.modal-close:focus {
  color: #000;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #184c7d;
}

.modal-content .form-row {
  margin-bottom: 1.25rem;
}

.modal-content label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #184c7d;
}

.modal-content input[type="text"],
.modal-content input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1.05rem;
  border-radius: 0.5rem;
  border: 2px solid #c3d4c6;
  box-sizing: border-box;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus {
  outline: none;
  border-color: #1f6fb2;
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.1);
}

/* Events scroll section */

.events-scroll-section {
  padding: 2.5rem 0;
  background-color: #f8f9fa;
}

.events-scroll-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #d2e3ff;
  box-shadow: 0 4px 12px rgba(15, 37, 70, 0.08);
}

.events-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-nav-buttons {
  display: none; /* Hidden on desktop by default, shown on mobile */
}

/* Desktop: Show buttons on sides */
@media (min-width: 721px) {
  .events-carousel-wrapper {
    position: relative;
  }

  .carousel-nav-buttons {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Allow clicks to pass through container */
    z-index: 10;
  }

  .carousel-nav-buttons .carousel-prev {
    position: absolute;
    left: -70px;
    top: 0;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex !important;
    pointer-events: auto; /* Re-enable clicks on button */
  }

  .carousel-nav-buttons .carousel-next {
    position: absolute;
    right: -70px;
    top: 0;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex !important;
    pointer-events: auto; /* Re-enable clicks on button */
  }
}

.events-carousel-container {
  position: relative;
  flex: 1;
  min-height: 200px;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #d2e3ff;
  box-shadow: 0 4px 12px rgba(15, 37, 70, 0.08);
}

.carousel-nav {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #1f6fb2;
  background-color: #ffffff;
  color: #1f6fb2;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.carousel-nav:hover {
  background-color: #1f6fb2;
  color: #ffffff;
  transform: scale(1.1);
}

.carousel-nav:active {
  transform: scale(0.95);
}

.carousel-nav:focus-visible {
  outline: 3px solid #ffb703;
  outline-offset: 2px;
}

.event-slide {
  display: none;
  text-align: center;
}

.event-slide.is-active {
  display: block;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-scroll-item {
  padding: 1rem;
  border-bottom: 1px solid #e8f0ff;
}

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

.event-action-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.event-rsvp-btn:hover {
  background-color: #165486 !important;
}

.event-signup-btn:hover {
  background-color: #1f6fb2 !important;
  color: #ffffff !important;
}

/* Action section */

.action-section {
  background-color: #2d5016;
  padding: 2.5rem 0 3rem;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
  justify-items: center;
}

@media (max-width: 600px) {
  .action-grid {
    grid-template-columns: 1fr;
  }
}

.cta-card {
  display: block;
  border-radius: 1.5rem;
  padding: 1.7rem 1.6rem;
  text-decoration: none;
  border: 3px solid transparent;
  box-shadow: 0 18px 40px rgba(15, 37, 70, 0.12);
}

.cta-card.primary {
  background-color: #ffffff;
  border-color: #c7d9ff;
  position: relative;
}

.action-section .cta-card.primary {
  background-color: #ffffff;
  border-color: #4a7c2a;
}

.cta-card.subtle {
  background-color: #f3f6fc;
  border-color: #d4e1ff;
}

.cta-title {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #184c7d;
}

.cta-title.small {
  font-size: 1.1rem;
}

.cta-text {
  font-size: 1.1rem;
  color: #335a86;
  display: block;
  margin-bottom: 0.5rem;
}

.cta-unsubscribe {
  display: block;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e0e0e0;
}

.cta-unsubscribe a {
  font-size: 0.85rem;
  color: #666;
  text-decoration: none;
}

.cta-unsubscribe a:hover {
  text-decoration: underline;
}

.cta-card:focus-visible {
  outline: 3px solid #ffb703;
  outline-offset: 2px;
}

.cta-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Page content layouts */

.page-hero {
  padding: 2.5rem 0 1.5rem;
  background-color: #e8f0ff;
  border-bottom: 3px solid #d2e3ff;
}

.page-hero h1 {
  font-size: 2.2rem;
  margin: 0 0 0.3rem;
}

.page-hero p {
  margin: 0;
  font-size: 1.05rem;
  color: #345;
}

.page-section {
  padding: 2rem 0;
}

.page-section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.page-section p,
.page-section li {
  font-size: 1.15rem;
}

/* Events & blog cards */

.card-list {
  display: grid;
  gap: 1.25rem;
}

.card {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 1.6rem 1.7rem;
  border: 1px solid #d2e3ff;
  box-shadow: 0 18px 40px rgba(15, 37, 70, 0.12);
}

.admin-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.admin-menu button {
  border-radius: 999px;
  border: 1px solid #c7d9ff;
  background-color: #ffffff;
  color: #184c7d;
  padding: 0.55rem 1.4rem;
  font-size: 1rem;
  cursor: pointer;
}

.admin-menu button:hover,
.admin-menu button:focus-visible {
  background-color: #e3eeff;
}

.map-embed {
  margin-top: 1rem;
}

.map-embed iframe {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 1rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.card-meta {
  font-size: 0.98rem;
  color: #555;
  margin-bottom: 0.7rem;
}

/* Forms */

form {
  max-width: 550px;
}

.form-row {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font-size: 1.05rem;
  border-radius: 0.5rem;
  border: 2px solid #c3d4c6;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button.primary-btn,
input[type="submit"] {
  font-size: 1.1rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  background-color: #1f6fb2;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

button.primary-btn:hover,
input[type="submit"]:hover {
  background-color: #165486;
}

/* Footer */

.site-footer {
  background-color: #10253f;
  color: #f8faf8;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.footer-contact {
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.footer-addresses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.footer-address-column {
  display: flex;
  flex-direction: column;
}

.footer-address-column p {
  margin: 0.25rem 0;
}

.footer-address-column p:first-child {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #99c2ff;
}

/* Email obfuscation - spans are hidden from bots but visible to users */
.email-obfuscate span {
  display: inline;
}

.email-obfuscate a {
  color: inherit;
  text-decoration: underline;
}

.footer-small {
  font-size: 0.9rem;
  color: #d9e1dc;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive tweaks */

@media (max-width: 720px) {
  /* SECTION: Header & Navigation - Mobile */
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: #ffffff;
    border-bottom: 3px solid #d2e3ff;
    display: none;
    box-shadow: 0 4px 12px rgba(15, 37, 70, 0.1);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.75rem;
  }

  .main-nav a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
    width: 100%;
  }

  .has-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding-left: 1rem;
    display: block !important; /* Always show dropdown items on mobile */
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Make unsubscribe always visible on mobile as a submenu item */
  .has-dropdown .dropdown-toggle {
    pointer-events: none; /* Disable click on "Subscribe" on mobile */
  }
  
  .has-dropdown .dropdown-menu li {
    display: block;
  }

  .logo-image {
    max-height: 60px;
  }

  .logo-main {
    font-size: 1.4rem;
    text-align: center;
  }

  .logo-sub {
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.3;
    display: block;
    margin-top: 0.25rem;
    padding: 0 2.5rem; /* Add padding to prevent overlap with menu button */
  }

  .logo {
    flex: 1;
    align-items: center;
    text-align: center;
    min-width: 0; /* Allow text to wrap */
  }

  .header-inner {
    padding: 0.75rem 0;
    justify-content: center;
    position: relative;
    min-height: 80px; /* Ensure enough space for two-line subtitle */
  }

  .nav-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101; /* Ensure menu button is above everything */
  }

  /* SECTION: Hero Section - Mobile */
  .hero {
    min-height: 50vh;
    max-height: 70vh;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .hero-tagline {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: center;
    justify-content: center;
  }

  .hero-button {
    font-size: 1.1rem;
    padding: 0.85rem 1.5rem;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  /* SECTION: Events Carousel - Mobile */
  .events-scroll-section {
    padding: 1.5rem 0;
  }

  .events-scroll-section .container {
    padding: 0 0.5rem;
    max-width: 100%;
  }

  .events-carousel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  /* Events container - full width, appears first */
  .events-carousel-container,
  #homepage-events-container {
    padding: 1.5rem 1rem;
    min-height: 180px;
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    order: 1;
  }

  /* Hide side navigation buttons on mobile */
  .events-carousel-wrapper > .carousel-nav {
    display: none !important;
  }

  /* Navigation buttons container - row at bottom */
  .carousel-nav-buttons {
    display: flex !important; /* Override desktop styles */
    justify-content: space-between;
    gap: 2%;
    width: 100%;
    padding: 0 0.5rem;
    margin-top: 1rem;
    order: 2;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    pointer-events: auto;
  }

  /* Navigation buttons at bottom, 45% width each */
  .carousel-nav-buttons .carousel-nav {
    width: 45%;
    height: 50px;
    font-size: 1.5rem;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    border-radius: 0.5rem;
    flex-shrink: 0;
    display: flex !important; /* Override inline style when shown */
  }

  .event-slide h3 {
    font-size: 1.1rem !important;
  }

  .event-slide p {
    font-size: 0.9rem !important;
  }

  .event-action-btn {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.9rem !important;
    width: 100%;
    max-width: 200px;
  }

  /* Event buttons container on mobile */
  .event-buttons-container {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }

  /* SECTION: Action Cards - Mobile */
  .action-section {
    padding: 2rem 0;
  }

  .action-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
    justify-items: center;
  }

  .action-grid .cta-card {
    max-width: 100%;
    width: 100%;
  }

  .cta-card {
    padding: 1.5rem 1.25rem;
  }

  .cta-title {
    font-size: 1.3rem;
  }

  .cta-text {
    font-size: 1rem;
  }

  /* SECTION: Announcements & Contact - Mobile */
  .page-section {
    padding: 1.5rem 0;
  }

  .card-list {
    gap: 1rem;
  }

  .card {
    padding: 1.25rem 1.5rem;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .page-section p {
    font-size: 1.05rem;
  }

  /* SECTION: Modals - Mobile */
  .modal-content {
    margin: 5% auto;
    padding: 1.5rem;
    width: 95%;
    max-width: none;
  }

  .modal-close {
    font-size: 1.75rem;
    right: 0.75rem;
    top: 0.75rem;
  }

  .modal-content h2 {
    font-size: 1.5rem;
    padding-right: 2rem;
  }

  /* SECTION: Footer - Mobile */
  .site-footer {
    padding: 1.5rem 0;
  }

  .footer-inner {
    gap: 1.25rem;
  }

  .footer-addresses {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-heading {
    font-size: 1rem;
  }

  /* General mobile improvements */
  .container {
    padding: 0 1rem;
  }

  html {
    font-size: 17px; /* Slightly smaller base font on mobile */
  }
}

/* Tablet and larger screens */
@media (min-width: 721px) and (max-width: 1024px) {
  .action-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    justify-items: center;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  
  .footer-contact {
    grid-column: 1;
  }
  
  .footer-addresses {
    grid-column: 2 / 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0;
  }
  
  .footer-small {
    grid-column: 1 / -1;
    margin-top: 1rem;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }
}

/* Desktop screens */
@media (min-width: 1025px) {
  .action-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    justify-items: center;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .footer-contact {
    grid-column: 1;
  }
  
  .footer-addresses {
    grid-column: 2 / 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0;
  }
  
  .footer-small {
    grid-column: 1 / -1;
  }
}

/* Inline editing styles */
.editable-active {
  transition: background-color 0.2s ease;
}

.editable-active:hover {
  position: relative;
}

.editable-active:hover::before {
  content: "✏️";
  position: absolute;
  left: -1.5rem;
  top: 0;
  font-size: 0.8rem;
  opacity: 0.6;
}

[data-editable]:focus {
  outline: 2px dashed #ffb703 !important;
  outline-offset: 2px !important;
  background-color: rgba(255, 183, 3, 0.1) !important;
}

/* Adjust body padding when admin indicator is present */
body:has(#admin-edit-indicator) {
  padding-top: 3rem;
}

#admin-edit-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffb703;
  color: #000;
  padding: 0.5rem 1rem;
  text-align: center;
  font-weight: 600;
  z-index: 10000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 720px) {
  body:has(#admin-edit-indicator) {
    padding-top: 3.5rem;
  }
  
  .editable-active:hover::before {
    display: none; /* Hide edit icon on mobile */
  }
}


