:root {
  --max: 980px;
  --narrow: 720px;
  --tint: #efd6d1;
  --accent: #c98f86;
  --border: #ededed;
  --muted: #666;
  --soft: #fafafa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  color: #222;
  background: #fff;
}

/* Layout */
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(var(--narrow), calc(100% - 48px)); margin: 0 auto; }
.center { text-align: center; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { 
  position: relative; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 1.5rem; 
  padding: 16px 0; 
}
.brand { 
  position: static; 
  transform: none; 
  flex: 1; 
  text-align: center; 
  order: 1; 
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.brand-title { font-weight: 650; }
.brand-tagline { font-size: 12px; color: var(--muted); }
.header-left-menu { 
  display: flex; 
  gap: 0.75rem; 
  order: 0; 
}

/* Premium Header Buttons - Glassmorphism Navy */
.header-left-menu a,
#location-center,
.top-btn {
  position: relative;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-family: inherit !important;
}

/* Navy Buttons (About/Sarah/Location) */
.header-left-menu a,
#location-center {
  background: rgba(26, 42, 68, 0.15) !important;
  color: #1a2a44 !important;
  box-shadow: 
    0 8px 32px rgba(26, 42, 68, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.header-left-menu a:hover,
#location-center:hover {
  background: rgba(26, 42, 68, 0.25) !important;
  color: #1a2a44 !important;
  transform: translateY(-4px) !important;
  box-shadow: 
    0 20px 40px rgba(26, 42, 68, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* Register Accent Button */
.top-btn {
  background: linear-gradient(135deg, var(--accent), #d4a899) !important;
  color: #fff !important;
  box-shadow: 
    0 8px 32px rgba(201, 143, 134, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.top-btn:hover {
  background: linear-gradient(135deg, #c98f86, var(--accent)) !important;
  transform: translateY(-4px) !important;
  box-shadow: 
    0 20px 40px rgba(201, 143, 134, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.3) !important;
}

/* Sections */
.section { padding: 26px 0; }
.section-tint { background: var(--tint); }
.section-title { margin: 0 0 12px; font-size: 18px; font-weight: 600; }

.para {
  margin: 10px 0;
  line-height: 1.7;
  color: #444;
  text-align: justify;
}

/* About/Sarah Alignment */
.about-fundraiser .fundraiser-text,
#sarah-todd .fundraiser-text {
  padding: 0;
  margin: 0;
}
.sarah-photo {
  float: left;
  width: 200px;
  height: 190px;
  object-fit: cover;
  border-radius: 6px;
  margin: 6px 20px 10px 0;
}
.sarah-clear { clear: both; }

/* Registration */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; }
.checklist li { 
  position: relative; 
  padding-left: 26px; 
  margin: 14px 0; 
}
.checklist li::before { 
  content: "✓"; 
  position: absolute; 
  left: 0; 
}

/* Gravity Forms Card - Tight & Clean */
.reg-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.reg-card .gform_wrapper .gform_fields { 
  display: flex;
  flex-direction: column !important;
  gap: 5px !important;
}
.reg-card .gfield { 
  margin: 0 0 5px 0 !important; 
  padding: 0 !important; 
}
.reg-card .ginput_container { margin: 0 !important; }
.reg-card .gfield_label { 
  display: none !important; 
  height: 0 !important; 
  overflow: hidden !important; 
}
.reg-card input[type="text"], 
.reg-card input[type="email"], 
.reg-card input[type="tel"] {
  width: 100% !important; 
  margin: 0 0 5px 0 !important; 
  padding: 12px !important;
  border: 1px solid var(--border) !important; 
  background: var(--soft) !important;
  border-radius: 4px;
  font-size: 16px;
}
.reg-card .gform_button {
  width: 100% !important; 
  margin: 10px 0 0 0 !important; 
  padding: 14px !important;
  background: var(--accent) !important; 
  color: #fff !important; 
  border: 0 !important;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
}
.reg-card input[data-inputmask],
.reg-card input.inputmask {
  cursor: text !important;
}
.reg-card input.inputmask-focused {
  caret-color: #000 !important;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Mobile - Clean Elegant Stack */
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
  .header-inner { 
    flex-direction: column; 
    gap: 0.75rem; 
    text-align: center; 
  }
  .header-left-menu {
    order: 0 !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
  .brand {
    order: 1 !important;
    margin: 0;
    flex: none;
  }
  #location-center {
    order: 2 !important;
    width: fit-content;
  }
  .top-btn {
    order: 3 !important;
    width: fit-content !important;
  }
  .header-left-menu a,
  #location-center,
  .top-btn {
    padding: 10px 20px !important;
    font-size: 13px !important;
  }
  .sarah-photo { 
    float: none; 
    width: 100%; 
    max-width: 250px;
    margin: 0 auto 14px; 
    display: block; 
  }
  .para { text-align: center; }
}
/* custom.css */
.header-inner { 
    display: flex !important; 
    align-items: center !important;
    justify-content: center !important;
    gap: 2rem !important;
    padding: 12px 0 !important;
}

.logo {
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0 !important;
    order: -1 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    image-rendering: -webkit-optimize-contrast !important;
    object-fit: contain !important;
}

.logo:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.brand { 
    text-align: center !important;
    order: 1 !important;
    flex-grow: 1 !important;
}

.header-left-menu { 
    order: 0 !important; 
    gap: 1rem !important; 
    display: flex; /* Added for layout consistency */
}

.header-left-menu a, #location-center {
    color: white !important;
    text-decoration: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    background: rgba(26,42,68,0.9) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
}

.header-left-menu a:hover, #location-center:hover {
    background: rgba(26,42,68,1) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3) !important;
}

#location-center { order: 2 !important; }
.top-btn { order: 3 !important; }

/* Responsive Rules */
@media (min-width: 901px) {
    .header-inner { flex-wrap: nowrap !important; gap: 2rem !important; }
}

/* MOBILE FIX (max-width: 900px) */
@media (max-width: 900px) {
    .header-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 15px !important;
        gap: 1.5rem !important;
    }

    /* Top Row Fix: Logo + Brand side-by-side */
    .header-top-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .logo {
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0 !important;
    }

    .brand {
        text-align: left !important;
    }

    .brand-title {
        font-size: 1.25rem !important;
        margin: 0 !important;
    }

    .brand-tagline {
        font-size: 0.75rem !important;
    }

    /* 2x2 Button Grid Fix */
    .header-buttons-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* Forces 2 columns */
        gap: 10px !important;
        width: 100% !important;
    }

    /* Make every button fit the grid cell */
    .nav-btn, #location-center, .top-btn {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 5px !important;
        font-size: 0.85rem !important;
        border-radius: 10px !important;
        text-align: center !important;
        min-height: 50px !important; /* Ensures uniform height */
    }
}

