
/* ==========================================================
   ST. AUGUSTINE EAGLES — AERIE 4256
   STATIC WEBSITE DEMO

   Colors inspired by the Fraternal Order of Eagles logo.
   HTML + CSS + Vanilla JavaScript only.

   Used by:
   - index.html
   - events.html
   ========================================================== */


/* ----------------------------------------------------------
   1. DESIGN TOKENS / RESET
   ---------------------------------------------------------- */

:root {
  --navy: #1a2a4a;
  --navy-dark: #111e36;
  --navy-light: #253b61;

  --gold: #c9a227;
  --gold-light: #e8c75d;
  --gold-pale: #fff8e2;

  --red: #b22222;
  --red-dark: #8d1919;

  --background: #f8f9fa;
  --white: #ffffff;

  --text: #273448;
  --text-muted: #657183;
  --border: #e2e5ea;

  --heading-font: "Merriweather", Georgia, serif;
  --body-font: "Inter", Arial, sans-serif;

  --shadow-sm: 0 4px 16px rgba(26, 42, 74, 0.06);
  --shadow-md: 0 12px 30px rgba(26, 42, 74, 0.09);
  --shadow-lg: 0 20px 50px rgba(15, 30, 54, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --transition: 220ms ease;
}


/* GLOBAL RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: var(--heading-font);
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

::selection {
  background: var(--gold);
  color: var(--navy-dark);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.hidden {
  display: none !important;
}

.container {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--gold-light);
}

.heading-rule {
  width: 55px;
  height: 4px;
  margin: 25px 0;
  border-radius: 5px;
  background: var(--gold);
}


/* ----------------------------------------------------------
   2. BUTTONS
   ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: normal;

  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}


/* GOLD BUTTON */

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.2);
}


/* NAVY BUTTON */

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-light);
}


/* OUTLINE BUTTON */

.btn-outline {
  border-color: var(--border);
  background: var(--white);
  color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--navy);
  background: #f3f5f8;
}


/* DELETE BUTTON */

.btn-danger {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.btn-danger:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}


/* EDIT BUTTON */

.btn-edit {
  min-height: 37px;
  padding: 8px 16px;
  border: 1px solid #d7deeb;
  background: #f5f7fa;
  color: var(--navy);
  font-size: 12px;
}

.btn-edit:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}


/* ----------------------------------------------------------
   3. DEMO BANNER
   ---------------------------------------------------------- */

.demo-banner {
  position: relative;
  z-index: 20;
  padding: 10px 22px;
  border-bottom: 2px solid #a57a00;
  background: #ffdc4a;
  color: #27210a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}


/* ----------------------------------------------------------
   4. HEADER / NAVIGATION
   ---------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--navy);
  color: var(--white);
}

.header-inner {
  display: flex;
  min-height: 98px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}


/* LOGO & BRAND */

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
}

.logo-badge {
  display: flex;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5px;
  border-radius: 50%;
  background: #fff;
}

.site-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  color: var(--white);
  font-family: var(--heading-font);
  font-size: 19px;
  line-height: 1.3;
}

.brand-copy small {
  color: #c3cedf;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}


/* DESKTOP NAVIGATION */

.primary-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  position: relative;
  padding: 12px 20px;
  border-radius: 6px;
  color: #e0e7f2;
  font-size: 13px;
  font-weight: 700;

  transition:
    background var(--transition),
    color var(--transition);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-link.active {
  color: var(--gold-light);
}

.nav-link.active::after {
  position: absolute;
  right: 20px;
  bottom: 5px;
  left: 20px;
  height: 2px;
  background: var(--gold);
  content: "";
}


/* MOBILE MENU TOGGLE */

.menu-toggle {
  display: none;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
}


/* ----------------------------------------------------------
   5. HOMEPAGE HERO
   ---------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  min-height: 570px;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-dark);
}


/* HERO BACKGROUND IMAGE */

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;

  background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=1600");
  background-position: center 53%;
  background-repeat: no-repeat;
  background-size: cover;

  content: "";
}


