/* Sacramento Chapter SAR - full stylesheet overwrite
   Banner top-gap fix: removed the small space above the banner image.
*/

:root{
  --site-max-width: 1250px;
  --site-gutter: 18px;
  --sar-red: #c32033;
  --sar-red-dark: #a91a2a;
  --sar-navy: #113d73;
  --sar-navy-dark: #0a2d58;
  --sar-navy-deep: #082347;
  --sar-offwhite: #f5f6f8;
  --sar-paper: #efe7da;
  --sar-text: #102844;
  --sar-muted: #d7deea;
  --shadow-soft: 0 12px 28px rgba(7, 27, 57, 0.18);
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  min-width: 320px;
  font-family: "Source Sans 3", Arial, sans-serif;
  color: var(--sar-text);
  background: #ffffff;
}

img{
  max-width: 100%;
  height: auto;
}

a{
  color: inherit;
  text-decoration: none;
}

button{
  font: inherit;
}

.container{
  width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2)));
  margin-inline: auto;
}

.skip-link{
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1000;
  background: #ffffff;
  color: #082347;
  padding: 0.55rem 0.8rem;
  border-radius: 0.25rem;
  transform: translateY(-200%);
}

.skip-link:focus{
  transform: translateY(0);
}

/* Banner */
.banner-bar{
  background: var(--sar-paper);
  border-top: 4px solid var(--sar-red);
  border-bottom: 3px solid var(--sar-red);
  padding: 0;
  overflow: hidden;
}

.banner-container{
  display: block;
  line-height: 0;
}

.banner-link{
  display: block;
  width: 100%;
}

.sitewide-banner{
  display:block;
  width:100%;
  height:175px;
  object-fit:cover;
  object-position:center;
}

/* Top navigation */
.topbar{
  background: var(--sar-offwhite);
  border-bottom: 1px solid #d7dfe8;
}

.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 0 12px;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 46px;
  height: 42px;
  border: 1px solid #cfd7e3;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span{
  width: 20px;
  height: 2px;
  background: var(--sar-text);
  display: block;
}

.site-nav{
  width: 100%;
}

.nav-list{
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li{
  position: relative;
  flex: 0 0 auto;
}

.nav-list > li > a,
.nav-list > li > button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d2dae5;
  background: #f7f8fa;
  color: #17355d;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
}

.submenu-toggle::after{
  content: "\25BC";
  font-size: 0.85em;
  margin-left: 0.50rem;
  opacity: 0.75;
}

.nav-list > li > a:hover,
.nav-list > li > button:hover,
.nav-list > li > a:focus-visible,
.nav-list > li > button:focus-visible{
  background: #ffffff;
  border-color: #b8c7db;
  outline: none;
}

.submenu{
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 50;
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid #d5dce6;
  box-shadow: 0 10px 24px rgba(9, 26, 48, 0.16);
  display: none;
}

/* Creates an invisible hover bridge to close the 4px dead-zone gap on desktop */
.submenu::before {
  content: '';
  position: absolute;
  top: -4px;         /* Extends exactly 4px upward to touch the main navigation bar */
  left: 0;
  width: 100%;
  height: 4px;       /* Spans the exact height of the gap */
  background: transparent; /* Remains completely invisible */
}

.submenu li a{
  display: block;
  padding: 0.65rem 1rem;
  color: #17355d;
  white-space: nowrap;
}

.submenu li a:hover,
.submenu li a:focus-visible{
  background: #f3f6fa;
  outline: none;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu{
  display: block;
}

.mega-menu{
  min-width: 360px;
}

/* Hero */
.hero{
  background: linear-gradient(120deg, var(--sar-navy-deep) 0%, var(--sar-navy) 60%, #174983 100%);
  color: #ffffff;
  padding: 36px 0 28px;
}

.hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: start;
}

.hero-copy{
  padding: 44px 0 24px;
}

.eyebrow{
  margin: 0 0 18px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.82);
}

.hero h1{
  margin: 0 0 22px;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

.hero-text{
  max-width: 760px;
  margin: 0 0 28px;
  font-size: 1.12rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.55rem;
  font-weight: 700;
  font-size: 1.02rem;
  border: 1px solid transparent;
}

.button-primary{
  background: var(--sar-red);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(195,32,51,0.28);
}

.button-primary:hover{
  background: var(--sar-red-dark);
}

.button-secondary{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
  color: #ffffff;
}

.button-secondary:hover{
  background: rgba(255,255,255,0.14);
}

.hero-panel{
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 18px;
}

.hero-panel-card{
  background: rgba(255,255,255,0.96);
  color: #102844;
  padding: 26px 24px 28px;
  border-top: 4px solid var(--sar-red);
  box-shadow: var(--shadow-soft);
}

.hero-panel-card.accent{
  background: linear-gradient(180deg, #0d2e5c 0%, #0a2a54 100%);
  color: #ffffff;
  border-top-color: #ef4456;
}

.hero-panel-card h2{
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.1;
}

.hero-panel-card p{
  margin: 0 0 18px;
  font-size: 1.02rem;
  line-height: 1.5;
}

.card-kicker{
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sar-red);
}

.hero-panel-card.accent .card-kicker{
  color: rgba(255,255,255,0.9);
}

.text-link{
  font-weight: 700;
}

.text-link::after{
  content: " \2192";
}

/* Width sync fix */
.banner-container,
.topbar-inner{
  width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2)));
  margin-left: auto;
  margin-right: auto;
}

