/* Roaring Fork Valley IT – Static site styles
   Color palette extracted from RFVIT logo:
   - Charcoal: #2E3235
   - Teal accent: #4A7C78
   - Light teal: #6B9B96
   - Off-white: #F7F9F9
   - Soft gray: #E8EEEE
   - Soft beige (image bg): #FAF7F2
*/

:root {
  --color-charcoal: #2E3235;
  --color-charcoal-light: #3A3F43;
  --color-teal: #4A7C78;
  --color-teal-dark: #3A635F;
  --color-teal-light: #6B9B96;
  --color-bg: #F7F9F9;
  --color-bg-alt: #E8EEEE;
  --color-bg-alt-2: #FAF7F2;
  --color-white: #FFFFFF;
  --color-text: #2E3235;
  --color-text-muted: #5A6568;
  --color-border: #D0D8D7;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1120px;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(46, 50, 53, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-teal-dark); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: var(--color-charcoal);
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.logo img { height: 48px; width: auto; }
.logo-large img { height: 198px; }
.header-inner:has(.logo-large) { padding: 10px 0; min-height: 140px; align-items: center; }
.logo span { white-space: nowrap; }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: rgba(255,255,255,0.9); font-size: 0.95rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--color-teal-light); }

.nav-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; margin-left: auto; z-index: 110; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-white); margin: 5px 0; transition: transform 0.25s, opacity 0.25s; border-radius: 1px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: background 0.2s, transform 0.15s; text-align: center; }
.btn-primary { background: var(--color-teal); color: var(--color-white); }
.btn-primary:hover { background: var(--color-teal-dark); color: var(--color-white); }
.btn-outline { background: transparent; color: var(--color-white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--color-teal-light); color: var(--color-teal-light); }

