/* ==========================================================================
   Rice Area Chamber of Commerce — riceminnesota.com
   Earthy Central Minnesota civic palette. Bulma is the base framework;
   this file owns brand colors, typography, and bespoke component tweaks.
   ========================================================================== */

:root {
  /* ---- Brand: pine / forest greens ---- */
  --pine-50:  #f1f5ef;
  --pine-100: #dce8d6;
  --pine-200: #b9d0ad;
  --pine-300: #8fb37e;
  --pine-400: #5f8c4f;
  --pine-500: #3f6f31;   /* primary brand green */
  --pine-600: #335a28;
  --pine-700: #284620;
  --pine-800: #1d3318;
  --pine-900: #142411;

  /* ---- Secondary: sage / meadow ---- */
  --sage-200: #d3dcb8;
  --sage-400: #9aae66;
  --sage-500: #7d9248;   /* secondary */
  --sage-600: #65773a;

  /* ---- Accent: warm autumn rust / amber ---- */
  --rust-300: #e8a763;
  --rust-400: #d98631;
  --rust-500: #c46a1f;   /* accent */
  --rust-600: #a4541a;

  /* ---- Lake blue (used sparingly) ---- */
  --lake-400: #4a8fa6;
  --lake-500: #357d95;

  /* ---- Neutrals / parchment ---- */
  --parchment:   #f7f4ec;  /* warm off-white background */
  --parchment-2: #efe9da;
  --cream:       #fffdf7;
  --ink-900:     #2d2a24;  /* primary text (warm near-black) */
  --ink-700:     #4d4940;
  --ink-500:     #74705f;
  --line:        #e3dccb;

  /* ---- Semantic ---- */
  --shadow-sm: 0 1px 3px rgba(45, 42, 36, 0.08), 0 1px 2px rgba(45, 42, 36, 0.06);
  --shadow-md: 0 6px 18px rgba(45, 42, 36, 0.10), 0 2px 6px rgba(45, 42, 36, 0.06);
  --shadow-lg: 0 18px 40px rgba(45, 42, 36, 0.16);
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --heading-font: "Fraunces", Georgia, "Times New Roman", serif;
  --body-font: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---- Base ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  color: var(--ink-900);
  background-color: var(--parchment);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, .title, .subtitle {
  font-family: var(--heading-font);
  color: var(--ink-900);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

main h1 { font-size: 2.5rem; margin-bottom: 1.1rem; color: var(--pine-700); }
main h2 {
  font-size: 1.7rem;
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
  color: var(--pine-600);
  position: relative;
  padding-bottom: 0.4rem;
}
main h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 54px; height: 3px;
  background: var(--rust-400);
  border-radius: 3px;
}
main h3 { font-size: 1.28rem; margin-top: 1.6rem; margin-bottom: 0.5rem; color: var(--sage-600); }

main p { margin-bottom: 1.1rem; color: var(--ink-700); }
main ul { margin: 0 0 1.3rem 1.3rem; }
main ul li { margin-bottom: 0.5rem; color: var(--ink-700); }
main strong { color: var(--ink-900); }

main a {
  color: var(--pine-600);
  text-decoration: none;
  border-bottom: 1px solid var(--pine-200);
  transition: color 0.15s ease, border-color 0.15s ease;
}
main a:hover { color: var(--rust-500); border-bottom-color: var(--rust-400); }

@media (max-width: 768px) {
  body { font-size: 16px; }
  main h1 { font-size: 2rem; }
  main h2 { font-size: 1.45rem; }
}

/* ---- Top banner / brand bar --------------------------------------------- */
.site-banner {
  background: linear-gradient(135deg, var(--pine-700) 0%, var(--pine-600) 55%, var(--sage-600) 130%);
  color: #fff;
}
.site-banner .brand-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
}
.brand-mark {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--pine-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.9rem;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--rust-400);
}
.brand-text .brand-title {
  color: #fff;
  font-size: 1.55rem;
  margin: 0;
  line-height: 1.1;
  font-family: var(--heading-font);
  font-weight: 600;
}
.brand-text .brand-tag {
  color: var(--sage-200);
  font-style: italic;
  font-size: 0.95rem;
  font-family: var(--heading-font);
}
@media (max-width: 480px) {
  .brand-text .brand-title { font-size: 1.2rem; }
  .brand-mark { width: 46px; height: 46px; font-size: 1.5rem; }
}

