/* The Franklin Local — global styles
   Distinct identity: editorial local guide. Deep green / cream / brick.
   No NACC or CCDX brand assets. */

:root {
  --green: #1f3d2b;
  --green-dark: #14291d;
  --cream: #faf6ef;
  --cream-dark: #f1ead9;
  --brick: #c1502e;
  --brick-dark: #a03e20;
  --ink: #23281f;
  --ink-soft: #5a6154;
  --line: #e0d8c6;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1100px;
}

* { box-sizing: border-box; }
html { opacity: 1; transition: opacity 0.22s ease; scroll-behavior: smooth; }
html.is-loading { opacity: 0; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
#cc-content { opacity: 1; transition: opacity 0.2s ease; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--green); line-height: 1.2; }
h1 { font-size: 2.6rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.9rem; margin: 2.2rem 0 0.8rem; }
h3 { font-size: 1.35rem; margin: 1.6rem 0 0.5rem; }
p { margin: 0 0 1.1rem; }
a { color: var(--brick); text-decoration: none; }
a:hover { color: var(--brick-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.wrap--narrow { max-width: 760px; }

/* ---------- Header ---------- */
.cc-header {
  background: var(--green);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.12);
}
.cc-header__bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cc-header__brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.cc-header__brand:hover { color: #fff; text-decoration: none; }
.cc-header__brand .tfl-mark { color: #e9b872; }
.cc-header__nav--left {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}
.cc-header__nav--left a {
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.cc-header__nav--left a:hover { color: #fff; text-decoration: none; border-bottom: 2px solid var(--brick); }
.cc-header__nav--left a.active { border-bottom: 2px solid #e9b872; }
.cc-header__nav--right { display: flex; align-items: center; }
.btn {
  display: inline-block;
  background: var(--brick);
  color: #fff !important;
  padding: 0.55rem 1.15rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--brick-dark); text-decoration: none !important; }
.btn--ghost { background: transparent; border: 1.5px solid var(--brick); color: var(--brick) !important; }
.btn--ghost:hover { background: var(--brick); color: #fff !important; }

.cc-header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}
.cc-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cc-header.menu-open .cc-header__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cc-header.menu-open .cc-header__toggle span:nth-child(2) { opacity: 0; }
.cc-header.menu-open .cc-header__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero / sections ---------- */
.hero {
  background: var(--green);
  color: var(--cream);
  padding: 4rem 0 4.5rem;
  text-align: center;
}
.hero h1 { color: var(--cream); font-size: 3rem; margin-bottom: 0.75rem; }
.hero p { font-size: 1.15rem; color: var(--cream-dark); max-width: 640px; margin: 0 auto 1.6rem; }
.hero .tfl-mark { color: #e9b872; }

.section { padding: 3rem 0; }
.section--alt { background: var(--cream-dark); }
.section__kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brick);
  margin-bottom: 0.4rem;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.card h3 { margin-top: 0; }
.card h3 a { color: var(--green); }
.card h3 a:hover { color: var(--brick); text-decoration: none; }
.card p { font-size: 0.95rem; color: var(--ink-soft); flex-grow: 1; }
.card .card__more { font-size: 0.9rem; font-weight: 600; }

/* ---------- Article ---------- */
.article-header { padding: 3rem 0 1rem; }
.article-header .crumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.8rem; }
.article-header .byline { font-size: 0.88rem; color: var(--ink-soft); }
.article-body { padding-bottom: 3rem; }
.article-body h2 { border-bottom: 2px solid var(--line); padding-bottom: 0.4rem; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.article-body li { margin-bottom: 0.45rem; }
.biz {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 4px;
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.2rem;
}
.biz h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.biz p { margin: 0 0 0.4rem; font-size: 0.95rem; }
.biz .biz__link { font-size: 0.88rem; font-weight: 600; }

/* ---------- Newsletter ---------- */
.nl-box {
  background: var(--green);
  border-radius: 8px;
  color: var(--cream);
  padding: 2.2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.nl-box h2, .nl-box h3 { color: var(--cream); margin-top: 0; }
.nl-box p { color: var(--cream-dark); max-width: 520px; margin: 0 auto 1.2rem; }
.nl-form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.nl-form input[type="email"] {
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
  min-width: 260px;
  font-family: var(--sans);
}
.nl-form .nl-msg { width: 100%; font-size: 0.9rem; margin-top: 0.5rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem; max-width: 560px; }
.form-grid label { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 0.3rem; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--sans);
  background: #fff;
}
.form-msg { font-size: 0.92rem; font-weight: 600; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--brick-dark); }

/* ---------- Footer ---------- */
.cc-footer {
  background: var(--green-dark);
  color: var(--cream-dark);
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}
.cc-footer .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cc-footer h4 { color: var(--cream); margin: 0 0 0.6rem; font-size: 1rem; }
.cc-footer ul { list-style: none; margin: 0; padding: 0; }
.cc-footer li { margin-bottom: 0.35rem; }
.cc-footer a { color: var(--cream-dark); }
.cc-footer a:hover { color: #fff; }
.cc-footer .foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  color: #9aa694;
}

/* ---------- Mobile ---------- */
@media (max-width: 1200px) {
  .cc-header__toggle { display: flex; }
  .cc-header__bar { flex-wrap: wrap; }
  .cc-header__nav--left,
  .cc-header__nav--right {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    gap: 0;
  }
  .cc-header__nav--left a { padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); width: 100%; }
  .cc-header__nav--left a:hover { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .cc-header.menu-open .cc-header__nav--left { max-height: 420px; opacity: 1; padding-top: 0.5rem; }
  .cc-header.menu-open .cc-header__nav--right { max-height: 120px; opacity: 1; padding: 0.8rem 0 0.4rem; }
}
@media (max-width: 820px) {
  .grid, .grid--2 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .cc-footer .wrap { flex-direction: column; gap: 1.2rem; }
}
