/*
 Theme Name:   Astra Child — KofC Council 9475
 Theme URI:    https://www.kofc9475.org
 Description:  Child theme for KofC Council 9475, built on Astra
 Author:        Council 9475 Webmaster
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child-kofc
*/

/* ============================================================
   KNIGHTS OF COLUMBUS BRAND COLORS
   Primary:   #002868  (KofC Navy Blue)
   Gold:      #BF9B30  (KofC Gold)
   Red:       #BF0A30  (KofC Red / accent)
   Light BG:  #F4F6FA
   Text:      #1A1A2E
   ============================================================ */

:root {
  --kofc-navy:    #002868;
  --kofc-gold:    #BF9B30;
  --kofc-red:     #BF0A30;
  --kofc-light:   #F4F6FA;
  --kofc-text:    #1A1A2E;
  --kofc-white:   #FFFFFF;
  --kofc-border:  #D6DBE8;
  --kofc-radius:  6px;
  --kofc-shadow:  0 2px 12px rgba(0,40,104,0.10);
}

/* ============================================================
   GLOBAL / BODY
   ============================================================ */
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--kofc-text);
  background-color: var(--kofc-white);
  line-height: 1.75;
}

/* ============================================================
   HEADER & SITE TITLE
   ============================================================ */
.site-header,
.ast-primary-header-bar {
  background-color: var(--kofc-navy) !important;
  border-bottom: 4px solid var(--kofc-gold);
}

.site-title a,
.ast-site-name-wrap a {
  color: var(--kofc-white) !important;
  font-family: 'Georgia', serif;
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.ast-site-description,
.site-description {
  color: var(--kofc-gold) !important;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
.ast-primary-header-bar .main-navigation a,
.ast-nav-menu > li > a,
#site-navigation a {
  color: var(--kofc-white) !important;
  font-family: 'Arial', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 16px !important;
  text-transform: uppercase;
}

.ast-nav-menu > li > a:hover,
#site-navigation a:hover {
  color: var(--kofc-gold) !important;
  background-color: rgba(191,155,48,0.12) !important;
}

/* Active / current page */
.ast-nav-menu > .current-menu-item > a,
.ast-nav-menu > .current_page_item > a {
  color: var(--kofc-gold) !important;
  border-bottom: 2px solid var(--kofc-gold);
}

/* Dropdown menus */
.ast-nav-menu .sub-menu {
  background-color: var(--kofc-navy) !important;
  border-top: 3px solid var(--kofc-gold);
  box-shadow: var(--kofc-shadow);
}

.ast-nav-menu .sub-menu a {
  color: var(--kofc-white) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ast-nav-menu .sub-menu a:hover {
  background-color: rgba(191,155,48,0.15) !important;
  color: var(--kofc-gold) !important;
}

/* ============================================================
   PAGE HEADER BANNER (used on all inner pages)
   ============================================================ */
.kofc-page-header {
  background: linear-gradient(135deg, var(--kofc-navy) 0%, #003fa3 100%);
  border-bottom: 4px solid var(--kofc-gold);
  padding: 48px 24px 40px;
  margin-bottom: 0;
}

.kofc-page-header h1 {
  color: var(--kofc-white) !important;
  font-size: 2.2rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

/* ============================================================
   HERO SECTION (Home Page)
   ============================================================ */
.kofc-hero {
  background: linear-gradient(160deg, var(--kofc-navy) 0%, #003fa3 60%, #002050 100%);
  border-bottom: 5px solid var(--kofc-gold);
  padding: 70px 32px 60px !important;
  text-align: center;
}

.kofc-hero h1 {
  color: var(--kofc-white) !important;
  font-size: 2.6rem;
  font-weight: bold;
  line-height: 1.25;
  margin-bottom: 16px;
}

.kofc-tagline {
  color: var(--kofc-gold) !important;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  margin-bottom: 0;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.kofc-content-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px !important;
}

.kofc-intro-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px !important;
}

/* Lead paragraph */
.kofc-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #2a2a45;
  border-left: 4px solid var(--kofc-gold);
  padding-left: 20px;
  margin-bottom: 32px;
}

/* ============================================================
   HEADINGS
   ============================================================ */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--kofc-navy);
  font-family: 'Georgia', serif;
}

