/*
Theme Name: CS Wealth Securities Theme
Theme URI: https://www.cswsec.com.hk/
Description: A premium, modern, responsive corporate theme for CS Wealth Securities Limited, featuring bilingual localization.
Version: 1.0
Author: Cosmas Chan
Text Domain: cswsec-theme
*/

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

:root {
    /* Color Palette */
    --primary: hsl(43, 60%, 42%);
    /* Brand color adjustments for readability on light backgrounds */
    --primary-light: hsl(43, 60%, 53%);
    --primary-dark: hsl(43, 60%, 32%);
    --secondary: hsl(335, 65%, 28%);
    /* Deep Burgundy */
    --bg-main: hsl(210, 20%, 96%);
    /* Light warm background */
    --bg-surface: hsl(0, 0%, 100%);
    /* White panels */
    --bg-glass: rgba(255, 255, 255, 0.85);
    /* White glassmorphism */
    --border-gold: rgba(191, 161, 95, 0.35);
    /* Visible gold border */
    --border-glow: rgba(191, 161, 95, 0.5);
    --text-primary: hsl(222, 24%, 12%);
    /* Charcoal black text */
    --text-secondary: hsl(220, 12%, 35%);
    /* Slate gray text */
    --text-muted: hsl(220, 8%, 55%);
    --success: hsl(145, 63%, 49%);

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 0 20px rgba(191, 161, 95, 0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light Theme Styling */
.top-nav {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background-color: var(--primary);
    color: #fff;
}

.hero-content h1 {
    background: linear-gradient(135deg, hsl(0, 0%, 98%) 40%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: hsl(210, 14%, 80%);
}

.hero-section .btn-outline {
    color: hsl(0, 0%, 98%) !important;
    border-color: var(--border-white) !important;
}

.hero-section .btn-outline:hover {
    background-color: rgba(191, 161, 95, 0.08) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.forms-table th {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--border-gold);
}

.forms-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.forms-table tr:hover td {
    background-color: rgba(0, 0, 0, 0.015);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.back-to-top-btn {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.tab-nav-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: hsl(0, 0%, 98%) !important;
    border-color: var(--primary) !important;
}

.main-cta-section {
    background: linear-gradient(135deg, hsl(335, 60%, 20%) 0%, hsl(222, 24%, 10%) 100%);
    color: hsl(0, 0%, 98%) !important;
}

.main-cta-section h2 {
    color: hsl(0, 0%, 98%) !important;
}

.main-cta-section p {
    color: hsl(210, 14%, 80%) !important;
}

.main-cta-section .doc-link {
    color: var(--primary-light) !important;
}

.main-cta-section .doc-link:hover {
    color: var(--primary) !important;
}

.map-wrapper iframe {
    filter: none;
}

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

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

/* Global Layout Grid */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 0;
    font-size: 13px;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Selector Dropdown */
.lang-selector {
    position: relative;
    cursor: pointer;
}

.lang-btn {
    background-color: #fff;
    border: 1px solid var(--border-gold);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.lang-btn:hover {
    background-color: #fff;
    border-color: var(--primary);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    width: 120px;
    z-index: 200;
}

.lang-selector:hover .lang-dropdown,
.lang-selector:focus-within .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.lang-dropdown li:hover {
    background-color: rgba(191, 161, 95, 0.12);
    color: var(--primary);
}

/* Main Navigation */
.main-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px;
}

/* Logo Wrap Layout */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.logo-wrap:hover {
    opacity: 0.9;
}

.logo-icon-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
    text-align: left;
}

.logo-title-cn {
    font-family: 'Outfit', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.04em;
}

.logo-title-en {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.logo-license {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 0.02em;
    margin-top: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

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

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-main);
    box-shadow: 0 4px 15px rgba(191, 161, 95, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 6px 20px rgba(191, 161, 95, 0.4);
    color: var(--bg-main);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background-color: rgba(191, 161, 95, 0.08);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

/* Hero Section */
.hero-section {
    background-image: url("https://demo.cosmas.io/cswsec/wp-content/uploads/2026/06/hero_banner_v3.png");
    background-repeat: no-repeat, repeat;
    background-size: cover;
    background-position: center;
    padding: 96px 0;
    border-bottom: 1px solid var(--border-gold);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 48px;
}

.hero-content h1 {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, hsl(0, 0%, 100%) 40%, hsl(0, 0%, 98%) 100%) -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    color: #fff;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-glow-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(191, 161, 95, 0.2) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 1;
}

.hero-svg-illustration {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
    animation: floating 4s ease-in-out infinite alternate;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-15px);
    }
}

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

.section-title-wrap {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Investment Cards Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.invest-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.invest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 70%, rgba(191, 161, 95, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
}

.invest-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md), var(--shadow-gold);
}

.invest-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.invest-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.invest-card:hover h3 {
    color: var(--primary);
}

.invest-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

.hover-info-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition);
}

.invest-card:hover .hover-info-badge {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-main);
}

/* Security Section */
.security-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.security-card {
    background-color: var(--bg-glass);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
}