/* HERO DARK GRADIENT */

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(9, 22, 43, 0.96) 0%,
      rgba(13, 27, 49, 0.9) 35%,
      rgba(15, 28, 50, 0.65) 68%,
      rgba(13, 25, 44, 0.42) 100%
    );

  content: "";
}

.hero-content {
  padding-top: 90px;
  padding-bottom: 90px;
}

.hero-inner {
  max-width: 760px;
}

.hero-eyebrow {
  margin-bottom: 24px;
  color: var(--gold-light);
}

.hero h1 {
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 900;
  letter-spacing: -1.6px;
  line-height: 1.22;
}

.hero h1 span {
  color: var(--gold-light);
}

.hero-subtitle {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}

.hero-description {
  max-width: 545px;
  margin-bottom: 32px;
  color: #d7e0ed;
  font-size: 15px;
  line-height: 1.9;
}

.hero .btn {
  min-height: 54px;
  padding-inline: 28px;
}


/* ----------------------------------------------------------
   6. WELCOME / COMMUNITY VALUES STRIP
   ---------------------------------------------------------- */

.welcome-strip {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.welcome-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.welcome-strip-item {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.welcome-strip-item + .welcome-strip-item {
  border-left: 1px solid var(--border);
}

.strip-icon {
  color: var(--gold);
  font-size: 20px;
}


/* ----------------------------------------------------------
   7. ABOUT SECTION
   ---------------------------------------------------------- */

.about-section {
  background: var(--background);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 85px;
}

.about-intro h2,
.section-header h2 {
  font-size: clamp(28px, 3.2vw, 39px);
  letter-spacing: -0.7px;
}

.about-intro h2 span,
.section-header h2 span {
  color: var(--red);
}

.section-lead {
  max-width: 360px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.85;
}

.about-content > p {
  margin-bottom: 21px;
  color: #536071;
  font-size: 14px;
  line-height: 2;
}

.about-content strong {
  color: var(--navy);
  font-weight: 700;
}


/* LOCAL COMMUNITY HIGHLIGHT */

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 30px;
  padding: 24px;
  border: 1px solid #f0e4bd;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--gold-pale);
}

.highlight-icon {
  display: flex;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 21px;
}

.about-highlight strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.about-highlight p {
  margin-bottom: 0;
  color: #6b654d;
  font-size: 12px;
  line-height: 1.85;
}


/* ----------------------------------------------------------
   8. HOMEPAGE EVENTS PREVIEW
   ---------------------------------------------------------- */

.events-preview-section {
  background: var(--white);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 36px;
}

.section-header h2 {
  margin-bottom: 14px;
}

.section-header p {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  transition: color var(--transition);
}

.text-link:hover {
  color: var(--red);
}


/* THREE COLUMN EVENT CARDS */

.event-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.preview-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.preview-card:hover {
  transform: translateY(-5px);
  border-color: #e4d293;
  box-shadow: var(--shadow-md);
}

.preview-card-top {
  display: flex;
  align-items: flex-start;
  gap: 17px;
}


/* EVENT DATE BADGE */

.preview-date {
  display: flex;
  width: 65px;
  min-height: 77px;
  flex: 0 0 65px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
}

.preview-month {
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.preview-date strong {
  font-family: var(--heading-font);
  font-size: 30px;
  line-height: 1.2;
}

.preview-card-info {
  min-width: 0;
}

.preview-time {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.preview-card-info h3 {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.preview-description {
  flex: 1;
  margin: 23px 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.85;
}

.preview-card-link {
  display: inline-block;
  align-self: flex-start;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}


/* HOMEPAGE EVENTS EMPTY STATE */

.preview-empty {
  grid-column: 1 / -1;
  padding: 45px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.preview-empty h3 {
  font-size: 21px;
}

.preview-empty p {
  color: var(--text-muted);
}

.preview-empty .btn {
  margin-top: 10px;
}

.events-preview-footer {
  margin-top: 36px;
  text-align: center;
}


/* ----------------------------------------------------------
   9. COMMUNITY CALL TO ACTION
   ---------------------------------------------------------- */

.community-cta {
  position: relative;
  overflow: hidden;
  padding: 62px 0;
  background: var(--navy);
  color: var(--white);
}

.community-cta::before {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.community-cta::after {
  position: absolute;
  top: -60px;
  right: -30px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.community-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.community-cta h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(25px, 3vw, 34px);
}

.community-cta p {
  max-width: 650px;
  margin-bottom: 0;
  color: #cad6e6;
  font-size: 13px;
  line-height: 1.9;
}

.community-cta .btn {
  flex-shrink: 0;
}


/* ----------------------------------------------------------
   10. FOOTER
   ---------------------------------------------------------- */

.site-footer {
  background: var(--navy-dark);
  color: #d0d9e8;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr;
  gap: 65px;
  padding-top: 70px;
  padding-bottom: 65px;
}


/* FOOTER BRAND */

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-badge {
  width: 63px;
  height: 63px;
  flex-basis: 63px;
}

.footer-brand-title strong {
  display: block;
  color: var(--white);
  font-family: var(--heading-font);
  font-size: 16px;
}

.footer-brand-title div > span {
  display: block;
  margin-top: 5px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 600;
}

.footer-brand > p {
  margin-top: 22px;
  margin-bottom: 0;
  color: #aab8cd;
  font-size: 12px;
  line-height: 2;
}


/* FOOTER COLUMNS */

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-column h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-family: var(--body-font);
  font-size: 13px;
}

.footer-column a,
.footer-column address {
  color: #b2c0d3;
  font-size: 12px;
  font-style: normal;
  line-height: 1.9;
}

.footer-column a:hover {
  color: var(--gold-light);
}

.demo-contact-note {
  color: #8e9eb6;
  font-size: 10px;
}


/* COPYRIGHT */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.footer-bottom p,
.footer-bottom span {
  margin-bottom: 0;
  color: #93a2ba;
  font-size: 11px;
}

.footer-bottom span {
  color: var(--gold-light);
}


/* ==========================================================
   EVENTS.HTML — CALENDAR & EVENT MANAGEMENT
   ========================================================== */


/* ----------------------------------------------------------
   11. EVENTS PAGE HERO
   ---------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 77px 0 82px;

  background:
    linear-gradient(
      120deg,
      #182944 0%,
      #28426b 100%
    );
}

.page-hero::after {
  position: absolute;
  top: -170px;
  right: -80px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: clamp(34px, 4vw, 49px);
}

.page-hero h1 span {
  color: var(--gold-light);
}

.page-hero p {
  max-width: 685px;
  margin-bottom: 0;
  color: #d3dfed;
  font-size: 14px;
  line-height: 1.9;
}


/* ----------------------------------------------------------
   12. CALENDAR PANEL / TOOLBAR
   ---------------------------------------------------------- */

.calendar-section {
  background: var(--background);
}

.calendar-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-bottom: 1px solid var(--border);
}

.calendar-toolbar-heading .eyebrow {
  margin-bottom: 7px;
}

.calendar-toolbar-heading h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 2.6vw, 29px);
}

.calendar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.calendar-actions .btn {
  min-height: 43px;
  padding: 10px 15px;
  font-size: 12px;
}

.calendar-actions .btn-gold {
  margin-left: 5px;
}


/* ----------------------------------------------------------
   13. DESKTOP MONTHLY CALENDAR
   ---------------------------------------------------------- */

.calendar-desktop {
  padding: 0 32px 25px;
}


/* WEEKDAY HEADERS */

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.calendar-weekdays div {
  padding: 20px 5px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}


/* SEVEN COLUMN CALENDAR GRID */

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e9ecf1;
  border-radius: 9px;
  background: #e9ecf1;
}

.calendar-cell {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100px;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px;
  border: 0;
  background: var(--white);
  color: var(--text);
  text-align: left;
}


/* EMPTY CALENDAR DAYS */

.empty-cell {
  background: #f7f8fa;
}


/* INTERACTIVE DAYS */

.day-cell {
  transition: background var(--transition);
}

.day-cell:hover {
  background: #f5f7fb;
}

.day-cell.has-event {
  background: #fffcf3;
}

.day-cell.has-event:hover {
  background: #fff4d9;
}

.day-cell.selected-day {
  background: #e7eef9;
  box-shadow: inset 0 0 0 2px var(--navy);
}


/* CALENDAR DATE NUMBER */

.day-number {
  display: flex;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.day-cell.today .day-number {
  background: var(--navy);
  color: var(--white);
}


/* EVENT INDICATOR DOTS */

.calendar-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
}

.event-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.event-dot.gold {
  background: var(--gold);
}

.event-dot.red {
  background: var(--red);
}

.cell-event-label {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}


/* CALENDAR LEGEND */

.calendar-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 18px 32px 23px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
}

