/* ============================================================
   LoanAtlasMap — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=DM+Serif+Display&display=swap');

/* ---- Reset & Base ---------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:        #0B1F3A;
  --navy-mid:    #1A3558;
  --navy-light:  #2C4F7C;
  --gold:        #C8922A;
  --gold-light:  #E8B95A;
  --gold-pale:   #FDF6E8;
  --slate:       #4A5568;
  --slate-mid:   #718096;
  --silver:      #E8EDF4;
  --silver-light:#F4F7FB;
  --white:       #FFFFFF;
  --text-body:   #2D3748;
  --text-muted:  #6B7280;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(11,31,58,0.08), 0 1px 2px rgba(11,31,58,0.05);
  --shadow-md:   0 4px 16px rgba(11,31,58,0.10), 0 2px 6px rgba(11,31,58,0.06);
  --shadow-lg:   0 10px 40px rgba(11,31,58,0.12), 0 4px 12px rgba(11,31,58,0.08);
  --max-w:       1040px;
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --font-serif:  'DM Serif Display', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--silver-light);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--navy-light); }
a:hover { color: var(--gold); }

/* ---- Navigation ------------------------------------------ */
.site-nav {
  background: var(--navy);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.nav-logo span {
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* ---- Hamburger ------------------------------------------- */
.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Mobile Menu ----------------------------------------- */
.mobile-menu {
  display: none;
  background: var(--navy-mid);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.mobile-menu.open { max-height: 400px; }
.mobile-menu ul { list-style: none; padding: 12px 24px 20px; }
.mobile-menu li { border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 0;
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu a:hover { color: var(--gold-light); padding-left: 8px; }

/* ---- Page Layout ----------------------------------------- */
.page-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ---- Hero Banner (index) --------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 680px; margin: 0 auto; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero p {
  color: rgba(255,255,255,0.72);
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto 28px;
}
.hero-stat-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; color: var(--gold-light); font-size: 26px; font-weight: 600; line-height: 1.1; }
.hero-stat span { color: rgba(255,255,255,0.55); font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; }

/* ---- Card / Panel ---------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 28px;
}

/* ---- Section heading inside card ------------------------- */
.section-heading {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 6px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ---- Directory Table (index) ----------------------------- */
.dir-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dir-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 480px;
}
.dir-table thead tr { background: var(--navy); }
.dir-table thead th {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 14px 20px;
  text-align: left;
}
.dir-table tbody tr { border-bottom: 1px solid var(--silver); transition: background 0.15s; }
.dir-table tbody tr:last-child { border-bottom: none; }
.dir-table tbody tr:hover { background: var(--gold-pale); }
.dir-table tbody td { padding: 13px 20px; color: var(--text-body); }
.dir-table tbody td:first-child a {
  color: var(--navy-light);
  font-weight: 500;
}
.dir-table tbody td:first-child a:hover { color: var(--gold); }
.dir-table .city-badge {
  display: inline-block;
  background: var(--silver);
  color: var(--slate);
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: 20px;
}
.dir-table .phone-link {
  color: var(--slate-mid);
  font-size: 14px;
  font-feature-settings: 'tnum';
}
.dir-table .phone-link:hover { color: var(--gold); }

/* ---- Pagination ------------------------------------------ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 20px;
  background: var(--silver-light);
  border-top: 1px solid var(--silver);
}
.pagination-info { color: var(--text-muted); font-size: 14px; }
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.1s;
}
.page-btn:hover { background: var(--navy-light); color: var(--white); transform: translateY(-1px); }
.page-btn.disabled { background: var(--silver); color: var(--text-muted); pointer-events: none; }

/* ---- FAQ ------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--silver);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  list-style: none;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--silver);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--slate);
  transition: transform 0.25s, background 0.2s;
  line-height: 1;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--navy);
  color: var(--white);
}
.faq-answer {
  padding: 0 22px 18px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--silver);
}

/* ---- Ad Slot --------------------------------------------- */
.ad-slot {
  background: var(--silver-light);
  border: 1px dashed #CBD5E0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  margin: 24px 0;
  position: relative;
}
.ad-slot::before {
  content: 'Advertisement';
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #A0AEC0;
  margin-bottom: 8px;
}

/* ---- Branch page: header strip --------------------------- */
.branch-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 36px 32px;
}
.branch-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.branch-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(200,146,42,0.5);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--gold-light);
}
.branch-header-text { flex: 1; }
.branch-header-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 8px;
}
.branch-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}
.branch-pill-gold {
  background: rgba(200,146,42,0.2);
  border-color: rgba(200,146,42,0.4);
  color: var(--gold-light);
}

