/**
 * GAT Insulation - Main Stylesheet
 * Color Scheme:
 * - Primary Dark: #1a1a1a (header/footer)
 * - Primary Light: #f5f3ef (background)
 * - Accent Gold: #d4a84b (highlights)
 * - Text Dark: #333333
 * - Text Muted: #888888
 */

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

:root {
    --primary-dark: #1a1a1a;
    --primary-light: #f5f3ef;
    --accent-gold: #d4a84b;
    --text-dark: #333333;
    --text-muted: #888888;
    --white: #ffffff;
    --border-color: #e0ddd8;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-light);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--white);
}

.btn-primary:hover {
    background: #c49a3f;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--white);
}

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

.btn-dark:hover {
    background: #2d2d2d;
}

/* Header */
.header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--accent-gold);
}

.logo-subtitle {
    font-size: 0.65rem;
    letter-spacing: 6px;
    color: var(--text-muted);
    margin-top: -4px;
}

.logo-image {
    max-height: 50px;
    width: auto;
}

.logo-company-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Navigation */
.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list a {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    padding: 8px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a.active {
    color: var(--accent-gold);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 220px;
    padding: 12px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    margin-top: 15px;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--white);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 8px;
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.dropdown a:hover {
    background: var(--primary-light);
    color: var(--accent-gold);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26,26,26,0.95) 0%, rgba(26,26,26,0.7) 50%, rgba(26,26,26,0.4) 100%);
    z-index: 1;
}

/* Video Background */
.hero-video {
    background: none;
}

.hero-video::before {
    display: none;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0.7) 50%, rgba(26,26,26,0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--accent-gold);
}

.hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Fallback for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-video-bg {
        display: none;
    }
    .hero-video {
        background-image: url('../images/hero-bg.jpg');
        background-size: cover;
        background-position: center;
    }
}

/* Contact Bar */
.contact-bar {
    background: var(--accent-gold);
    padding: 15px 0;
}

.contact-bar .container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 0.95rem;
}