.calendar-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.gold-dot {
  background: var(--gold);
}

.red-dot {
  background: var(--red);
}

.calendar-tip {
  margin-left: auto;
  font-style: italic;
}


/* MOBILE CALENDAR HIDDEN ON DESKTOP */

.mobile-calendar {
  display: none;
}


/* ----------------------------------------------------------
   14. MONTHLY EVENT LIST
   ---------------------------------------------------------- */

.monthly-events {
  margin-top: 55px;
  scroll-margin-top: 25px;
}

.monthly-events-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.monthly-events-header .eyebrow {
  margin-bottom: 8px;
}

.monthly-events-header h2 {
  margin-bottom: 8px;
  font-size: clamp(25px, 3vw, 32px);
}

.monthly-events-header p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}


/* EVENT CARD */

.event-list-card {
  display: flex;
  align-items: center;
  gap: 27px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);

  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.event-list-card:hover {
  border-color: #e1d19d;
  box-shadow: var(--shadow-md);
}


/* EVENT DATE BADGE */

.event-list-date {
  display: flex;
  width: 77px;
  min-height: 92px;
  flex: 0 0 77px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--navy);
  text-align: center;
}

.event-list-month {
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.event-list-date strong {
  color: var(--white);
  font-family: var(--heading-font);
  font-size: 31px;
  line-height: 1.3;
}

.event-list-weekday {
  color: #cdd6e5;
  font-size: 10px;
  font-weight: 700;
}


/* EVENT DETAILS */

.event-list-content {
  min-width: 0;
  flex: 1;
}

.event-list-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 9px;
}

