/* =========================================
   CLASSIC CARS & CUSTOMS 2.0
   MAIN STYLESHEET
========================================= */


/* ---------- COLORS ---------- */

: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;
}


/* ---------- GENERAL ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #0e0e0e; /* Mörk sidbakgrund */
}

/* ---------- CENTRERAD SIDLAYOUT ---------- */
.site-shell {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    background: var(--cream);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.08);
}

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

a {
    text-decoration: none;
}

.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}





/* CCC LOGO IN HERO HEADER */
.hero-brand-left img {
    display: block;
    width: 280px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}



/* ---------- HERO HEADER ELEMENTS ---------- */
.hero-header {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    z-index: 5;
    width: min(92%, 1300px);
    max-width: 1300px;
    margin: 0 auto;
    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,0.65);
}

.hero-brand-left,
.hero-brand-right {
    font-weight: 900;
    letter-spacing: 3px;
    font-size: clamp(18px, 2vw, 30px);
    text-align: center;
}

 .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 links and logos: controlled size, centered, fading between sponsors */
.sponsor-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    opacity: 0;
    transition: opacity 0.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;
}

/* NAVIGATION BAR - raised and changed to the CCC cream/navy palette */
.hero-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: center;
    gap: clamp(15px, 2.5vw, 35px);
    width: 80%;
    box-sizing: border-box;
    margin: 8px auto 0;
    padding: 14px 22px;
    background: var(--cream);
    border: 2px solid var(--gold);
    border-radius: 5px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.22);
}

.hero-nav a {
    color: var(--blue);
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 1.2px;
}

.hero-nav a:hover {
    color: var(--red);
}

/* EVENT DROPDOWN */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 0;
    cursor: pointer;
    text-shadow: none;
}

.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, 0.96);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,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,0.08);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

@media (max-width: 600px) {
    .nav-dropdown {
        flex: 0 0 auto;
    }

    .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;
    }
}

@media (max-width: 600px) {
    .hero-header {
        top: 12px;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hero-brand-left,
    .hero-brand-right {
        display: none;
    }

    .hero-brand-center {
        min-height: 65px;
    }

    .sponsor-logo img {
        max-height: 65px;
    }

    .hero-nav {
        gap: 8px 12px;
        flex-wrap: wrap;
        margin-top: 5px;
        padding: 9px;
    }

    .hero-nav a {
        font-size: 10px;
    }
}

/* ---------- HEADER ---------- */

.site-header {
    background: var(--cream);
    border-bottom: 4px solid var(--red);
    position: relative;
    z-index: 10;
}

.header-inner {
    max-width: 1400px;
    width: 92%;
    margin: 0 auto;
    padding: 18px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


/* LOGO */

.logo {
    display: flex;
    flex-direction: column;
    color: var(--blue);
    line-height: 1;
    white-space: nowrap;
}

.logo-small {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 4px;
    text-align: center;
}

.logo-main {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -1px;
}


/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.main-nav a {
    color: var(--blue);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--red);
}


/* LANGUAGE */

.language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: bold;
}

.language-switch a {
    color: var(--blue);
}

.language-switch a.active {
    color: var(--red);
}


/* ---------- HERO ---------- */
.hero {
    width: 100%;
    min-height: 850px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;

    background-image: url("../images/ccc-hero-original.png");

    background-size: 100% auto;
    background-position: center 0%;
    background-repeat: no-repeat;

    color: var(--white);
}
/* Temporary background until we add the real hero image */

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 75% 50%,
            rgba(255,255,255,0.15),
            transparent 35%
        ),
        radial-gradient(
            circle at 20% 20%,
            rgba(216,181,107,0.25),
            transparent 30%
        );
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
}


.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1060px;
    padding: 70px 20px;
    transform: translateY(-120px);
}


.hero-kicker {
    color: var(--gold);
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 25px;
}


.hero h1 {
    font-size: clamp(42px, 7vw, 95px);
    line-height: 0.95;
    margin: 0;
    font-weight: 900;
    letter-spacing: -3px;
    text-shadow: 3px 4px 0 rgba(0,0,0,0.15);
}


.hero h1 span {
    display: block;
    color: var(--gold);
}


.hero-description {
    max-width: 1000px;
    margin: 30px auto;
    font-size: 20px;
    line-height: 1.6;
}


/* ---------- BUTTONS ---------- */

.button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    transition: all 0.3s ease;
}


.button-primary {
    background: var(--red);
    color: var(--white);
    border: 2px solid var(--red);
}


.button-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
}


.button-secondary {
    background: var(--blue);
    color: var(--white);
    border: 2px solid var(--blue);
}


.button-secondary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}


/* ---------- NEXT EVENT ---------- */