/* DESKTOP RESET (Keep this for larger screens) */
@media (min-width: 901px) {
    .header-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .header-buttons-wrapper {
        display: flex !important;
        gap: 1rem !important;
    }
}
/* --- Desktop Styles (901px and above) --- */
@media (min-width: 901px) {
    .header-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 2rem !important;
    }
    .header-top-section, .header-action-grid {
        display: flex !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }
}

/* --- Mobile Styles (900px and below) --- */
@media (max-width: 900px) {
    .header-inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 1rem !important;
    }

    /* Logo + Brand on Top Row */
    .header-top-section {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .logo { width: 50px !important; height: 50px !important; }
    .brand { text-align: left !important; }

    /* The 2x2 Button Grid */
    .header-action-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* Two equal columns */
        gap: 10px !important;
        width: 100% !important;
    }

    /* Making the inner menu act as part of the grid */
    .header-left-menu { 
        display: contents !important; 
    }

    .header-left-menu a, #location-center, .top-btn {
        width: 100% !important;
        padding: 12px 5px !important;
        font-size: 0.85rem !important;
        text-align: center !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
}
/* Register Now CTA button */
.menu-cta a {
    background: linear-gradient(135deg, #c98f86, #d4a899) !important;
    color: #fff !important;
    box-shadow: 0 8px 32px rgba(201, 143, 134, 0.3) !important;
}

.menu-cta a:hover {
    background: linear-gradient(135deg, #d4a899, #c98f86) !important;
    box-shadow: 0 12px 40px rgba(201, 143, 134, 0.4) !important;
    transform: translateY(-2px) !important;
}
/* Fix mobile text alignment - keep justified on all screens */
@media (max-width: 800px) {
    .para {
        text-align: justify !important;
    }
    
    #about-fundraiser .para,
    #sarah-todd .para {
        text-align: justify !important;
    }
}
