/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: #0f294a;          /* Deep Luxury Navy */
    --primary-light: #183e6d;
    --primary-rgb: 15, 41, 74;
    --accent: #c5a059;           /* Premium Gold/Champagne */
    --accent-hover: #a88543;
    --accent-rgb: 197, 160, 89;
    --success: #059669;          /* Emerald Green */
    --danger: #dc2626;           /* Crimson Red */
    --warning: #d97706;          /* Amber */
    
    /* Neutral Tones */
    --bg-light: #f8fafc;
    --bg-dark: #070d19;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-light: #f8fafc;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    /* Layout Variables */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(15, 41, 74, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(15, 41, 74, 0.15);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   REUSABLE UTILITIES & BUTTONS
   ========================================================================== */
.section-padding {
    padding: 100px 0;
}

.section-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.bg-light {
    background-color: var(--bg-light);
}

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

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    background-color: rgba(197, 160, 89, 0.15);
    color: var(--accent-hover);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.95rem;
}

.btn-block {
    display: flex;
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 10px;
}

.badge-success {
    background-color: rgba(5, 150, 105, 0.15);
    color: var(--success);
}

.badge-danger {
    background-color: rgba(220, 38, 38, 0.15);
    color: var(--danger);
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 41, 74, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 12px 0;
    background-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.header-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-light);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
}

.logo-has-img {
    padding: 0;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.logo-accent {
    color: var(--accent);
    margin-right: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

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

.header-cta {
    margin-left: 20px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('assets/hero.webp');
    background-size: cover;
    background-position: center;
    padding-top: 100px; /* Offset for header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 41, 74, 0.95) 0%, rgba(7, 13, 25, 0.8) 100%);
    z-index: 1;
}

.hero-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 750px;
    color: var(--text-light);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--accent);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-light);
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 160, 89, 0.3);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

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

.card-bullets {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.card-bullets li {
    font-size: 0.92rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-bullets li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent);
    font-size: 0.8rem;
}

/* ==========================================================================
   CALCULATOR SECTION
   ========================================================================== */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.calculator-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.calculator-intro p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.info-box {
    display: flex;
    gap: 20px;
    background-color: rgba(15, 41, 74, 0.03);
    border-left: 4px solid var(--primary);
    padding: 24px;
    border-radius: 0 8px 8px 0;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 4px;
}

.info-text h4 {
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.info-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Calculator Widget */
.calculator-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 16px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary);
    background-color: var(--bg-card);
    border-bottom-color: var(--accent);
}

.tab-content {
    padding: 30px;
}

.tab-content.hidden {
    display: none;
}

.calc-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.form-group input[type="number"],
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 41, 74, 0.08);
}

/* Range Slider */
.form-group input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    margin-top: 12px;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.form-group input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--accent-hover);
    transform: scale(1.15);
}

/* Calc Results Panel */
.calc-results {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.result-box {
    margin-bottom: 20px;
}

.result-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.result-box h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-top: 4px;
}

.result-breakdown {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-breakdown div {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
}

.result-breakdown span {
    color: var(--text-muted);
}

.result-breakdown strong {
    color: var(--text-dark);
}

/* Progress bar for TDSR */
.progress-bar-container {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 16px;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    background-color: var(--success);
    transition: width 0.4s ease;
}

.progress-danger {
    background-color: var(--danger);
}

.progress-warning {
    background-color: var(--warning);
}

.calculator-cta {
    padding: 0 30px 30px;
}

/* ==========================================================================
   HOW IT WORKS (TIMELINE)
   ========================================================================== */
.steps-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 160, 89, 0.2);
}

.step-num {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(15, 41, 74, 0.2);
    border: 3px solid #ffffff;
}

.step-card h4 {
    margin-top: 10px;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.why-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.why-content p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.feature-bullets {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bullet-item {
    display: flex;
    gap: 20px;
}

.bullet-icon {
    font-size: 1.8rem;
    color: var(--accent);
    margin-top: 4px;
}

.bullet-item h4 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.bullet-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.why-visual {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.visual-card h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.visual-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Bar Chart Mockup */
.bar-chart-mock {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bar-label {
    font-weight: 600;
    font-size: 0.88rem;
}

.bar {
    padding: 12px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 6px;
    transition: var(--transition);
}

.bar-tall {
    background-color: var(--primary);
    width: 100%;
}

.bar-short {
    background-color: var(--accent);
    width: 87%; /* Visual display of reduction */
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

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

.method-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.method-item i {
    width: 50px;
    height: 50px;
    background-color: rgba(15, 41, 74, 0.05);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.method-item div {
    display: flex;
    flex-direction: column;
}

.method-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.method-item strong {
    font-size: 1.05rem;
    color: var(--primary);
}

/* Form Styling */
.contact-form-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.main-contact-form .form-group {
    margin-bottom: 24px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.form-checkbox input {
    margin-top: 4px;
}

.form-feedback {
    margin-top: 20px;
    padding: 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-feedback.success {
    background-color: rgba(5, 150, 105, 0.12);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.form-feedback.error {
    background-color: rgba(220, 38, 38, 0.12);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.site-footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 80px 0 40px;
    font-size: 0.9rem;
}

.footer-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-about {
    max-width: 500px;
}

.footer-about .logo {
    margin-bottom: 20px;
    display: block;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

.footer-links h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.regulatory-disclosure {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .calculator-grid,
    .why-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .why-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 24px;
        box-shadow: var(--shadow-lg);
        display: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: var(--transition);
    }
    
    .main-nav.open {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .header-cta {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .hero {
        min-height: 80vh;
        padding-top: 140px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-container {
        padding: 24px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
}

/* ==========================================================================
   FLOATING WHATSAPP WIDGET
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}
