/* ============================================
   JSRA Ltd - Professional Business Website
   Clean, Modern UK Business Style
   ============================================ */

/* ============ Root Variables ============ */
:root {
    --primary-color: #003d7a;
    --secondary-color: #0055b8;
    --accent-color: #f39c12;
    --light-bg: #f8f9fa;
    --dark-text: #333333;
    --light-text: #666666;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ============ Reset & 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: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* ============ Container ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ Navigation Bar ============ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.navbar-logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.navbar-logo .tagline {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.navbar-buttons {
    display: flex;
    gap: 10px;
}

.call-btn, .email-btn, .whatsapp-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
    padding: 8px 12px;
    font-size: 1.2rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.call-btn:hover, .email-btn:hover, .whatsapp-btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* ============ Hero Section ============ */
.hero {
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%),
                      url('https://images.unsplash.com/photo-1608055000714-c7e1f90c9773?w=1600&h=700&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    margin-top: 0;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroBackground 18s ease-in-out infinite;
}

@keyframes heroBackground {
    0%, 100% {
        background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%),
                          url('https://images.unsplash.com/photo-1608055000714-c7e1f90c9773?w=1600&h=700&fit=crop');
    }
    33% {
        background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%),
                          url('https://images.unsplash.com/photo-1508739773434-c26b3d09e071?w=1600&h=700&fit=crop');
    }
    66% {
        background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%),
                          url('https://images.unsplash.com/photo-1506617420156-8e4536971650?w=1600&h=700&fit=crop');
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 61, 122, 0.6);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content > p {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 1.1rem !important;
    opacity: 0.95;
    margin-bottom: 40px !important;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.cta-btn {
    padding: 14px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.primary-btn {
    background-color: var(--accent-color);
    color: var(--white);
}

.primary-btn:hover {
    background-color: #e67e0e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
}

.secondary-btn {
    background-color: var(--white);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--light-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* ============ About Section ============ */
.about {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.about h2,
.products h2,
.order-section h2,
.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
}

.about h2::after,
.products h2::after,
.order-section h2::after,
.contact h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-content > p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--light-text);
    text-align: center;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
}

.about-features .feature {
    flex: 1 1 calc(50% - 15px);
    min-width: 250px;
}

.feature {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature p {
    color: var(--light-text);
    font-size: 0.95rem;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-card > h4,
.product-card > p {
    padding: 0 15px;
}

.product-card h4 {
    margin-top: 15px;
}

.product-card p:last-child {
    padding-left: 0;
    padding-left: 15px;
    border-left: 4px solid var(--accent-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.product-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.product-desc {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.product-price {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============ Wholesale Section ============ */
.wholesale {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.wholesale h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.wholesale-content > p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--white);
    padding: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card h4 {
    color: var(--secondary-color);
    margin: 15px 15px 10px 15px;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--light-text);
    line-height: 1.7;
    padding: 0 15px 15px 15px;
}

/* ============ Order Form Section ============ */
.order-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 85, 184, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 30px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 61, 122, 0.3);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--light-bg);
    border-radius: 8px;
    border-left: 5px solid var(--success-color);
}

.success-icon {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 15px;
}

.success-message h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.success-message p {
    color: var(--light-text);
    margin-bottom: 10px;
    font-size: 1rem;
}

.close-success-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.close-success-btn:hover {
    background-color: var(--secondary-color);
}

/* ============ Contact Section ============ */
.contact {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-left {
    display: flex;
    flex-direction: column;
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.contact-image:hover {
    transform: scale(1.05);
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.info-block {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.info-block:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.info-block h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.info-block p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 0.95rem;
}

.info-block a {
    color: var(--secondary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.info-block a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact-map {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-map h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-map p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ============ Footer ============ */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
    margin-top: 0;
}

.footer .container p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.footer-contact {
    font-size: 0.85rem !important;
    opacity: 0.9;
}

/* ============ Responsive Design ============ */
@media (max-width: 768px) {
    /* Navigation */
    .navbar-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        gap: 15px;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .navbar-buttons {
        width: 100%;
        justify-content: center;
    }

    /* Hero */
    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content > p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-btn {
        width: 100%;
    }

    /* Sections */
    .about, .products, .order-section, .contact {
        padding: 60px 20px;
    }

    .about h2, .products h2, .order-section h2, .contact h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        width: 100%;
    }

    .about-image img {
        max-width: 100%;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Form */
    .form-wrapper {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-image {
        max-width: 100%;
        height: 200px;
    }

    .contact-map {
        background-color: var(--white);
        padding: 20px;
    }

    /* About Features */
    .about-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .about-features .feature {
        flex: 1 1 100%;
        min-width: auto;
    }

    /* Category Title */
    .category h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Hero */
    .hero {
        padding: 60px 15px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .hero-content > p {
        font-size: 1rem;
    }

    /* Navigation */
    .navbar-logo h1 {
        font-size: 1.3rem;
    }

    .nav-menu {
        gap: 10px;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 4px 6px;
    }

    .navbar-buttons {
        gap: 5px;
    }

    .call-btn, .email-btn, .whatsapp-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Sections */
    .about, .products, .order-section, .contact {
        padding: 40px 15px;
    }

    .about h2, .products h2, .order-section h2, .contact h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .about-content > p {
        font-size: 0.95rem;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 15px;
    }

    .product-icon {
        font-size: 2rem;
    }

    .product-card h4 {
        font-size: 1.1rem;
    }

    /* Form */
    .form-wrapper {
        padding: 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Contact Info */
    .contact-content {
        gap: 20px;
    }

    .info-block {
        padding: 15px;
    }

    .info-block h3 {
        font-size: 1.05rem;
    }

    .info-block p {
        font-size: 0.9rem;
    }
    
    /* About Features */
    .about-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .about-features .feature {
        flex: 1 1 100%;
        min-width: auto;
        padding: 20px;
    }

    /* Footer */
    .footer .container p {
        font-size: 0.8rem;
    }
}

/* ============ Print Styles ============ */
@media print {
    .navbar,
    .hero,
    .navbar-buttons,
    .submit-btn,
    .close-success-btn {
        display: none;
    }

    body {
        background-color: var(--white);
    }

    section {
        page-break-inside: avoid;
    }
}