/* Responsive breakdowns for homepage */
@media (max-width: 1280px){
  :root{
    --site-max-width: 1180px;
  }

  .nav-list > li > a,
  .nav-list > li > button{
    padding-inline: 0.8rem;
    font-size: 0.87rem;
  }
}

@media (max-width: 1080px){
  :root{
    --site-max-width: 1040px;
    --site-gutter: 14px;
  }

  .nav-list{
    flex-wrap: wrap;
  }

  .topbar-inner{
    justify-content: center;
  }

  .hero-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy{
    padding-top: 20px;
  }

  .hero-panel{
    padding-top: 0;
  }
}

@media (max-width: 820px){
  .banner-bar{
    padding-top: 0;
  }

  .topbar-inner{
    align-items: flex-start;
    justify-content: space-between;
  }

  .nav-toggle{
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav{
    display: none;
    width: 100%;
    padding-top: 12px;
  }

  .site-nav.open{
    display: block;
  }

  .topbar-inner{
    flex-wrap: wrap;
  }

  .nav-list{
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list > li > a,
  .nav-list > li > button{
    justify-content: space-between;
    width: 100%;
    background: #ffffff;
    border-bottom: 0;
  }

  .nav-list > li:last-child > a,
  .nav-list > li:last-child > button{
    border-bottom: 1px solid #d2dae5;
  }

  .submenu{
    position: static;
    min-width: 0;
    display: none;
    border-top: 0;
    box-shadow: none;
    padding: 0;
  }

  .has-submenu.open > .submenu{
    display: block;
  }

  .submenu li a{
    padding-left: 1.4rem;
    background: #fbfcfd;
    border-left: 3px solid #dbe5f0;
  }
}

@media (max-width: 640px){
  :root{
    --site-gutter: 12px;
  }

  .hero{
    padding-top: 24px;
  }

  .hero-copy{
    padding: 10px 0 0;
  }

  .hero h1{
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero-text{
    font-size: 1rem;
  }

  .button{
    width: 100%;
  }

  .hero-panel-card{
    padding: 20px 18px 22px;
  }
}

/* ==========================================================================
   Officer & Leadership Profiles
   ========================================================================== */
.officer-section {
  margin-bottom: 48px;
}

.officer-section h2 {
  font-family: "Cinzel", Georgia, serif;
  color: var(--sar-navy);
  border-bottom: 2px solid var(--sar-muted);
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.officer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.officer-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--sar-navy);
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.officer-img-container {
  width: 150px;
  height: 180px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 16px;
  background: var(--sar-offwhite);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.officer-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.officer-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sar-text);
  margin: 0 0 4px 0;
}

.officer-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sar-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px 0;
}

.officer-email {
  font-size: 0.88rem;
  color: var(--sar-navy);
  word-break: break-all;
  font-weight: 600;
}

.chairmen-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chairmen-list li {
  padding: 8px 12px;
  background: var(--sar-offwhite);
  border-left: 4px solid var(--sar-red);
  font-size: 0.95rem;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background: var(--sar-paper);
  border-top: 4px solid var(--sar-red);
  border-bottom: none;
  padding: 32px 0;
}

.site-footer p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sar-text);
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--sar-navy);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--sar-red);
  text-decoration: underline;
  outline: none;
}

/* ==========================================================================
   Interior Pages Structural Framework
   ========================================================================== */

.page-hero {
  background: linear-gradient(120deg, var(--sar-navy-deep) 0%, var(--sar-navy) 60%, #174983 100%);
  color: #ffffff;
  padding: 20px 0 24px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: start;
}

.page-hero .breadcrumbs {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 2px !important;
}

.page-hero .breadcrumbs a {
  color: #ffffff;
  text-decoration: underline;
}

.page-hero .eyebrow {
  margin-bottom: 6px !important;
}

.page-hero h1 {
  margin: 0 0 0 0 !important;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem); 
  line-height: 1.1;
}

.page-hero h1 a {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero h1 a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-shell {
  background: #ffffff;
  padding: 40px 0;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: start;
}

.main-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.content-card, 
.table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--sar-navy);
  border-radius: 4px;
  padding: 26px 24px 28px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.panel-card {
  background: rgba(255, 255, 255, 0.96);
  color: #102844;
  padding: 22px 24px 24px;
  border-top: 4px solid var(--sar-red);
  box-shadow: var(--shadow-soft);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.data-table th {
  background: var(--sar-offwhite);
  color: var(--sar-navy);
  text-align: left;
  padding: 12px;
  font-weight: 700;
  border-bottom: 2px solid var(--sar-muted);
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  color: var(--sar-text);
}

.data-table tr:hover {
  background: #f8fafc;
}

@media (max-width: 1080px) {
  .page-hero-grid,
  .page-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}