  :root {
    --bg:        #f7f6f2;
    --white:     #ffffff;
    --ink:       #1a1f2e;
    --ink-mid:   #3d4560;
    --ink-light: #7a849e;
    --blue:      #1d4ed8;
    --blue-soft: #eff4ff;
    --blue-mid:  #3b6ef5;
    --green:     #059669;
    --green-soft:#ecfdf5;
    --amber:     #d97706;
    --amber-soft:#fffbeb;
    --red:       #dc2626;
    --red-soft:  #fef2f2;
    --border:    #e8e5dd;
    --shadow:    0 2px 16px rgba(26,31,46,0.07);
    --shadow-lg: 0 8px 40px rgba(26,31,46,0.10);
  }

  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  html { font-size: 16px; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* ═══════════════════════ NAV ═══════════════════════ */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    height: 64px;
    background: rgba(247,246,242,0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
  }

  .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
  }

  .nav-seal {
    width: 36px; height: 36px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .nav-brand-text {}

  .nav-brand-name {
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
  }

  .nav-brand-sub {
    font-size: 0.68rem;
    color: var(--ink-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
  }

  .nav-links a {
    display: block;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-mid);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
    cursor: pointer;
    white-space: nowrap;
  }

  .nav-links a:hover { background: var(--border); color: var(--ink); }
  .nav-links a.active { background: var(--blue); color: #fff; }

  .nav-cta {
    background: var(--blue) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 0.5rem 1.2rem !important;
    font-weight: 600 !important;
    margin-left: 10px;
  }

  .nav-cta:hover {
    background: var(--blue-mid) !important;
    transform: translateY(-1px); }

body {
  padding-top: 64px;
}

  @keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ═══════════════════════ SHARED ═══════════════════════ */
  .container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

  .section-header { margin-bottom: 2.5rem; }

  .tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-soft);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
  }

  .page-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 0.6rem;
  }

  .page-sub {
    font-size: 1rem;
    color: var(--ink-light);
    max-width: 560px;
    line-height: 1.7;
  }

  .divider { width: 48px; height: 3px; background: var(--blue); border-radius: 2px; margin: 1.2rem 0; }

  .card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
  }

  .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(29,78,216,0.18); }

  .btn-primary { background: var(--blue); color: #fff; }
  .btn-outline  { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
  .btn-sm       { padding: 0.45rem 0.9rem; font-size: 0.76rem; }

  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
  }

  .status-pending  { background: var(--amber-soft); color: var(--amber); }
  .status-approved { background: var(--green-soft);  color: var(--green); }
  .status-rejected { background: var(--red-soft);    color: var(--red); }

  /* ════════════════════ PAGE 1 : HOME ════════════════════ */
  #home { background: var(--bg); }

  /* Hero */
  .hero {
    background: linear-gradient(135deg, #1a1f2e 0%, #1d4ed8 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(59,110,245,0.3) 0%, transparent 50%);
  }

  .hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
  }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.25rem;
  }

  .hero-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }

  .hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.25rem;
  }

  .hero h1 em { font-style: italic; color: #93c5fd; }

  .hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.75;
  }

  .hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

  .btn-white { background: #fff; color: var(--blue); font-weight: 700; }
  .btn-white:hover { background: #f0f4ff; }

  .btn-glass {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
  }

  .btn-glass:hover { background: rgba(255,255,255,0.2); box-shadow: none; }

  /* Stats bar */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    min-width: 280px;
  }

  .hero-stat {
    background: rgba(255,255,255,0.07);
    padding: 1.25rem;
    text-align: center;
    backdrop-filter: blur(4px);
  }

  .hero-stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.3rem;
  }

  .hero-stat-label { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; }

  /* Quick services */
  .quick-services {
    padding: 3.5rem 0;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }

  .service-chip {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s;
    text-decoration: none;
  }

  .service-chip:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(29,78,216,0.1); transform: translateY(-2px); }

  .chip-icon {
    width: 40px; height: 40px;
    border-radius: 9px;
    background: var(--blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .chip-label { font-size: 0.87rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
  .chip-sublabel { font-size: 0.72rem; color: var(--ink-light); }

  /* Announcements */
  .home-two-col {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.5rem;
    padding-bottom: 4rem;
  }

  .announcement-card { padding: 1.75rem; }

  .ann-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
  .ann-title  { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--ink); }

  .ann-item {
    display: flex;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
  }

  .ann-item:last-child { border-bottom: none; }

  .ann-date {
    min-width: 42px;
    text-align: center;
    background: var(--blue-soft);
    border-radius: 6px;
    padding: 0.35rem 0.4rem;
  }

  .ann-month { font-size: 0.6rem; text-transform: uppercase; color: var(--blue); font-weight: 700; letter-spacing: 0.1em; }
  .ann-day   { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--blue); line-height: 1; }

  .ann-content {}
  .ann-name { font-size: 0.87rem; font-weight: 600; color: var(--ink); margin-bottom: 0.2rem; }
  .ann-desc { font-size: 0.78rem; color: var(--ink-light); line-height: 1.5; }

  /* Hours card */
  .hours-card { padding: 1.75rem; }
  .hours-title { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-bottom: 1.25rem; }

  .hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.83rem;
  }

  .hours-row:last-child { border-bottom: none; }
  .hours-day { color: var(--ink-mid); }
  .hours-time { font-weight: 600; color: var(--ink); }
  .hours-closed { color: var(--ink-light); font-style: italic; }

  .open-now { display: flex; align-items: center; gap: 0.4rem; background: var(--green-soft); color: var(--green); font-size: 0.72rem; font-weight: 700; padding: 5px 10px; border-radius: 20px; margin-bottom: 1rem; width: fit-content; }
  .open-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.4s infinite; }

  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

  /* ════════════════════ PAGE 2: OFFICIALS ════════════════════ */
  #officials { background: var(--bg); padding: 3.5rem 0 5rem; }

  .officials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
  }

  .official-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .official-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

  .official-banner {
    height: 72px;
    background: linear-gradient(135deg, #1a1f2e, #1d4ed8);
    position: relative;
  }

  .official-banner.alt1 { background: linear-gradient(135deg, #1e3a5f, #0369a1); }
  .official-banner.alt2 { background: linear-gradient(135deg, #312e81, #4f46e5); }
  .official-banner.alt3 { background: linear-gradient(135deg, #14532d, #15803d); }
  .official-banner.alt4 { background: linear-gradient(135deg, #7c2d12, #c2410c); }

  .official-avatar {
    position: absolute;
    bottom: -28px;
    left: 1.25rem;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
    font-family: 'Syne', sans-serif;
  }

  .official-body { padding: 2rem 1.25rem 1.5rem; }

  .official-role {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.3rem;
  }

  .official-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
    line-height: 1.25;
  }

  .official-committee {
    font-size: 0.78rem;
    color: var(--ink-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }

  /* SK & Tanod */
  .officials-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .sub-list-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }

  .sub-list-title { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }

  .sub-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--ink-mid);
  }

  .sub-list-item:last-child { border-bottom: none; }

  .sub-avatar-sm {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--blue-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: var(--blue);
    flex-shrink: 0;
  }

  /* ════════════════════ PAGE 3: VOTERS ════════════════════ */
  #voters { background: var(--bg); padding: 3.5rem 0 5rem; }

  .search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    align-items: center;
  }

  .search-input-wrap {
    flex: 1;
    position: relative;
  }

  .search-input-wrap span {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-light);
    font-size: 0.95rem;
  }

  .search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.4rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.87rem;
    background: var(--white);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s;
  }

  .search-input:focus { border-color: var(--blue); }

  .filter-select {
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.83rem;
    background: var(--white);
    color: var(--ink-mid);
    outline: none;
    cursor: pointer;
    min-width: 130px;
  }

  .voter-table-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }

  table { width: 100%; border-collapse: collapse; }

  thead tr { background: #f3f5fb; }

  th {
    padding: 0.8rem 1.1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-light);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
  }

  td {
    padding: 0.85rem 1.1rem;
    font-size: 0.84rem;
    color: var(--ink-mid);
    border-bottom: 1px solid var(--border);
  }

  tr:last-child td { border-bottom: none; }
  tbody tr:hover { background: #f9f9fb; }

  .voter-name { font-weight: 600; color: var(--ink); }

  .voter-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    background: var(--blue-soft);
    color: var(--blue);
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .table-footer {
    padding: 0.9rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--ink-light);
  }

  .pagination { display: flex; gap: 0.35rem; }

  .pg-btn {
    width: 30px; height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--ink-mid);
    font-size: 0.78rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
  }

  .pg-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
  .pg-btn:hover:not(.active) { background: var(--blue-soft); }

  /* ════════════════════ PAGE 4: SERVICES ════════════════════ */
  #services { background: var(--bg); padding: 3.5rem 0 5rem; }

  .services-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
  }

  .stab {
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.18s, border-color 0.18s;
    white-space: nowrap;
  }

  .stab.active { color: var(--blue); border-color: var(--blue); }
  .stab:hover:not(.active) { color: var(--ink-mid); }

  .stab-content { display: none; }
  .stab-content.active { display: block; animation: pageIn 0.28s ease both; }

  .clearance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .clearance-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: border-color 0.2s, transform 0.18s;
  }

  .clearance-card:hover { border-color: var(--blue); transform: translateY(-2px); }

  .cl-icon {
    width: 46px; height: 46px;
    border-radius: 10px;
    background: var(--blue-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .cl-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
  .cl-desc { font-size: 0.82rem; color: var(--ink-light); line-height: 1.6; margin-bottom: 1.25rem; }

  .cl-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--ink-light);
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .cl-fee { font-weight: 700; color: var(--ink); font-size: 0.85rem; }
  .cl-days { background: var(--blue-soft); color: var(--blue); padding: 2px 8px; border-radius: 20px; font-weight: 600; font-size: 0.72rem; }

  /* Request form */
  .request-form-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 680px;
  }

  .form-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
  .form-sub { font-size: 0.83rem; color: var(--ink-light); margin-bottom: 1.75rem; }

  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-group { display: flex; flex-direction: column; gap: 0.4rem; }
  .form-group.full { grid-column: 1/-1; }

  label { font-size: 0.78rem; font-weight: 600; color: var(--ink-mid); }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    padding: 0.6rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--ink);
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
  }

  input:focus, select:focus, textarea:focus { border-color: var(--blue); background: var(--white); }
  textarea { resize: vertical; min-height: 90px; }

  .form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

  .success-banner {
    display: none;
    background: var(--green-soft);
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    font-size: 0.87rem;
    color: var(--green);
    font-weight: 500;
    align-items: center;
    gap: 0.5rem;
  }

  /* Track status */
  .track-wrap {
    max-width: 500px;
    margin-bottom: 2rem;
  }

  .track-form { display: flex; gap: 0.75rem; }

  .track-result { margin-top: 1.5rem; }

  .track-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
  }

  .track-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
  .track-ref { font-size: 0.75rem; color: var(--ink-light); }
  .track-type { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--ink); }

  .track-timeline { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0; }

  .tt-step {
    display: flex;
    gap: 1rem;
    position: relative;
  }

  .tt-step::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: -4px;
    width: 2px;
    background: var(--border);
  }

  .tt-step:last-child::before { display: none; }

  .tt-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    z-index: 1;
  }

  .tt-dot.done { background: var(--green); border-color: var(--green); color: #fff; }
  .tt-dot.active { background: var(--blue); border-color: var(--blue); color: #fff; }

  .tt-body { padding: 0.1rem 0 1.25rem; }
  .tt-label { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
  .tt-time  { font-size: 0.72rem; color: var(--ink-light); }

  /* ════════════════════ PAGE 5: CONTACT ════════════════════ */
  #contact { background: var(--bg); padding: 3.5rem 0 5rem; }

  .contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; }

  .contact-info-card { background: linear-gradient(160deg, #1a1f2e, #1d4ed8); border-radius: 14px; padding: 2rem; color: #fff; }

  .contact-info-title { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: #fff; margin-bottom: 0.4rem; }
  .contact-info-sub { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 2rem; line-height: 1.6; }

  .contact-detail-item { display: flex; gap: 0.85rem; align-items: flex-start; margin-bottom: 1.25rem; }

  .ci-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  .ci-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); font-weight: 600; margin-bottom: 0.2rem; }
  .ci-value { font-size: 0.9rem; color: rgba(255,255,255,0.9); line-height: 1.5; }

  .contact-map {
    margin-top: 1.5rem;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    border: 1px dashed rgba(255,255,255,0.15);
  }

  .contact-form-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; box-shadow: var(--shadow); }

  .cf-title { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.35rem; }
  .cf-sub { font-size: 0.82rem; color: var(--ink-light); margin-bottom: 1.5rem; }

  /* ═══════════════ MOBILE ═══════════════ */
  @media (max-width: 768px) {
    nav { padding: 0 1rem; }
    .nav-links { gap: 0; }
    .nav-links a { padding: 0.4rem 0.6rem; font-size: 0.72rem; }
    .container { padding: 0 1rem; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-stats { display: none; }
    .home-two-col { grid-template-columns: 1fr; }
    .officials-sub-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .clearance-grid { grid-template-columns: 1fr; }
  }
  
  /* ════════════════════ FOOTER ════════════════════ */

.site-footer {
  background: #111827;
  color: rgba(255,255,255,0.75);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 4rem 2rem;
}

.footer-col {}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.footer-seal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.footer-brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.footer-brand-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  max-width: 320px;
}

.footer-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-hours {
  margin-bottom: 1rem;
  font-size: 0.84rem;
  line-height: 1.6;
}

.footer-hours strong {
  color: #fff;
  display: block;
}

.footer-contact {
  font-size: 0.84rem;
  margin-bottom: 0.9rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* ═══════════════ MOBILE FOOTER ═══════════════ */

@media (max-width: 768px) {

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 3rem 1rem;
  }

  .footer-desc {
    max-width: 100%;
  }
/* Force correct layout even if other rules conflict */
nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 64px !important;
    width: 100% !important;
}

.nav-links {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-links li {
    display: block !important;
}

/* Fix for the blue blocks - remove active from everything by default */
.nav-links a {
    background: transparent;
    color: var(--ink-mid);
}

/* Only the truly active page gets the blue background */
.nav-links a.active {
    background: var(--blue) !important;
    color: #ffffff !important;
}
}

/* Blinking Notification Effect */
@keyframes blink-red {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); box-shadow: 0 0 15px rgba(255, 0, 0, 0.6); }
    100% { opacity: 1; transform: scale(1); }
}

.urgent-blink {
    display: inline-flex;
    align-items: center;
    background: #ff0000;
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    animation: blink-red 1.2s infinite;
    letter-spacing: 0.5px;
    border: none;
}
