@charset "UTF-8";

/* =========================
   DESIGN TOKENS
========================= */
:root {
    --bg: #2d2c2a;
    --cream: #dcc9a9;
    --red: #b83a2d;
    --green: #4e6851;
    --text: #f0e2c8;

    --radius: 32px;

    --s1: 8px;
    --s2: 16px;
    --s3: 24px;
    --s4: 32px;
    --s5: 48px;
    --s6: 64px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.event-page {
    max-width: 1400px;
    margin: auto;
    padding: 0 var(--s3);
}

/* =========================
   HERO
========================= */
.hero {
    padding: var(--s5) 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    gap: var(--s4);
    align-items: start;
}

/* LEFT HERO */
.hero-logo-left {
    display: flex;
    flex-direction: column;
    /*gap: var(--s2);  spacing fix */
}

.hero-logo-left img {
    width: 100%;
    height: auto;
    display: block;
}

/* RIGHT HERO (FIX: right alignment) */
.hero-logo-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* KEY FIX */
}

.hero-logo-right img {
    width: 250px;
    height: auto;
    display: block;
}

/* TITLE */

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.title-top {
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: var(--s1);

    display: block;
}

.title-main {
    display: block;
    white-space: nowrap;

    font-size: clamp(2.3rem, 6vw, 6rem);
    line-height: 0.9;
    font-weight: 300;
    letter-spacing: -0.02em;
}


.title-bottom {
    display: block;
    font-size: clamp(3.75rem, 8vw, 6rem);
    line-height: 0.85;
    font-weight: 300;
    letter-spacing: -0.02em;
}

h1 {
    margin: var(--s1) 0 var(--s2);
}

.title-main,
.title-bottom {
    display: block;
    margin-left: 0;
    padding-left: 0;
}

.register-btn {
    display: inline-block;
    margin-top: var(--s3);
    padding: 14px 14px;
    background: var(--cream);
    color: #111;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;

    white-space: nowrap;     /* prevents line breaks */
    text-align: center;      /* ensures text alignment */
}


/* =========================
   COURSE
========================= */
.course-section {
    padding: var(--s3) 0;
}

.course-card {
    background: var(--cream);
    color: #111;
    border-radius: 40px;
    padding: var(--s5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s4);
}

.course-name-joc {
    font-size: clamp(2rem, 5vw, 5rem);
    line-height: 0.95;
	font-weight: bolder;
}

.course-date-block {
    display: flex;
    flex-direction: column;
    align-items: center; /* center time under date */
}

.course-date {
    display: flex;
    align-items: flex-start; /* KEY FIX */
    gap: var(--s1);
}

/* FIX: top-aligned month block */
.date-month {
    font-size: clamp(1.5rem, 3vw, 3rem);
    line-height: 1;

    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* aligns with 19 */
    align-items: flex-start;
}

.date-year {
	display: block;
	letter-spacing: .12em;
	
}

.date-day {
    font-size: clamp(5rem, 10vw, 8rem);
    line-height: 0.8;
    font-weight: 700;
}

.course-time {
	font-size: clamp(1.5rem, 2vw, 4rem);
    line-height: 0.8;
    font-weight: 700;
	text-align: center;
}

/* =========================
   DETAILS
========================= */
.details-section {
    display: grid;
    grid-template-columns: minmax(320px, 520px) 1fr;
    gap: var(--s5);
    padding: var(--s5) 0;

    position: relative;
    overflow: visible; /* FIX: prevents golfer clipping */
}

.details-left {
    display: flex;
    flex-direction: column;
}

.info-card {
    border-radius: 30px;
    padding: var(--s4);
    width: 100%;
    box-sizing: border-box;
    min-width: 260px;
}

.red-card {
    background: var(--red);
    margin-bottom: var(--s3);
}

.green-card {
    background: var(--green);
}

.info-card ul {
    list-style-position: inside;
}

.info-card li {
    margin-bottom: var(--s1);
}

.green-card h3 {
    margin-bottom: var(--s2);
}

.registration-text {
    margin-top: var(--s3);
    font-weight: bold;
}

