/* ==========================================================
   KARSAA website — the one stylesheet for every page.
   Follows the KARSAA Brand Kit (v3).

   BRAND COLORS (change them here and the whole site updates):
     --navy   #253957  header, footer, headings, home banner
     --gold   #f8c824  accent lines and highlights. Too light for
                       text on cream or white, so only use it on navy.
     --red    #aa1313  buttons, labels, link hover
     --cream  #faf5e8  page background
     --white  #ffffff  boxes and cards
     --ink    #000000  body text
   FONTS:
     Headings: Playfair Display (stored in the fonts folder)
     Body: Helvetica World, falling back to Helvetica or Arial
   ========================================================== */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #253957;
  --navy-light: #34507a;
  --gold: #f8c824;
  --red: #aa1313;
  --cream: #faf5e8;
  --white: #ffffff;
  --ink: #000000;
  --muted: #4a4a4a;
  --line: #e6dcc3;
  --heading-font: "Playfair Display", Georgia, "Times New Roman", serif;
  --body-font: "Helvetica World", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 60rem;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

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

h1, h2, h3 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
h1 { font-size: 2.2rem; margin: 0 0 1rem; }
h2 { font-size: 1.6rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }

/* Skip link for keyboard and screen-reader users */
.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--white);
  padding: 0.5rem 1rem;
  z-index: 10;
}

/* ---------- Header and menu ---------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--gold);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.site-name {
  color: var(--white);
  text-decoration: none;
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.site-name:hover { color: var(--gold); }
.site-name small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--body-font);
  font-size: 0.75rem;
  font-weight: normal;
  letter-spacing: 0;
  opacity: 0.85;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
}
.site-nav a:hover { background: var(--navy-light); color: var(--white); }
.site-nav a[aria-current="page"] {
  background: var(--gold);
  color: var(--navy);
  font-weight: bold;
}

/* ---------- Main content ---------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.lead { font-size: 1.2rem; color: var(--muted); }

/* Brand tagline: "Honor the Past. Lead the Future." */
.tagline {
  margin: 0 0 0.5rem;
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--red);
}

/* Big navy banner at the top of the home page */
.hero {
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--gold);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
}
.hero h1 { color: var(--white); font-size: 2.6rem; }
.hero .lead { color: var(--cream); }
.hero .tagline { color: var(--gold); }
.hero .button { background: var(--gold); color: var(--navy); }
.hero .button:hover { background: var(--white); color: var(--navy); }

/* Highlighted quote for the vision and mission */
.statement {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--red);
  background: var(--white);
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy);
}

/* Navy brand block on the About page, styled after the Brand Kit */
.brand-statement {
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--gold);
  border-radius: 6px;
  padding: 2rem;
  margin: 2.5rem 0;
}
.brand-statement h2 { color: var(--white); margin-top: 0; font-size: 2rem; }
.brand-statement .tagline { color: var(--gold); }
.brand-statement p:last-child { margin-bottom: 0; font-size: 1.1rem; line-height: 1.7; }

/* Row of boxes on the home page */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 6px;
  padding: 1.25rem;
}
.card h3 { margin-top: 0; }

.button {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  padding: 0.65rem 1.3rem;
  border-radius: 4px;
  font-weight: bold;
}
.button:hover { background: var(--navy); color: var(--white); }

/* "Coming soon" box for sections that aren't ready yet */
.coming-soon {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
}
.coming-soon .label {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.coming-soon p { margin: 0.4rem 0; }

/* Simple list of news items or events */
.item-list { list-style: none; padding: 0; margin: 0; }
.item-list li {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.item-list .date { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  font-size: 0.95rem;
  border-top: 4px solid var(--gold);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem;
}
.site-footer p { margin: 0.35rem 0; }
.site-footer .tagline { color: var(--gold); margin-bottom: 0.75rem; }
.site-footer .legal-name { color: var(--white); font-weight: bold; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold); }
.site-footer .footer-links {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.disclaimer { font-size: 0.85rem; opacity: 0.85; }

/* Keeps short items like the EIN from splitting across two lines */
.nowrap { white-space: nowrap; }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.8rem; }
  .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .hero, .brand-statement { padding: 1.75rem 1.25rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav a { padding: 0.35rem 0.55rem; }
}