.next-event {
    background: var(--red);
    color: var(--white);
    text-align: center;
    padding: 70px 20px;
}


.event-label {
    color: var(--gold);
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 20px;
}


.event-label span {
    padding: 0 10px;
}


.next-event h2 {
    font-size: clamp(26px, 5vw, 48px);
    margin: 10px 0;
    font-weight: 900;
}


.event-date {
    font-size: clamp(30px, 5vw, 55px);
    font-weight: 900;
    color: var(--gold);
    margin: 20px 0 10px;
}


.event-location {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 30px;
}


/* ---------- SECTION HEADINGS ---------- */

.section-heading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}


.section-kicker {
    color: var(--red);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
}


.section-heading h2 {
    color: var(--blue);
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 900;
    margin: 15px 0;
}


.section-heading > p:last-child {
    color: var(--light-text);
    font-size: 18px;
    line-height: 1.7;
}


/* ---------- EXPERIENCE ---------- */

.experience {
    padding: 90px 0;
    background: var(--cream);
}


.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}


.experience-card {
    background: var(--white);
    padding: 35px 25px;
    text-align: center;
    border-radius: 8px;
    border-bottom: 5px solid var(--gold);
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}


.experience-icon {
    font-size: 42px;
    margin-bottom: 15px;
}


.experience-card h3 {
    color: var(--blue);
    font-size: 18px;
}


.experience-card p {
    color: var(--light-text);
    line-height: 1.6;
}


/* ---------- GALLERY ---------- */

.gallery-preview {
    background: var(--white);
    padding: 90px 0;
    text-align: center;
}


.gallery-placeholder {
    min-height: 350px;
    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--red)
        );

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--white);
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 35px;
    border-radius: 8px;
}


/* ---------- SPONSORS ---------- */

.sponsors-preview {
    background: var(--cream-dark);
    padding: 90px 0;
    text-align: center;
}


.sponsor-placeholder {
    min-height: 180px;
    background: var(--white);
    border-radius: 8px;
    padding: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--light-text);
    font-weight: bold;
    letter-spacing: 2px;

    margin-bottom: 35px;
}


/* ---------- FOOTER ---------- */

.site-footer {
    background: var(--blue);
    color: var(--white);
    padding: 50px 20px;
    text-align: center;
}


.footer-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 15px;
}


.site-footer p {
    color: rgba(255,255,255,0.8);
}


.copyright {
    font-size: 13px;
    margin-top: 30px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav {
        width: 100%;
        gap: 18px;
    }

    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}
