/* ═══════════════════════════════════════════
   EAST IDAHO — SHARED STYLES
   styles.css
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ══════════════════════════════════
   CSS VARIABLES
══════════════════════════════════ */
:root {
  --navy: #0f1a2e;
  --navy-mid: #1a2940;
  --navy-light: #243352;
  --slate: #3d4a5c;
  --coral: #f0956c;
  --coral-light: #fcb498;
  --coral-soft: #fdd5c2;
  --sunrise: #e8735a;
  --cream: #faf9f7;
  --warm-white: #f3f1ed;
  --parchment: #ece8e1;
  --stone: #ddd8d0;
  --text-primary: #0f1a2e;
  --text-body: #3d4a5c;
  --text-muted: #7a8394;
  --text-faint: #a8adb8;
}

/* ══════════════════════════════════
   RESET & BASE
══════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════
   NAVIGATION
══════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15,26,46,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-logo {
  height: 40px;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.3px; transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--coral) !important; color: #fff !important;
  padding: 9px 22px; border-radius: 5px;
  font-weight: 600 !important; transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--sunrise) !important; }

/* Sticky nav variant (for subpages without fixed positioning) */
nav.sticky {
  position: sticky;
  height: 64px;
  background: var(--navy);
  backdrop-filter: none;
}

/* ══════════════════════════════════
   SHARED TYPOGRAPHY
══════════════════════════════════ */
.section-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 3px;
  color: var(--coral); font-weight: 700; margin-bottom: 8px;
}
.section-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 38px; color: var(--text-primary);
  line-height: 1.15; margin-bottom: 20px;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer {
  background: #0a1220;
  padding: 48px; text-align: center;
}
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 48px; opacity: 0.8; display: inline-block; }
.footer-links {
  display: flex; justify-content: center;
  gap: 28px; margin-bottom: 24px; flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.4); text-decoration: none;
  font-size: 13px; font-weight: 500; transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-legal { font-size: 12px; color: rgba(255,255,255,0.2); line-height: 1.6; }
.footer-legal-links {
  margin-bottom: 12px; display: flex; justify-content: center; gap: 20px;
}
.footer-legal-links a {
  color: rgba(255,255,255,0.3); text-decoration: none; font-size: 12px; transition: color 0.2s;
}
.footer-legal-links a:hover { color: rgba(255,255,255,0.5); }

/* ══════════════════════════════════
   MODALS
══════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 18, 32, 0.85); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--cream); border-radius: 12px;
  max-width: 560px; width: 100%; padding: 40px 36px;
  position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  max-height: 90vh; overflow-y: auto; animation: modalIn 0.3s ease-out;
}
.modal.wide { max-width: 800px; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--warm-white); color: var(--text-muted);
  font-size: 18px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: background 0.2s;
}
.modal-close:hover { background: var(--stone); }
.modal-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 3px;
  color: var(--coral); font-weight: 700; margin-bottom: 8px;
}
.modal-title {
  font-family: 'DM Serif Display', serif; font-size: 28px;
  color: var(--text-primary); line-height: 1.2; margin-bottom: 16px;
}
.modal-text { font-size: 15px; color: var(--text-body); line-height: 1.7; margin-bottom: 16px; }
.modal-form { display: flex; gap: 10px; margin-top: 20px; }
.modal-form input {
  flex: 1; padding: 13px 18px; border: 1px solid var(--stone);
  border-radius: 6px; background: var(--warm-white); color: var(--text-primary);
  font-family: 'Outfit', sans-serif; font-size: 15px; outline: none; transition: border-color 0.2s;
}
.modal-form input:focus { border-color: var(--coral); }
.modal-form button {
  padding: 13px 24px; background: var(--coral); color: #fff;
  border: none; border-radius: 6px; font-family: 'Outfit', sans-serif;
  font-size: 15px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: background 0.2s;
}
.modal-form button:hover { background: var(--sunrise); }
.modal-form-message { display: none; margin-top: 12px; font-size: 14px; font-weight: 600; }

/* Business modal */
.biz-modal-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--stone); }
.biz-modal-emoji { font-size: 48px; }
.biz-modal-category { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--coral); font-weight: 700; }
.biz-modal-name { font-family: 'DM Serif Display', serif; font-size: 26px; color: var(--text-primary); line-height: 1.2; }
.biz-modal-detail { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.biz-modal-links { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.biz-modal-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 6px; font-size: 13px; font-weight: 700; text-decoration: none; transition: all 0.2s; }
.biz-modal-link.primary { background: var(--coral); color: #fff; }
.biz-modal-link.primary:hover { background: var(--sunrise); }
.biz-modal-link.secondary { background: var(--warm-white); color: var(--text-body); border: 1px solid var(--stone); }
.biz-modal-link.secondary:hover { background: var(--parchment); }

/* Contact form fields */
.contact-field { margin-bottom: 14px; }
.contact-field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 6px; }
.contact-field input, .contact-field textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--stone); border-radius: 6px;
  background: var(--warm-white); color: var(--text-primary); font-family: 'Outfit', sans-serif;
  font-size: 15px; outline: none; transition: border-color 0.2s;
}
.contact-field input:focus, .contact-field textarea:focus { border-color: var(--coral); }
.contact-field textarea { min-height: 120px; resize: vertical; }
.contact-submit {
  padding: 13px 28px; background: var(--coral); color: #fff; border: none;
  border-radius: 6px; font-family: 'Outfit', sans-serif; font-size: 15px;
  font-weight: 700; cursor: pointer; transition: background 0.2s; width: 100%; margin-top: 8px;
}
.contact-submit:hover { background: var(--sunrise); }

