/* ========================================================================
   Pflugerville Pfamilies Pfirst — Site Styles
   White-primary palette. Navy as dominant color. Gold strictly as accent.
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800;9..144,900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand colors */
  --navy:        #1B3A6B;
  --navy-deep:   #112447;
  --navy-soft:   #2D4D82;
  --gold:        #D4A12A;
  --gold-deep:   #A87E14;
  --gold-soft:   #E8C667;

  /* Whites and grays (primary palette now) */
  --white:       #FFFFFF;
  --off-white:   #FAFBFC;
  --soft-gray:   #F4F6F8;
  --light-gray:  #E8ECF0;
  --rule:        #DCE1E7;
  --ink:         #1A1F2B;
  --ink-soft:    #4A5260;
  --ink-muted:   #7A8290;

  /* Type */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max:    1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(17, 36, 71, 0.06);
  --shadow-md: 0 4px 14px rgba(17, 36, 71, 0.10), 0 1px 3px rgba(17, 36, 71, 0.05);
  --shadow-lg: 0 18px 40px rgba(17, 36, 71, 0.14), 0 4px 10px rgba(17, 36, 71, 0.06);
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; font-variation-settings: 'opsz' 144; }
h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* ----- Layout helpers ----- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--soft-gray); }

/* ----- Top ribbon (event banner) ----- */
.ribbon {
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  font-size: 0.92rem;
  text-align: center;
  padding: 0.7rem var(--gutter);
  letter-spacing: 0.01em;
}
.ribbon strong { color: var(--gold-soft); font-weight: 600; }
.ribbon a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  margin-left: 0.5rem;
  font-weight: 600;
}
.ribbon a:hover { color: var(--white); }

/* ----- Header / nav ----- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.96);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--navy-deep);
}
.brand img {
  width: 76px;
  height: auto;
  /* no background, no padding - logo sits directly on white */
}
.brand-text { line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy-deep);
  display: block;
  letter-spacing: -0.015em;
}
.brand-tag {
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--navy); font-weight: 600; }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: 0.01em;
}
.btn:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-accent {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
  position: relative;
}
.btn-accent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
  transition: width 0.18s ease;
}
.btn-accent:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-accent:hover::before {
  width: 0;
}

/* ----- Hero ----- */
.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold);
}
.hero h1 {
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 500;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 38ch;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  text-align: center;
}
.hero-visual img {
  max-width: 420px;
  margin: 0 auto;
}

/* ----- Section heading w/ rule ----- */
.section-head { margin-bottom: 2.5rem; }
.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--navy);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold);
}
.section-head h2 { margin: 0 0 0.5em; max-width: 18ch; }
.section-head .lede { max-width: 60ch; }

/* ----- Card grid ----- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy-soft);
}
.card-icon {
  width: 44px;
  height: 44px;
  background: var(--soft-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  border-bottom: 2px solid var(--gold);
}
.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.card-meta {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ----- Featured strip ----- */
.featured {
  background: var(--navy-deep);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  position: relative;
  overflow: hidden;
}
.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}
.featured .wrap { position: relative; }
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.featured h2 { color: var(--white); margin-bottom: 1rem; }
.featured h2 em { color: var(--gold-soft); font-style: italic; }
.featured p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.5rem; font-size: 1.05rem; }
.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: 1.75rem;
}
.featured-meta div {
  border-left: 2px solid var(--gold);
  padding-left: 0.85rem;
}
.featured-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.15rem;
}
.featured-meta span {
  font-size: 0.85rem;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.featured .btn-on-dark {
  background: var(--white);
  color: var(--navy-deep);
  border-color: var(--white);
}
.featured .btn-on-dark:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}

/* News card on featured strip */
.news-pad {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 1.5rem;
}
.news-pad h4 {
  color: var(--gold-soft);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.news-pad ul { list-style: none; padding: 0; margin: 0; }
.news-pad li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}
.news-pad li:last-child { border-bottom: none; }
.news-pad a { color: var(--gold-soft); text-decoration: none; font-weight: 500; }
.news-pad a:hover { color: var(--white); text-decoration: underline; }

/* ----- Pull quote ----- */
.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  color: var(--navy-deep);
  text-align: center;
  max-width: 28ch;
  margin: 0 auto;
  padding: 2rem 0;
  position: relative;
}
.pullquote::before {
  content: '"';
  font-size: 5rem;
  color: var(--gold);
  display: block;
  line-height: 0.5;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}
.pullquote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 1.25rem;
  font-weight: 600;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-grid h4 {
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  font-weight: 600;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-grid a:hover { color: var(--white); }
.footer-brand img {
  width: 88px;
  margin-bottom: 1rem;
  background: var(--white);
  border-radius: 8px;
  padding: 6px;
}
.footer-brand p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
  max-width: 30ch;
}
.footer-brand strong {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.footer-bottom em { color: var(--gold-soft); font-style: normal; font-weight: 600; }

/* ----- Forms ----- */
.form {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--navy-deep);
}
.field label .req { color: var(--gold-deep); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--rule);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--navy);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-help {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 0.3rem;
}
.field-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.field-check input { width: auto; margin-top: 0.3rem; }
.field-check label { font-weight: 400; font-size: 0.92rem; color: var(--ink-soft); }
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0.4rem 0;
  color: var(--ink-soft);
}
.checkbox-group input { width: auto; }

/* ----- Page hero ----- */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  text-align: left;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.page-hero .eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--navy);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.page-hero .eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold);
}
.page-hero h1 { margin-bottom: 0.5rem; font-size: clamp(2.25rem, 5vw, 3.5rem); }
.page-hero p { color: var(--ink-soft); font-size: 1.1rem; max-width: 55ch; margin: 0; }

/* ----- Prose styling ----- */
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

/* ----- Event card ----- */
.event {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s ease;
}
.event:hover { box-shadow: var(--shadow-md); }
.event-date {
  text-align: center;
  border-right: 1px solid var(--rule);
  padding-right: 1.5rem;
}
.event-date .month {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  display: block;
}
.event-date .day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--navy-deep);
  display: block;
  margin: 0.15rem 0;
}
.event-date .year {
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.event-body h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.event-body p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.event-meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.4rem;
}
.event-tag {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
}

/* ----- Update / blog post card (Pflugerville Updates) ----- */
.update {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  border-top: 4px solid var(--navy);
  transition: box-shadow 0.2s ease;
}
.update:hover { box-shadow: var(--shadow-md); }
.update h3 { margin: 0 0 0.5rem; }
.update h3 a { color: var(--navy-deep); text-decoration: none; }
.update h3 a:hover { color: var(--navy); }
.update .meta {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
}
.update .tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--soft-gray);
  color: var(--navy);
  margin-right: 0.4rem;
}

/* ----- Two-column splits ----- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* ----- Notice / callout ----- */
.notice {
  background: var(--soft-gray);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 0 4px 4px 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 280px; }
  .featured-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .split { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--gutter);
    gap: 0;
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
  .nav a:last-child { border-bottom: none; }
  .nav a::after { display: none; }
  .brand img { width: 60px; }
  .brand-name { font-size: 1.05rem; }
  .brand-tag { font-size: 0.7rem; }
  .event {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .event-date {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 0 0 0.6rem;
    text-align: left;
  }
  .event-date .day { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
