/* ==========================================================================
   Clay County Chamber of Commerce — black & gold theme
   ========================================================================== */
:root {
    --black: #0B0B0B;
    --charcoal: #161616;
    --graphite: #232323;
    --smoke: #6B6B6B;
    --ivory: #F7F4EC;
    --paper: #FFFFFF;
    --gold: #C9A227;
    --gold-light: #E5C158;
    --gold-dark: #9A7A18;
    --gold-soft: rgba(201, 162, 39, 0.14);
    --text: #1B1B1B;
    --muted: #5F5F5F;
    --border: #E4DFD2;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --font-display: "Poppins", system-ui, sans-serif;
    --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--ivory);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .display-font { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; color: var(--black); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.35rem; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }
p.lead { font-size: 1.15rem; color: var(--muted); }
.text-gold { color: var(--gold) !important; }
.text-muted { color: var(--muted) !important; }
.bg-black { background: var(--black) !important; }
.bg-charcoal { background: var(--charcoal) !important; }
.bg-ivory { background: var(--ivory) !important; }
.bg-paper { background: var(--paper) !important; }
.gold-rule { width: 64px; height: 3px; background: linear-gradient(90deg, var(--gold-light), var(--gold-dark)); border-radius: 2px; margin: 1rem 0 1.5rem; }
.gold-rule.mx-auto { margin-left: auto; margin-right: auto; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.container { max-width: 1200px; }

/* Buttons */
.btn { border-radius: 6px; font-weight: 600; letter-spacing: .01em; padding: .7rem 1.4rem; transition: all .2s ease; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--black); border: 1px solid var(--gold-dark); }
.btn-gold:hover { background: var(--gold-light); color: var(--black); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201,162,39,.35); }
.btn-outline-gold { border: 1.5px solid var(--gold); color: var(--gold-dark); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--black); }
.btn-outline-light:hover { color: var(--black); }
.btn-dark { background: var(--black); border-color: var(--black); }
.btn-dark:hover { background: var(--graphite); border-color: var(--graphite); }
.btn-sm { padding: .45rem .95rem; font-size: .875rem; }
.btn-lg { padding: .9rem 1.9rem; font-size: 1.05rem; }

/* Navbar */
.site-nav { background: var(--black); border-bottom: 1px solid rgba(201,162,39,.25); padding: .6rem 0; }
.site-nav .navbar-brand { color: #fff; }
.site-nav .navbar-brand svg { height: 48px; width: auto; }
.site-nav .nav-link { color: rgba(255,255,255,.82); font-weight: 500; font-size: .95rem; padding: .55rem .85rem !important; position: relative; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--gold-light); }
.site-nav .nav-link.active::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 2px; background: var(--gold); }
.site-nav .navbar-toggler { border-color: rgba(201,162,39,.5); }
.site-nav .navbar-toggler-icon { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23C9A227' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); }
.site-nav .dropdown-menu { background: var(--charcoal); border: 1px solid rgba(201,162,39,.3); }
.site-nav .dropdown-item { color: rgba(255,255,255,.85); }
.site-nav .dropdown-item:hover { background: rgba(201,162,39,.15); color: var(--gold-light); }
.topbar { background: var(--charcoal); color: rgba(255,255,255,.7); font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar a { color: rgba(255,255,255,.75); }
.topbar a:hover { color: var(--gold-light); }
.topbar i { color: var(--gold); }

/* Hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; background: var(--black); overflow: hidden; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.6) 50%, rgba(0,0,0,.25) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 560px; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--gold-light); line-height: 1; }
.hero-stats span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.page-hero { position: relative; background: var(--black); color: #fff; padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.page-hero .hero-media { opacity: .45; }
.page-hero .hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.85)); }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 640px; }
.page-hero.compact { padding: 3rem 0 2.5rem; }

/* Cards */
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img-top { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); object-fit: cover; height: 200px; }
.card-body { padding: 1.4rem; }
.card-title { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: .5rem; }
.card-title a { color: var(--black); }
.card-title a:hover { color: var(--gold-dark); }
.card-dark { background: var(--charcoal); border-color: rgba(201,162,39,.3); color: rgba(255,255,255,.85); }
.card-dark h3, .card-dark .card-title, .card-dark .card-title a { color: #fff; }
.feature-card { background: var(--paper); border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.8rem; height: 100%; }
.feature-card .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.15rem; }

/* Event cards */
.date-badge { width: 64px; flex: 0 0 64px; background: var(--black); color: #fff; border-radius: 8px; text-align: center; padding: .5rem 0; border: 1px solid var(--gold-dark); }
.date-badge .m { display: block; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-light); }
.date-badge .d { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; font-weight: 700; }
.event-row { display: flex; gap: 1.2rem; padding: 1.2rem; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); }
.event-row:hover { box-shadow: var(--shadow); }
.event-meta { font-size: .9rem; color: var(--muted); }
.event-meta i { color: var(--gold); width: 18px; }