/* =========================
   GOLFER
========================= */
.details-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.golfer-image {
    height: 600px;
    width: auto;
    opacity: 0.85;
    object-fit: contain;
}

/* =========================
   CHARITY
========================= */
.charity-section {
    padding: var(--s3) 0;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.5;
}

.fundraising-page-link {
	text-decoration: none;
	color: #b83a2d;
}

/* =========================
   CTA
========================= */
.cta-section {
    text-align: center;
    padding: var(--s4) 0 var(--s6);
}

.register-btn.large {
    font-size: 1.15rem;
}

/* =========================
   CONTACT
========================= */
.contact-section {
    text-align: center;
    padding-bottom: var(--s6);
}

.contact-section a {
    color: var(--text);
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Initial state */
.hero-logo-left,
.hero-logo-right,
.title-top,
h1,
.register-btn,
.course-card,
.red-card,
.green-card,
.golfer-image,
.charity-section,
.cta-section,
.contact-section {
    opacity: 0;
}

/* Hero */
.hero-logo-left,
.hero-logo-right {
    animation: fadeIn 0.8s ease-out forwards;
}

.title-top {
    animation: fadeUp 0.8s ease-out forwards;
}

h1 {
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.15s;
}

.register-btn {
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.3s;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

/* Course */
.course-card {
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.45s;
}

/* Details */
.red-card {
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.green-card {
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.75s;
}

/* Golfer */
.golfer-image {
    animation: fadeIn 1.2s ease-out forwards;
}

/* Lower sections */
.charity-section,
.cta-section,
.contact-section {
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.9s;
}

/* =========================
   MOBILE (POSTER SYSTEM)
========================= */
@media (max-width: 900px) {

    .event-page {
        padding: 0 var(--s2);
    }

    /* HERO */
    .hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--s2);
    }

	.hero-logo-right {
		display: flex;
		justify-content: flex-end; /* true horizontal anchoring */
		align-items: flex-end;
	}

	.hero-logo-left,
	.hero-logo-right {
		min-width: 0; /* prevents grid overflow weirdness */
	}

	.hero-logo-left img {
		width: 80px;   /* keep your intended scale */
		height: auto;
		display: block;
	}
	
	.hero-logo-right img {
		width: 105px;   /* keep your intended scale */
		height: auto;
		display: block;
	}



    /* TITLE */
	.title-top {
		font-size: 1.1rem;
		text-transform: uppercase;
		margin: 40px, 0px, 0px, 0px; 
		padding-left: 9px; /* remove gap */
		line-height: 0;         /* tight control */
	}

	h1 {
		margin: 0;              /* remove default spacing */
	}

	.title-main {
		margin-top: 0; 
		padding-left: 5px; /* ensure no hidden spacing */
	}


    /* COURSE */
    .course-card {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--s4);
    }
.course-date-block {
    display: flex;
    flex-direction: row;
    align-items: center; /* center time under date */
}
    .course-date {
        align-items: flex-start; /* FIX consistency */
        gap: var(--s1);
    }

    .date-month {
        font-size: 1.8rem;
    }

    .date-day {
        font-size: 4.5rem;
    }
	
	.course-time {
		margin-left: 10px;
	}

   
	/* DETAILS */
	.details-section {
		grid-template-columns: 1fr;
		position: relative;

		/* Creates a real canvas for the golfer */
		min-height: 520px;
	}

	/* GOLFER BACKGROUND LAYER */
	.details-right {
		position: absolute;
		inset: 0;

		z-index: -1;
		opacity: 0.85;

		pointer-events: none;

		display: flex;
		justify-content: flex-end;
		align-items: flex-end;
	}

	/* GOLFER IMAGE */
	.golfer-image {
		height: clamp(900px, 55vw, 3600px);
		width: auto;
		display: block;
	}

	/* CONTENT ABOVE GOLFER */
	.details-left {
		position: relative;
		z-index: 5;
	}

	}


		/* CARD CONSISTENCY */
		.info-card {
			min-height: 240px;
		}

		.charity-section {
			padding: var(--s3) var(--s2);
		}
}
