/* ==========================================================================
   Oregon Tow Truck Association — Site Stylesheet
   ========================================================================== */

:root {
  --navy-950: #0c1729;
  --navy-900: #10203c;
  --navy-800: #16294c;
  --navy-700: #203a68;
  --navy-600: #2c4c85;

  --steel-100: #eef1f6;
  --steel-200: #e0e5ed;
  --steel-300: #c7cedb;
  --steel-500: #8a94a8;

  --gold-500: #c6902f;
  --gold-600: #a97620;

  --white: #ffffff;
  --ink: #1b2233;
  --muted: #5a6478;
  --border: #e3e7ee;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 12px 32px rgba(12, 23, 41, 0.14);
  --shadow-sm: 0 4px 14px rgba(12, 23, 41, 0.10);

  --maxw: 1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-600); }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: "Oswald", "Segoe UI", Arial, sans-serif;
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; }
p { margin: 0 0 18px; }
strong { color: var(--navy-900); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
@media (min-width: 1240px) {
  .wrap { padding: 0 40px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 22px; }
}

.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-gold { background: var(--gold-500); color: var(--white); }
.btn-gold:hover { background: var(--gold-600); color: var(--white); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy-900); }
.btn-outline-navy { background: transparent; border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-950);
  color: var(--steel-300);
  font-size: 0.82rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--steel-300);
  letter-spacing: 0.01em;
}
.topbar-contact a:hover { color: var(--gold-500); }
.topbar-contact .sep {
  color: var(--navy-700);
  font-size: 0.7rem;
}
@media (max-width: 560px) {
  .topbar-contact .sep { display: none; }
  .topbar-contact { flex-direction: column; gap: 4px; }
}

/* ---------- Main nav ---------- */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 58px; width: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.site-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  color: var(--navy-900);
  font-family: "Oswald", sans-serif;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
}
.site-nav a:hover,
.site-nav a.active {
  background: var(--navy-900);
  color: var(--white);
}
.site-nav a.cta {
  background: var(--gold-500);
  color: var(--white);
}
.site-nav a.cta:hover { background: var(--gold-600); }

/* Dropdown */
.site-nav .caret {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
}
.has-dropdown { position: relative; }
.site-nav .dropdown {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  margin: 4px 0 0;
  display: none;
  z-index: 200;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  display: block;
}
.site-nav .dropdown a {
  text-transform: none;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 4px;
}
.site-nav .dropdown a:hover { background: var(--steel-100); color: var(--navy-900); }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    border-top: 1px solid var(--border);
    margin-top: 12px;
    padding-top: 8px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; align-items: stretch; }
  .site-nav a { padding: 12px 6px; }
  .navbar .wrap { flex-wrap: wrap; }

  .has-dropdown .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 18px;
    margin: 0;
    background: transparent;
  }
  .site-nav .dropdown a { padding: 10px 6px; color: var(--muted); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  background:
    radial-gradient(ellipse at 80% 15%, rgba(198,144,47,0.20), transparent 55%),
    linear-gradient(115deg, rgba(9,17,32,0.94) 20%, rgba(16,32,60,0.86) 100%);
}
.hero .wrap {
  position: relative;
  padding: 96px 32px 100px;
  text-align: center;
}
.hero-logo-bug { width: 84px; height: auto; margin: 0 auto 26px; opacity: 0.95; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero p.lead {
  color: var(--steel-200);
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.page-hero-overlay {
  background: linear-gradient(115deg, rgba(12,23,41,0.92) 20%, rgba(16,32,60,0.78) 100%);
  padding: 68px 32px;
}
.page-hero h1 {
  color: var(--white);
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Content ---------- */
main { display: block; }
.content {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 32px;
}
.content.wide { max-width: 940px; }
.section { padding: 64px 0; }
.section-alt { background: var(--steel-100); }
.section-navy { background: var(--navy-900); color: var(--steel-200); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: var(--gold-600);
  margin-bottom: 10px;
}
.section-navy .eyebrow { color: var(--gold-500); }

.divider {
  width: 60px;
  height: 3px;
  background: var(--gold-500);
  border: none;
  margin: 28px 0;
}

.text-center { text-align: center; }

/* Bug-bullet lists */
ul.list-bug { list-style: none; margin: 0 0 20px; }
ul.list-bug li {
  position: relative;
  padding: 6px 0 6px 40px;
  border-bottom: 1px solid var(--border);
}
ul.list-bug li:last-child { border-bottom: none; }
ul.list-bug li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 24px;
  height: 15px;
  background: url("../images/logo/otta-bug.png") center/contain no-repeat;
}
.section-navy ul.list-bug li { border-bottom-color: rgba(255,255,255,0.12); }

/* Generic content lists fallback (gold dash) */
.content ul:not(.list-bug):not(.footer-links) li,
.card ul:not(.list-bug) li {
  position: relative;
  list-style: none;
  padding-left: 22px;
  margin-bottom: 8px;
}
.content ul:not(.list-bug):not(.footer-links) li::before,
.card ul:not(.list-bug) li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold-500);
  font-weight: 700;
}

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card img { margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; }