.entry-content h2 {
  font-size: 1.55rem;
  border-bottom: 2px solid var(--kofc-gold);
  padding-bottom: 8px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.entry-content h3 {
  font-size: 1.2rem;
  color: var(--kofc-navy);
  margin-top: 32px;
}

/* ============================================================
   PILLAR BOXES (Home page 4-columns)
   ============================================================ */
.kofc-pillar {
  background: var(--kofc-light);
  border-top: 4px solid var(--kofc-gold);
  border-radius: var(--kofc-radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--kofc-shadow);
  transition: transform 0.2s ease;
}

.kofc-pillar:hover {
  transform: translateY(-3px);
}

.kofc-pillar h4 {
  color: var(--kofc-navy) !important;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* ============================================================
   CONTACT CARD
   ============================================================ */
.kofc-contact-card {
  background: var(--kofc-light);
  border-left: 5px solid var(--kofc-navy);
  border-radius: var(--kofc-radius);
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: var(--kofc-shadow);
}

/* ============================================================
   PRICING BOX (Fish Fry)
   ============================================================ */
.kofc-pricing-box {
  background: var(--kofc-navy);
  border-radius: var(--kofc-radius);
  color: var(--kofc-white);
  padding: 24px;
  text-align: center;
}

.kofc-pricing-box h4 {
  color: var(--kofc-gold) !important;
  font-size: 1.2rem;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--kofc-gold);
  padding-bottom: 10px;
}

.kofc-pricing-box p {
  color: var(--kofc-white);
}

/* ============================================================
   TABLES
   ============================================================ */
.kofc-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.kofc-table thead th {
  background-color: var(--kofc-navy);
  color: var(--kofc-white);
  font-weight: bold;
  padding: 12px 16px;
  text-align: left;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.kofc-table tbody tr:nth-child(odd) {
  background-color: var(--kofc-light);
}

.kofc-table tbody tr:hover {
  background-color: rgba(0,40,104,0.06);
}

.kofc-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--kofc-border);
  vertical-align: top;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.kofc-btn-primary .wp-block-button__link,
.wp-block-button__link {
  background-color: var(--kofc-navy) !important;
  color: var(--kofc-white) !important;
  border: 2px solid var(--kofc-navy) !important;
  border-radius: var(--kofc-radius) !important;
  font-weight: bold;
  font-size: 0.95rem;
  padding: 12px 28px !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.kofc-btn-primary .wp-block-button__link:hover,
.wp-block-button__link:hover {
  background-color: var(--kofc-gold) !important;
  border-color: var(--kofc-gold) !important;
  color: var(--kofc-navy) !important;
}

/* ============================================================
   LINKS
   ============================================================ */
a {
  color: var(--kofc-navy);
  text-decoration: underline;
}

a:hover {
  color: var(--kofc-red);
}

/* ============================================================
   SEPARATORS
   ============================================================ */
.wp-block-separator {
  border-color: var(--kofc-gold) !important;
  border-width: 2px !important;
  opacity: 0.4;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer,
.ast-small-footer {
  background-color: var(--kofc-navy) !important;
  border-top: 4px solid var(--kofc-gold);
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.9rem;
  text-align: center;
  padding: 28px 24px;
}

.site-footer a,
.ast-footer-copyright a {
  color: var(--kofc-gold) !important;
  text-decoration: none;
}

.site-footer a:hover,
.ast-footer-copyright a:hover {
  color: var(--kofc-white) !important;
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .kofc-hero h1 {
    font-size: 1.8rem;
  }

  .kofc-page-header h1 {
    font-size: 1.6rem;
  }

  .kofc-content-section,
  .kofc-intro-section {
    padding: 32px 16px !important;
  }

  .kofc-table table {
    font-size: 0.85rem;
  }

  .kofc-table thead th,
  .kofc-table tbody td {
    padding: 8px 10px;
  }
}