.event-list-meta span {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.event-list-content h3 {
  margin-bottom: 7px;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.event-list-content p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.8;
}


/* EVENT EDIT BUTTON */

.event-list-actions {
  flex-shrink: 0;
  align-self: center;
}


/* ----------------------------------------------------------
   15. EMPTY EVENT STATES
   ---------------------------------------------------------- */

.events-empty {
  padding: 65px 25px;
  border: 1px dashed #d6dce5;
  border-radius: var(--radius-md);
  background: var(--white);
  text-align: center;
}

.empty-symbol {
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 43px;
  line-height: 1;
}

.events-empty h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.events-empty p {
  margin-bottom: 25px;
  color: var(--text-muted);
  font-size: 13px;
}


/* ----------------------------------------------------------
   16. CALENDAR DEMO INFORMATION
   ---------------------------------------------------------- */

.calendar-demo-info {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin-top: 45px;
  padding: 22px 25px;
  border: 1px solid #d5e2f5;
  border-radius: var(--radius-md);
  background: #eef4fc;
}

.demo-info-icon {
  color: var(--navy);
  font-size: 25px;
  line-height: 1;
}

.calendar-demo-info strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 13px;
}

.calendar-demo-info p {
  margin-bottom: 0;
  color: #586981;
  font-size: 12px;
  line-height: 1.9;
}


/* ----------------------------------------------------------
   17. ADD / EDIT EVENT MODAL
   ---------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(9, 21, 39, 0.78);
  backdrop-filter: blur(5px);
}


/* MODAL PANEL */

