/* St. James Croquet Association Styles */

/* CSS Custom Properties (Variables) */
:root {
    /* Colors */
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    
    --green-200: #bbf7d0;
    --green-500: #22c55e;
    
    --gold-300: #fcd34d;
    --gold-400: #fbbf24;
    --gold-50: #fffbeb;
    
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-700: #374151;
    --gray-800: #1f2937;
    
    /* Typography */
    --font-playfair: 'Playfair Display', serif;
    --font-lato: 'Lato', sans-serif;
    --font-inter: 'Inter', sans-serif;
    --font-jost: 'Jost', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 6rem 0;
    --container-padding: 0 1.5rem;
    
    /* Border Radius */
    --radius: 0.75rem;
    --radius-lg: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-inter);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
}

h1 {
    font-family: var(--font-jost);
    font-weight: 600;
    line-height: 1.2;
}

h2, h3, h4, h5, h6 {
    font-family: var(--font-lato);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Layout Components */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.section-gradient {
    background: linear-gradient(to bottom, #f0fdf4, #ffffff);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    background: #000;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--green-200);
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
    max-height: 100px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trophy-icon {
    width: 2rem;
    height: 2rem;
    color: var(--emerald-600);
    color: #fff;
}

.brand-text {
    font-family: var(--font-jost);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--emerald-800);
    padding-left: 2%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-image {
    width: 140px;
    border-radius: var(--radius-lg);
    transition: width 0.4s ease;
}

.footer-logo{
    border-radius: var(--radius-lg);
    width: 100px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;    
     /* --- Styles for the overlapping effect --- */
    position: relative; /* Allows repositioning without affecting layout */
    transform: translateY(2.5rem); /* Moves the element down. Adjust this value! */
    background-color: var(--emerald-50);
    padding: 1rem 1rem 1rem 1rem;
    margin-top: 1rem;
    width: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--green-200);
    transition: transform 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease, margin-top 0.4s ease;
}

.nav-links a {
    color: var(--emerald-700);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--emerald-500);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
};

/* Hamburger Menu Toggle */
.nav-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010; /* Ensure it's on top of other content */
}

.nav-toggle .line {
    width: 2rem;
    height: 0.25rem;
    background-color: var(--emerald-800);
    border-radius: var(--radius);
    transition: all 0.3s ease-in-out;
    transform-origin: 1px;
}

/* Animate hamburger to 'X' */
.nav-toggle.active .line1 {
    transform: rotate(45deg);
}
.nav-toggle.active .line2 {
    opacity: 0;
}
.nav-toggle.active .line3 {
    transform: rotate(-45deg);
}

/* Scrolled State for Navbar */
.navbar.scrolled .nav-logo {
    transform: translateY(0);
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
    margin-top: 0;
}

.navbar.scrolled .logo-image {
    width: 100px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--emerald-600);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--emerald-700);
}

.btn-white {
    background-color: var(--white);
    color: var(--emerald-700);
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

.btn-white:hover {
    background-color: var(--gold-50);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.chevron-right {
    width: 1.25rem;
    height: 1.25rem;
}

svg.croquet-balls {
  width: 200px;   /* or whatever size fits best */
  height: auto;  /* maintains aspect ratio */
  display: block;
  margin-top: 0.5rem; /* optional spacing */
  margin-left: auto;
  margin-right: auto;
  width: 5em;
}

img.croquet-balls {
  width: 25%;
  height: auto;
  display: block;
  margin-top: 0.5rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center
}

/* Hero Section */
/*
.hero {
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
    color: var(--white);
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; 
}
*/
/*
.hero-pattern {
   position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(16, 185, 129, 0.15) 1px, transparent 0);
    background-size: 20px 20px;
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
*/
#hero {
    padding: 14rem 0 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
    background: #000;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 2fr 2fr; /* Two equal columns */
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-accent {
    display: block;
    color: var(--gold-300);
}

.hero-description {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    color: var(--emerald-100);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* Hero Section 2 */



.hero-image {
    /* Add a gentle slide-in and fade-in animation */
    animation: slideInFromLeft 1s ease-out 0.2s forwards;
    /* Start as transparent before the animation begins */
    opacity: 0;
    display: flex;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block; /* Removes extra space below image */
    border-radius: var(--radius-lg);
}

/* Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: slideUp 0.8s ease-out;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--emerald-800);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--emerald-600);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 75rem;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--green-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-xl);
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 4rem;
    height: 4rem;
    background: var(--emerald-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.card-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--emerald-600);
}

.card-title {
    font-size: 1.5rem;
    color: var(--emerald-800);
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--gray-700);
    line-height: 1.6;
}

/* Testimonials */
.testimonials-section {
    background-color: var(--emerald-50);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--green-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-xl);
}

.testimonial-header {
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    color: var(--gold-400);
    font-size: 1.25rem;
}

.testimonial-name {
    font-size: 1.125rem;
    color: var(--emerald-800);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: var(--emerald-600);
    font-size: 0.875rem;
}

.testimonial-quote {
    color: var(--emerald-700);
    font-style: italic;
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-700) 100%);
    color: var(--white);
}