.security-card:hover {
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.security-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: rgba(191, 161, 95, 0.1);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.security-card-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.security-card-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Main CTA Section */
.main-cta-section {
    background: linear-gradient(135deg,
            #015294 0%,
            #01457c 50%,
            #013565 100%);
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    padding: 64px 0;
    text-align: center;
}

.cta-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.cta-wrap h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.cta-wrap p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.badge-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.store-badge img {
    width: 200px;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.store-badge img:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(6, 8, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    opacity: 0;
    position: relative;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--primary);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
}

.modal-footer {
    padding: 20px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
}

/* Service Card Hover Modals Customizations */
#modal-risk-hk-us,
#modal-risk-struct,
#modal-risk-margin,
#modal-risk-ipo {
    pointer-events: none;
    /* Let hovers/clicks pass through to the cards beneath */
    background-color: transparent;
    /* Remove background overlay */
    backdrop-filter: none;
    /* Remove backdrop blur */
    -webkit-backdrop-filter: none;
}

#modal-risk-hk-us .modal-box,
#modal-risk-struct .modal-box,
#modal-risk-margin .modal-box,
#modal-risk-ipo .modal-box {
    pointer-events: auto;
    /* Re-enable mouse interactions on the popup itself */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    /* Give it a more defined drop shadow */
}

/* Hide close button and footer close button */
#modal-risk-hk-us .modal-close-btn,
#modal-risk-struct .modal-close-btn,
#modal-risk-margin .modal-close-btn,
#modal-risk-ipo .modal-close-btn,
#modal-risk-hk-us .modal-footer,
#modal-risk-struct .modal-footer,
#modal-risk-margin .modal-footer,
#modal-risk-ipo .modal-footer {
    display: none !important;
}

/* About Page specific layout */
.about-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin: 40px auto 0;
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-card-title {
    font-size: 28px;
    color: var(--primary);
    text-align: left;
}

.about-page .section-title-wrap {
    text-align: left;
    margin-bottom: 40px;
}

.about-page .section-title::after {
    margin: 12px 0 0;
}

.about-grid {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.about-image-wrapper {
    flex: 0 0 35%;
    max-width: 35%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-gold);
}

.about-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.about-content {
    flex: 1;
}

.about-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
}

/* Account Opening Tab Layout */
.tab-layout-grid {
    display: grid;
    grid-template-columns: 0.2fr 0.8fr;
    gap: 40px;
    margin-top: 40px;
}

.tab-nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tab-nav-item {
    padding: 16px 20px;
    background-color: var(--bg-glass);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-nav-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-nav-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: var(--bg-main);
    box-shadow: var(--shadow-sm);
}

.tab-content-panel {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content-panel h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary);
}

.tab-content-panel p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.branch-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.branch-info-item {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.branch-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.branch-info-label {
    width: 140px;
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
    flex-shrink: 0;
}

.branch-info-val {
    color: var(--text-secondary);
    font-size: 15px;
}

/* App Download Layout */
.app-download-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.app-platform-section {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.app-platform-section.reverse {
    direction: rtl;
}

.app-platform-section.reverse .app-info-panel {
    direction: ltr;
}

.app-platform-section.reverse .app-mockup {
    direction: ltr;
}

.app-info-panel h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--primary);
}

.app-info-panel p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.app-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.app-mockup {
    display: flex;
    justify-content: center;
}

.app-tutorial-card {
    background-color: var(--bg-glass);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}

.app-tutorial-text {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-tutorial-text i {
    font-size: 32px;
    color: var(--primary);
}

.app-tutorial-text h3 {
    font-size: 18px;
    color: var(--text-primary);
}

/* Forms Download Layout */
.forms-table-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 40px;
    box-shadow: var(--shadow-md);
}

.forms-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.forms-table th {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-gold);
    padding: 20px 24px;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
}

.forms-table td {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 15px;
    color: var(--text-secondary);
}

.forms-table tr:last-child td {
    border-bottom: none;
}

.forms-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
    color: var(--text-primary);
}

.download-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(191, 161, 95, 0.1);
    border: 1px solid var(--border-gold);
    color: var(--primary);
    transition: var(--transition);
}

.download-link-btn:hover {
    background-color: var(--primary);
    color: var(--bg-main);
    transform: scale(1.1);
}

/* Contact Us Layout */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-card h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--primary);
}

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

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(191, 161, 95, 0.08);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-val {
    font-size: 16px;
    color: var(--text-secondary);
}

.contact-val a {
    color: var(--text-secondary);
}

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

.whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(191, 161, 95, 0.1);
    border: 1px solid rgba(191, 161, 95, 0.3);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.map-wrapper {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 450px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%); */
}

/* Footer */
footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-gold);
    padding: 64px 0 32px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h2 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-col h3 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

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

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright-text {
    color: var(--text-muted);
    font-size: 13px;
}

.back-to-top-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.back-to-top-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.policy-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.policy-card h2 {
    color: var(--primary);
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-gold);
    padding-bottom: 8px;
}

.policy-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: justify;
}

.policy-card ul {
    margin-left: 24px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.policy-card li {
    margin-bottom: 8px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .tab-layout-grid {
        grid-template-columns: 1fr;
    }

    .app-platform-section {
        grid-template-columns: 1fr;
        padding: 36px;
    }

    .app-platform-section.reverse {
        direction: ltr;
    }

    .contact-layout-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Handled by mobile responsive JS drawer */
    }

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

    .hero-content h1 {
        font-size: 38px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .about-card {
        padding: 24px;
        gap: 24px;
    }

    .about-card-title {
        text-align: center;
    }

    .about-grid {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .about-image-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tab-content-panel {
        padding: 24px;
    }

    .app-platform-section {
        padding: 24px;
    }

    .hero-section {
        background-position: left;
    }

    .policy-card {
        padding: 24px;
    }
}