/*
Theme Name: Qvista Premium Theme
Description: Customized stylesheet for Qvista Aluminium Doors & Windows Hardware Clone
Author: Antigravity
Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Nunito+Sans:wght@300;400;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #2b2a29; /* Charcoal Dark */
    --secondary-color: #098060; /* Emerald Green */
    --accent-color: #56c477; /* Medium Green */
    --accent-light: #c4f2d4; /* Very Light Green */
    --accent-ultra-light: #f1faf5; /* Ultra Soft Green */
    
    --text-color: #5a5f61;
    --text-dark: #1b1d1e;
    --text-light: #ffffff;
    --text-muted: #828a8d;
    
    --bg-white: #ffffff;
    --bg-light: #f4f7f6;
    --bg-dark: #181717;
    --bg-dark-secondary: #201f1f;
    
    --border-color: #e2ebd5;
    --border-light: #edf2ee;
    
    --font-heading: 'Outfit', 'Poppins', sans-serif;
    --font-body: 'Nunito Sans', 'Barlow', sans-serif;
    
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 5px 15px -5px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 20px 50px rgba(9, 128, 96, 0.06);
    --shadow-glow: 0 15px 30px rgba(9, 128, 96, 0.15);
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

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

iframe {
    border: none;
}

/* ==========================================================================
   Helper Classes & Layout Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 25px;
}

.section-padding {
    padding: 100px 0;
}

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

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

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(9, 128, 96, 0.2);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(43, 42, 41, 0.25);
}

.btn-primary:hover::after {
    width: 100%;
}

.btn-dark {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(43, 42, 41, 0.15);
}

.btn-dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--secondary-color);
    transition: var(--transition-normal);
    z-index: -1;
}

.btn-dark:hover {
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(9, 128, 96, 0.25);
}

.btn-dark:hover::after {
    width: 100%;
}

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

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(9, 128, 96, 0.2);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
#ct-masthead {
    width: 100%;
    position: relative;
    z-index: 1000;
}

/* Topbar */
.ct-topbar {
    background-color: var(--bg-dark);
    font-size: 0.82rem;
    color: #a3a3a3;
    padding: 10px 0;
    border-bottom: 1px solid #232222;
}

.ct-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ct-topbar-meta {
    display: flex;
    gap: 30px;
    align-items: center;
}

.ct-topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ct-topbar-item i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.ct-topbar-item label {
    font-weight: 600;
    color: var(--text-light);
}

.ct-topbar-item a {
    color: #d1d1d1;
}

.ct-topbar-item a:hover {
    color: var(--secondary-color);
}

.ct-topbar-social {
    display: flex;
    gap: 18px;
}

.ct-topbar-social a {
    color: #a3a3a3;
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.ct-topbar-social a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Main Header */
.ct-header-main {
    background-color: var(--bg-white);
    padding: 18px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition-normal);
}

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

.ct-header-branding img {
    height: 58px;
    width: auto;
    object-fit: contain;
}

.ct-header-navigation {
    display: flex;
    align-items: center;
    gap: 35px;
}

/* Main Menu Desktop */
.ct-main-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ct-main-menu > li {
    position: relative;
    padding: 12px 16px;
}

.ct-main-menu > li > a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.98rem;
    position: relative;
    padding-bottom: 6px;
}

.ct-main-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-normal);
}

.ct-main-menu > li:hover > a {
    color: var(--secondary-color);
}

.ct-main-menu > li:hover > a::after {
    width: 100%;
}

.ct-main-menu > li.current-menu-item > a {
    color: var(--secondary-color);
}

.ct-main-menu > li.current-menu-item > a::after {
    width: 100%;
}

/* Dropdowns / Submenu with Glassmorphism */
.ct-main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 270px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--secondary-color);
    border-radius: 0 0 8px 8px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-normal);
    z-index: 999;
}

.ct-main-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ct-main-menu .sub-menu li a {
    display: block;
    padding: 10px 24px;
    font-size: 0.9rem;
    color: #434647;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-normal);
}

