/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-green-dark: #1a472a;
    --color-green: #2d6a4f;
    --color-green-light: #40916c;
    --color-green-pale: #b7e4c7;
    --color-cream: #f5f1e8;
    --color-gold: #c9a84c;
    --color-gold-light: #e0c872;
    --color-white: #fff;
    --color-text: #2c2c2c;
    --color-text-light: #5a5a5a;
    --color-border: #d4cfbf;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== GOLF CLUB ==================== */
.golf-club {
    position: fixed;
    z-index: 9998;
    pointer-events: none;
    /* Pivot point is top of shaft (hands) */
    transform-origin: 50% 0%;
    will-change: transform, opacity;
    transition: opacity 0.3s ease;
}

.club-shaft {
    width: 5px;
    height: 200px;
    background: linear-gradient(to bottom, #888, #aaa 30%, #999);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 1px 0 2px rgba(0,0,0,0.2);
}

.club-head {
    width: 42px;
    height: 24px;
    background: linear-gradient(135deg, #c0c0c0, #888 50%, #a0a0a0);
    border-radius: 3px 14px 12px 3px;
    margin-left: -18px;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.3);
}

/* ==================== GOLF BALL ==================== */
.golf-ball {
    position: fixed;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    z-index: 9999;
    pointer-events: none;
    transition: none;
    will-change: transform;
}

.ball-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #f0f0f0 40%, #d8d8d8 70%, #c0c0c0 100%);
    position: relative;
    overflow: hidden;
    box-shadow:
        inset -3px -3px 8px rgba(0,0,0,0.15),
        inset 2px 2px 4px rgba(255,255,255,0.9),
        0 2px 8px rgba(0,0,0,0.2);
}

.dimple-pattern {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-image:
        radial-gradient(circle at 30% 25%, rgba(0,0,0,0.06) 2px, transparent 2px),
        radial-gradient(circle at 50% 20%, rgba(0,0,0,0.06) 2px, transparent 2px),
        radial-gradient(circle at 70% 28%, rgba(0,0,0,0.06) 2px, transparent 2px),
        radial-gradient(circle at 25% 45%, rgba(0,0,0,0.06) 2px, transparent 2px),
        radial-gradient(circle at 45% 40%, rgba(0,0,0,0.06) 2px, transparent 2px),
        radial-gradient(circle at 65% 48%, rgba(0,0,0,0.06) 2px, transparent 2px),
        radial-gradient(circle at 35% 65%, rgba(0,0,0,0.06) 2px, transparent 2px),
        radial-gradient(circle at 55% 60%, rgba(0,0,0,0.06) 2px, transparent 2px),
        radial-gradient(circle at 75% 65%, rgba(0,0,0,0.06) 2px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(0,0,0,0.06) 2px, transparent 2px),
        radial-gradient(circle at 60% 78%, rgba(0,0,0,0.06) 2px, transparent 2px);
}

