/* ==========================================================================
   1. MASTER SETTINGS & VARIABLES
   ========================================================================== */
:root {
  --primary-color: #1a3a5f;    /* Navy Blue */
  --secondary-color: #f0f2f5;  /* Light Grey/Blue BG */
  --accent-color: #0056b3;     /* Bright Blue */
  --text-color: #1a1a1a;       /* Near Black */
  --focus-color: #ffca28;      /* Gold */
  --emergency-color: #d93025;  /* Bright Red */
  --base-font-size: 18px;      /* Controlled by JS Buttons */
}

/* The Master Switch for Text Size */
html {
  font-size: var(--base-font-size);
  scroll-behavior: smooth;
}

body {
  font-family: Verdana, Geneva, sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.8;
  /* 1rem means '100% of the Master Switch' */
  font-size: 1rem; 
}

/* ==========================================================================
   2. ACCESSIBILITY BAR (Top)
   ========================================================================== */
.accessibility-bar { 
  background: #333; 
  color: white; 
  padding: 12px; 
  text-align: center;
  font-size: 0.9rem;
}

.size-btn { 
  background: white; 
  border: 2px solid var(--focus-color); 
  padding: 6px 16px; 
  cursor: pointer; 
  border-radius: 6px; 
  margin: 0 5px;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.size-btn:hover {
  background: var(--focus-color);
}

/* ==========================================================================
   3. ADVISORY BANNER (Controlled by banner.js)
   ========================================================================== */
.advisory-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.severity-important {
  background-color: #ff0000 !important;
  color: #ffffff !important;
  border-bottom: 4px solid #8b0000;
  animation: alert-pulse 2s infinite;
}

.severity-notice {
  background-color: #ffca28 !important;
  color: #1a1a1a !important;
  border-bottom: 4px solid #f57f17;
}

.severity-info {
  background-color: #0056b3 !important;
  color: #ffffff !important;
  border-bottom: 4px solid #1a3a5f;
}

@keyframes alert-pulse {
  0% { background-color: #ff0000; }
  50% { background-color: #cc0000; }
  100% { background-color: #ff0000; }
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
header { 
  background-color: var(--primary-color); 
  color: white; 
  padding: 40px 20px; 
  text-align: center; 
  border-bottom: 6px solid var(--focus-color); 
}

header h1 { margin: 0; font-size: 2.5rem; }
header p { margin: 10px 0 0; font-size: 1.2rem; opacity: 0.9; }

nav { 
  background: white; 
  display: flex; 
  justify-content: center; 
  flex-wrap: wrap; 
  padding: 15px; 
  gap: 12px; 
  position: sticky; 
  top: 0; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  z-index: 1000; 
}

nav a { 
  text-decoration: none; 
  color: var(--primary-color); 
  font-weight: bold; 
  padding: 12px 20px; 
  border: 2px solid var(--primary-color); 
  border-radius: 8px; 
  transition: all 0.2s;
}

nav a:hover, nav a.active { 
  background-color: var(--accent-color); 
  color: white; 
  border-color: var(--accent-color);
}

/* ==========================================================================
   5. MAIN CONTENT & LAYOUT
   ========================================================================== */
main { 
  padding: 40px 25px; 
  max-width: 1000px; 
  margin: 30px auto; 
  background: white; 
  border-radius: 15px; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

h2 { color: var(--primary-color); font-size: 1.8rem; margin-top: 0; }
h3 { color: var(--accent-color); font-size: 1.4rem; }

.clearfix { clear: both; }

.responsive-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.float-left { float: left; margin: 0 25px 20px 0; }
.float-right { float: right; margin: 0 0 20px 25px; }

/* ==========================================================================
   6. CARDS & GRID COMPONENTS
   ========================================================================== */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.link-card {
  background: var(--secondary-color);
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.3rem;
  border-radius: 12px;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.link-card:hover {
  border-color: var(--accent-color);
  background: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card { 
  border: 2px solid var(--secondary-color); 
  padding: 25px; 
  border-radius: 12px; 
  background: #fff; 
  margin-bottom: 20px;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
footer { 
  text-align: center; 
  padding: 50px 20px; 
  background: var(--primary-color); 
  color: white; 
  margin-top: 60px; 
  font-size: 1rem;
}

/* ==========================================================================
   8. RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 768px) {
  .float-left, .float-right { 
    float: none; 
    margin: 0 auto 20px auto; 
    display: block; 
    width: 100%;
  }
  
  header h1 { font-size: 1.8rem; }
  
  nav { gap: 8px; padding: 10px; }
  nav a { padding: 10px 14px; font-size: 0.9rem; }
}

/* Location & Love Sections – Evergreen Theme */

.location-box,
.love-section {
  background: #f0f7f0;               /* soft, natural green-tinted background */
  border-left: 6px solid #3b6e3b;    /* deep evergreen accent */
  padding: 18px 22px;
  margin: 25px 0;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.6;
}

.location-box h3,
.love-section h2 {
  margin-top: 0;
  color: #2f5c2f;                    /* warm evergreen heading */
  font-weight: 700;
}

.love-section ul,
.location-box ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.love-section li,
.location-box li {
  margin-bottom: 6px;
}