/* Member / board cards */
.member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
}
@media (max-width: 700px) {
  .member-grid { grid-template-columns: 1fr; }
}
.member-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.member-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 3px solid var(--steel-200);
  flex-shrink: 0;
}
.member-card h3 { margin-bottom: 4px; }
.member-card .role {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  color: var(--gold-600);
  letter-spacing: 0.04em;
  font-size: 0.88rem;
  margin-bottom: 8px;
  display: block;
}
.member-card p { margin: 0; color: var(--muted); }

/* Resource link list */
.resource-list { list-style: none; }
.resource-list li {
  border-bottom: 1px solid var(--border);
}
.resource-list li:last-child { border-bottom: none; }
.resource-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--navy-900);
}
.resource-list a:hover { color: var(--gold-600); }
.resource-list a .arrow { color: var(--gold-500); font-size: 1.3rem; }

/* Sponsor tiers */
.sponsor-tier { padding: 56px 0; border-top: 1px solid var(--border); }
.sponsor-tier:first-of-type { border-top: none; }
.tier-label {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  color: var(--white);
}
.tier-gold { background: var(--gold-500); }
.tier-silver { background: var(--steel-500); }
.tier-bronze { background: #9c6b3e; }
.tier-partner { background: var(--navy-800); }

.sponsor-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.sponsor-card img { align-self: center; }
.sponsor-card.logo-only { grid-template-columns: 1fr; text-align: center; }
.sponsor-card.logo-only img { margin: 0 auto; max-height: 90px; width: auto; }
@media (max-width: 640px) {
  .sponsor-card { grid-template-columns: 1fr; }
}

.sponsor-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: center;
  padding: 34px 0;
}
.sponsor-strip a { display: flex; align-items: center; }
.sponsor-strip img {
  max-height: 60px;
  width: auto;
  filter: grayscale(20%);
  opacity: 0.9;
  transition: opacity 0.18s ease;
}
.sponsor-strip img:hover { opacity: 1; }

/* Tier benefit table */
.tier-benefit {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 20px;
}
.tier-benefit h5 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  color: var(--navy-900);
  margin-bottom: 12px;
}
.tier-price { color: var(--gold-600); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-950);
  color: var(--white);
  text-align: center;
  padding: 60px 24px;
}
.cta-band h1, .cta-band h2 { color: #ffd23f; }
.cta-band p { color: var(--steel-300); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  color: var(--navy-900);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--steel-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--steel-300); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 40px 56px;
  padding-top: 64px;
  padding-bottom: 44px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
.footer-bug { width: 46px; height: auto; margin-bottom: 14px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.site-footer p { color: var(--steel-300); margin-bottom: 10px; }
.site-footer a { color: var(--steel-300); }
.site-footer a:hover { color: var(--gold-500); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }

.footer-fb-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 18px;
  background: #1877f2;
  color: var(--white) !important;
  border-radius: var(--radius);
  font-family: "Oswald", sans-serif;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.footer-fb-badge:hover { background: #0f5fcc; color: var(--white) !important; }
.footer-fb-badge svg { width: 18px; height: 18px; fill: var(--white); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: var(--steel-500); text-align: center; }
.footer-bottom a { color: var(--steel-300); }

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-500); color: var(--white); }

/* ---------- Utility ---------- */
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
iframe.calendar { width: 100%; height: 720px; border: 1px solid var(--border); border-radius: var(--radius-lg); }

@media (max-width: 640px) {
  .content { padding: 44px 20px; }
  .section { padding: 44px 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}
