/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Heritage Craftsman Color Palette */
    --forest-green: #2F4F2F;
    --warm-brown: #6B4423;
    --cream: #FAF0E6;
    --copper: #B87333;
    --copper-dark: #A06829;

    /* Exciting Accent Colors */
    --flame-orange: #FF6B35;
    --bright-red: #E63946;
    --electric-blue: #457B9D;
    --vibrant-gold: #FFB703;
    --neon-green: #06FFA5;

    /* Mapped to functional names */
    --primary-color: var(--copper);
    --primary-dark: var(--copper-dark);
    --secondary-color: var(--warm-brown);
    --accent-color: var(--flame-orange);
    --accent-bright: var(--bright-red);
    --text-dark: var(--forest-green);
    --text-light: var(--warm-brown);
    --text-on-dark: var(--cream);
    --bg-light: var(--cream);
    --bg-white: #ffffff;
    --bg-dark: var(--forest-green);
    --bg-brown: var(--warm-brown);
    --border-color: rgba(107, 68, 35, 0.2);
    --success-color: #059669;
    --shadow-sm: 0 1px 2px 0 rgba(47, 79, 47, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(47, 79, 47, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(47, 79, 47, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(47, 79, 47, 0.1);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Keyframe Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeInRotate {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--accent-color);
    }
    50% {
        box-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-color);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--forest-green);
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--copper), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--copper));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(184, 115, 51, 0.4), var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: white;
    color: var(--forest-green);
    border: 2px solid var(--cream);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, var(--copper), var(--accent-color));
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(184, 115, 51, 0.3);
}

.btn-header {
    background: linear-gradient(135deg, var(--copper), var(--accent-color));
    color: white;
    font-size: 0.95rem;
}

.btn-header:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--copper));
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    justify-content: center;
    text-align: center;
}

/* Hero Section */
.hero {
    background-color: var(--bg-dark); /* Forest green fallback */
    background-image:
        linear-gradient(rgba(47, 79, 47, 0.75), rgba(47, 79, 47, 0.65)),
        url('images/IMG_3184.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-on-dark);
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-badges {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

.badge svg {
    flex-shrink: 0;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--bg-light);
}

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

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--warm-brown);
    margin-bottom: 3rem;
    opacity: 0.85;
}

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

.service-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-color), var(--bright-red));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2), var(--shadow-glow);
    border-color: var(--accent-color);
}

.service-card:hover .service-icon {
    animation: bounce 0.6s ease;
}

.service-card:hover h3 {
    color: var(--accent-color);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-color), var(--bright-red));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-color), var(--bright-red));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover .service-icon::after {
    opacity: 1;
    animation: glow 2s infinite;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

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

/* Why Choose Section */
.why-choose {
    padding: 5rem 0;
    background: #2d3a2d;
}

.why-choose .section-title {
    color: var(--text-on-dark);
}

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

.feature {
    text-align: center;
}

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--vibrant-gold);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-on-dark);
}

.feature p {
    color: var(--text-on-dark);
    opacity: 0.9;
}

/* Service Area */
.service-area {
    padding: 4rem 0;
    background: var(--bg-light);
    text-align: center;
}

.locations {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.locations span {
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 2rem;
    font-weight: 500;
    color: var(--forest-green);
    border: 1px solid var(--border-color);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-info > p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-item svg {
    flex-shrink: 0;
    color: var(--copper);
    margin-top: 0.25rem;
}

.contact-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-item span,
.contact-item a {
    color: var(--text-light);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--copper);
}

/* Contact Form */
.contact-form-container {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.contact-form-container h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success svg {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.form-success h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--success-color);
}

.form-success p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 3rem 0 1.5rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--copper);
}

.footer-section p,
.footer-section a {
    color: var(--text-on-dark);
    opacity: 0.9;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--copper);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(250, 240, 230, 0.2);
}

.footer-bottom p {
    color: var(--text-on-dark);
    opacity: 0.7;
}


/* Statistics Counter */
.stats-section {
    padding: 4rem 0;
    background: #2d3a2d;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    display: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: var(--text-on-dark);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--vibrant-gold);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-on-dark);
    opacity: 0.9;
}

/* Testimonials Carousel */
.testimonials-section {
    padding: 5rem 0;
    background: var(--bg-light);
    overflow: hidden;
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: none;
    animation: fadeInScale 0.5s ease;
}

.testimonial.active {
    display: block;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-stars {
    color: var(--vibrant-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--accent-color);
    width: 30px;
    border-radius: 6px;
}

/* Floating Elements */
.floating-icon {
    animation: float 3s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-icon:nth-child(3) {
    animation-delay: 1s;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        background-image:
            linear-gradient(rgba(47, 79, 47, 0.80), rgba(47, 79, 47, 0.75)),
            url('images/IMG_3184.jpeg');
        background-position: 65% center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-badges {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

    .nav {
        display: none;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .logo h1 {
        font-size: 1.25rem;
    }

    .btn-header {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0 4rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .services,
    .why-choose,
    .contact {
        padding: 3rem 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .floating-icon {
        display: none;
    }
}
