/*=============================================
  1. GLOBAL & RESET
=============================================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Roboto:wght@400;500&display=swap');

/* CSS Variables */
:root {
   --primary-color: #D35400; /* This is your new primary orange */
--primary-hover-color: #A84300; /* This is the darker orange for hovers */
    --dark-color: #222222;
    --medium-color: #555555;
    --light-color: #f9f9f9;
    --white-color: #ffffff;
    --border-color: #eeeeee;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--medium-color);
    line-height: 1.7;
    background-color: var(--white-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/*=============================================
  2. UTILITY & LAYOUT
=============================================*/
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--light-color);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
    color: var(--medium-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: #000;
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/*=============================================
  3. HEADER & NAVIGATION
=============================================*/
.header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--medium-color);
    padding: 0.5rem 0;
    position: relative;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--dark-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    background: none;
    border: none;
}

/*=============================================
  4. FOOTER
=============================================*/
.footer {
    background-color: var(--dark-color);
    color: #a0a0a0;
    padding-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p {
    margin-bottom: 1rem;
}

.footer-col .logo {
    color: var(--white-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #a0a0a0;
}

.footer-links a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.25rem;
    color: #a0a0a0;
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid #a0a0a0;
    border-radius: 50%;
}

.social-links a:hover {
    color: var(--white-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding: 1.5rem 0;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/*=============================================
  5. PAGE: HOME
=============================================*/
/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('/ban.png');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
    padding: 4rem 1.5rem;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

/* Intro Section */
.intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

.cta-section h2 {
    color: var(--white-color);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.btn-light {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/*=============================================
  6. PAGE: GENERIC (About, Services, Legal)
=============================================*/
.page-header {
    background-color: var(--light-color);
    text-align: center;
    padding: 4rem 1.5rem;
}

.page-header h1 {
    margin-bottom: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-grid img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.mission-vision-grid div {
    padding: 2rem;
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Prose for legal pages */
.prose {
    max-width: 800px;
    margin: 0 auto;
}

.prose h2 {
    margin-top: 2.5rem;
}

.prose p {
    font-size: 1.05rem;
    color: var(--medium-color);
}

/*=============================================
  7. PAGE: SERVICES
=============================================*/
.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-item img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Alternate row layout */
.service-item:nth-child(even) .service-image {
    order: 2;
}

.service-content .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/*=============================================
  8. PAGE: PRODUCTS
=============================================*/
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #e0f2fe;
}

.product-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.product-card-content p {
    font-size: 0.95rem;
    flex-grow: 1;
}

.product-card-content a {
    margin-top: 1rem;
    font-weight: 500;
}

/*=============================================
  9. PAGE: CONTACT
=============================================*/
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background-color: var(--white-color);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form h2,
.contact-info h2 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    background-color: var(--light-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(211, 84, 0, 0.2); /* <-- New orange shadow */
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-item .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-info-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-info-item p {
    margin-bottom: 0;
    line-height: 1.6;
}

#form-status {
    margin-top: 1rem;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: 5px;
    display: none; /* Hidden by default */
}

#form-status.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

#form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}


/*=============================================
  10. RESPONSIVE DESIGN
=============================================*/
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 3rem; }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .intro-section,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .intro-image {
        order: -1; /* Move image to top on mobile */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 80px; /* Height of header */
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 1.25rem 1.5rem;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links a::after {
        display: none; /* Disable underline on mobile */
    }

    .nav-links a:hover {
        background-color: var(--light-color);
    }

    .nav-links a.active {
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .features-grid,
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .service-item,
    .service-item:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .service-item:nth-child(even) .service-image {
        order: 0; /* Reset order */
    }
    
    .service-image {
        margin-bottom: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}
/*=============================================
  11. PAGE: PRODUCT DETAIL
=============================================*/
.product-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.product-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-info .short-description {
    font-size: 1.15rem;
    color: var(--medium-color);
    margin-bottom: 1.5rem;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.star-rating .stars {
    color: #f39c12; /* Yellow */
}

.star-rating .rating-text {
    font-weight: 500;
    color: var(--dark-color);
}

.product-info .btn-primary {
    width: 100%;
    margin-bottom: 2rem;
    padding: 1rem;
    font-size: 1.1rem;
}

.info-icons {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.info-icon-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.info-icon-item:last-child {
    margin-bottom: 0;
}

.info-icon-item .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.info-icon-item p {
    margin: 0;
    font-weight: 500;
    color: var(--medium-color);
}

.product-description {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.product-description h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.product-description-content {
    max-width: 900px;
    margin: 0 auto;
}

.product-description-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Responsive adjustments for product page */
@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
}
/* =============================================
  12. HOME: FEATURED PRODUCTS SECTION
=============================================
*/
.featured-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.featured-product-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.featured-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.featured-product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #e0f2fe;
}

.featured-product-card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-product-card .card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.featured-product-card .card-content p {
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.featured-product-card .card-content .btn {
    width: 100%;
}
/* Header logo image */
.logo .logo-img {
    /* This is the fix. Your navbar is 80px tall.
      A 50px max-height will fit the logo perfectly, 
      leaving 15px of padding above and below it.
      Your 520x520px image will be scaled down to 50x50px.
    */
    max-height: 50px; 
    width: auto;      /* This tells it to scale width automatically */
    max-width: 100%;  /* Ensures it never overflows its container */
}

/* ... */

/* Footer logo image */
.logo .logo-img-footer {
    /* We do the same for the footer logo.
      Feel free to adjust this value.
    */
    max-height: 40px; 
    width: auto;
    max-width: 100%;
}