/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
    /* Colors */
    --primary: #D4AF37;
    /* Soft Gold as new primary */
    --primary-dark: #B89323;
    --secondary: #2A4B3A;
    /* Botanical Green */
    --accent: #B76E79;
    /* Rose Gold */
    --surface: #FFFFFF;
    --surface-alt: #F9F9F4;
    /* Warm gray/off-white */
    --surface-dark: #1C211F;
    --text: #2A312C;
    /* Very dark green-gray */
    --text-light: #5B6A61;
    /* Muted dark green-gray */
    --text-inverse: #FFFFFF;
    --border: #E8EDE9;

    /* Typography */
    --font-heading: 'Playfair Display', 'Cairo', serif;
    --font-body: 'Montserrat', 'Cairo', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Constants */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-pill: 500px;
    --shadow-sm: 0 4px 12px rgba(42, 49, 44, 0.05);
    --shadow-md: 0 12px 32px rgba(42, 49, 44, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--surface);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

/* ==========================================================================
   Layout & Grid
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-sm {
    max-width: 800px;
}

section {
    padding: var(--space-xl) 0;
    position: relative;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Components
   ========================================================================== */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--surface);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text);
    color: var(--text);
}

.btn-outline:hover {
    background-color: var(--text);
    color: var(--surface);
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
}

/* Eyebrow / Small labeling */
.eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    display: block;
    margin-bottom: var(--space-xs);
}

/* Loaders */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

body:not(.loading) .loader {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
    position: fixed;
    top: var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.site-header.scrolled {
    top: var(--space-xs);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    gap: var(--space-md);
}

/* Initial styling on dark Hero */
.site-header:not(.scrolled) .util-link,
.site-header:not(.scrolled) .header-nav a,
.site-header:not(.scrolled) .mobile-menu-btn {
    color: var(--surface);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    /* slight text shadow for visibility on glass */
}

/* Removed filter on logo to prevent white circle bug */

.header-logo {
    justify-self: start;
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 50px;
    /* appropriately scaled down for the smaller pill navbar */
    object-fit: contain;
    transition: var(--transition);
}

.header-nav {
    justify-self: center;
}

.header-nav ul {
    display: flex;
    gap: var(--space-lg);
}

.header-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    color: var(--text);
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: var(--transition);
}

.header-nav a:hover::after {
    width: 100%;
    right: 0;
    left: auto;
}

.header-utils {
    display: flex;
    gap: var(--space-md);
    justify-self: end;
    align-items: center;
}

.util-link {
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.desktop-only {
    display: inline-flex;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: var(--space-xs);
    /* Separated from cart icon */
    transition: color var(--transition);
}


/* ==========================================================================
   Hero Section (Canvas Scroll Anim)
   ========================================================================== */
.hero-section {
    height: 400vh;
    /* Increased for slower scroll */
    padding: 0;
    background: #000;
    position: relative;
}

.hero-section h1 {
    font-weight: 700;
}

.canvas-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#hero-video-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    /* dark overlay */
}

/* Fixed content within hero, faded via JS */
.hero-content {
    position: fixed;
    /* sticky behavior simulated by JS */
    top: 50%;
    right: 8%;
    /* Move to right side */
    transform: translateY(-50%);
    text-align: right;
    color: var(--text-inverse);
    z-index: 10;
    width: 100%;
    max-width: 600px;
    padding: var(--space-sm);
    will-change: opacity, transform;
}

.hero-title {
    margin-bottom: var(--space-sm);
    color: var(--surface);
    /* Force white */
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    /* Darken shadow for better contrast */
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: var(--space-lg);
    font-weight: 400;
    color: var(--surface);
    opacity: 0.95;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
    position: fixed;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-inverse);
    text-align: center;
    z-index: 10;
    opacity: 0.8;
}

.scroll-indicator p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scrollLine 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

/* ==========================================================================
   Brand Story (Z-Pattern)
   ========================================================================== */
.brand-story-section {
    background-color: var(--surface-alt);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.story-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-top: var(--space-md);
}

/* ==========================================================================
   The Collection
   ========================================================================== */
.collection-section {
    background: var(--surface);
}

.section-header {
    margin-bottom: var(--space-xl);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border);
    transform: translateY(-5px);
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* or contain depending on image style */
    transition: opacity 0.5s ease;
    padding: var(--space-md);
}

.product-img.secondary {
    opacity: 0;
}

.product-card:hover .product-img.secondary {
    opacity: 1;
}

.product-card:hover .product-img.primary {
    opacity: 0;
}

.product-info {
    text-align: center;
}

.product-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quick-view {
    opacity: 0;
    transform: translateY(10px);
}