.hero { background: linear-gradient(160deg, var(--color-charcoal) 0%, #1a1d1f 100%); color: var(--color-white); padding: 72px 0 80px; }
.hero h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); line-height: 1.2; margin-bottom: 16px; font-weight: 700; }
.hero .tagline { font-size: clamp(1.05rem, 2.5vw, 1.25rem); color: rgba(255,255,255,0.85); margin-bottom: 28px; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

section { padding: 64px 0; }
.section-alt { background: var(--color-white); }
.section-title { font-size: clamp(1.4rem, 3vw, 1.75rem); color: var(--color-charcoal); margin-bottom: 12px; font-weight: 700; }
.section-intro { color: var(--color-text-muted); max-width: 640px; margin-bottom: 36px; }

.section-services-cards .card { background: var(--color-bg-alt); }
.section-why-local .card { background: var(--color-bg-alt-2); }
.section-resources-cards .card { background: var(--color-bg-alt); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(46, 50, 53, 0.12); }
.card h3 { color: var(--color-charcoal); font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; }
.card a { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.9rem; }

.prose { max-width: 720px; }
.prose h1 { font-size: clamp(1.6rem, 4vw, 2rem); color: var(--color-charcoal); margin-bottom: 12px; line-height: 1.25; }
.prose h2 { font-size: clamp(1.2rem, 3vw, 1.35rem); color: var(--color-charcoal); margin-top: 2em; margin-bottom: 0.6em; }
.prose h3 { font-size: 1.1rem; color: var(--color-teal-dark); margin-top: 1.4em; margin-bottom: 0.4em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.45em; }
.prose .subtitle { font-size: 1.15rem; color: var(--color-text-muted); margin-bottom: 1.5em; }
.article-hero-img { border-radius: var(--radius); margin: 28px 0; box-shadow: var(--shadow); }

.cta-box { background: var(--color-bg-alt); border-left: 4px solid var(--color-teal); padding: 24px 28px; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 40px; }
.cta-box strong { display: block; margin-bottom: 6px; color: var(--color-charcoal); }

.site-footer { background: var(--color-charcoal); color: rgba(255,255,255,0.8); padding: 48px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand { font-weight: 700; color: var(--color-white); font-size: 1.1rem; margin-bottom: 10px; }
.footer-links a { display: block; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.footer-links a:hover { color: var(--color-teal-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.85rem; color: rgba(255,255,255,0.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius); font-family: inherit; font-size: 1rem; background: var(--color-white); }
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--color-teal); border-color: transparent; }
.form-group textarea { min-height: 140px; resize: vertical; }

.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

.card-thumb { width: 100%; height: auto; border-radius: 6px; margin-bottom: 16px; object-fit: cover; aspect-ratio: 3 / 2; }
.card-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.card-title-row h3 { margin: 0; }
.service-icon { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; }

.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.recaptcha-wrap { margin-bottom: 16px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req { color: #b91c1c; }
.optional { font-weight: 400; color: var(--color-text-muted, #5a5f63); font-size: 0.85em; }
.field-error { display: block; color: #b91c1c; font-size: 0.85rem; margin-top: 6px; }
.form-group input.is-invalid, .form-group textarea.is-invalid, .form-group select.is-invalid { border-color: #b91c1c; box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12); }
.form-status { margin-bottom: 14px; padding: 10px 14px; border-radius: 6px; font-size: 0.95rem; }
.form-status-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-status-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.ref-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1.1rem 1.25rem; margin-bottom: 0.9rem; transition: border-color 0.15s; }
.ref-card:hover { border-color: var(--color-teal, #4A7C78); }
.ref-card a { color: var(--color-teal, #4A7C78); font-weight: 600; font-size: 1.02rem; text-decoration: none; }
.ref-card a:hover { text-decoration: underline; }
.ref-source { display: block; font-size: 0.82rem; color: var(--color-text-muted, #5a5f63); margin: 0.25rem 0 0.5rem; }
.ref-summary { font-size: 0.95rem; color: #333; margin: 0; line-height: 1.55; }
.section-note { font-size: 0.95rem; color: var(--color-text-muted, #5a5f63); margin-bottom: 1rem; }
.content-divider { border: none; border-top: 1px solid #e5e7eb; margin: 2.5rem 0; }
.disclaimer { font-size: 0.88rem; color: var(--color-text-muted, #5a5f63); margin-top: 1.5rem; font-style: italic; }

.booking-section { padding: 8px 0 64px; }
.booking-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: stretch; background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius, 8px); box-shadow: 0 4px 24px rgba(0,0,0,0.06); overflow: hidden; }
.booking-card-inner { padding: 36px 40px; }
.booking-card-inner h2 { margin: 0 0 12px; color: var(--color-charcoal, #2E3235); font-size: 1.5rem; }
.booking-card-inner > p { margin: 0 0 20px; color: var(--color-text-muted, #5a5f63); line-height: 1.55; }
.booking-points { margin: 0 0 28px; padding-left: 1.2em; color: var(--color-charcoal, #2E3235); line-height: 1.7; }
.booking-cta { display: inline-flex; font-size: 1.05rem; padding: 14px 28px; }
.booking-note { margin: 14px 0 0; font-size: 0.85rem; color: var(--color-text-muted, #5a5f63); }
.booking-alt { background: var(--color-bg-alt, #f4f5f6); padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #e5e7eb; }
.booking-alt h3 { margin: 0 0 12px; font-size: 1.1rem; color: var(--color-charcoal, #2E3235); }
.booking-alt p { margin: 0 0 16px; line-height: 1.6; }
@media (max-width: 768px) {
  .booking-card { grid-template-columns: 1fr; }
  .booking-card-inner { padding: 28px 22px; }
  .booking-alt { border-left: none; border-top: 1px solid #e5e7eb; padding: 28px 22px; }
  .booking-cta { width: 100%; justify-content: center; }
}

.nav { display: flex; align-items: center; gap: 20px; }
.nav-item { position: relative; }
.nav-parent { display: inline-flex; align-items: center; gap: 4px; }
.nav-parent::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 4px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0.7; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 8px 0; z-index: 100; margin-top: 4px; }
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown, .nav-item.is-open > .dropdown { display: block; }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--color-charcoal, #2E3235); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.dropdown a:hover { background: #f3f4f6; color: var(--color-teal, #4A7C78); }
.nav-icon { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
@media (max-width: 768px) {
  .nav-item { width: 100%; }
  .nav-parent { width: 100%; justify-content: flex-start; }
  .dropdown { position: static; display: none; box-shadow: none; border: none; border-radius: 0; background: rgba(0,0,0,0.2); padding: 0; min-width: 0; margin-top: 0; }
  .nav-item.is-open > .dropdown { display: block; }
  .dropdown a { padding: 12px 20px 12px 36px; white-space: normal; color: rgba(255,255,255,0.9); border-bottom: 1px solid rgba(255,255,255,0.06); }
  .dropdown a:hover { background: rgba(255,255,255,0.08); color: var(--color-teal-light, #7eb3af); }
  .nav-parent::after { margin-left: 8px; }
  .nav-icon { filter: brightness(1.3); }
}

.founder-block { display: flex; align-items: center; gap: 28px; background: var(--color-bg-alt); padding: 24px; border-radius: var(--radius); margin: 24px 0 32px; flex-wrap: wrap; }
.founder-photo { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow); flex-shrink: 0; }
.founder-name { font-size: 1.25rem; margin-bottom: 4px; color: var(--color-charcoal); }
.founder-title { color: var(--color-text-muted); margin: 0; line-height: 1.5; }
@media (max-width: 768px) { .founder-block { flex-direction: column; text-align: center; gap: 16px; } .founder-photo { width: 140px; height: 140px; } }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-charcoal); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); border-top: 1px solid rgba(255,255,255,0.1); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 20px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav a:last-child { border-bottom: none; margin: 12px 16px 4px; text-align: center; }
  .logo span { font-size: 0.95rem; }
  .logo img { height: 40px; }
  .logo-large img { height: 126px; }
  .hero { padding: 40px 0 48px; }
  .hero h1 br { display: none; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  section { padding: 40px 0; }
  .section-intro { margin-bottom: 28px; }
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .prose h1 { font-size: 1.55rem; }
  .cta-box { padding: 18px 16px; margin-top: 28px; }
  .article-hero-img { margin: 20px 0; }
}
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .logo span { font-size: 0.85rem; }
  .logo img { height: 36px; }
  .logo-large img { height: 108px; }
  .hero h1 { font-size: 1.55rem; }
  .btn { padding: 12px 18px; font-size: 0.9rem; }
}
@media (max-width: 1024px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-title { font-size: 1.6rem; }
}
@media (max-width: 768px) {
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 1.65rem; line-height: 1.25; }
  .hero p { font-size: 1rem; }
  .section-intro { font-size: 1rem; }
  .card-grid { grid-template-columns: 1fr; gap: 20px; }
  .prose { font-size: 1rem; }
  .cta-box { padding: 24px 20px; }
  .article-hero-img { margin-bottom: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .hero h1 { font-size: 1.4rem; }
  .btn { width: 100%; }
  .nav a.btn { width: auto; }
  .logo span { font-size: 0.85rem; }
  .card-title-row { gap: 8px; }
  .service-icon { width: 32px; height: 32px; }
}
@media (max-width: 360px) { .logo span { display: none; } }

/* Contact form: SMS consent checkbox */
.form-check { margin-top: 4px; }
.form-check .checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 0.9rem; line-height: 1.45; color: var(--color-text); cursor: pointer; }
.form-check .checkbox-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 1.05rem; height: 1.05rem; accent-color: var(--color-teal, #4A7C78); }
.form-check .checkbox-label a { color: var(--color-teal, #4A7C78); text-decoration: underline; }

/* Footnote markers with hover tooltips */
.fn { position: relative; display: inline-block; vertical-align: super; font-size: 0.7em; font-weight: 600; line-height: 0; color: var(--color-teal, #4A7C78); text-decoration: none; cursor: help; padding: 0 0.15em; }
.fn:hover, .fn:focus { color: var(--color-teal-dark, #3A635F); outline: none; }
.fn .fn-tip { visibility: hidden; opacity: 0; position: absolute; z-index: 50; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: min(280px, 70vw); padding: 10px 12px; background: var(--color-charcoal, #2E3235); color: #fff; font-size: 0.78rem; font-weight: 400; line-height: 1.45; text-align: left; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,0.2); pointer-events: none; transition: opacity 0.15s ease, visibility 0.15s ease; }
.fn .fn-tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--color-charcoal, #2E3235); }
.fn:hover .fn-tip, .fn:focus .fn-tip { visibility: visible; opacity: 1; }
.footnotes { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border, #D0D8D7); font-size: 0.85rem; color: var(--color-text-muted, #5A6568); line-height: 1.55; }
.footnotes h2 { font-size: 1rem; color: var(--color-charcoal, #2E3235); margin: 0 0 0.75rem; }
.footnotes ol { margin: 0; padding-left: 1.25rem; }
.footnotes li { margin-bottom: 0.5rem; }
.footnotes a { word-break: break-word; }
@media (max-width: 480px) { .fn .fn-tip { width: min(240px, 85vw); font-size: 0.72rem; } }

/* Footer social links with icons */
.footer-social {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
}
.footer-social a:hover {
  color: var(--color-teal-light);
}
.footer-social .social-icon {
  flex-shrink: 0;
  display: block;
}