/* Pricing */
.plan { position: relative; background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; height: 100%; display: flex; flex-direction: column; }
.plan.featured { background: var(--black); color: rgba(255,255,255,.85); border-color: var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.plan.featured h3, .plan.featured .price { color: #fff; }
.plan.featured .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--black); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 999px; }
.plan .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--black); line-height: 1; }
.plan .price small { font-family: var(--font-body); font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan.featured .price small { color: rgba(255,255,255,.65); }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; }
.plan li { padding: .4rem 0; display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.plan li i { color: var(--gold); margin-top: .25rem; }
.plan .plan-cta { margin-top: auto; }
.billing-toggle { display: inline-flex; background: var(--paper); border: 1px solid var(--border); border-radius: 999px; padding: .3rem; }
.billing-toggle label { padding: .5rem 1.2rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--muted); }
.billing-toggle input { display: none; }
.billing-toggle input:checked + label { background: var(--black); color: var(--gold-light); }

/* Forms */
.form-control, .form-select { border: 1px solid var(--border); border-radius: 6px; padding: .7rem .9rem; background: var(--paper); }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(201,162,39,.2); }
.form-label { font-weight: 600; font-size: .9rem; }
.auth-card { max-width: 480px; margin: 0 auto; background: var(--paper); border: 1px solid var(--border); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }

