/*
Theme Name: Khurshid Ahmed Child Theme
Theme URI: 
Description: Child theme for Khurshid Ahmed and Sons website
Author: Khurshid Ahmed and Sons
Template: twentytwentyfour
Version: 1.0.0
*/

/* =========================
   Import Parent Theme Styles
   (handled via functions.php enqueue)
========================= */

/* =========================
   Global Reset
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.6;
}

/* =========================
   Root Variables
========================= */
:root {
    --primary-color: #1A1A1A;
    --secondary-color: #F7F7F5;
    --accent-color: #A62B2B;
    --text-color: #333333;
    --light-text: #666666;
    --white-color: #FFFFFF;
    --border-color: #E5E5E5;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

/* =========================
   Common Classes
========================= */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white-color);
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* =========================
   Header
========================= */
.site-header {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 229, 229, 0.7);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-soft);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    gap: 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.site-logo img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.company-name {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.company-tagline {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 4px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav ul li a {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--accent-color);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 58px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 22px;
    color: #ffffff !important;  /* ← add this */
}
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    background-color: var(--white-color);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    transition: var(--transition);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    background-color: var(--white-color);
    border-top: 1px solid var(--border-color);
    padding: 10px 0 20px;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.mobile-nav ul li a {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    padding: 10px 0;
    transition: var(--transition);
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
    color: var(--accent-color);
}

.mobile-nav.active {
    display: block;
}

@media (max-width: 991px) {
    .main-nav,
    .header-actions .btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .company-name { font-size: 16px; }
    .company-tagline { font-size: 11px; }
    .site-logo img { width: 54px; height: 54px; }
    .header-wrapper { min-height: 80px; }
}

@media (max-width: 575px) {
    .logo-text { max-width: 170px; }
    .company-name { font-size: 14px; }
    .company-tagline { font-size: 10px; }
    .site-logo { gap: 10px; }
    .site-logo img { width: 48px; height: 48px; }
}

/* =========================
   Hero Section
========================= */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 92vh;
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.45) 35%,
        rgba(0, 0, 0, 0.20) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 760px;
    animation: fadeUp 1s ease;
}

.hero-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: #f0d7d7;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 58px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 22px;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

.hero-dots {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero-dots .dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.hero-dots .dot.active {
    background-color: var(--accent-color);
    border-color: #ffffff;
    transform: scale(1.05);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .hero-slider { height: 85vh; min-height: 560px; }
    .hero-content h1 { font-size: 44px; }
    .hero-content p { font-size: 16px; }
}

@media (max-width: 767px) {
    .hero-slider { height: 78vh; min-height: 500px; }
    .hero-content h1 { font-size: 34px; }
    .hero-content p { font-size: 15px; }
    .hero-subtitle { font-size: 12px; }
}

@media (max-width: 575px) {
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 14px; max-width: 100%; }
    .hero-slider { height: 88vh; }
}

/* =========================
   Section Padding & Subtitle
========================= */
.section-padding { padding: 100px 0; }

.section-subtitle {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 14px;
}

/* =========================
   Company Overview
========================= */
.company-overview {
    background-color: var(--secondary-color);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.overview-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.overview-text p {
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.9;
    margin-bottom: 18px;
}

.overview-text .btn {
    margin-top: 10px;
}

.overview-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.overview-image img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.overview-image:hover img {
    transform: scale(1.04);
}

.image-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.65);
    padding: 10px 18px;
    border-radius: 30px;
    backdrop-filter: blur(6px);
}

.image-label span {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.overview-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background-color: var(--white-color);
    border-radius: 20px;
    padding: 30px 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(229, 229, 229, 0.8);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: rgba(166, 43, 43, 0.08);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.feature-card p {
    font-size: 15px;
    color: var(--light-text);
    line-height: 1.8;
}

@media (max-width: 991px) {
    .section-padding { padding: 80px 0; }
    .overview-grid { grid-template-columns: 1fr; gap: 35px; }
    .overview-text h2 { font-size: 34px; }
    .overview-features { grid-template-columns: 1fr; }
    .overview-image img { min-height: 360px; }
}

@media (max-width: 767px) {
    .section-padding { padding: 70px 0; }
    .overview-text h2 { font-size: 28px; }
    .overview-text p { font-size: 15px; }
    .feature-card { padding: 24px 20px; }
    .feature-card h3 { font-size: 20px; }
    .overview-image img { min-height: 300px; }
}

/* =========================
   Products Section
========================= */
.products-section { background-color: #ffffff; }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.section-header p {
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(229, 229, 229, 0.7);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.product-image { height: 220px; overflow: hidden; }

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover img { transform: scale(1.05); }

.product-content { padding: 20px 22px 26px; }

.product-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-content p {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.7;
}

.products-cta { text-align: center; margin-top: 40px; }

@media (max-width: 991px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .products-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 30px; }
}

/* =========================
   Clients Section
========================= */
.clients-section {
    background-color: var(--secondary-color);
    overflow: hidden;
}

.clients-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
    padding: 10px 0 0;
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: scrollClients 28s linear infinite;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 90px;
    padding: 10px 18px;
    transition: var(--transition);
}

.client-logo img {
    max-width: 140px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.client-logo:hover img {
    filter: grayscale(100%);
    opacity: 1;
    transform: scale(1.04);
}

@keyframes scrollClients {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 767px) {
    .clients-track { gap: 40px; animation-duration: 20s; }
    .client-logo { min-width: 130px; height: 80px; }
    .client-logo img { max-width: 110px; max-height: 50px; }
}

/* =========================
   CTA Section
========================= */
.cta-section { background-color: #ffffff; }

.cta-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #ffffff;
    border-radius: 28px;
    padding: 70px 60px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 180px; height: 180px;
    background: rgba(166, 43, 43, 0.12);
    border-radius: 50%;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 220px; height: 220px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.cta-box .section-subtitle { color: #f0b6b6; position: relative; z-index: 2; }

.cta-box h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.cta-box p {
    max-width: 760px;
    margin: 0 auto 30px;
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.86);
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn-secondary-dark {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-secondary-dark:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .cta-box { padding: 55px 35px; }
    .cta-box h2 { font-size: 34px; }
}

@media (max-width: 767px) {
    .cta-box { padding: 45px 22px; border-radius: 22px; }
    .cta-box h2 { font-size: 28px; }
    .cta-box p { font-size: 15px; }
    .cta-buttons .btn { width: 100%; text-align: center; }
}

/* =========================
   Footer
========================= */
.site-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.75);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding: 70px 0 50px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.9;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-company-name {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.footer-company-tagline {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.footer-column h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    padding-left: 6px;
}

.footer-contact-info li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-contact-info li span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-right: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
}

.footer-bottom-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 991px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 35px; padding: 55px 0 40px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand p { max-width: 100%; }
}

@media (max-width: 575px) {
    .footer-top { grid-template-columns: 1fr; gap: 28px; padding: 45px 0 35px; }
}
