/* ===================================================================
   TMCBC — TN Masonic Championship BBQ Cookoff
   Patriotic theme · Navy / Red / Gold
   John B. Garrett Lodge #711
   =================================================================== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  /* Patriotic palette */
  --navy:        #0a1128;
  --navy-light:  #14204a;
  --navy-2:      #1c2c5e;
  --red:         #b12230;
  --red-bright:  #d4292e;
  --red-dark:    #8a1a25;
  --gold:        #c8a528;
  --gold-light:  #f4d56f;
  --gold-dark:   #9a7818;
  --cream:       #faf5ed;
  --cream-2:     #f3ede0;
  --white:       #ffffff;
  --text:        #1a1a2e;
  --text-soft:   #444;
  --shadow:      0 4px 30px rgba(0,0,0,0.12);
  --shadow-lg:   0 20px 60px rgba(10,17,40,0.25);

  --font-display: 'Cinzel', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-height: 72px;
  --max-width: 1100px;
  --radius: 14px;
  --radius-lg: 24px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }

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

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

/* ============================ NAVBAR ============================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10,17,40,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,165,40,0.15);
  z-index: 1000;
  transition: background .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: rgba(10,17,40,0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gold-light);
  letter-spacing: 1px;
  text-decoration: none;
}
.nav-brand:hover { color: var(--gold); }
.nav-masonic {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}
.nav-menu li { position: relative; }
.nav-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav-menu a:hover {
  color: var(--gold-light);
  background: rgba(200,165,40,0.1);
}
.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--red-bright) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
}
.hamburger, .hamburger::before, .hamburger::after {
  content: '';
  display: block;
  width: 24px; height: 3px;
  background: var(--gold-light);
  border-radius: 3px;
  transition: transform .3s, opacity .2s;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.hamburger::before { transform: translate(-50%,-9px); }
.hamburger::after  { transform: translate(-50%,9px); }
.nav-toggle.active .hamburger          { opacity: 0; }
.nav-toggle.active .hamburger::before  { transform: translate(-50%,-50%) rotate(45deg); }
.nav-toggle.active .hamburger::after   { transform: translate(-50%,-50%) rotate(-45deg); }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
  overflow: hidden;
}
/* Star-spangled decorative background */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle 1.5px at 15% 20%,  rgba(244,213,111,0.4) 1.5px, transparent 0),
    radial-gradient(circle 1px at 80% 15%,   rgba(255,255,255,0.3) 1px, transparent 0),
    radial-gradient(circle 1px at 45% 50%,   rgba(244,213,111,0.3) 1px, transparent 0),
    radial-gradient(circle 1px at 25% 75%,   rgba(255,255,255,0.2) 1px, transparent 0),
    radial-gradient(circle 1.5px at 70% 80%, rgba(244,213,111,0.3) 1.5px, transparent 0),
    radial-gradient(circle 1px at 90% 45%,  rgba(255,255,255,0.2) 1px, transparent 0),
    radial-gradient(circle 1px at 10% 90%,   rgba(244,213,111,0.25) 1px, transparent 0),
    radial-gradient(circle 1px at 55% 12%,   rgba(255,255,255,0.2) 1px, transparent 0);
  background-size: 100% 100%;
  opacity: 0.8;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { 0% { opacity: 0.5; } 100% { opacity: 0.9; } }