.contact-bar-item svg {
    width: 20px;
    height: 20px;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-header .accent-line {
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 20px auto 0;
}

/* Branch Cards */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.branch-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.branch-card-image {
    height: 200px;
    overflow: hidden;
}

.branch-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.branch-card-content {
    padding: 25px;
}

.branch-card h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.branch-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.branch-card .btn {
    width: 100%;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

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

.service-card-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-card-icon img {
    width: 35px;
    height: 35px;
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.service-card .learn-more {
    color: var(--accent-gold);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-card .learn-more:hover {
    gap: 10px;
}

/* Service Cards with Images */
.services-grid-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card-image {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-image::before {
    display: none;
}

.service-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.service-card-image:hover .service-card-img img {
    transform: scale(1.08);
}

.service-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f3ef 0%, #e8e5e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-content h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.service-card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex: 1;
}

.service-card-content .learn-more {
    color: var(--accent-gold);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.service-card-content .learn-more:hover {
    gap: 10px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

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

/* Service Detail */
.service-detail {
    padding: 80px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.back-link:hover {
    color: var(--accent-gold);
}

.service-detail-content h1 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.service-detail-content p {
    color: var(--text-muted);
    line-height: 1.8;
}

.service-detail-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    position: sticky;
    top: 100px;
}

/* Clients/Partners */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.client-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.client-card img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.client-card:hover {
    box-shadow: var(--shadow-hover);
}

.client-card:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Suppliers */
.suppliers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.supplier-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.supplier-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.supplier-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    width: 100%;
    margin-bottom: 15px;
}

.supplier-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(50%);
    opacity: 0.8;
    transition: var(--transition);
}

.supplier-card:hover .supplier-logo img {
    filter: grayscale(0);
    opacity: 1;
}

.supplier-name-placeholder {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.supplier-info {
    margin-bottom: 15px;
}

.supplier-info h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.supplier-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.supplier-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-gold);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    margin-top: auto;
}

.supplier-link:hover {
    color: var(--text-dark);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26,26,26,0.4);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--white);
    z-index: 1;
    transition: var(--transition);
}

.gallery-item:hover .zoom-icon {
    transform: translate(-50%, -50%) scale(1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* Brochures */
.brochures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.brochure-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.brochure-card:hover {
    box-shadow: var(--shadow-hover);
}

.brochure-cover {
    height: 280px;
    overflow: hidden;
}

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

.brochure-content {
    padding: 25px;
}

.brochure-content h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.brochure-content .btn {
    width: 100%;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info-card {
    background: var(--primary-dark);
    padding: 40px;
    border-radius: 12px;
    color: var(--white);
}

.contact-info-card h3 {
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item svg {
    color: var(--accent-gold);
    flex-shrink: 0;
}

.contact-info-item h4 {
    margin-bottom: 5px;
}

.contact-info-item p {
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background: var(--white);
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
}

.footer-skyline {
    height: 100px;
    overflow: hidden;
}

.footer-skyline img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.footer-content {
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    font-size: 1.8rem;
}

.footer-logo .logo-company-name {
    font-size: 1.1rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1rem;
}

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

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

.footer-col ul a:hover {
    color: var(--accent-gold);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info svg {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Page Header */
.page-header {
    background: var(--primary-dark);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* Utilities */
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 2rem; }

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
}

.lang-btn {
    padding: 5px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: #333;
}

.lang-btn.active {
    color: var(--accent-gold);
    font-weight: 600;
}

.lang-divider {
    color: #999;
    font-size: 0.8rem;
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    padding: 12px 20px 12px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float-icon svg {
    width: 26px;
    height: 26px;
}

.whatsapp-float-text {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    padding-right: 5px;
}

/* Pulse Animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Entrance Animation */
.whatsapp-float {
    animation: whatsapp-slide-in 0.5s ease-out 1s both;
}

@keyframes whatsapp-slide-in {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 10px;
        border-radius: 50%;
    }

    .whatsapp-float-text {
        display: none;
    }

    .whatsapp-float-icon {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(212, 168, 75, 0.4);
}

.scroll-to-top:hover {
    background: #c49a42;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 168, 75, 0.5);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* RTL adjustment for scroll-to-top */
html[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 30px;
}

@media (max-width: 768px) {
    html[dir="rtl"] .scroll-to-top {
        left: 20px;
        right: auto;
    }
}

/* ============================================
   TESTIMONIALS SLIDER
   ============================================ */

.testimonials-section {
    background: var(--white);
    overflow: hidden;
}

.testimonials-slider-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.testimonial-card {
    background: var(--primary-light);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    position: relative;
}

.testimonial-quote {
    color: var(--accent-gold);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-quote svg {
    width: 50px;
    height: 50px;
}

.testimonial-content {
    margin-bottom: 25px;
}

.testimonial-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin: 0;
}

.testimonial-rating {
    margin-bottom: 25px;
}

.testimonial-rating .star {
    font-size: 1.25rem;
    color: #ddd;
    margin: 0 2px;
}

.testimonial-rating .star.filled {
    color: var(--accent-gold);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-avatar-placeholder {
    background: var(--accent-gold);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.testimonial-info {
    text-align: left;
}

.testimonial-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 4px 0;
}

.testimonial-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Slider Controls */
.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--white);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot:hover {
    background: var(--accent-gold);
    opacity: 0.7;
}

.slider-dot.active {
    background: var(--accent-gold);
    transform: scale(1.2);
}

/* RTL Support for Testimonials */
html[dir="rtl"] .testimonial-info {
    text-align: right;
}

html[dir="rtl"] .slider-prev svg {
    transform: rotate(180deg);
}

html[dir="rtl"] .slider-next svg {
    transform: rotate(180deg);
}

/* Responsive Testimonials */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 30px 20px;
    }

    .testimonial-content p {
        font-size: 1rem;
    }

    .testimonial-quote svg {
        width: 40px;
        height: 40px;
    }

    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }

    .testimonial-info h4 {
        font-size: 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn svg {
        width: 20px;
        height: 20px;
    }

    .testimonials-controls {
        gap: 15px;
    }

    .slider-dots {
        gap: 8px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }
}