/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2E7D32;
    --secondary-blue: #0288D1;
    --accent-gold: #FFB300;
    --dark-brown: #5D4037;
    --light-beige: #FFF8E1;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    background-image: url('images/patterns/kolam-border.png');
    background-repeat: repeat-x;
    background-position: top;
    background-size: contain;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* ===== HEADER & NAVIGATION ===== */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 3px solid var(--primary-green);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-green);
    font-size: 1.8rem;
    font-family: cursive;
    margin-bottom: 5px;
}

.logo-img {
    height: 40px;          /* adjust as needed */
    width: auto;
    vertical-align: middle;
    margin-right: 10px;
}

.logo p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.logo i {
    color: var(--accent-gold);
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    background-color: var(--primary-green);
    color: var(--white);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5)), url('images/bike-riding-sri-lanka.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary, .btn-small {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 5px;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #1B5E20;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-green);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ===== SECTIONS COMMON ===== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-green);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-gold);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* ===== BIKE GRID ===== */
.bike-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.bike-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.bike-card:hover {
    transform: translateY(-10px);
}

.bike-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.bike-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bike-card:hover .bike-image img {
    transform: scale(1.05);
}

.bike-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.bike-info {
    padding: 25px;
}

.bike-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.bike-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    min-height: 60px;
}

.bike-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.bike-price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ===== TRADITIONAL ARTS SECTION ===== */
.traditional-section {
    background-color: var(--light-beige);
    position: relative;
}

.traditional-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url('images/patterns/sri-lanka-pattern.png');
    background-repeat: repeat-x;
    background-size: contain;
}

.arts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.art-item {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.art-item:hover {
    transform: translateY(-10px);
}

.art-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.art-icon i {
    font-size: 2rem;
    color: var(--white);
}

.art-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-brown);
}

/* ===== BIKE DETAIL PAGE STYLES ===== */
.bike-detail-hero {
    background-color: var(--light-beige);
    padding: 60px 0;
    text-align: center;
}

.bike-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.bike-detail-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.bike-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.bike-detail-info {
    padding: 20px;
}

.bike-detail-price {
    font-size: 2.5rem;
    color: var(--primary-green);
    font-weight: 700;
    margin: 20px 0;
}

.free-items-section {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 40px 0;
    border-left: 5px solid var(--accent-gold);
}

.free-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.free-item {
    text-align: center;
    padding: 15px;
}

.free-item i {
    font-size: 2rem;
    color: var(--secondary-blue);
    margin-bottom: 10px;
}

.booking-options {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.email-btn {
    background-color: var(--secondary-blue);
    color: white;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.specs-table th, .specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.specs-table th {
    background-color: #f2f2f2;
    color: var(--text-dark);
    font-weight: 600;
}

/* ===== FOOTER ===== */
.xmain-footer {
    background-color: var(--dark-brown);
    color: var(--white);
    padding: 60px 0 20px;
}

.main-footer {
    background-color: var(--dark-brown); /* Fallback color */
    color: var(--white);
    padding: 60px 0 20px;
    
    /* Background Image Settings */
    /* The linear-gradient creates a dark overlay so text pops */
    background-image: linear-gradient(rgba(44, 28, 18, 0.85), rgba(44, 28, 18, 0.85)), url('images/tropical-ride.jpg');
    
    /* Ensures the image covers the whole footer */
    background-size: cover; 
    
    /* Centers the image */
    background-position: center; 
    
    /* Prevents the image from tiling weirdly */
    background-repeat: no-repeat; 
    
    /* Optional: Adds a subtle parallax effect */
    background-attachment: scroll; 
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--light-beige);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-gold);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-gold);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info-box {
    background-color: var(--light-beige);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .bike-detail-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }
    
    .main-nav ul {
        margin-top: 20px;
    }
    
    .main-nav li {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .bike-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-options {
        flex-direction: column;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav li {
        margin: 5px 0;
    }
    
    .arts-grid {
        grid-template-columns: 1fr;
    }
}