.newsletter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 75rem;
    margin: 0 auto;
}

.newsletter-content {
    z-index: 2;
    position: relative;
}

.newsletter-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.newsletter-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--emerald-100);
    line-height: 1.6;
}

.newsletter-form {
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--emerald-500);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--white);
    color: var(--gray-800);
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--emerald-400);
}

.newsletter-input::placeholder {
    color: var(--gray-700);
}

.newsletter-button {
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    white-space: nowrap;
}

.newsletter-privacy {
    font-size: 0.875rem;
    color: var(--emerald-200);
    line-height: 1.4;
}

.newsletter-image {
    position: relative;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.croquet-field-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* FAQ */
.faq-container {
    max-width: 64rem;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--green-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: var(--white);
}

.faq-question {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--emerald-800);
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--emerald-600);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--emerald-600);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
}

.faq-item.active .faq-answer {
    margin-top: 1rem;
}

.faq-answer p {
    color: var(--emerald-700);
    line-height: 1.6;
}

/* Call to Action */
.cta {
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
    color: var(--white);
    padding: 6rem 1.5rem;
    text-align: center;
}

.cta-content {
    max-width: 64rem;
}

.cta-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--emerald-100);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    color: var(--emerald-100);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Footer */
.footer {
    background-color: var(--emerald-900);
    color: var(--white);
    padding: 3rem 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .trophy-icon {
    color: var(--gold-400);
}

.footer-text {
    text-align: center;
}

.footer-text p {
    color: var(--emerald-200);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--emerald-300) !important;
    margin-top: 0.5rem;
}

.footer-brand-text {
    color: var(--emerald-100);
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--emerald-600);
    color: var(--white);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.back-to-top-btn:hover { background-color: var(--emerald-700); }

.back-to-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons,
    .cta-buttons {
        flex-direction: row;
    }
    
    .contact-info {
        flex-direction: row;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-text {
        text-align: right;
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .section {
        padding: 6rem 0;
    }
    
}

@media (max-width: 767px) {
    .nav-toggle {
        display: flex; /* Show the hamburger on mobile */
    }

    .nav-links {
        /* Transform into a full-screen mobile menu */
        position: fixed;
        top: 0;
        left: 100%; /* Start off-screen */
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        /* Re-purpose flex properties for vertical centering */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: left 0.4s ease-in-out;
        z-index: 1005; /* Below toggle, above other content */
    }

    .nav-links.active {
        left: 0; /* Slide into view */
    }
    
    #hero {
        /* Adjust padding for better vertical spacing on mobile */
        padding: 8rem 0 4rem;
    }

    .hero-container {
        /* Stack content and image vertically */
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }
    
    .hero-content {
        padding: 0;
    }

    .hero-image {
        /* A more suitable animation for a stacked layout */
        animation: fadeInUp 1s ease-out 0.2s forwards;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        gap: 1rem;
    }
    
    .contact-item {
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-pattern,
    .faq-icon {
        display: none;
    }
    
    .hero {
        background: var(--emerald-700);
        color: var(--white);
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .card,
    .testimonial-card {
        box-shadow: none;
        border: 1px solid var(--gray-700);
    }

}