/* Red/white/blue stripes at bottom of hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(90deg,
    var(--red) 0%, var(--red) 33.3%,
    var(--white) 33.3%, var(--white) 66.6%,
    var(--navy-2) 66.6%, var(--navy-2) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(10,17,40,0.4) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: heroFade 1s ease-out;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.masonic-logo {
  width: auto;
  height: 200px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 4px 24px rgba(200,165,40,0.3));
  animation: gentleGlow 4s ease-in-out infinite alternate;
  display: block;
}
@keyframes gentleGlow {
  from { filter: drop-shadow(0 4px 20px rgba(200,165,40,0.2)); }
  to   { filter: drop-shadow(0 4px 40px rgba(200,165,40,0.5)); }
}

.hero-pretitle {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-title .accent {
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 140px;
}
.meta-icon { font-size: 1.5rem; }
.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-top: 8px;
}
.meta-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.hero-cta {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(177,34,48,0.4);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(177,34,48,0.5);
  color: var(--white);
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid rgba(244,213,111,0.4);
  border-radius: 15px;
  z-index: 2;
}
.hero-scroll span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--gold-light);
  border-radius: 2px;
  margin: 8px auto 0;
  animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(15px); }
}

/* ============================ SECTIONS ============================ */
.section {
  padding: 100px 0;
  position: relative;
}
.section-event    { background: var(--cream); }
.section-details  { background: var(--white); }
.section-register { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.section-kcbs     { background: var(--navy); color: var(--cream); }
.section-sponsors { background: var(--cream-2); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-kcbs .section-eyebrow { color: var(--gold-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.section-kcbs .section-title { color: var(--white); }

.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ============================ EVENT CARDS ============================ */
.event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform .3s, box-shadow .3s;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.event-card-accent {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--cream);
  border: 1px solid rgba(200,165,40,0.2);
}
.event-card-day {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 8px;
}
.event-card-accent .event-card-day { color: var(--gold-light); }
.event-card-date {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--navy);
}
.event-card-accent .event-card-date { color: var(--white); }
.event-card-body p {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Info bar */
.event-info-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 40px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.info-bar-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-bar-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 600;
}
.info-bar-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.info-bar-value .per {
  font-size: 0.75rem;
  opacity: 0.6;
  font-weight: 400;
}

/* ============================ DETAILS ============================ */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.detail-block {
  margin-bottom: 32px;
}
.detail-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 600;
}
.detail-text {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.7;
}
.detail-text a {
  color: var(--red);
  font-weight: 500;
}

.details-col-accent {
  display: flex;
  align-items: center;
}
.lodge-callout {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  color: var(--cream);
  width: 100%;
  border: 1px solid rgba(200,165,40,0.2);
  box-shadow: var(--shadow-lg);
}
.callout-masonic {
  width: auto;
  height: 80px;
  margin: 0 auto 24px;
  opacity: 0.95;
  display: block;
}
.lodge-callout h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 16px;
  font-weight: 700;
}
.lodge-callout p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 24px;
}
.lodge-emblems {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.emblem {
  padding: 6px 18px;
  background: rgba(200,165,40,0.1);
  border: 1px solid rgba(200,165,40,0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

/* ============================ REGISTER ============================ */
.register-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.register-left { padding: 48px; }
.register-right {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 48px;
  color: var(--cream);
}

.register-left h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 24px;
}
.register-steps {
  list-style: none;
  counter-reset: step;
  margin-bottom: 32px;
}
.register-steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 50px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 1.02rem;
  color: var(--text-soft);
}
.register-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 12px;
  width: 32px; height: 32px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-contact-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--gold);
}
.register-contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 6px;
}
.register-contact-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.register-phone, .register-email {
  display: block;
  font-size: 1rem;
  color: var(--red);
  margin-top: 6px;
  font-weight: 500;
}
.register-phone:hover, .register-email:hover { color: var(--red-dark); }

.register-quick-facts h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 24px;
}
.quick-fact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(200,165,40,0.15);
}
.qf-label {
  font-size: 0.9rem;
  color: rgba(250,245,237,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.qf-value {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
}

/* ============================ KCBS ============================ */
.kcbs-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
  font-size: 1.1rem;
  line-height: 1.7;
}
.kcbs-intro a { color: var(--gold-light); font-weight: 500; }
.kcbs-intro a:hover { color: var(--gold); }

.kcbs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.kcbs-subtitle {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(200,165,40,0.25);
}
.kcbs-lead {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 16px;
}
.kcbs-list {
  list-style: none;
  padding: 0;
}
.kcbs-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  line-height: 1.5;
  opacity: 0.92;
}
.kcbs-list li::before {
  content: '★';
  position: absolute;
  left: 0; top: 10px;
  color: var(--gold);
  font-size: 1rem;
}
.kcbs-onemeat p {
  margin-bottom: 16px;
  line-height: 1.7;
  opacity: 0.9;
}

/* ============================ SPONSORS ============================ */
.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}
.sponsor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.sponsor-card img {
  max-height: 140px;
  width: auto;
  margin: 0 auto 24px;
  object-fit: contain;
}
.sponsor-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.sponsor-desc {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ============================ FOOTER ============================ */
.footer {
  background: var(--navy);
  color: var(--cream);
  padding: 60px 0 0;
  border-top: 4px solid var(--red);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(200,165,40,0.15);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-masonic {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: contain;
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.4;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li {
  padding: 5px 0;
  font-size: 0.92rem;
  opacity: 0.8;
}
.footer-col a {
  color: var(--cream);
  opacity: 0.8;
}
.footer-col a:hover {
  color: var(--gold-light);
  opacity: 1;
}
.footer-bottom {
  text-align: center;
  padding: 28px 0;
}
.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 4px;
}
.footer-tagline {
  font-family: var(--font-display);
  color: var(--gold) !important;
  letter-spacing: 2px;
  opacity: 0.8 !important;
  margin: 8px 0 !important;
}
.footer-copy {
  font-size: 0.78rem !important;
}

/* ============================ ANIMATIONS ============================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .event-grid, .details-grid, .kcbs-grid, .register-card, .sponsor-grid {
    grid-template-columns: 1fr;
  }
  .event-info-bar {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .register-right { border-top: 1px solid rgba(200,165,40,0.2); }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(10,17,40,0.98);
    padding: 20px;
    gap: 8px;
    border-bottom: 1px solid rgba(200,165,40,0.15);
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-menu a { padding: 14px 20px; font-size: 1.05rem; }

  .hero { padding: 80px 20px 60px; min-height: 90vh; }
  .hero-meta { gap: 16px; }
  .hero-meta-item { min-width: 100px; }

  .event-card, .register-left, .register-right, .lodge-callout { padding: 28px 24px; }
  .event-info-bar {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 24px;
  }
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; flex-direction: column; }
  .footer-col ul { text-align: center; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 2rem; }
  .masonic-logo { width: 140px; height: 140px; }
  .hero-cta { padding: 14px 32px; font-size: 1rem; }
}