/* ---- Primary navigation -------------------------------------------------- */
.navbar.rice-nav {
  background: var(--pine-600);
  box-shadow: var(--shadow-sm);
}
.navbar.rice-nav .navbar-item,
.navbar.rice-nav .navbar-link {
  color: #eaf1e6;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.navbar.rice-nav a.navbar-item:hover,
.navbar.rice-nav a.navbar-item.is-active,
.navbar.rice-nav .navbar-item.has-dropdown:hover .navbar-link {
  background: var(--pine-700);
  color: #fff;
}
.navbar.rice-nav a.navbar-item.is-active {
  box-shadow: inset 0 -3px 0 var(--rust-400);
}
.navbar.rice-nav .navbar-burger { color: #fff; }
.navbar.rice-nav .navbar-burger:hover { background: var(--pine-700); }
@media (max-width: 1023px) {
  .navbar.rice-nav .navbar-menu { background: var(--pine-600); box-shadow: var(--shadow-md); }
  .navbar.rice-nav .navbar-menu .navbar-item { color: #eaf1e6; }
}

/* ---- Hero ---------------------------------------------------------------- */
.rice-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.rice-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 36, 17, 0.82) 0%, rgba(20, 36, 17, 0.30) 55%, rgba(20, 36, 17, 0.10) 100%);
}
.rice-hero .hero-inner {
  position: relative;
  padding: 2.6rem 0 2.8rem;
  width: 100%;
}
.rice-hero .eyebrow {
  display: inline-block;
  background: var(--rust-500);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.rice-hero h1 {
  color: #fff;
  font-size: 3rem;
  max-width: 16ch;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  margin-bottom: 0.6rem;
}
.rice-hero .hero-sub {
  color: #f3efe6;
  font-size: 1.2rem;
  max-width: 52ch;
  font-family: var(--heading-font);
  font-style: italic;
}
.rice-hero.hero-interior { min-height: 280px; }
.rice-hero.hero-interior h1 { font-size: 2.4rem; }
@media (max-width: 768px) {
  .rice-hero { min-height: 360px; }
  .rice-hero h1 { font-size: 2.1rem; }
  .rice-hero .hero-sub { font-size: 1.05rem; }
}

/* ---- Buttons ------------------------------------------------------------- */
.button.is-rice {
  background: var(--rust-500);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.4rem 1.4rem;
  height: auto;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.button.is-rice:hover {
  background: var(--rust-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.button.is-rice-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
  font-weight: 600;
  border-radius: 999px;
}
.button.is-rice-outline:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }

/* ---- Cards / panels ------------------------------------------------------ */
.section-soft { background: var(--parchment); }
.section-cream { background: var(--cream); }
.section-band {
  background: linear-gradient(160deg, var(--pine-50) 0%, var(--parchment-2) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rice-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  height: 100%;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  display: flex;
  flex-direction: column;
}
.rice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rice-card .card-body { padding: 1.35rem 1.4rem 1.5rem; }
.rice-card .card-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--pine-100);
  color: var(--pine-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}
.rice-card h3 { margin-top: 0; color: var(--pine-700); font-size: 1.2rem; }
.rice-card p { font-size: 0.97rem; margin-bottom: 0.9rem; color: var(--ink-700); }
.rice-card .card-link {
  font-weight: 600;
  color: var(--rust-500);
  border: none;
  margin-top: auto;
}
.rice-card .card-link:hover { color: var(--rust-600); }

/* ---- Section heading helper --------------------------------------------- */
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 2.2rem; }
.section-head h2 { display: inline-block; }
.section-head h2::after { left: 50%; transform: translateX(-50%); }
.section-head .lead { color: var(--ink-500); font-size: 1.08rem; }

/* ---- Content layout: article + sidebar ---------------------------------- */
.content-shell { padding: 3rem 0 3.5rem; }
.article-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.4rem 2.6rem 2.6rem;
}
.article-card .lead-img {
  border-radius: var(--radius);
  margin: 0 0 1.8rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
}
.article-card .inline-img {
  border-radius: var(--radius);
  margin: 1.6rem 0;
  box-shadow: var(--shadow-sm);
  width: 100%;
}
@media (max-width: 768px) {
  .article-card { padding: 1.5rem 1.25rem 1.8rem; border-radius: var(--radius); }
}

/* ---- Sidebar widgets ----------------------------------------------------- */
.rail-widget {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.6rem;
  overflow: hidden;
}
.rail-widget .rail-head {
  background: var(--pine-600);
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.75rem 1.2rem;
  letter-spacing: 0.01em;
}
.rail-widget.accent .rail-head { background: var(--rust-500); }
.rail-widget .rail-body { padding: 1.1rem 1.2rem 1.25rem; }
.rail-widget .rail-body p { font-size: 0.95rem; color: var(--ink-700); margin-bottom: 0.7rem; }

.sub-nav-list { list-style: none; margin: 0; }
.sub-nav-list li { margin: 0; border-bottom: 1px solid var(--line); }
.sub-nav-list li:last-child { border-bottom: none; }
.sub-nav-list a {
  display: block;
  padding: 0.6rem 0;
  color: var(--ink-700);
  font-weight: 500;
  border: none;
  transition: color 0.15s ease, padding 0.15s ease;
}
.sub-nav-list a::before { content: "›"; color: var(--rust-400); font-weight: 700; margin-right: 0.55rem; }
.sub-nav-list a:hover { color: var(--pine-600); padding-left: 0.3rem; }
.sub-nav-list a.is-current { color: var(--pine-700); font-weight: 700; }

.area-links { list-style: none; margin: 0; }
.area-links li { padding: 0.45rem 0; border-bottom: 1px dashed var(--line); color: var(--ink-700); font-weight: 500; font-size: 0.95rem; }
.area-links li:last-child { border-bottom: none; }
.area-links li .muted { display:block; color: var(--ink-500); font-weight: 400; font-size: 0.82rem; font-style: italic; }