.ball-shadow {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 8px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* ==================== GOLF HOLE ==================== */
.golf-hole {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9997;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: transform;
}

.golf-hole.visible {
    opacity: 1;
}

.hole-rim {
    width: 60px;
    height: 20px;
    background: radial-gradient(ellipse, #3a7d44 0%, #2d6a4f 60%, #1a472a 100%);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hole-dark {
    width: 40px;
    height: 14px;
    background: radial-gradient(ellipse, #0a0a0a 0%, #1a1a1a 60%, #2a2a2a 100%);
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.15s ease;
}

/* Ripple ring when ball drops in */
.hole-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 4px;
    border: 2px solid rgba(58, 125, 68, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.hole-ripple.animate {
    animation: rippleOut 0.8s ease-out forwards;
}

@keyframes rippleOut {
    0% {
        width: 10px;
        height: 4px;
        opacity: 0.8;
    }
    100% {
        width: 90px;
        height: 30px;
        opacity: 0;
    }
}

/* Second ripple, slightly delayed */
.hole-ripple-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 4px;
    border: 1.5px solid rgba(58, 125, 68, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.hole-ripple-2.animate {
    animation: rippleOut 0.8s 0.15s ease-out forwards;
}

/* Grass spray particles */
.grass-spray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #4a9e5c;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.grass-spray.animate {
    animation: grassFly 0.6s ease-out forwards;
}

.grass-spray:nth-child(4) { animation-delay: 0.02s; }
.grass-spray:nth-child(5) { animation-delay: 0.04s; }
.grass-spray:nth-child(6) { animation-delay: 0.06s; }
.grass-spray:nth-child(7) { animation-delay: 0.08s; }

@keyframes grassFly {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) translate(var(--spray-x), var(--spray-y)) scale(0.3);
        opacity: 0;
    }
}

.hole-flag {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.flag-pole {
    width: 3px;
    height: 70px;
    background: linear-gradient(to bottom, #e8e8e8, #c0c0c0);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 1px 0 2px rgba(0,0,0,0.15);
}

.flag-fabric {
    position: absolute;
    top: 0;
    left: 3px;
    width: 40px;
    height: 26px;
    background: linear-gradient(135deg, var(--color-gold) 0%, #dbb84d 50%, var(--color-gold-light) 100%);
    clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--color-green-dark);
    letter-spacing: 1px;
    animation: flagWave 2s ease-in-out infinite;
    transform-origin: left center;
}

@keyframes flagWave {
    0%, 100% { transform: skewY(0deg) scaleX(1); }
    25% { transform: skewY(-2deg) scaleX(0.97); }
    75% { transform: skewY(1deg) scaleX(1.01); }
}

/* Ball landing state — squish on impact */
.golf-ball.landing {
    transition: transform 0.15s ease-in;
}

.golf-ball.sinking {
    transition: transform 0.4s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.4s ease-in;
}

/* Trail Canvas */
#trailCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 71, 42, 0.95);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    transition: padding 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(26, 71, 42, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Arno Pro', 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-gold);
    text-decoration: none;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 24px;
    width: auto;
    /* Recolor to match gold: brightness(0) makes it black, then sepia + hue-rotate + saturate shift to gold */
    filter: brightness(0) invert(72%) sepia(50%) saturate(400%) hue-rotate(5deg) brightness(95%);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: 0.3s ease;
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, var(--color-green-dark) 0%, #1e5631 40%, var(--color-green) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

/* Grass-like texture overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        /* Fine vertical grass blades */
        repeating-linear-gradient(
            88deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.012) 2px,
            rgba(255,255,255,0.012) 3px
        ),
        repeating-linear-gradient(
            92deg,
            transparent,
            transparent 3px,
            rgba(0,0,0,0.02) 3px,
            rgba(0,0,0,0.02) 4px
        ),
        repeating-linear-gradient(
            85deg,
            transparent,
            transparent 5px,
            rgba(100,180,100,0.03) 5px,
            rgba(100,180,100,0.03) 6px
        ),
        /* Subtle cross-hatch for grass texture depth */
        repeating-linear-gradient(
            95deg,
            transparent,
            transparent 7px,
            rgba(0,0,0,0.015) 7px,
            rgba(0,0,0,0.015) 8px
        ),
        /* Larger soft variation patches */
        radial-gradient(ellipse at 20% 40%, rgba(34,120,60,0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 70%, rgba(20,80,40,0.1) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 20%, rgba(40,130,70,0.08) 0%, transparent 30%),
        radial-gradient(ellipse at 85% 30%, rgba(30,100,50,0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.15;
}

.text-accent {
    color: var(--color-gold-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 300;
}

.hero-grass {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--color-cream);
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: none;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-green-dark);
}

.btn-primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201, 168, 76, 0.35);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 120px 0;
    position: relative;
}

.section-badge {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-green-light);
    text-align: center;
    margin-bottom: 12px;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--color-green-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 60px;
    font-size: 1.05rem;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== ABOUT ==================== */
.about {
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: justify;
}

.about-stats {
    display: grid;
    gap: 24px;
}

.stat {
    text-align: center;
    padding: 28px;
    border-radius: 8px;
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-green-dark);
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-green-dark);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

/* ==================== PORTFOLIO ==================== */
.portfolio {
    background: var(--color-cream);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.portfolio-card {
    background: var(--color-white);
    padding: 44px 32px 36px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--color-border);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.card-flag {
    position: absolute;
    top: 0;
    left: 28px;
    width: 3px;
    height: 0;
    background: var(--color-gold);
    transition: height 0.6s ease;
}

.portfolio-card:hover .card-flag {
    height: 40px;
}

.card-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(45, 106, 79, 0.08);
    margin-bottom: 12px;
    line-height: 1;
}

.portfolio-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 14px;
    color: var(--color-green-dark);
}

.portfolio-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==================== LEADERSHIP ==================== */
.leadership {
    background: var(--color-white);
}

.leadership-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.leader-card {
    flex: 0 0 auto;
    width: 170px;
    text-align: center;
}

.leader-photo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
    margin: 0 auto 24px;
    position: relative;
    overflow: hidden;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--color-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leader-card:hover .photo-overlay {
    opacity: 1;
}

.leader-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-green-dark);
    margin-bottom: 6px;
}

.leader-title {
    color: var(--color-text-light);
    font-size: 0.88rem;
    letter-spacing: 0.5px;
}

/* ==================== CONTACT ==================== */
.contact {
    background: var(--color-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--color-green-dark);
}

.contact-info > p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 1.3rem;
    color: var(--color-green);
    flex-shrink: 0;
    margin-top: 2px;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--color-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-green-light);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--color-green-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 36px 0;
    position: relative;
}

.footer-grass {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--color-cream);
    clip-path: ellipse(55% 100% at 50% 0%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.footer .logo {
    font-size: 1rem;
}

.footer p {
    font-size: 0.82rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-green-dark);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section {
        padding: 80px 0;
    }

    .golf-ball {
        width: 30px;
        height: 30px;
    }

    .club-shaft {
        width: 4px;
        height: 120px;
    }

    .club-head {
        width: 30px;
        height: 18px;
        margin-left: -13px;
    }

    .hole-rim {
        width: 46px;
        height: 16px;
    }

    .hole-dark {
        width: 30px;
        height: 10px;
    }

    .flag-pole {
        height: 50px;
    }

    .flag-fabric {
        width: 30px;
        height: 20px;
        font-size: 0.45rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .logo {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .logo-icon {
        height: 18px;
    }
}

@media (max-width: 480px) {
    .golf-ball {
        width: 24px;
        height: 24px;
    }

    .club-shaft {
        width: 3px;
        height: 90px;
    }

    .club-head {
        width: 24px;
        height: 14px;
        margin-left: -10px;
    }

    .logo {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
        gap: 6px;
    }

    .logo-icon {
        height: 16px;
    }
}