.product-card:hover .quick-view {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Testimonials & Videos
   ========================================================================== */
.testimonials-section {
    background-color: var(--surface-alt);
    overflow: hidden;
}

.video-carousel {
    display: flex;
    overflow-x: auto;
    gap: var(--space-md);
    padding: var(--space-md) 0 var(--space-lg);
    /* extra bottom padding for the scrollbar */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Styled Scrollbar for Desktop usage */
.video-carousel::-webkit-scrollbar {
    height: 8px;
}

.video-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-pill);
}

.video-carousel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-pill);
}

.video-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.video-item {
    scroll-snap-align: center;
    flex: 0 0 auto;
    width: 267px;
    height: 476px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-item iframe {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Customer Feedback (Text Reviews)
   ========================================================================== */
.feedback-section {
    background-color: var(--surface);
    padding-top: 0;
    /* Flows naturally after videos */
}

.feedback-grid {
    display: flex;
    overflow-x: auto;
    gap: var(--space-md);
    padding: var(--space-md) 0 var(--space-lg);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Styled Scrollbar for Desktop usage */
.feedback-grid::-webkit-scrollbar {
    height: 8px;
}

.feedback-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-pill);
}

.feedback-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-pill);
}

.feedback-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.feedback-card {
    scroll-snap-align: center;
    flex: 0 0 auto;
    width: 380px;
    max-width: 85vw;
    /* responsiveness on small screens */
    background: var(--surface-alt);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feedback-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    /* Subtle gold tint on hover */
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.customer-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.feedback-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.stars {
    color: var(--primary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.feedback-text {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
}

/* ==========================================================================
   Innovation Spotlight
   ========================================================================== */
.dark-section {
    background-color: var(--surface-dark);
    color: var(--text-inverse);
}

.dark-section h2 {
    color: var(--text-inverse);
}

.dark-section .eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

.divider {
    width: 60px;
    height: 1px;
    background-color: var(--primary);
    margin: var(--space-md) auto;
}

.large-text {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-family: var(--font-heading);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--surface-alt);
    padding: var(--space-xl) 0 var(--space-sm);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    height: 50px;
    margin-bottom: var(--space-sm);
}

.footer-grid h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.footer-grid ul li {
    margin-bottom: 0.75rem;
}

.footer-grid ul a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-grid ul a:hover {
    color: var(--primary);
}

.made-in {
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-light);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: var(--space-sm);
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==========================================================================
   Product Page specific
   ========================================================================== */
.product-template {
    padding-top: calc(var(--space-xl) + 80px);
    /* Account for header */
}

/* Add these below for Product Page Details Area */

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
}

/* Footer Contact Styles */
.footer-contact h4 {
    margin-bottom: var(--space-sm);
}

.contact-list {
    margin-bottom: var(--space-sm);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.contact-list li i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-list li a {
    color: var(--text-light);
    transition: color var(--transition);
}

.contact-list li a:hover {
    color: var(--primary);
}

.qr-code-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    background: var(--surface);
    /* padding: var(--space-xs); */
    padding: 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.qr-code-box img {
    width: 145px;
    height: 145px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.qr-code-box span {
    font-size: 0.75rem;
    color: var(--text-light);
}

@media (max-width: 900px) {
    .product-split {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .product-gallery {
        position: static;
    }

    .feedback-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        width: calc(100% - var(--space-md));
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        border-radius: var(--radius-md);
        padding: var(--space-md);
        margin-top: var(--space-xs);
        border: 1px solid rgba(255, 255, 255, 0.4);
    }

    .site-header.nav-open .header-nav {
        display: block;
    }

    .header-nav ul {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: center;
    }

    .header-nav a {
        font-size: 1.1rem;
        padding: 0.5rem;
        display: block;
        /* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); */
    }

    .site-header:not(.scrolled) .util-link,
    .site-header:not(.scrolled) .header-nav a,
    .site-header:not(.scrolled) .mobile-menu-btn {
        color: var(--surface);
        text-shadow: 1px 1px 2px rgb(0 0 0);
    }

    /* Restored Mobile Refinements */
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-content {
        right: 5%;
        left: 5%;
        width: 90%;
        text-align: center;
        padding: 0;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .story-image {
        aspect-ratio: 1 / 1;
        display: flex;
        justify-content: center;
    }


    .story-image img {
        width: auto;
        /* height: 400px; */
        object-fit: cover;
        object-position: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .quick-view {
        opacity: 1;
        transform: translateY(0);
    }

    /* Always visible on mobile */
    .hero-section {
        height: 500vh;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Qamar brand logo refresh — 2026-07-12 */
.header-logo img,
.footer-logo {
    content: url("assets/images/logo.png?v=20260712-new");
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    width: auto;
}

.header-logo img {
    height: 50px;
    max-width: 50px;
}

.footer-logo {
    height: 64px;
    max-width: 64px;
}

@media (max-width: 767px) {
    .header-logo img {
        height: 44px;
        max-width: 44px;
    }

    .footer-logo {
        height: 58px;
        max-width: 58px;
    }
}