/* ---- Branch: status widget ------------------------------- */
.status-widget {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--silver-light);
  border: 1px solid var(--silver);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.status-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.open { background: #38A169; box-shadow: 0 0 0 3px rgba(56,161,105,0.2); }
.status-dot.closed { background: #E53E3E; box-shadow: 0 0 0 3px rgba(229,62,62,0.2); }
.status-time { font-size: 26px; font-weight: 600; color: var(--navy); font-feature-settings: 'tnum'; }
.status-labels { flex: 1; min-width: 160px; }
.status-labels p { color: var(--text-muted); font-size: 14px; }
#status-text { font-weight: 600; font-size: 15px; }
#countdown-text { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

/* ---- Info tables ----------------------------------------- */
.info-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--silver);
  margin-bottom: 24px;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.info-table th {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 13px 20px;
  text-align: left;
}
.info-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--silver);
  vertical-align: middle;
}
.info-table tbody tr:last-child td { border-bottom: none; }
.info-table tbody tr:hover td { background: var(--gold-pale); }
.info-table td:first-child {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  width: 200px;
  background: var(--silver-light);
}
.info-table td a { color: var(--navy-light); font-weight: 500; }
.info-table td a:hover { color: var(--gold); }

/* hours table */
.hours-table td:last-child { font-weight: 500; color: var(--navy); }
.hours-table .today { background: var(--gold-pale) !important; }
.hours-table .today td { color: var(--navy); }
.hours-table .closed-day td:last-child { color: var(--text-muted); }

/* ---- Breadcrumb ------------------------------------------ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--navy-light); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: #CBD5E0; }

/* ---- "Also in this bank" sidebar box --------------------- */
.related-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--silver);
  overflow: hidden;
  margin-bottom: 24px;
}
.related-box-header {
  background: var(--navy);
  padding: 14px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.related-box ul { list-style: none; padding: 8px 0; }
.related-box li { border-bottom: 1px solid var(--silver); }
.related-box li:last-child { border-bottom: none; }
.related-box a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  font-size: 14px;
  color: var(--text-body);
  transition: background 0.15s, color 0.15s;
}
.related-box a:hover { background: var(--gold-pale); color: var(--gold); }
.related-box a::after { content: '›'; font-size: 18px; color: #CBD5E0; }

/* ---- FDIC badge ------------------------------------------ */
.fdic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}
.fdic-badge em { color: var(--gold-light); font-style: normal; }

/* ---- Verified tag ---------------------------------------- */
.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F0FFF4;
  color: #276749;
  border: 1px solid #9AE6B4;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ---- Call CTA -------------------------------------------- */
.call-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  transition: background 0.2s, transform 0.15s;
  margin-top: 8px;
}
.call-cta:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-2px); }
.call-cta svg { width: 18px; height: 18px; }

/* ---- Footer ---------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 32px 24px;
  margin-top: 48px;
  text-align: center;
  font-size: 14px;
}
.site-footer a { color: var(--gold-light); }
.site-footer a:hover { color: var(--white); }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .mobile-menu { display: block; }
  .branch-header { padding: 28px 20px; }
  .branch-header-inner { flex-direction: column; gap: 16px; }
  .branch-icon { width: 56px; height: 56px; font-size: 22px; }
  .page-wrapper { padding: 20px 16px 48px; }
  .info-table td:first-child { width: 130px; }
  .hero { padding: 44px 20px; }
  .hero-stat-row { gap: 20px; }
}

@media (max-width: 480px) {
  .status-widget { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dir-table { min-width: 340px; }
}