.modal-panel {
  width: min(100%, 570px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}


/* MODAL HEADER */

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 29px 32px 0;
}

.modal-header .eyebrow {
  margin-bottom: 6px;
}

.modal-header h2 {
  margin-bottom: 0;
  font-size: 25px;
}


/* CLOSE BUTTON */

.modal-close {
  display: flex;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f0f2f5;
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
  transition: background var(--transition);
}

.modal-close:hover {
  background: #e1e5ec;
}


/* MODAL DESCRIPTION */

.modal-description {
  margin: 13px 32px 0;
  color: var(--text-muted);
  font-size: 12px;
}


/* FORM */

#event-form {
  padding: 27px 32px 32px;
}

.form-group {
  margin-bottom: 21px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.form-group label span {
  color: var(--red);
}


/* FORM INPUTS */

.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  outline: none;
  background: var(--white);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 14px;

  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-group input {
  min-height: 46px;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9aa4b2;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.14);
}


/* DATE & TIME INPUT ROW */

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}


/* FORM ERROR MESSAGE */

.form-error {
  margin: 0 0 17px;
  padding: 11px 14px;
  border: 1px solid #f0baba;
  border-radius: 8px;
  background: #fff0f0;
  color: var(--red-dark);
  font-size: 12px;
}


/* MODAL FOOTER */

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}


/* ==========================================================
   RESPONSIVE STYLES
   ========================================================== */


/* ----------------------------------------------------------
   18. TABLET — BELOW 1050px
   ---------------------------------------------------------- */

@media (max-width: 1050px) {

  /* Calendar toolbar */

  .calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-actions {
    justify-content: flex-start;
  }

  .calendar-actions .btn-gold {
    margin-left: 0;
  }


  /* About section */

  .about-layout {
    gap: 45px;
  }


  /* Homepage event cards */

  .event-preview-grid {
    gap: 15px;
  }

  .preview-card {
    padding: 19px;
  }

  .preview-card-top {
    gap: 12px;
  }

  .preview-date {
    width: 56px;
    flex-basis: 56px;
  }


  /* Footer */

  .footer-main {
    gap: 35px;
  }

}


/* ----------------------------------------------------------
   19. MOBILE / SMALL TABLET — BELOW 768px

   At this breakpoint:
   - Navigation becomes hamburger menu.
   - Homepage sections stack vertically.
   - Calendar grid becomes a vertical list.
   - Event cards become mobile-friendly.
   - Modal adapts to mobile screens.
   ---------------------------------------------------------- */