.ct-main-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.ct-main-menu .sub-menu li a:hover {
    background-color: rgba(9, 128, 96, 0.05);
    color: var(--secondary-color);
    padding-left: 30px;
}

/* Nested Dropdowns */
.ct-main-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    border-top: none;
    border-left: 3px solid var(--secondary-color);
    border-radius: 0 8px 8px 8px;
}

.ct-main-menu .menu-item-has-children > a::after {
    content: ' \f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.72rem;
    margin-left: 6px;
    display: inline-block;
    transition: var(--transition-fast);
}

.ct-main-menu .sub-menu .menu-item-has-children > a::after {
    content: ' \f105';
    float: right;
    margin-top: 4px;
}

/* Sticky Header Glassmorphism */
.is-sticky .ct-header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    padding: 12px 0;
    z-index: 1001;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Mobile Menu Elements */
.btn-nav-mobile {
    display: none;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--primary-color);
    padding: 5px;
    transition: var(--transition-fast);
}

.btn-nav-mobile:hover {
    color: var(--secondary-color);
}

.ct-logo-mobile {
    display: none;
}

/* ==========================================================================
   Home Hero Slider (Premium Ken Burns effect)
   ========================================================================== */
.hero-slider-container {
    position: relative;
    height: 700px;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    transform: scale(1.02);
    transition: transform 1.2s ease-in-out, opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    /* Trigger Ken burns motion on active slide */
    animation: kenBurns 12s linear infinite alternate;
}

@keyframes kenBurns {
    0% { background-position: center center; transform: scale(1); }
    100% { background-position: center center; transform: scale(1.08); }
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 720px;
    padding-left: 20px;
}

.hero-slide-subtitle {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    display: inline-block;
    border-left: 3px solid var(--secondary-color);
    padding-left: 12px;
    line-height: 1;
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.6s ease 0.4s;
}

.hero-slide-title {
    font-size: 3.6rem;
    color: var(--text-light);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 30px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease 0.6s;
}

.hero-slide-btn {
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.6s ease 0.8s;
}

.hero-slide.active .hero-slide-subtitle {
    transform: translateX(0);
    opacity: 1;
}

.hero-slide.active .hero-slide-title,
.hero-slide.active .hero-slide-btn {
    transform: translateY(0);
    opacity: 1;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-normal);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(9, 128, 96, 0.4);
}

.slider-arrow.prev { left: 40px; }
.slider-arrow.next { right: 40px; }

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

.slider-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-normal);
}

.slider-dot.active {
    background-color: var(--secondary-color);
    width: 28px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(9, 128, 96, 0.4);
}

/* ==========================================================================
   Homepage Content Sections
   ========================================================================== */

/* Section Titles */
.section-subtitle {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    display: inline-block;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
}

.section-desc {
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 60px;
    font-size: 1.05rem;
}

/* Features Grid */
.features-grid-section {
    background-color: var(--bg-light);
}

.features-grid-card {
    background-color: var(--bg-white);
    padding: 45px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition-slow);
}

.features-grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transition: var(--transition-normal);
    transform-origin: left;
}

.features-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(9, 128, 96, 0.15);
}

.features-grid-card:hover::before {
    transform: scaleX(1);
}

.features-number {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 4.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: rgba(9, 128, 96, 0.05);
    line-height: 1;
    transition: var(--transition-normal);
}

.features-grid-card:hover .features-number {
    color: rgba(9, 128, 96, 0.1);
    transform: scale(1.1);
}

.features-grid-card h3 {
    font-size: 1.4rem;
    margin-bottom: 18px;
    color: var(--primary-color);
}

.features-grid-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Info Section (About Products) */
.info-section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-section-image {
    position: relative;
    padding-right: 15px;
    padding-bottom: 15px;
}

.info-section-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.info-section-image::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    right: -15px;
    bottom: -15px;
    border: 3px solid var(--accent-light);
    border-radius: 12px;
    z-index: 0;
}