/* ══════════════════════════════════
   SHARED COMPONENTS
══════════════════════════════════ */

/* Subscribe CTA block */
.subscribe-cta { background: var(--coral); border-radius: 8px; padding: 28px; text-align: center; margin: 40px 0; }
.subscribe-cta p { color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.subscribe-cta a {
  display: inline-block; padding: 11px 28px; background: #fff; color: var(--coral);
  font-size: 14px; font-weight: 700; text-decoration: none; border-radius: 5px;
}

/* Sponsor grid (used in blog posts and newsletter) */
.sponsors-bar { background: var(--warm-white); border: 1px solid var(--stone); border-radius: 8px; padding: 20px; }
.sponsors-label { font-size: 9px; text-transform: uppercase; letter-spacing: 2.5px; color: var(--text-faint); font-weight: 700; margin-bottom: 12px; text-align: center; }
.sponsors-grid-sm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sponsor-item-sm { text-align: center; padding: 10px 8px; background: #fffdf9; border-radius: 6px; border: 1px solid #e8e2d8; text-decoration: none; display: block; }
.sponsor-item-sm .sponsor-name { font-size: 12.5px; font-weight: 700; color: var(--text-primary); display: block; }
.sponsor-item-sm .sponsor-type { font-size: 10.5px; color: var(--text-muted); }

/* Info box (used in blog posts for business details) */
.info-box { background: var(--warm-white); border: 1px solid var(--stone); border-radius: 8px; padding: 24px; margin: 32px 0; }
.info-box-title { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--text-primary); margin-bottom: 12px; }
.info-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--stone); font-size: 15px; color: var(--text-body); }
.info-row:last-child { border-bottom: none; }
.info-icon { flex-shrink: 0; width: 24px; text-align: center; }
.info-label { font-weight: 700; color: var(--text-primary); min-width: 70px; }

/* Page header (shared dark header for subpages) */
.page-header { background: var(--navy); padding: 48px 48px 56px; position: relative; overflow: hidden; }
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 15% 80%, rgba(240,149,108,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(26,41,64,0.6) 0%, transparent 50%);
}
.page-header-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.page-header-back { display: inline-block; font-size: 13px; color: rgba(255,255,255,0.3); text-decoration: none; margin-bottom: 24px; transition: color 0.2s; }
.page-header-back:hover { color: rgba(255,255,255,0.6); }
.page-header-meta { font-size: 12px; color: var(--coral); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 12px; }
.page-header-title { font-family: 'DM Serif Display', serif; font-size: 42px; color: #fff; line-height: 1.12; margin-bottom: 14px; }
.page-header-subtitle { font-size: 17px; color: rgba(255,255,255,0.4); line-height: 1.7; font-weight: 300; }
.page-header-tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.page-header-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; padding: 4px 12px; border-radius: 4px; background: rgba(240,149,108,0.12); color: var(--coral); }

/* Article body (shared for blog posts) */
.article-body { max-width: 680px; margin: 0 auto; padding: 48px 24px 60px; }
.article-body h2 { font-family: 'DM Serif Display', serif; font-size: 28px; color: var(--text-primary); margin: 40px 0 16px; line-height: 1.2; }
.article-body h3 { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--text-primary); margin: 32px 0 12px; line-height: 1.25; }
.article-body p { font-size: 17px; color: var(--text-body); line-height: 1.85; margin-bottom: 18px; }
.article-body strong { color: var(--text-primary); }
.article-body a { color: var(--coral); }
.article-body img.hero-img { width: 100%; border-radius: 10px; margin-bottom: 32px; }

/* Divider */
.divider { height: 1px; margin: 40px 0; background: linear-gradient(to right, var(--coral), var(--stone) 40%, transparent); }

/* ══════════════════════════════════
   ANIMATIONS
══════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════
   RESPONSIVE — SHARED
══════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .section-heading { font-size: 32px; }
  .modal { padding: 28px 24px; }
  .modal-form { flex-direction: column; }
  .page-header { padding: 36px 24px 44px; }
  .page-header-title { font-size: 30px; }
  .article-body { padding: 36px 20px 48px; }
  .sponsors-grid-sm { grid-template-columns: repeat(2, 1fr); }
  footer { padding: 36px 24px; }
}