@media (max-width: 767px) {

  /* GLOBAL */

  .container {
    width: min(100% - 36px, 1180px);
  }

  .section {
    padding: 66px 0;
  }

  .demo-banner {
    padding: 10px 15px;
    font-size: 10px;
  }


  /* ----------------------------------------
     MOBILE HEADER
  ---------------------------------------- */

  .header-inner {
    min-height: 82px;
    flex-wrap: wrap;
    column-gap: 12px;
    row-gap: 0;
  }

  .logo-badge {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    padding: 4px;
  }

  .brand {
    gap: 10px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small {
    max-width: 215px;
    font-size: 9px;
    line-height: 1.5;
  }


  /* HAMBURGER BUTTON */

  .menu-toggle {
    display: flex;
  }


  /* MOBILE NAVIGATION */

  .primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 17px;
  }

  .primary-nav.nav-open {
    display: flex;
  }

  .nav-link {
    padding: 13px 15px;
  }

  .nav-link.active::after {
    right: auto;
    bottom: 6px;
    left: 15px;
    width: 32px;
  }


  /* ----------------------------------------
     MOBILE HERO
  ---------------------------------------- */

  .hero {
    min-height: 510px;
  }

  .hero::after {
    background:
      linear-gradient(
        90deg,
        rgba(9, 22, 43, 0.95),
        rgba(12, 26, 48, 0.78)
      );
  }

  .hero-content {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: clamp(31px, 7vw, 46px);
    letter-spacing: -0.8px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-description {
    font-size: 13px;
  }


  /* ----------------------------------------
     MOBILE COMMUNITY VALUES
  ---------------------------------------- */

  .welcome-strip-inner {
    grid-template-columns: 1fr;
  }

  .welcome-strip-item {
    min-height: 60px;
    padding: 13px;
  }

  .welcome-strip-item + .welcome-strip-item {
    border-top: 1px solid var(--border);
    border-left: 0;
  }


  /* ----------------------------------------
     MOBILE ABOUT SECTION
  ---------------------------------------- */

  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-intro h2,
  .section-header h2 {
    font-size: 30px;
  }

  .heading-rule {
    margin: 19px 0;
  }

  .section-lead {
    font-size: 14px;
  }

  .about-content > p {
    font-size: 13px;
  }


  /* ----------------------------------------
     MOBILE EVENTS PREVIEW
  ---------------------------------------- */

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .event-preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-card {
    padding: 23px;
  }

  .preview-card-top {
    gap: 16px;
  }

  .preview-date {
    width: 63px;
    flex-basis: 63px;
  }

  .preview-card-info h3 {
    font-size: 17px;
  }


  /* ----------------------------------------
     MOBILE COMMUNITY CTA
  ---------------------------------------- */

  .community-cta {
    padding: 52px 0;
  }

  .community-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
  }


  /* ----------------------------------------
     MOBILE FOOTER
  ---------------------------------------- */

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 35px 24px;
    padding-top: 50px;
    padding-bottom: 45px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-logo-badge {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }

  .footer-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }


  /* ----------------------------------------
     MOBILE EVENTS PAGE HERO
  ---------------------------------------- */

  .page-hero {
    padding: 55px 0 60px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .page-hero p {
    font-size: 13px;
  }


  /* ----------------------------------------
     MOBILE CALENDAR TOOLBAR
  ---------------------------------------- */

  .calendar-panel {
    border-radius: 15px;
  }

  .calendar-toolbar {
    gap: 22px;
    padding: 24px 20px;
  }

  .calendar-toolbar-heading h2 {
    font-size: 25px;
  }

  .calendar-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .calendar-actions .btn {
    width: 100%;
    min-height: 43px;
    padding: 9px;
    font-size: 11px;
  }

  .calendar-actions .btn-gold {
    grid-column: 1 / -1;
  }


  /* ----------------------------------------
     HIDE DESKTOP CALENDAR GRID
  ---------------------------------------- */

  .calendar-desktop {
    display: none;
  }


  /* ----------------------------------------
     MOBILE CALENDAR — VERTICAL EVENT DAYS
  ---------------------------------------- */

  .mobile-calendar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  .mobile-date-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 14px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    text-align: left;

    transition:
      background var(--transition),
      border-color var(--transition);
  }

  .mobile-date-item:hover {
    background: var(--gold-pale);
    border-color: var(--gold);
  }

  .mobile-date-item.selected {
    border-color: var(--navy);
    background: #edf2f9;
  }


  /* MOBILE DATE BADGE */

  .mobile-date-badge {
    display: flex;
    width: 55px;
    min-height: 60px;
    flex: 0 0 55px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--navy);
    color: var(--white);
  }

  .mobile-date-badge span {
    color: var(--gold-light);
    font-size: 9px;
    font-weight: 800;
  }

  .mobile-date-badge strong {
    font-family: var(--heading-font);
    font-size: 24px;
    line-height: 1.3;
  }


  /* MOBILE DATE DETAILS */

  .mobile-date-details {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 5px;
  }

  .mobile-date-details strong {
    color: var(--navy);
    font-size: 12px;
  }

  .mobile-date-details > span {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .mobile-date-arrow {
    flex-shrink: 0;
    color: var(--gold);
    font-size: 19px;
    font-weight: 800;
  }


  /* EMPTY MOBILE CALENDAR */

  .mobile-calendar-empty {
    padding: 30px 15px;
    border: 1px dashed var(--border);
    border-radius: 9px;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
  }


  /* MOBILE CALENDAR LEGEND */

  .calendar-legend {
    gap: 12px 20px;
    padding: 18px 20px;
    font-size: 10px;
  }

  .calendar-tip {
    width: 100%;
    margin-left: 0;
  }


  /* ----------------------------------------
     MOBILE MONTHLY EVENT LIST
  ---------------------------------------- */

  .monthly-events {
    margin-top: 40px;
  }

  .monthly-events-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .monthly-events-header h2 {
    font-size: 25px;
  }


  /* EVENT CARD */

  .event-list-card {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    padding: 19px;
  }


  /* DATE BADGE */

  .event-list-date {
    width: 63px;
    min-height: 80px;
    flex-basis: 63px;
  }

  .event-list-date strong {
    font-size: 26px;
  }


  /* EVENT DETAILS */

  .event-list-content {
    flex-basis: calc(100% - 80px);
  }

  .event-list-content h3 {
    font-size: 15px;
  }

  .event-list-meta {
    gap: 4px 9px;
  }

  .event-list-meta span {
    font-size: 10px;
  }


  /* EDIT BUTTON */

  .event-list-actions {
    width: 100%;
    padding-top: 13px;
    border-top: 1px solid var(--border);
  }

  .event-list-actions .btn {
    width: 100%;
  }


  /* ----------------------------------------
     MOBILE DEMO INFO BOX
  ---------------------------------------- */

  .calendar-demo-info {
    margin-top: 35px;
    padding: 19px;
  }


  /* ----------------------------------------
     MOBILE EVENT MODAL
  ---------------------------------------- */

  .modal-overlay {
    align-items: center;
    padding: 12px;
  }

  .modal-panel {
    max-height: calc(100dvh - 24px);
    border-radius: 13px;
  }

  .modal-header {
    padding: 22px 20px 0;
  }

  .modal-header h2 {
    font-size: 21px;
  }

  .modal-description {
    margin-right: 20px;
    margin-left: 20px;
  }

  #event-form {
    padding: 23px 20px 25px;
  }

  .form-row {
    gap: 12px;
  }

  .form-group {
    margin-bottom: 17px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px;
  }


  /* MODAL BUTTONS */

  .modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-footer-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    margin-left: 0;
  }

  .modal-footer-actions .btn {
    padding: 10px;
    font-size: 12px;
  }

  #delete-event:not(.hidden) {
    width: 100%;
  }

}