.info-experience-badge {
    position: absolute;
    bottom: 15px;
    left: -15px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 22px 28px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.info-experience-badge span.num {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 3px;
    font-family: var(--font-heading);
}

.info-experience-badge span.text {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

.info-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 35px;
}

.info-stat-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background-color: var(--bg-light);
    padding: 14px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.info-stat-item:hover {
    background-color: var(--accent-ultra-light);
    border-color: rgba(9, 128, 96, 0.1);
}

.info-stat-icon {
    width: 44px;
    height: 44px;
    background-color: var(--accent-light);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.info-stat-label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Counters Stats Section */
.counters-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 85px 0;
    position: relative;
    background-image: radial-gradient(circle at 10% 20%, rgba(9, 128, 96, 0.15) 0%, transparent 40%);
}

.counter-item {
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.grid-4 .counter-item:last-child {
    border-right: none;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    margin-bottom: 8px;
    line-height: 1;
}

.counter-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: #c9c9c9;
}

/* Form and Columns (Consultation) */
.consultation-section {
    background-color: var(--bg-light);
}

.consult-form-container {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-light);
}

.consult-form-container h3 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.consult-form-container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Why Choose Us & Video player */
.why-choose-list {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-choose-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background-color: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--secondary-color);
    transition: var(--transition-normal);
}

.why-choose-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.why-choose-item i {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-top: 2px;
}

.why-choose-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.why-choose-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.video-player-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.video-player-container img {
    width: 100%;
    transform: scale(1.01);
    transition: var(--transition-slow);
}

.video-player-container:hover img {
    transform: scale(1.05);
}

.video-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-play-btn {
    width: 85px;
    height: 85px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(9, 128, 96, 0.5);
    animation: pulsePlay 1.8s infinite;
    transition: var(--transition-normal);
}

.video-play-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(43, 42, 41, 0.4);
}

