/* =============================================
   NKY FOOD PERMIT GUIDE — styles.css
   Aesthetic: Clean Civic Utility
   Palette: Forest green / warm off-white / amber
   Fonts: Playfair Display + Source Sans 3
   ============================================= */

/* ---- VARIABLES ---- */
:root {
  --green-dark:    #1a3d2b;
  --green-mid:     #2d6a47;
  --green-light:   #e8f2ec;
  --amber:         #c8861a;
  --amber-light:   #fff3dc;
  --cream:         #faf8f3;
  --white:         #ffffff;
  --gray-text:     #4a4a4a;
  --gray-mid:      #767676;
  --gray-border:   #d8d4cc;
  --gray-light:    #f2efe9;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Gill Sans', sans-serif;

  --radius:        6px;
  --radius-lg:     12px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --transition:    0.2s ease;

  --max-width:     1120px;
  --pad-section:   4rem;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--gray-text);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: underline; }
a:hover { color: var(--green-dark); }

/* ---- CONTAINER ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 { font-family: var(--font-display); color: var(--green-dark); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 600; }

.section-title {
  margin-bottom: 0.5rem;
}
.section-intro {
  color: var(--gray-mid);
  font-size: 1.05rem;
  max-width: 760px;
  margin-bottom: 2rem;
  font-style: italic;
}
.subsection-title {
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--green-light);
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--amber);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo-img { display: none; } /* swap when real image is available */
.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.main-nav {
  display: flex;
  gap: 0.25rem;
}
.main-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
}

/* ---- HERO ---- */
.hero {
  background: var(--green-dark);
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(45,106,71,0.6) 0%, transparent 60%),
    linear-gradient(135deg, #1a3d2b 0%, #112a1d 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-text h1 {
  color: var(--white);
  margin-bottom: 1rem;
}
.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-image img {
  border-radius: var(--radius-lg);
  opacity: 0.88;
  box-shadow: var(--shadow-md);
}

/* Placeholder when no image yet */
.hero-image {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary {
  background: var(--amber);
  color: var(--white);
  border: 2px solid var(--amber);
}
.btn-primary:hover { background: #b5760f; border-color: #b5760f; color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }

/* ---- ALERT BANNER ---- */
.alert-banner {
  background: var(--amber);
  color: var(--white);
  text-align: center;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}
.alert-banner strong { font-weight: 700; }

/* ---- SECTION PADDING & ALT ---- */
.section-pad { padding: var(--pad-section) 0; }
.section-alt { background: var(--gray-light); }

/* ---- TWO PATHS ---- */
.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.path-card {
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.path-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-mid);
}
.path-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.path-for {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-mid);
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  margin: 0.5rem 0 1rem;
}
.path-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--green-mid);
  border-bottom: 2px solid var(--green-light);
  padding-bottom: 1px;
}
.path-link:hover { border-color: var(--green-mid); }

/* ---- FACT BOX ---- */
.fact-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  background: var(--green-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.fact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--white);
}
.fact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
}
.fact-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--amber);
}

/* ---- STEPS LIST ---- */
.steps-list {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}
.steps-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
}
.steps-list li::before {
  content: counter(steps);
  background: var(--green-mid);
  color: var(--white);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ---- CALLOUT ---- */
.callout {
  background: var(--amber-light);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.callout a { color: var(--green-dark); }
.callout-warning {
  background: #fff7ed;
  border-color: #e57a00;
}

/* ---- TABLE ---- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: var(--white);
}
.data-table th {
  background: var(--green-dark);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-family: var(--font-body);
}
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-border);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--gray-light); }

/* ---- COUNTY GRID ---- */
.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.county-card {
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.county-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-mid);
}
.county-card-oh { border-color: #b0cce0; }
.county-card-oh:hover { border-color: #1a5276; }
.county-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.county-header h3 { margin: 0; font-size: 1.1rem; }
.county-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--green-light);
  color: var(--green-mid);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
}
.county-badge-oh {
  background: #dbeaf5;
  color: #1a5276;
}
.county-details {
  list-style: none;
  padding: 0;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.county-details a { color: var(--green-mid); }
.county-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--green-mid);
  border-bottom: 1.5px solid var(--green-light);
  padding-bottom: 1px;
}
.county-link:hover { border-color: var(--green-mid); }

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 820px;
}
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--green-mid); }
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--green-mid);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--gray-text);
  border-top: 1px solid var(--gray-border);
  padding-top: 1rem;
}

/* ---- CONTACT STRIP ---- */
.contact-strip {
  background: var(--green-dark);
  color: var(--white);
  padding: 2.5rem 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.contact-block h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.contact-block p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
}
.contact-phone {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--amber);
  text-decoration: none;
  margin-bottom: 0.25rem;
}
.contact-phone:hover { color: #f5a832; }
.contact-email {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  word-break: break-all;
}
.contact-email:hover { color: var(--white); }

/* ---- FOOTER ---- */
.site-footer {
  background: #0f2418;
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { margin-top: 0.5rem; font-size: 0.85rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.footer-nav a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-nav a:hover { color: var(--white); }
.footer-legal {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 860px) {
  :root { --pad-section: 2.5rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-image { display: none; }

  .paths-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-dark);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.6rem 0; font-size: 1rem; }
  .nav-toggle { display: block; }

  .header-inner { position: relative; }

  .steps-list li {
    grid-template-columns: 1fr;
  }
  .steps-list li::before {
    grid-row: 1;
  }

  .fact-box {
    grid-template-columns: 1fr 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }
  .btn { text-align: center; }
}
