/* === MINIMAL SHARE.CSS - Spider Web Untangler === */
/* Only the essentials - let each page keep its personality */

/* CSS Variables - Define once, use everywhere */
:root {
  --site-blue: #1e3c72;
  --site-blue-light: #2a5298;
  --site-orange: #ff6b35;
  --site-orange-light: #f7931e;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --urgency-red: #c0392b;
  --urgency-red-dark: #a93226;
}

/* ===== UNIVERSAL FONT SYSTEM ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Ensure all text elements inherit the system font */
h1, h2, h3, h4, h5, h6,
p, div, span, a, button, input, textarea, select,
.site-title, .section-title, .toolkit-title {
    font-family: inherit;
}

        /* Header Container */
        header {
            background: linear-gradient(135deg, #2c5282, #3d6ba8);
            padding: 1rem 2rem;
        }

        /* Branding Section */
        .site-branding {
            color: white;
            margin-bottom: 1rem;
        }

        .site-branding h1 {
            font-size: 2.5rem;
            margin-bottom: 0.25rem;
        }

        .site-branding .tagline {
            font-style: italic;
            font-size: 1rem;
            opacity: 0.9;
        }

        /* Navigation Container - Two Box Layout */
        /* Header container: 2 columns — nav on the left, icons on the right */
        .nav-container{
          display: grid;
          grid-template-columns: auto min-content;  /* left grows to content, right hugs icons */
          column-gap: 1rem;                         /* the fixed space between nav and icons */
          align-items: center;
        }

        /* Box 1: Navigation Buttons */
        /* Nav grid: equal columns, packed to its content */
        .nav-buttons{
          display: grid;
          grid-template-columns: repeat(4, minmax(12ch, 1fr));
          gap: 0.75rem;
          width: max-content;        /* prevents “phantom” stretch */
        }

        .nav-buttons a {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            height: 50px;
            text-decoration: none;
            font-size: 1rem;
            font-weight: 500;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
            white-space: nowrap;
            
            /* add these for consistent alignment */
            display: flex;
            align-items: center;        /* vertical centering */
            justify-content: center;    /* horizontal centering */
            width: 100%;                /* makes each button stretch to fill its grid cell */
        }

        /* icon-only links — no pill background, show SVG’s native colors */
        .nav-buttons a.icon-only {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          padding: 0.5rem;
          background: none !important;
          border: none !important;
          height: auto;
          line-height: 1;
        }

        /* Let SVGs use their native colors */
        .nav-buttons a.icon-only svg {
          width: 28px;
          height: 28px;
          /* Don't force any fill or stroke - let the SVG's own attributes work */
        }

        .nav-buttons a.icon-only:hover {
          filter: brightness(1.2);
        }

        .nav-buttons a:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        /* Home Icon Button */
        .nav-buttons a.home-btn {
            font-size: 1.5rem;
            padding: 0.75rem 1.25rem;
        }

        /* Special styling for "Enough Of Us" button */
        .nav-buttons a.highlight-btn {
            background: linear-gradient(135deg, #ff6b35, #ff8c42);
            border: 1px solid rgba(255, 255, 255, 0.3);
            font-weight: 600;
        }

        .nav-buttons a.highlight-btn:hover {
            background: linear-gradient(135deg, #ff8c42, #ffa35c);
        }

        /* Box 2: Utility Icons */
        /* Icon stack: just a vertical column; NO margin-left:auto */
        .utility-icons{
          display: none;
          flex-direction: column;
          gap: 0.75rem;
          /* make sure there is no margin-left pushing it away */
          margin-left: 0;
          flex: 0 0 auto;
        }

        .utility-icons button {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            padding: 0.5rem;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1.25rem;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .utility-icons button:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        .utility-icons button svg {
            width: 22px;
            height: 22px;
            fill: currentColor;
        }

        /* The icon pair occupies row 2, column 4 */
        .icon-cluster {
          grid-column: 4;
          grid-row: 2;
          display: flex;                      /* ← horizontal, side-by-side */
          gap: 0.75rem;                       /* spacing between the two icons */
          justify-content: center; 
          align-items: center;
        }

        /* Icon look */
        .icon-cluster .icon {
          width: 50px; height: 50px; padding: 0;
          display: flex; align-items: center; justify-content: center;
          border: 1px solid rgba(255,255,255,.2);
          border-radius: 8px;
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .nav-buttons {
                grid-template-columns: repeat(3, 1fr);
            }
            .icon-cluster { gap: 0.5rem; }
            .icon-cluster .icon { width: 44px; height: 44px; }
        }

        .icon-cluster button,
        .icon-cluster a {
          color: inherit;       /* no forced black/white */
          background: none;     /* remove background box */
          border: none; 
          padding: 0.25rem;
          display: inline-flex;
          align-items: center;
          justify-content: center;
        }

        @media (max-width: 768px) {
            .nav-container {
                flex-direction: column;
                gap: 1rem;
            }

            .nav-buttons {
                grid-template-columns: repeat(2, 1fr);
                width: 100%;
            }

            .utility-icons {
                flex-direction: row;
                width: 100%;
                justify-content: center;
            }

            .site-branding h1 {
                font-size: 2rem;
            }
        }

        @media (max-width: 480px) {
            .nav-buttons {
                grid-template-columns: 1fr;
            }

            .nav-buttons a {
                padding: 0.5rem;
            }
        }

    /* Email Icon Button in Header */
        .email-contact-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .email-contact-btn:hover {
            color: #4a9eff;
        }

        .email-contact-btn svg {
            width: 22px;
            height: 22px;
            fill: currentColor;
        }

        /* Email Contact Overlay */
        .email-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 10000;
            display: none;
            align-items: flex-start;
            padding-top: 5vh;
            justify-content: center;
            padding: 2rem;
            backdrop-filter: blur(5px);
        }

        .email-overlay.active {
            display: flex;
        }

        /* Email Contact Popup */
        .email-popup {
            background: linear-gradient(135deg, #1e3c72, #2a5298);
            color: white;
            padding: 3rem;
            border-radius: 20px;
            max-width: 700px;
            width: 100%;
            text-align: center;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
            border: 2px solid rgba(255, 255, 255, 0.2);
            position: relative;
            max-height: 90vh;
            overflow-y: auto;
        }

        .email-popup h2 {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .email-popup p {
            font-size: 1.2rem;
            line-height: 1.8;
            margin-bottom: 1.5rem;
        }

        .email-popup .emphasis {
            font-weight: 600;
            color: #ffd700;
        }

        /* Close Button */
        .close-email-popup {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .close-email-popup:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(90deg);
        }

        /* FAQ Link Button */
        .faq-link-btn {
            display: inline-block;
            background: linear-gradient(135deg, #ffd700, #ffed4e);
            color: #1e3c72;
            padding: 1rem 2.5rem;
            font-size: 1.3rem;
            font-weight: 600;
            border-radius: 50px;
            text-decoration: none;
            margin-top: 1.5rem;
            box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
            transition: all 0.3s ease;
        }

        .faq-link-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .email-popup {
                padding: 2rem;
                max-width: 90%;
            }

            .email-popup h2 {
                font-size: 2rem;
            }

            .email-popup p {
                font-size: 1rem;
            }

            .faq-link-btn {
                padding: 0.8rem 2rem;
                font-size: 1.1rem;
            }
        }

/* === UNIFIED HEADER === */
/* Matches your actual HTML structure */

.site-header {
  background: linear-gradient(135deg, var(--site-blue), var(--site-blue-light));
  padding: 1rem 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Keep brand + nav on one row when there's room */
.site-header .header-inner {
  display: flex;
  align-items: center;
}

/* Brand gets a flexible (but bounded) width */
.site-header .brand {
  /* grows, and its preferred width scales with viewport */
  flex: 1 1 clamp(280px, 42vw, 560px);
  text-align: center;
  margin-right: .75rem;
}

/* Nav only takes the space it truly needs and can shrink if needed */
.site-header .main-nav {
  flex: 0 1 auto;
  min-width: max-content;   /* avoid clipping nav items */
}

/* Subtitle niceties */
.site-subtitle {
  display: inline-block;
  line-height: 1.35;
}

/* When things get tighter, let nav drop below so nothing wraps awkwardly */
@media (max-width: 1100px) {
  .site-header .header-inner { flex-wrap: wrap; }
  .site-header .brand       { flex: 1 1 100%; margin-bottom: .5rem; }
  .site-header .main-nav    { flex: 0 1 100%; justify-content: center; }
}

/* Optional: slightly reduce nav spacing on narrower widths */
@media (max-width: 1250px) {
  .main-nav { gap: .6rem; }
  .nav-menu li a,
  .cta,
  .profile-btn { padding: .6rem 1rem; }
}

.brand .site-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.brand .site-subtitle {
  margin: 0.25rem 0 0 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  font-weight: bold;
  text-align: center;
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

.cta.cta-gradient {
  background: linear-gradient(45deg, var(--site-orange), var(--site-orange-light));
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.cta.cta-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}
/* --- Make the logo readable in the header --- */
.brand .site-title a,
.brand .site-title a:visited {
  color: #fff;                 /* override default purple/visited */
  text-decoration: none;       /* no underline on the logo */
  text-shadow: 2px 2px 4px rgba(0,0,0,.35);
  display: inline-block;
}

.brand .site-title a:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

/* Softer focus ring just for the logo (override global a:focus) */
.brand .site-title a:focus {
  outline: 3px solid rgba(255,255,255,.85);
  outline-offset: 4px;
  border-radius: 6px;
}

/* === SACRED URGENCY BAR === */
/* Updated to match your .urgency-bar class */

.urgency-bar {
  display: block;
  width: 97%;
  margin: 0 auto; 
  padding: 0.65rem 0.855rem;
  background: linear-gradient(180deg, #ff3b2f 0%, var(--urgency-red) 100%);
  border-radius: 30px;
  color: var(--text-light);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.urgency-bar::before {
  content: "";
  position: absolute;
  top: 0; left: -30%;
  height: 100%; width: 30%;
  transform: skewX(-25deg);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
  animation: sweep 2.4s linear infinite;
}

.urgency-bar:hover {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.4);
}

.urgency-bar:hover::before {
  left: 100%;
}


/* Remove link styling from urgency bar */
a.urgency-bar,
a.urgency-bar:link,
a.urgency-bar:visited,
a.urgency-bar:hover,
a.urgency-bar:active {
  text-decoration: none;
  color: var(--text-light);
}

/* Sacred urgency text inside the urgency bar */
.sacred-urgency-text {
  margin: 0.95rem 0;   /* adjust up/down for bigger or smaller gap */
  font-size: 1rem;
  line-height: 1.55;
  display: block;
}

.course-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.9), rgba(139, 69, 19, 0.9));
    color: #f5deb3;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.6);
    max-width: 300px;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: none;
}

.course-popup.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .course-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* === ACCESSIBILITY BASICS === */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  z-index: 9999;
  background: #fff;
  color: var(--site-blue);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 3px rgba(30,60,114,0.2);
}

/* === TEXT VISIBILITY INSURANCE === */
/* Ensure text is readable without being too aggressive */

.container {
  /* Only set a fallback - let pages override */
  color: var(--text-dark);
}

/* Prevent webkit gradient text from disappearing */
.page-title {
  /* Let pages style this, but ensure visibility fallback */
  -webkit-text-fill-color: unset !important;
}

/* === MOBILE HEADER === */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .site-title {
    font-size: 1.8rem;
  }
}
/* === REDUCED MOTION === */

@media (prefers-reduced-motion: reduce) {
  .sacred-urgency-bar::before {
    display: none !important;
  }
  
  .cta-gradient:hover {
    transform: none;
  }
}

/* === SHARE & REFERRAL COMPONENT (Optional) === */
/* Only loaded if a page needs it */

.share-referral {
  margin: 2rem auto 0;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  max-width: 860px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.share-title {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--site-blue);
  margin-bottom: 1rem;
}

.share-title::before {
  content: "";
  width: 8px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(45deg, var(--site-orange), var(--site-orange-light));
}

.ref-row, .share-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ref-input {
  height: 46px;
  font-size: 1rem;
}

.btn {
  height: 46px;
  padding: 0 1rem;
  font-weight: 800;
}

.nav-search-btn svg{ stroke:currentColor; fill:none; stroke-width:1.5; }

/* Author Profile Button */
.profile-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white;
}

/* Cross-link footer */
.page-crosslinks {margin:3rem auto 0; max-width:1000px; padding:1.25rem; border-top:1px solid rgba(255,255,255,.15)}
.page-crosslinks h2 {font-size:1.25rem; margin:0 0 .75rem 0; letter-spacing:.2px; color: #e0e0e0;}
.page-crosslinks .links {display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:1rem}
.page-crosslinks .card {border:1px solid rgba(255,255,255,.15); border-radius:.75rem; padding:1rem; background: rgba(255,255,255,0.05);}
.page-crosslinks .card p {margin:.25rem 0 .75rem 0; font-size:.95rem; opacity:.9; color: #ccc;}
.page-crosslinks .card a {display:inline-block; text-decoration:none; font-weight:600; color: #ff6b6b;}

/* --- Header search --- */
.nav-search-btn {
  border: 0; 
    background: transparent;
    cursor: pointer;
    margin-left: .75rem; 
    padding: .5rem; 
    border-radius: .5rem;
}
.nav-search-btn:focus { 
    outline: 3px solid #ff6b35; 
    outline-offset: 2px; }

/* Make the magnifying glass visible on the dark header */
.nav-search-btn { 
  color: #fff;            /* drives stroke when using currentColor */
}

.nav-search-btn svg {
  stroke: currentColor;   /* icon follows the button’s text color */
  width: 22px;
  height: 22px;
  stroke-width: 2;        /* give it some weight */
}

/* Optional: subtle hover */
.nav-search-btn:hover { 
  color: #e6f0ff;
}

.nav-search-panel {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.95);
  border-radius: .75rem; padding: .5rem .5rem .5rem .75rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  position: relative;
}
.nav-search-panel[hidden] { display: none; }
.nav-search-panel input[type="search"] {
  width: 16rem; max-width: 50vw;
  border: 1px solid #d1d5db; border-radius: .5rem; padding: .5rem .75rem;
}
.nav-search-submit {
  border: 0; border-radius: .5rem; padding: .5rem .75rem;
  background: linear-gradient(45deg, #2563eb, #00bcd4); color: #fff; cursor: pointer;
}
.nav-search-submit:focus { outline: 3px solid #ff6b35; outline-offset: 2px; }
.nav-search-close {
  border: 0; background: transparent; font-size: 1.25rem; cursor: pointer;
  padding: .25rem .5rem; border-radius: .5rem;
}
.nav-search-close:focus { outline: 3px solid #ff6b35; outline-offset: 2px; }

/* Visually hidden utility (if you don’t already have one) */
.visually-hidden {
  position: absolute !important; height: 1px; width: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Mobile adjustments for nav with profile button */
@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .profile-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .profile-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
}
    
    :root{
  --container: 1200px;
  --container-wide: 1400px;
  --container-narrow: 72ch; /* ~68–72 characters is optimal for reading */
}

.container--wide{   max-width: var(--container-wide); }
.container--narrow{ max-width: var(--container-narrow); }

/* === Accessibility improvements (Reading Teams) === */
.rehab-step:focus { outline: 3px solid #ffd700; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .rehab-step { transition: none !important; }
  .rehab-step:hover { transform: none !important; box-shadow: none !important; }
}

a:focus { outline: 3px solid #ff6b35; outline-offset: 3px; }
a:hover { text-decoration: underline; }

.stat-label { opacity: 1; color: #253444; }

/* Accessibility: make keyboard focus on buttons clearly visible */
.pathway-btn:focus {
  outline: 3px solid #ff6b35;
  outline-offset: 3px;
}

/* === SHARE OVERRIDES — 2025‑09‑16 (surgical, non-destructive) ===
   Drop this block at the very END of your existing share.css
   OR link as a second stylesheet AFTER share.css.
   Purpose: prevent brand/title wrapping, free horizontal space
   for 3‑beat subtitle, and keep nav from pushing content off-screen.
*/

/* 1) Brand / Title: keep “We Are Dreams” on one line and scale responsibly */
.brand .site-title { 
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
  margin: 0;
}
.brand .site-title a,
.brand .site-title a:visited {
  white-space: nowrap;                 /* prevent wrap */
  text-shadow: 2px 2px 4px rgba(0,0,0,.35);
}

/* 2) Subtitle rhythm & readability */
.site-subtitle {
  display: inline-block;
  line-height: 1.35;
  margin: .15rem 0 0 0;
  font-style: italic;
}

/* 3) Header layout: keep brand and nav balanced on one row when possible */
.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Brand grows but doesn’t hog space; stays centered */
.site-header .brand {
  flex: 1 1 auto;
  text-align: center;
}

/* Nav only takes what it needs and won’t clip its items */
.site-header .main-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex: 0 1 auto;
  min-width: max-content;
}

/* 4) Navigation buttons — unified sizing (slimmer by default) */
.nav-menu { display: flex; gap: .9rem; list-style: none; margin: 0; padding: 0; }
.nav-menu li a,
.cta,
.profile-btn {
  display: inline-block;
  font-size: 0.9rem;          /* smaller text = more room */
  padding: 0.5rem 0.9rem;     /* slimmer horizontal padding */
  font-weight: 600;
  min-height: 2.75rem;        /* keep targets comfortably tappable */
}

/* 5) Responsive tightening at medium widths */
@media (max-width: 1250px) {
  .site-header .main-nav { gap: .5rem; }
  .nav-menu { gap: .6rem; }
  .nav-menu li a,
  .cta,
  .profile-btn {
    font-size: 0.85rem;
    padding: 0.45rem 0.8rem;
  }
}

/* 6) Graceful wrap at smaller widths: nav drops below brand instead of squeezing it */
@media (max-width: 1100px) {
  .site-header .header-inner { flex-wrap: wrap; }
  .site-header .brand { flex: 1 1 100%; margin-bottom: .5rem; text-align: center; }
  .site-header .main-nav { flex: 0 1 100%; justify-content: center; }
}

/* 7) Optional: visible focus outline for accessibility (safe additive default) */
:where(a,button,[role="button"],input,select,textarea):focus {
  outline: 3px solid #ff6b35;
  outline-offset: 3px;
}

/* Emergency Call Footer Bar */
.emergency-call-bar {
    background: linear-gradient(135deg, #8B0000 0%, #CD5C5C 50%, #FF6B6B 100%);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 3px solid #ff6b6b;
}

.emergency-call-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 2rem;
}

.emergency-call-text {
    color: white;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    text-align: left;
}

.emergency-call-btn {
    background: white;
    color: #8B0000;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.emergency-call-btn:hover {
    background: #ffcc02;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .emergency-call-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .emergency-call-text {
        text-align: center;
        font-size: 1rem;
    }
}

/* Bottom Call Button - Gentle but Present */
.call-button-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.call-nav-button {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    transition: all 0.4s ease;
    animation: gentlePulse 3s ease-in-out infinite;
}

.call-nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(231, 76, 60, 0.6);
    animation: none;
}

/* Gentle pulse - not aggressive */
@keyframes gentlePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(231, 76, 60, 0.6);
    }
}

/* Modal Overlay - Dark but not oppressive */
.call-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content - Clean, focused */
.call-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b1b 100%);
    padding: 3rem;
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(231, 76, 60, 0.3);
    animation: slideUp 0.4s ease;
}

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

/* Close button - subtle but clear */
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Modal Message */
.modal-message {
    color: #e8e8e8;
    text-align: center;
}

.modal-message p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #ddd;
}

/* Call to Action Button in Modal */
.modal-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
}

.modal-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(231, 76, 60, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .call-modal-content {
        padding: 2rem;
        width: 95%;
    }
    
    .modal-message p {
        font-size: 1rem;
    }
    
    .call-nav-button {
        font-size: 1rem;
        padding: 0.9rem 2rem;
    }
}