@keyframes pulsePlay {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(9, 128, 96, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 22px rgba(9, 128, 96, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(9, 128, 96, 0); }
}

/* Testimonial slider layout (Premium decoration) */
.testimonial-section {
    background-color: var(--bg-white);
    position: relative;
}

.testimonial-slider {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    overflow: hidden;
    height: 380px;
    background-color: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* Large quote mark behind */
.testimonial-slider::after {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 8rem;
    color: rgba(9, 128, 96, 0.05);
    z-index: 0;
    pointer-events: none;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    text-align: center;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
}

.testimonial-avatar {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: #4b5254;
    margin-bottom: 25px;
    line-height: 1.8;
    max-width: 680px;
}

.testimonial-author {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: 0.82rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   Forms CSS
   ========================================================================== */
.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-white);
    outline: none;
    transition: var(--transition-fast);
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(9, 128, 96, 0.1);
}

.form-control::placeholder {
    color: #b0b8bc;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1d1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    padding-right: 45px;
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.form-submit-btn {
    width: 100%;
    padding: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(9, 128, 96, 0.2);
    transition: var(--transition-normal);
}

.form-submit-btn:hover {
    background-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(43, 42, 41, 0.25);
    transform: translateY(-2px);
}

.form-message {
    padding: 14px 20px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 0.92rem;
    font-weight: 600;
    display: none;
    text-align: center;
}

.form-message.success {
    display: block;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    display: block;
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ==========================================================================
   Footer Layout
   ========================================================================== */
.site-footer-custom {
    background-color: var(--bg-dark);
    color: #8c8f90;
    font-size: 0.92rem;
}

.footer-custom-inner {
    padding: 90px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.footer-col-about img {
    height: 65px;
    width: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.footer-col-about p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-col-about .open-hours {
    font-size: 0.88rem;
    border-top: 1px solid #232222;
    padding-top: 20px;
}

.footer-col-about .open-hours h3 {
    margin-bottom: 15px;
}

.footer-col-about .open-hours p {
    margin-bottom: 0;
}

.footer-col-about .open-hours span {
    font-weight: 700;
    color: var(--text-light);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact-list li {
    display: flex;
    gap: 15px;
    line-height: 1.6;
}

.footer-contact-list li i {
    color: var(--secondary-color);
    margin-top: 5px;
    font-size: 1rem;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: var(--transition-normal);
}

.footer-links-list a i {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.footer-links-list a:hover {
    color: var(--secondary-color);
    padding-left: 6px;
}

.footer-newsletter p {
    margin-bottom: 18px;
    line-height: 1.7;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.footer-social-icons a {
    width: 40px;
    height: 40px;
    background-color: #201f1f;
    border: 1px solid #292828;
    color: #d1d1d1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.footer-social-icons a:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-4px);
    box-shadow: 0 5px 12px rgba(9, 128, 96, 0.3);
}

.footer-copyright-bar {
    border-top: 1px solid #201f1f;
    padding-top: 25px;
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright-bar a {
    color: var(--secondary-color);
    font-weight: 700;
}

.footer-copyright-bar a:hover {
    color: var(--text-light);
}

/* ==========================================================================
   Page Title Banner (Subpages)
   ========================================================================== */
.page-title-banner {
    position: relative;
    padding: 95px 0;
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
    background-image: url('assets/images/page-title-qvista.jpg');
}

.page-title-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 42, 41, 0.78); /* overlay matching dark color */
    z-index: 1;
}

.page-title-banner-inner {
    position: relative;
    z-index: 2;
}

.page-title-banner-inner h1 {
    color: var(--text-light);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.ct-breadcrumb {
    display: inline-flex;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
}

.ct-breadcrumb a {
    color: var(--accent-light);
}

.ct-breadcrumb a:hover {
    color: var(--text-light);
}

.ct-breadcrumb span.sep {
    opacity: 0.5;
}

/* ==========================================================================
   Subpages Content & Layouts
   ========================================================================== */

/* About Us Page */
.about-page-top {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-page-stats {
    background-color: var(--bg-light);
    padding: 60px 0;
}

/* Contact Us Page */
.contact-page-info-grid {
    margin-bottom: 60px;
}

.contact-info-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(9, 128, 96, 0.1);
}

.contact-info-card i {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.contact-info-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-map-container {
    width: 100%;
    height: 520px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 50px;
}

/* ==========================================================================
   Product Detail Template & PDF Viewer
   ========================================================================== */
.product-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.pdf-viewer-wrapper {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    height: 850px;
}

.pdf-viewer-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

.product-enquiry-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .grid-4, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .product-enquiry-sidebar {
        position: relative;
        top: 0;
        margin-top: 40px;
    }
}

@media screen and (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .ct-topbar {
        display: none; /* Hide topbar on mobile */
    }
    
    /* Mobile Header Layout */
    .ct-header-navigation {
        display: none; /* JS will toggle mobile drawer */
    }
    
    .btn-nav-mobile {
        display: block;
    }
    
    /* Mobile Menu Drawer */
    .ct-header-navigation.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        padding: 90px 35px 50px;
        z-index: 9999;
        overflow-y: auto;
    }
    
    .ct-logo-mobile {
        display: block;
        margin-bottom: 45px;
    }
    
    .ct-logo-mobile img {
        height: 52px;
        width: auto;
    }
    
    .ct-main-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 15px;
    }
    
    .ct-main-menu > li {
        width: 100%;
        padding: 0;
    }
    
    .ct-main-menu > li > a {
        display: block;
        font-size: 1.15rem;
        padding: 10px 0;
    }
    
    .ct-main-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-left: 2px solid var(--border-color);
        padding: 5px 0 5px 18px;
        margin-top: 5px;
        display: none; /* Toggled via JS */
        min-width: 100%;
        background: transparent;
        backdrop-filter: none;
    }
    
    .ct-main-menu .sub-menu.open {
        display: block;
    }
    
    .ct-main-menu .sub-menu .sub-menu {
        border-left: 2px solid var(--secondary-color);
        padding-left: 18px;
    }
    
    .hero-slider-container {
        height: 540px;
    }
    
    .hero-slide-title {
        font-size: 2.4rem;
    }
    
    .cta-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-copyright-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .about-page-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .counter-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .counter-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}
