/* CSS Variables for consistent theming */
:root {
    --primary-color: 120 45% 25%; /* Golf green */
    --secondary-color: 45 85% 55%; /* Golf yellow */
    --accent-color: 210 20% 15%; /* Dark blue-gray */
    --text-color: 210 15% 20%; /* Dark gray */
    --text-light: 210 10% 40%; /* Light gray */
    --background: 210 11% 98%; /* Off-white */
    --white: 0 0% 100%;
    --border-color: 210 15% 90%;
    --shadow: 0 4px 20px hsla(210, 15%, 20%, 0.1);
    --transition: all 0.3s ease;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: hsl(var(--text-color));
    background-color: hsl(var(--background));
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: hsl(var(--text-light));
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: hsl(var(--primary-color));
    color: hsl(var(--white));
}

.btn-primary:hover {
    background-color: hsl(120 45% 20%);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: hsl(var(--primary-color));
    border-color: hsl(var(--primary-color));
}

.btn-secondary:hover {
    background-color: hsl(var(--primary-color));
    color: hsl(var(--white));
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: hsl(var(--white));
    border-top: 1px solid hsl(var(--border-color));
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 20px;
    transition: var(--transition);
}

.cookie-consent.hidden {
    transform: translateY(100%);
}

.cookie-content h3 {
    margin-bottom: 10px;
}

.cookie-options {
    margin: 15px 0;
}

.cookie-options label {
    display: block;
    margin: 8px 0;
    cursor: pointer;
}

.cookie-options input[type="checkbox"] {
    margin-right: 8px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 8px 16px;
    border: 1px solid hsl(var(--border-color));
    background: hsl(var(--white));
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.cookie-buttons button:hover {
    background: hsl(var(--primary-color));
    color: hsl(var(--white));
}

/* Header */
.header {
    background: hsl(var(--white));
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: hsl(var(--text-color));
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: hsl(var(--primary-color));
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: hsl(var(--text-color));
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(120 20% 95%) 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    color: hsl(var(--accent-color));
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* About Section */
.about {
    padding: 80px 20px;
    background: hsl(var(--white));
}

.about-content {
    text-align: center;
}

.about-content h2 {
    color: hsl(var(--accent-color));
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 3rem;
    color: hsl(var(--primary-color));
    margin-bottom: 0.5rem;
}

.stat p {
    font-weight: 600;
    color: hsl(var(--text-color));
}

/* Services Section */
.services {
    padding: 80px 20px;
    background: hsl(var(--background));
}

.services h2 {
    text-align: center;
    color: hsl(var(--accent-color));
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: hsl(var(--white));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px hsla(210, 15%, 20%, 0.15);
}

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: hsl(var(--accent-color));
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 20px;
    background: hsl(var(--primary-color));
    color: hsl(var(--white));
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: hsla(var(--white), 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.testimonial blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial cite {
    font-weight: 600;
    opacity: 0.9;
}

/* Blog Section */
.blog {
    padding: 80px 20px;
    background: hsl(var(--white));
}

.blog h2 {
    text-align: center;
    color: hsl(var(--accent-color));
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: hsl(var(--background));
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px hsla(210, 15%, 20%, 0.15);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    color: hsl(var(--accent-color));
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.read-more {
    color: hsl(var(--primary-color));
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: hsl(120 45% 20%);
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background: hsl(var(--background));
}

.contact h2 {
    text-align: center;
    color: hsl(var(--accent-color));
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: hsl(var(--accent-color));
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item img {
    width: 24px;
    height: 24px;
    margin-top: 0.2rem;
}

.contact-item h4 {
    color: hsl(var(--accent-color));
    margin-bottom: 0.5rem;
}

.contact-form {
    background: hsl(var(--white));
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    color: hsl(var(--accent-color));
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: hsl(var(--text-color));
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid hsl(var(--border-color));
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
}

/* Footer */
.footer {
    background: hsl(var(--accent-color));
    color: hsl(var(--white));
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: hsl(var(--secondary-color));
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: hsl(var(--white));
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: hsl(var(--secondary-color));
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-2px);
}

.social-links img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid hsla(var(--white), 0.2);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: hsl(var(--white));
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 20px 60px;
    }

    .services,
    .about,
    .testimonials,
    .blog,
    .contact {
        padding: 60px 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