/* Account */
.account-nav .list-group-item { border-color: var(--border); font-weight: 500; }
.account-nav .list-group-item.active { background: var(--black); border-color: var(--black); color: var(--gold-light); }
.status-pill { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.status-active { background: #E4F5E9; color: #1D7A3E; }
.status-past_due, .status-pending { background: #FFF3D6; color: #8A5A00; }
.status-canceled, .status-expired { background: #F3E5E5; color: #9A2A2A; }
.stat { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.stat .label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat .value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }

/* Directory */
.listing-card .logo-box { height: 150px; background: var(--ivory); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.listing-card .logo-box img { max-height: 110px; max-width: 80%; object-fit: contain; }
.listing-card .logo-box .placeholder-mark { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); }
.listing-card .badge-featured { position: absolute; top: .8rem; left: .8rem; background: var(--gold); color: var(--black); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 4px; font-weight: 700; }
.category-chip { display: inline-block; font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold-dark); font-weight: 600; }
.filter-bar { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }

/* Team */
.team-card { text-align: center; }
.team-card .photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 3px solid var(--gold); background: var(--ivory); }
.team-card .photo.placeholder { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2.2rem; color: var(--gold-dark); }
.team-card .role { color: var(--gold-dark); font-weight: 600; font-size: .9rem; }

/* CTA band */
.cta-band { background: var(--black); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(201,162,39,.25), transparent 50%); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }

/* Photo strip */
.photo-strip img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); }
.img-cover { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.img-frame { border: 6px solid var(--paper); box-shadow: var(--shadow); border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--black); color: rgba(255,255,255,.7); padding: 4rem 0 2rem; border-top: 3px solid var(--gold); }
.site-footer h5 { color: #fff; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid rgba(201,162,39,.5); border-radius: 50%; margin-right: .4rem; color: var(--gold-light); }
.site-footer .social a:hover { background: var(--gold); color: var(--black); }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; }
.site-footer .brand svg { height: 56px; width: auto; color: #fff; }

/* Calendar */
.mini-cal { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.mini-cal header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.mini-cal header strong { font-family: var(--font-display); font-size: 1.1rem; }
.mini-cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mini-cal .dow { font-size: .7rem; text-align: center; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; padding-bottom: .3rem; }
.mini-cal .day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .85rem; border-radius: 6px; position: relative; color: var(--text); }
.mini-cal .day.empty { visibility: hidden; }
.mini-cal .day.has-event { background: var(--gold-soft); font-weight: 700; color: var(--gold-dark); cursor: pointer; }
.mini-cal .day.has-event::after { content: ""; position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.mini-cal .day.today { outline: 2px solid var(--black); }
.mini-cal .btn { padding: .2rem .6rem; }
.mini-cal .list { margin-top: .8rem; font-size: .85rem; }
.mini-cal .list a { display: block; padding: .35rem 0; border-top: 1px solid var(--border); color: var(--text); }
.mini-cal .list a:hover { color: var(--gold-dark); }

/* Rich text */
.rich-text p { margin-bottom: 1.1rem; }
.rich-text h2, .rich-text h3 { margin-top: 2rem; }
.rich-text img { max-width: 100%; border-radius: var(--radius); }
.rich-text blockquote { border-left: 3px solid var(--gold); padding-left: 1rem; color: var(--muted); font-style: italic; }

/* Flash / alerts */
.flash-message { position: fixed; top: 1rem; right: 1rem; z-index: 2000; max-width: 380px; padding: 1rem 1.2rem; border-radius: 8px; color: #fff; background: var(--charcoal); border-left: 4px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: flash-in .3s ease; }
.flash-message.success { border-left-color: #2FAE5C; }
.flash-message.error { border-left-color: #D64545; }
.flash-message.warning { border-left-color: #E9A23B; }
.flash-message button { background: none; border: 0; color: #fff; float: right; margin-left: 1rem; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.alert-gold { background: var(--gold-soft); border: 1px solid rgba(201,162,39,.4); color: var(--text); border-radius: 8px; }
.oc-loading, .wn-loading { cursor: wait; opacity: .7; }

/* Pagination */
.pagination .page-link { color: var(--black); border-color: var(--border); }
.pagination .page-item.active .page-link { background: var(--black); border-color: var(--black); color: var(--gold-light); }

/* Utilities */
.hover-lift { transition: transform .2s ease; }
.hover-lift:hover { transform: translateY(-3px); }
.ratio-img { width: 100%; height: 100%; object-fit: cover; }
.text-serif { font-family: var(--font-display); }
.lh-tight { line-height: 1.2; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb-item.active { color: var(--gold-light); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.table thead th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--border); }
.table td { vertical-align: middle; }
@media (max-width: 767px) {
    .hero { min-height: 70vh; }
    .hero-home .hero-bg { object-position: 60% 40%; }
    .hero-home .hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.6) 60%, rgba(0,0,0,.85) 100%); }
    .hero-stats { gap: 1.5rem; }
    .section { padding: 3rem 0; }
    .plan { padding: 1.5rem; }
}

/* Transparent navbar over the home hero (Manchester-style) */
.site-nav.navbar-on-landing { position: absolute; top: 0; left: 0; right: 0; z-index: 100; background: transparent; border-bottom: 0; transition: background-color .35s ease; }
.site-nav.navbar-on-landing.scrolled { position: fixed; background: var(--black); border-bottom: 1px solid rgba(201,162,39,.25); box-shadow: 0 2px 12px rgba(0,0,0,.4); }
.site-nav.navbar-on-landing .navbar-collapse.show, .site-nav.navbar-on-landing .navbar-collapse.collapsing { background: rgba(11,11,11,.95); border-radius: 8px; padding: .5rem; margin-top: .5rem; }
body.has-landing-nav { padding-top: 0; }
.wave-divider { display: block; width: 100%; height: 90px; margin-bottom: -1px; }
.hero-home { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: var(--black); }
.hero-home .hero-bg { position: absolute; inset: -10% 0 0 0; width: 100%; height: 120%; object-fit: cover; object-position: 72% 45%; will-change: transform; }
.hero-home .hero-overlay { background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.72) 38%, rgba(0,0,0,.35) 70%, rgba(0,0,0,.2) 100%), linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 100%); }
.hero-home .container { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 7rem; }
.hero-home .wave-container { position: absolute; bottom: 0; left: 0; width: 100%; line-height: 0; z-index: 3; }
.hero-home .wave-container svg { display: block; width: 100%; height: 100px; }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp .8s ease forwards; }
.fade-up.d1 { animation-delay: .15s; } .fade-up.d2 { animation-delay: .3s; } .fade-up.d3 { animation-delay: .45s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.display-5 { font-weight: 700; }
.fw-extrabold { font-weight: 800; }
.section-dark { background: var(--black); color: rgba(255,255,255,.85); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: rgba(255,255,255,.7) !important; }
.photo-card { position: relative; border-radius: 12px; overflow: hidden; border: 8px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); background: #fff; }
.photo-card img { width: 100%; height: 260px; object-fit: cover; display: block; }
.photo-card .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,.8)); color: #fff; font-weight: 600; }
.hover-gold:hover { color: var(--gold-light) !important; }

/* Hero quick-link tiles (Harlan-style) */
.hero-home .container { padding-bottom: 8.5rem; }
.hero-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 2.5rem; max-width: 960px; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.45); position: relative; z-index: 4; }
.hero-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; min-height: 150px; padding: 1.4rem 1rem; text-align: center; font-weight: 600; font-size: 1.05rem; line-height: 1.2; transition: transform .2s ease, filter .2s ease; }
.hero-tile i { font-size: 2.1rem; }
.hero-tile.gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--black); }
.hero-tile.dark { background: var(--black); color: #fff; border-top: 1px solid rgba(201,162,39,.35); border-bottom: 1px solid rgba(201,162,39,.35); }
.hero-tile.dark i { color: var(--gold-light); }
.hero-tile:hover { filter: brightness(1.08); transform: translateY(-3px); color: inherit; }
.hero-tile.gold:hover { color: var(--black); }
.hero-tile.dark:hover { color: #fff; }
@media (max-width: 767px) {
    .hero-home .container { padding-bottom: 6.5rem; }
    .hero-tiles { grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
    .hero-tile { min-height: 120px; font-size: .95rem; }
    .hero-tile i { font-size: 1.7rem; }
}