/* ----------------------------------------------------------
   20. EXTRA SMALL MOBILE — BELOW 390px
   ---------------------------------------------------------- */

@media (max-width: 390px) {

  .container {
    width: min(100% - 28px, 1180px);
  }


  /* HEADER */

  .brand-copy strong {
    font-size: 12px;
  }

  .brand-copy small {
    max-width: 175px;
    font-size: 8px;
  }

  .logo-badge {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }


  /* HERO */

  .hero h1 {
    font-size: 30px;
  }


  /* FOOTER */

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }


  /* MODAL */

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-header h2 {
    font-size: 19px;
  }


  /* EVENT LIST */

  .event-list-content {
    flex-basis: calc(100% - 78px);
  }

}


/* ----------------------------------------------------------
   21. ACCESSIBILITY / REDUCED MOTION

   Respects system settings for users who
   prefer reduced animation and transitions.
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

}

/* ==========================================================
   ADMIN LOGIN STYLES
   ========================================================== */
.admin-link {
  background: none;
  border: none;
  font-family: var(--body-font);
  cursor: pointer;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #e0e7f2;
  text-align: left;
  transition: background var(--transition), color var(--transition);
}

.admin-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

@media (max-width: 767px) {
  .admin-link {
    width: 100%;
    padding: 13px 15px;
    font-size: 13px;
  }
}

#login-error {
  color: var(--red);
  font-size: 12px;
  margin-top: 10px;
  display: none;
}