/* =====================================================
   CLASSIC CARS & CUSTOMS 2.0
   STYLESHEET FOR SUBPAGES (event.php etc.)
   Standalone: does not depend on style.css
===================================================== */
:root {
    --cream: #f5ead5;
    --cream-dark: #e9d8b9;
    --red: #b52b2b;
    --red-dark: #8e2020;
    --blue: #17365d;
    --blue-dark: #102744;
    --gold: #d8b56b;
    --white: #ffffff;
    --text: #292929;
    --light-text: #666666;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: #0e0e0e; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
/* Shared page frame: same 1400px width as the homepage flyer */
.site-shell { width: 100%; max-width: 1400px; margin: 0 auto; background: var(--cream); box-shadow: 0 0 30px rgba(0,0,0,.08); }

/* Header / hero banner */
/* Subpage hero: same 1400px image frame and screen-height composition as homepage */
.event-hero { position: relative; width: min(100%, 1400px); height: 76vh; height: 76svh; min-height: 0; margin: 0 auto; background: url("../images/ccc-hero-original.png") center top / 100% auto no-repeat; background-color: #0e0e0e; color: var(--white); overflow: visible; }
.event-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.10); }
.hero-overlay { position: absolute; inset: 0; background: transparent; }
.hero-header { position: relative; z-index: 5; width: min(92%, 1300px); margin: 0 auto; padding-top: 15px; display: grid; grid-template-columns: minmax(130px,1fr) minmax(250px,2fr) minmax(130px,1fr); grid-template-rows: auto auto; align-items: center; color: #fff; text-shadow: 2px 2px 5px rgba(0,0,0,.65); }
.hero-brand-left img { display: block; width: 280px; max-width: 100%; height: auto; margin: 0 auto; }
.hero-brand-center { text-align: center; line-height: 1; position: relative; min-height: 110px; display: flex; align-items: center; justify-content: center; }
.sponsor-rotator { width: 100%; }
.sponsor-logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; opacity: 0; transition: opacity .7s ease; }
.sponsor-logo.active { opacity: 1; }
.sponsor-logo img { display: block; width: auto; height: auto; max-width: 90%; max-height: 110px; object-fit: contain; }
.hero-brand-right img { display: block; width: 105px; max-width: 100%; height: auto; margin: 0 auto; }
.hero-nav { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(12px,2.2vw,30px); width: 95%; box-sizing: border-box; margin: 8px auto 0; padding: 14px 22px; background: var(--blue); border: 2px solid var(--gold); border-radius: 5px; box-shadow: 0 3px 12px rgba(0,0,0,.22); }
.hero-nav > a { color: var(--white); font-weight: 900; font-size: 16px; letter-spacing: 1.2px; }
.hero-nav > a:hover { color: var(--gold); }
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle { appearance: none; border: 0; background: transparent; color: var(--white); font: inherit; font-weight: 900; font-size: 16px; letter-spacing: 1px; padding: 0; cursor: pointer; }
.nav-dropdown-toggle:hover { color: var(--gold); }
.dropdown-arrow { font-size: 10px; margin-left: 3px; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 190px; padding: 8px 0; background: rgba(23,54,93,.97); border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,.18); z-index: 20; }
.nav-dropdown-menu a { display: block; white-space: nowrap; padding: 10px 16px; color: #fff; font-size: 13px; font-weight: bold; letter-spacing: 1px; text-align: left; }
.nav-dropdown-menu a:hover { color: var(--gold); background: rgba(255,255,255,.08); }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { display: block; }
.hero-social-icons { display: flex; align-items: center; gap: 5px; }
.hero-social-icons a { display: flex; align-items: center; justify-content: center; }
.hero-social-icons img { display: block; width: 18px; height: 18px; object-fit: contain; }

/* Event page content */
.event-page-content { background: var(--cream); padding: 55px clamp(18px,5vw,70px) 70px; }
.event-page-intro { max-width: 900px; margin: 0 auto 45px; text-align: center; }
.section-kicker { color: var(--red); font-size: 13px; font-weight: bold; letter-spacing: 3px; margin: 0 0 14px; }
.event-page-intro h1 { color: var(--blue); font-size: clamp(34px,5vw,58px); line-height: 1; margin: 0 0 20px; font-weight: 900; }
.event-page-intro > p:last-child { color: var(--light-text); font-size: 18px; line-height: 1.65; margin: 0; }
.event-info-section { max-width: 1100px; margin: 0 auto 32px; padding: 34px clamp(18px,3vw,38px); background: #fff; border-radius: 8px; border-left: 7px solid var(--gold); box-shadow: 0 5px 20px rgba(0,0,0,.06); scroll-margin-top: 25px; }
.event-info-heading { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 2px solid var(--cream-dark); margin-bottom: 22px; }
.event-info-heading span { color: var(--red); font-size: 18px; font-weight: 900; letter-spacing: 2px; }
.event-info-heading h2 { margin: 0; color: var(--blue); font-size: clamp(25px,3.5vw,38px); font-weight: 900; }
.event-info-placeholder { min-height: 100px; color: var(--light-text); font-size: 17px; line-height: 1.7; }
.event-info-placeholder p { margin: 0; }
.event-footer { background: var(--blue); color: var(--white); padding: 45px 20px; text-align: center; }
.footer-logo { color: var(--gold); font-size: 24px; font-weight: 900; margin-bottom: 15px; }
.event-footer p { color: rgba(255,255,255,.8); margin: 10px 0; }
.event-footer .copyright { font-size: 13px; margin-top: 25px; }

@media (max-width: 900px) {
    .event-hero { width: min(100%, 1400px); height: 76vh; height: 76svh; min-height: 0; background-position: center top; background-size: 100% auto; }
    .hero-header { width: 95%; }
    .hero-nav { gap: 12px 16px; padding: 12px 14px; }
    .hero-nav > a, .nav-dropdown-toggle { font-size: 13px; }
}
@media (max-width: 600px) {
    .event-hero { width: 100%; height: 76vh; height: 76svh; min-height: 0; background-position: center top; background-size: 100% auto; }
    .hero-header { top: 0; grid-template-columns: 1fr; gap: 5px; padding-top: 10px; }
    .hero-brand-left, .hero-brand-right { display: none; }
    .hero-brand-center { min-height: 65px; }
    .sponsor-logo img { max-height: 65px; }
    .hero-nav { width: 95%; gap: 8px 12px; flex-wrap: wrap; margin-top: 5px; padding: 9px; }
    .hero-nav > a, .nav-dropdown-toggle { font-size: 10px; }
    .nav-dropdown-menu { left: auto; right: 0; transform: none; min-width: 170px; }
    .nav-dropdown-menu a { font-size: 10px; padding: 10px 12px; }
    .hero-social-icons { gap: 4px; }
    .event-page-content { padding: 35px 14px 45px; }
    .event-page-intro { margin-bottom: 30px; }
    .event-page-intro > p:last-child { font-size: 16px; }
    .event-info-section { padding: 22px 18px; margin-bottom: 20px; }
    .event-info-heading { gap: 12px; margin-bottom: 16px; }
    .event-info-placeholder { font-size: 16px; }
}

/* Sponsors page: balanced grid, all logos get equal visual space */
.sponsors-page-content { padding-bottom: 65px; }
.sponsors-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: center; }
.sponsor-card { min-width: 0; height: 190px; background: #fff; border: 1px solid #e2d9ca; border-radius: 5px; padding: 15px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sponsor-card a, .sponsor-card-no-link { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.sponsor-card img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 160px; object-fit: contain; transition: transform .2s ease; }
.sponsor-card a:hover img { transform: scale(1.035); }
/* Paid full-width sponsor advertisements: image itself fills the row */
.sponsor-card-full { grid-column: 1 / -1; height: auto; min-height: 0; padding: 12px; }
.sponsor-card-full img { display: block; width: 100%; height: auto; max-width: 100%; max-height: none; object-fit: contain; }
.sponsor-card-full a, .sponsor-card-full .sponsor-card-no-link { height: auto; min-height: 0; }

@media (max-width: 800px) {
  .sponsors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .sponsor-card { height: 165px; padding: 12px; }
  .sponsor-card img { max-height: 140px; }
  .sponsor-card-full { min-height: 0; padding: 10px; }
  .sponsor-card-full img { width: 100%; height: auto; max-height: none; }
  .sponsor-card-full a, .sponsor-card-full .sponsor-card-no-link { min-height: 0; height: auto; }
}
@media (max-width: 480px) {
  .sponsors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .sponsor-card { height: 125px; padding: 8px; }
  .sponsor-card img { max-height: 108px; }
  .sponsor-card-full { min-height: 0; padding: 6px; }
  .sponsor-card-full img { width: 100%; height: auto; max-height: none; }
  .sponsor-card-full a, .sponsor-card-full .sponsor-card-no-link { min-height: 0; height: auto; }
}

/* Sponsor full-width ads: force full grid width and remove image height limits */
.sponsors-grid .sponsor-card-full { grid-column: 1 / -1 !important; width: 100% !important; height: auto !important; min-height: 0 !important; padding: 0 !important; overflow: visible !important; display: block !important; }
.sponsors-grid .sponsor-card-full > a,
.sponsors-grid .sponsor-card-full > .sponsor-card-no-link { display: block !important; width: 100% !important; height: auto !important; min-height: 0 !important; }
.sponsors-grid .sponsor-card-full img { display: block !important; width: 100% !important; height: auto !important; max-width: 100% !important; max-height: none !important; object-fit: contain !important; }

/* Contact page */
.contact-page-content { padding-bottom: 70px; }
.contact-card { max-width: 850px; margin: 0 auto; padding: clamp(22px,4vw,42px); background: #fff; border-radius: 9px; border-top: 6px solid var(--gold); box-shadow: 0 7px 24px rgba(0,0,0,.07); }
.contact-form { display: grid; gap: 20px; }
.contact-form-row { display: grid; gap: 8px; }
.contact-form-row label { color: var(--blue); font-weight: 800; font-size: 15px; }
.contact-form-row label span { color: var(--red); }
.contact-form-row input, .contact-form-row textarea { width: 100%; padding: 13px 14px; border: 1px solid #cfc7ba; border-radius: 5px; background: #fff; font: inherit; font-size: 16px; color: var(--text); }
.contact-form-row input:focus, .contact-form-row textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--blue); }
.contact-form-row textarea { resize: vertical; min-height: 150px; }
.contact-required { margin: 0; color: var(--light-text); font-size: 13px; }
.contact-submit { justify-self: start; border: 0; border-radius: 5px; padding: 15px 26px; background: var(--red); color: #fff; font-weight: 900; letter-spacing: 1px; font-size: 15px; cursor: pointer; transition: background .2s, transform .2s; }
.contact-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.contact-success { padding: 22px; text-align: center; background: #f2f8f0; border: 1px solid #c9dfc5; border-radius: 6px; color: #285b2c; }
.contact-success h2 { margin: 0 0 10px; }
.contact-success p { margin: 0; line-height: 1.6; }
.contact-error { margin-bottom: 20px; padding: 13px 16px; border-radius: 5px; color: #8b1f1f; background: #fff0f0; border: 1px solid #e4baba; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-direct { text-align: center; margin: 28px auto 0; color: var(--light-text); }
.contact-direct p { margin: 0 0 8px; }
.contact-direct a { color: var(--blue); font-weight: 900; font-size: 18px; }
@media (max-width: 600px) { .contact-card { padding: 20px 16px; } .contact-submit { width: 100%; } }
