/* Enhanced CSS variables with sophisticated color palette */
:root {
    --primary-color: #1a2e23;
    --primary-light: #2d4a37;
    --secondary-color: #d4af37;
    --secondary-light: #e6c866;
    --accent-color: #8b4513;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 8px 25px rgba(26, 46, 35, 0.08);
    --shadow-lg: 0 20px 60px rgba(26, 46, 35, 0.15);
    --shadow-xl: 0 25px 80px rgba(26, 46, 35, 0.2);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(26, 46, 35, 0.9) 0%, rgba(45, 74, 55, 0.8) 100%);
}

/* Enhanced base styles with better typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    font-weight: 400;
}

/* Enhanced typography hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero-title .title-main {
    font-family: "Playfair Display", serif;
    font-weight: 800;
}

/* Enhanced button system with premium styling */
.btn-primary,
.premium-btn {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.btn-primary:hover,
.premium-btn:hover {
    background: var(--gradient-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.btn-primary::before,
.premium-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before,
.premium-btn:hover::before {
    left: 100%;
}

.btn-outline-secondary,
.premium-btn-outline {
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    background: transparent;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-outline-secondary:hover,
.premium-btn-outline:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.btn-premium {
    background: var(--gradient-secondary);
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--primary-color);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-premium:hover .btn-icon {
    transform: translateX(4px);
}

/* Enhanced navigation with premium styling */
.premium-nav {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(26, 46, 35, 0.08);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.brand-container img {
    width: 120px;
    height: auto;
}


.brand-container {
    display: flex;
    align-items: center;
    position: relative;
}

.brand-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-right: 0.75rem;
}

.brand-text {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.brand-accent {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.nav-link {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Enhanced hero section with sophisticated design */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #f1f3f4 100%);
    overflow: hidden;
    padding: 0 1rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("assets/images/herobg.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(26, 46, 35, 0.03) 100%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 46, 35, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* --- Hero Badge Fix --- */
.hero-badge {
    margin-top: 100px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(26, 46, 35, 0.85);
    /* darker glass bg for visibility */
    padding: 10px 20px;
    border-radius: 50px;
    color: #fff;
    /* white text */
    font-weight: 600;
    font-size: 1rem;
    z-index: 5;
    position: relative;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-badge i {
    color: var(--secondary-color);
    /* gold accent */
    font-size: 1.2rem;
}



.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-main {
    display: block;
    margin-bottom: 0.5rem;
}

.accent-text {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-light);
    max-width: 750px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
    font-weight: 400;
}

.hero-buttons {
    margin-bottom: 4rem;
}

/* Enhanced trust indicators with premium styling */
.trust-indicators {
    margin-top: 4rem;
}

.trust-item {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-8px);
}

.trust-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.trust-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.trust-item h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.trust-item p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Enhanced section styling with better typography */
.section-header {
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced features section */
.features-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 6rem 0;
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-content h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Enhanced feature image */
.feature-image {
    position: sticky;
    top: 15%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.feature-image img {
    width: 100%;
    transition: transform 0.4s ease;
}

.feature-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature-image:hover .image-overlay {
    opacity: 0.7;
}

#feature-slider {
    transition: opacity 0.5s ease-in-out;
}

#feature-slider.fade-out {
    opacity: 0;
}

.image-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 2;
}

.image-badge i {
    margin-right: 6px;
}

/* Enhanced products section */
.products-section {
    background: var(--white);
    padding: 6rem 0;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-content {
    padding: 2rem;
}

.product-category {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.product-content h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.product-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.product-features li i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
    font-size: 0.8rem;
}

/* Enhanced testimonials section */
.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 6rem 0;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--secondary-color);
    font-family: "Playfair Display", serif;
    opacity: 0.3;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    display: flex;
    margin-bottom: 1.5rem;
}

.testimonial-rating i {
    color: var(--secondary-color);
    margin-right: 4px;
    font-size: 1rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.author-avatar i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.author-info h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Enhanced contact section */
.contact-section {
    background: var(--white);
    padding: 6rem 0;
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
}

.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-details h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
}

/* Enhanced contact form */
.contact-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
    margin: 0;
}

.form-group {
    position: relative;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    outline: none;
}

/* Enhanced footer */
.footer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4rem 0 2rem 0;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-title {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-title i {
    color: var(--secondary-color);
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-subtitle {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--secondary-color);
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon-wrapper {
        margin: 0 auto 1.5rem auto;
    }

    .trust-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .trust-icon {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Added smooth scrolling and enhanced animations */
html {
    scroll-behavior: smooth;
}

.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced loading states and micro-interactions */
.btn:active {
    transform: translateY(-2px) scale(0.98);
}

.form-control:hover {
    border-color: var(--secondary-light);
}

.product-card,
.testimonial-card,
.feature-item {
    will-change: transform;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-light);
}

/* banner */
.banner-hero {
    background: linear-gradient(135deg, #1a4d3a 0%, #2d5a47 100%);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.banner-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.banner-hero-title {
    font-family: "Playfair Display", serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.banner-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.deals-grid-section {
    padding: 60px 0;
}

.gate-design-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    padding: 20px;
    cursor: pointer;
}

.gate-design-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.gate-image-container {
    height: 160px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 15px;
}

.gate-design {
    position: relative;
    width: 100px;
    height: 140px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}


/* Custom top styles */
.gate-design.half-round {
    border-top-left-radius: 50% 20%;
    border-top-right-radius: 50% 20%;
}

.gate-design.full-round {
    border-radius: 50% / 20%;
}

.gate-design.flat-top {
    border-radius: 0;
}

.gate-design.arched {
    border-top-left-radius: 40% 20%;
    border-top-right-radius: 40% 20%;
}



.gate-label h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: bold;
}

.gate-label p {
    font-size: 0.9rem;
    color: #666;
}