/* ---- Stat strip ---------------------------------------------------------- */
.stat-strip { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.stat-pill {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem 1.6rem;
  text-align: center;
  min-width: 160px;
  flex: 1 1 160px;
  max-width: 230px;
}
.stat-pill .stat-num { font-family: var(--heading-font); font-size: 2rem; font-weight: 700; color: var(--rust-500); line-height: 1; }
.stat-pill .stat-lab { font-size: 0.9rem; color: var(--ink-500); margin-top: 0.4rem; }

/* ---- Welcome / CTA band -------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--pine-700), var(--sage-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band h2::after { left: 50%; transform: translateX(-50%); background: var(--rust-300); }
.cta-band p { color: #eef3ea; max-width: 56ch; margin: 0 auto 1.4rem; }

/* ---- Contact form -------------------------------------------------------- */
.contact-form-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem 2.1rem 2.2rem;
}
.contact-form-card .label { color: var(--ink-900); font-weight: 600; }
.contact-form-card .input,
.contact-form-card .textarea {
  border-radius: var(--radius-sm);
  border-color: var(--line);
  box-shadow: none;
}
.contact-form-card .input:focus,
.contact-form-card .textarea:focus {
  border-color: var(--pine-400);
  box-shadow: 0 0 0 3px rgba(63, 111, 49, 0.12);
}
.form-note { font-size: 0.85rem; color: var(--ink-500); margin-top: 0.6rem; }

/* ---- Breadcrumb ---------------------------------------------------------- */
.rice-breadcrumb { padding: 0.9rem 0 0; font-size: 0.9rem; }
.rice-breadcrumb a { color: var(--pine-600); border: none; }
.rice-breadcrumb a:hover { color: var(--rust-500); }
.rice-breadcrumb .sep { color: var(--ink-500); margin: 0 0.4rem; }
.rice-breadcrumb .current { color: var(--ink-500); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--pine-800);
  color: #cdd8c6;
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--heading-font);
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}
.site-footer a { color: #cdd8c6; border: none; transition: color 0.15s ease; }
.site-footer a:hover { color: var(--rust-300); }
.site-footer .footer-links { list-style: none; margin: 0; }
.site-footer .footer-links li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.site-footer .footer-brand .fb-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--cream); color: var(--pine-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--heading-font); font-weight: 700; font-size: 1.4rem;
  border: 2px solid var(--rust-400);
  margin-bottom: 0.8rem;
}
.site-footer .fb-tag { font-style: italic; font-family: var(--heading-font); color: var(--sage-200); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2rem;
  padding-top: 1.2rem;
  font-size: 0.88rem;
  color: #9fae96;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
}
.footer-bottom .fb-nav a { margin-right: 1rem; font-size: 0.88rem; }

/* ---- 404 ----------------------------------------------------------------- */
.notfound-wrap {
  min-height: 62vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}
.notfound-wrap .big-404 {
  font-family: var(--heading-font);
  font-size: 6rem;
  font-weight: 700;
  color: var(--pine-200);
  line-height: 1;
}

/* ---- Misc utility -------------------------------------------------------- */
.mt-section { margin-top: 3rem; }
.pad-section { padding: 3rem 0; }
.txt-rust { color: var(--rust-500); }
.divider-leaf { text-align: center; color: var(--sage-400); margin: 2.5rem 0 0; font-size: 1.2rem; }

/* ==========================================================================
   Per-page hero background images (kept here so HTML stays style-free)
   ========================================================================== */
.hero-index        { background-image: url("/images/home-hero.jpg"); }
.hero-about-rice   { background-image: url("/images/about-fields.jpg"); }
.hero-advantages   { background-image: url("/images/advantages-work.jpg"); }
.hero-directory    { background-image: url("/images/directory-shops.jpg"); }
.hero-quality-of-life { background-image: url("/images/qol-lake-recreation.jpg"); }
.hero-infrastructure  { background-image: url("/images/infra-water-tower.jpg"); }
.hero-transportation  { background-image: url("/images/transport-highway.jpg"); }
.hero-government   { background-image: url("/images/gov-fire.jpg"); }
.hero-health-care  { background-image: url("/images/health-clinic.jpg"); }
.hero-education    { background-image: url("/images/edu-school.jpg"); }
.hero-community    { background-image: url("/images/community-church.jpg"); }
.hero-contact      { background-image: url("/images/contact-welcome.jpg"); }

/* Dark-outline button variant (for light backgrounds, e.g. 404) */
.button.is-rice-dark-outline {
  background: transparent;
  color: var(--pine-700);
  border: 2px solid var(--pine-400);
  font-weight: 600;
  border-radius: 999px;
}
.button.is-rice-dark-outline:hover {
  background: var(--pine-50);
  color: var(--pine-800);
  border-color: var(--pine-600);
}

/* 404 page heading colour fix on light bg */
.page-404 .notfound-wrap h1 { color: var(--pine-700); }