/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .site-shell {
        box-shadow: none;
    }

    .header-inner {
        width: 95%;
        padding: 15px 0;
        gap: 15px;
    }

    .logo-main {
        font-size: 23px;
    }

    .logo-small {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .main-nav {
        gap: 10px 16px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding: 50px 15px;
    }

    .hero-kicker {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 17px;
    }

    .next-event {
        padding: 55px 20px;
    }

    .event-location {
        font-size: 15px;
    }

    .experience {
        padding: 60px 0;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .experience-card {
        padding: 30px 20px;
    }

    .gallery-preview {
        padding: 60px 0;
    }

    .gallery-placeholder {
        min-height: 220px;
    }

    .sponsors-preview {
        padding: 60px 0;
    }

    .sponsor-placeholder {
        min-height: 130px;
    }

    .button {
        width: 100%;
        max-width: 350px;
    }
	
	.hero-content p {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

}

@media (max-width: 600px) {

    .hero {
        min-height: 550px;
        background-position: center center;
    }

    .hero-content {
        transform: translateY(-20px);
    }

}

:root {
    /* Shared width follows the actual 3:2 hero image while remaining responsive */
    --hero-frame-width: min(100vw, 1400px);
}

/* =========================================
   CCC 2.0 - FULLSCREEN FLYER TEST VERSION
   ========================================= */

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.site-shell {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100svh;
    margin: 0;
    background: #0e0e0e;
    box-shadow: none;
}

.site-shell main {
    height: 100%;
}

.hero {
    width: var(--hero-frame-width);
    max-width: none;
    margin: 0 auto;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    max-height: none;
    background-size: 100% auto;
    background-position: center 0px;
    background-repeat: no-repeat;
    background-color: #0e0e0e;
}

/* The flyer-style homepage is a single screen.
   Lower sections are hidden in this test only. */
.next-event,
.experience,
.gallery-preview,
.sponsors-preview,
.site-footer {
    display: none !important;
}

.hero-content {
    display: none;
}

@media (max-width: 600px) {
    html, body {
        overflow: hidden;
    }
    .site-shell, .site-shell main, .hero {
        height: 100svh;
        min-height: 0;
    }
    .hero {
        width: var(--hero-frame-width);
        margin: 0 auto;
        background-size: 100% auto;
        background-position: center 18px;
    }
}

/* TEST FIX: keep flyer proportions and navigation within flyer width */
.hero-header { width: min(92%, 1300px); max-width: 1300px; }
.hero-nav { width: 95%; box-sizing: border-box; background: var(--blue); }
.hero-nav a { color: var(--white); }
.hero-nav a:hover { color: var(--gold); }


/* CCC 2.0 - flyer cards and next-meeting sign: clean flyer composition */
.hero { position: relative; }

/* Beige continuation to cover the grass at the very bottom of the hero */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4.5%;
    background: var(--cream);
    z-index: 3;
    pointer-events: none;
}

.flyer-bottom {
    position: relative;
    border-radius: 0 !important;
    position: absolute;
    z-index: 4;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: var(--hero-frame-width);
    max-width: none;
    box-sizing: border-box;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.25%;
    background: var(--cream);
    padding: 0.1% 0.55% 0.7%;
    border-radius: 0;
}

/* Bottom decoration: placed inside the beige flyer area only */
.flyer-brush-edge {
    position: absolute;
    left: 0;
    right: 0;
    top: -24px;
    height: 34px;
    background: none;
    z-index: 3;
    pointer-events: none;
}
.flyer-bottom-decor {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 48px;
    background-image: url("../images/ccc_bottom_band_final.png");
    background-position: center bottom;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}
.hero::after {
    content: none !important;
}
.flyer-cards, .flyer-next {
    position: relative;
    z-index: 2;
}
.flyer-cards { 
	width: 84%; 
	display: grid; 
	grid-template-columns: repeat(4, minmax(0,1fr)); 
	gap: 0.15%; 
	align-items: start; }

.flyer-card { 
	background: transparent; 
	text-align: center; 
	color: #17365d; 
	border-radius: 0; 
	overflow: visible; 
	padding: 0; 
	box-shadow: none; 
	align-self: start; }

.flyer-card img {
    width: 92%;
    aspect-ratio: 1.9 / 1;
    object-fit: cover;
    display: block;
    margin: 16px auto 6px;
    border-radius: 12px;
}
.flyer-card h3 { 
	margin: 4px 2px 3px; 
	font-size: clamp(16px,1.7vw,26px); 
	font-weight: 900; 
	font-style: italic; }

.flyer-card p { 
	margin: 0 4px 5px; 
	font-size: clamp(9px,.95vw,15px); 
	line-height: 1.15; 
	font-weight: 700; 
	color: #142d4e; }

.flyer-next { 
	width: 15%; 
	display: flex; 
	align-items: center; 
	justify-content: center; 
	overflow: visible; 
	align-self: center; }

.flyer-next img { 
	width: 108%; 
	max-height: 36vh; 
	object-fit: contain; 
	display: block; 
	filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); 
	transform: translateY(-18%) rotate(4deg); }

@media (max-width: 900px) {
    .flyer-bottom { 
		width: var(--hero-frame-width); 
		bottom: 1.5%; 
		gap: 0.5%; 
		padding: 0.1% 1% 1%; }
	
    .flyer-cards { 
		width: 84%; 
		gap: 0.8%; }
	
    .flyer-next { 
		width: 15%; }
	
    .flyer-card p { 
		font-size: clamp(7px,1.1vw,11px); }
}
@media (max-width: 600px) {
    .flyer-bottom { width: var(--hero-frame-width); bottom: 0; gap: 1%; }
    .flyer-cards { width: 78%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
    .flyer-card img { width: 78%; aspect-ratio: 1.9 / 1; margin-top: 0; }
    .flyer-card h3 { font-size: 10px; margin: 2px 1px; }
    .flyer-card p { font-size: 7px; line-height: 1.05; }
    .flyer-next { width: 21%; }
    .flyer-next img { max-height: 34vh; width: 108%; transform: translateY(-12%) rotate(8deg); }
}

@media (max-width: 600px) {
    .flyer-bottom-decor { height: 42px; }
}


/* EVENT text - extra bold */
.nav-dropdown-toggle {
    font-weight: 900 !important;
}


/* Requested adjustments: EVENT size, tighter social icons, bottom cliparts */
.nav-dropdown-toggle { font-size: 16px !important; }
.hero-social-icons { display: flex; align-items: center; gap: 5px; margin-left: -8px; }
.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; }
.hero-cliparts { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: block; width: auto; max-width: none; max-height: none; height: auto; object-fit: contain; z-index: 10; pointer-events: none; }
@media (max-width: 600px) { .nav-dropdown-toggle { font-size: 10px !important; } .hero-social-icons { gap: 4px; margin-left: 0; } .hero-cliparts { width: auto; max-width: none; max-height: none; height: auto; bottom: 6px; } }
