/* ============================================
   PGB FINANCE - STATIC HTML WEBSITE
   Converted from React/TSX to Vanilla CSS
   ============================================ */

/* --- RESET & VARIABLES --- */
:root {
    --primary-gold: #D4AF37;
    --primary-gold-hover: #b4932a;
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --bg-card: #1e1e1e;
    --text-light: #ffffff;
    --text-muted: #e0e0e0;
    --border-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gold {
    color: var(--primary-gold);
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 100px 0;
}

section[id] {
    scroll-margin-top: 100px;
}

/* Shimmer Effect for Gold Text */
.text-gold-gradient {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* --- BUTTONS --- */
.btn-gold {
    background: linear-gradient(45deg, var(--primary-gold), #eacda3);
    color: #000;
    padding: 14px 35px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.btn-gold:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-gold:hover:after {
    left: 100%;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-gold:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- SOCIAL ICONS --- */
.social-icon {
    color: #ccc;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    color: #fff;
    background: var(--primary-gold);
    transform: translateY(-2px);
}

/* --- HEADER WRAPPER --- */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- TOP BAR --- */
.top-bar {
    background-color: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.85rem;
    padding: 10px 0;
    color: #aaa;
    letter-spacing: 0.5px;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-left {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.desktop-nav {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-gold);
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(90deg, #000000 0%, rgba(18, 18, 18, 0.9) 40%, rgba(18, 18, 18, 0.7) 100%),
        url("https://images.unsplash.com/photo-1560250097-0b93528c311a?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80");
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px 0;
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text-content {
    flex: 1 1 550px;
    text-align: left;
}

.hero-title {
    font-size: 4.2rem;
    margin-bottom: 25px;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 0.6em;
    display: block;
    margin-top: 15px;
    font-weight: 300;
    color: #f0f0f0;
}

.hero-text {
    font-size: 1.15rem;
    color: #d4d4d4;
    margin-bottom: 35px;
    max-width: 650px;
    line-height: 1.8;
}

.trust-badges {
    display: flex;
    gap: 25px;
    margin-top: 40px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.1rem;
}

/* --- CALCULATOR CARD --- */
.calc-card {
    flex: 1 1 380px;
    max-width: 450px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    /* overflow: hidden removed to prevent clipping */
}

.calc-header {
    background: linear-gradient(45deg, #D4AF37, #b4932a);
    color: #000;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.3rem;
    margin: 0;
}

.calc-body {
    padding: 25px;
}

.range-group {
    margin-bottom: 20px;
}

.range-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

.range-limits {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.8rem;
    margin-top: 12px;
}

.calc-summary {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    color: #ccc;
    font-size: 0.95rem;
}

.summary-row .value {
    color: #fff;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #D4AF37;
    font-size: 1.5rem;
    font-weight: 700;
}

/* --- FORMS / RANGE INPUTS --- */
input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: var(--primary-gold);
    cursor: pointer;
    margin-top: -9px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    border: 2px solid #fff;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #444;
    border-radius: 2px;
}

input[type=range]::-moz-range-thumb {
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: var(--primary-gold);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    border: 2px solid #fff;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #444;
    border-radius: 2px;
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.about-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #D4AF37;
}

.about-text {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.usp-list {
    list-style: none;
    margin-top: 25px;
}

.usp-item {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    color: #e0e0e0;
}

/* --- REQUIREMENTS SECTION --- */
.services-section {
    background-color: #0a0a0a;
    position: relative;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.req-card {
    background: #1a1a1a;
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    border-bottom: 3px solid transparent;
    border: 1px solid #222;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.req-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid var(--primary-gold);
}

.req-card i {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.req-card h3 {
    font-size: 1.2rem;
}

/* --- FAQ SECTION --- */
.faq-section {
    background-color: #050505;
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #222;
    margin-bottom: 10px;
}

.faq-question {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    border-radius: 8px;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #1a1a1a;
}

.faq-question.active {
    color: #D4AF37;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 20px;
    color: #ccc;
    line-height: 1.6;
    background-color: #0a0a0a;
    display: none;
}

.faq-answer.open {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* --- FOOTER --- */
.footer {
    background-color: #050505;
    padding: 80px 0 40px;
    border-top: 1px solid #1a1a1a;
    font-size: 0.9rem;
    color: #888;
    text-align: center;
}

.footer-brand {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-brand img {
    height: 45px;
    width: auto;
}

.footer-tagline {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
    font-size: 1rem;
}

.footer-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-grid h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-grid p {
    margin-bottom: 10px;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
}

.footer-grid ul li {
    margin-bottom: 8px;
}

.footer-grid ul li a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-grid ul li a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 30px;
    font-size: 0.85rem;
    color: #555;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-overlay.open {
    display: flex;
}

.modal-content-custom {
    background-color: #1e1e1e;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-btn-custom {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    background: none;
    border: none;
    font-family: inherit;
}

.close-btn-custom:hover {
    color: #fff;
}

.form-grid-custom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    color: #ccc;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 14px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    font-family: 'Poppins', sans-serif;
}

.form-input:focus {
    border-color: var(--primary-gold);
}

.form-input.error {
    border-color: #ff4444;
}

.file-grid-custom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.file-box {
    border: 1px dashed #444;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: #151515;
    overflow: hidden;
    /* Prevent children from leaking out */
}

.file-box.uploaded {
    border: 2px solid #D4AF37;
}

.file-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-box i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.file-box span {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Ensure padding doesn't push width over 100% */
}

.file-box.uploaded span {
    color: #fff;
}

.error-msg {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.error-banner {
    padding: 15px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
    border-radius: 6px;
    margin: 20px 0;
}

.success-box {
    text-align: center;
    padding: 40px 20px;
}

.success-box i {
    font-size: 5rem;
    margin-bottom: 25px;
}

.success-box h2 {
    color: #fff;
    margin-bottom: 15px;
}

.success-box p {
    color: #ccc;
    margin-bottom: 35px;
}

.docs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: scale(0.95) translateY(-20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    to {
        transform: scale(0.95) translateY(-20px);
        opacity: 0;
    }
}

.modal-overlay.open .modal-content-custom {
    animation: slideIn 0.3s ease-out;
}

.modal-overlay.closing {
    animation: fadeOut 0.3s forwards;
}

.modal-overlay.closing .modal-content-custom {
    animation: slideOut 0.3s forwards;
}

/* --- ADMIN PAGE --- */
.admin-login {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #121212;
}

.admin-login-card {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #333;
    text-align: center;
    position: relative;
}

.admin-dashboard {
    padding: 120px 20px 50px 20px;
    min-height: 100vh;
    background: #121212;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
}

.admin-filter-group {
    flex: 1 1 150px;
}

.admin-filter-group.search {
    flex: 1 1 300px;
}

.admin-filter-group label {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.admin-table-wrapper {
    overflow-x: auto;
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    min-width: 1000px;
}

.admin-table thead tr {
    background: #111;
    border-bottom: 1px solid #333;
}

.admin-table th {
    padding: 20px 15px;
    text-align: left;
    color: #D4AF37;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.admin-table tbody tr {
    border-bottom: 1px solid #2a2a2a;
    transition: background 0.2s;
}

.admin-table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.admin-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.admin-table td {
    padding: 15px;
}

.device-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.device-badge.mobile {
    background: rgba(76, 175, 80, 0.1);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.device-badge.desktop {
    background: rgba(33, 150, 243, 0.1);
    color: #64b5f6;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.status-select {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.status-select.pending {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
}

.status-select.approved {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.status-select.rejected {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.notes-input {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 10px;
    font-size: 0.85rem;
    width: 100%;
    min-width: 150px;
    border-radius: 6px;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.notes-input:focus {
    border-color: var(--primary-gold);
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-input-wrapper input {
    padding-left: 35px;
}

.admin-btn {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #D4AF37;
    color: #D4AF37;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.admin-btn-secondary {
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.empty-state {
    padding: 60px 40px;
    text-align: center;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* --- SEO PAGES --- */
.seo-page-container {
    padding: 150px 0 100px 0;
    min-height: 80vh;
    background: #121212;
}

.seo-content {
    color: #d4d4d4;
    line-height: 1.9;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.seo-content h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: #fff;
    line-height: 1.2;
}

.seo-content h2 {
    color: #fff;
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.seo-content p {
    margin-bottom: 20px;
}

.seo-content ul {
    margin-bottom: 20px;
    margin-left: 20px;
    color: #ccc;
}

.seo-cta {
    margin-top: 50px;
    text-align: center;
}

.seo-cta .btn-gold {
    font-size: 1.2rem;
    padding: 18px 50px;
}

.seo-cta p {
    margin-top: 15px;
    color: #888;
    font-size: 0.9rem;
}

/* --- MOBILE RESPONSIVENESS --- */
.mobile-hamburger {
    display: none;
}

/* --- MOBILE MENU DRAWER --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 300px;
    height: 100%;
    background: #111;
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
}

.mobile-menu-drawer.open {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header img {
    max-height: 50px;
    width: auto;
    display: block;
}

.mobile-menu-links {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-menu-links .nav-link {
    font-size: 1.2rem;
}

.mobile-menu-footer {
    margin-top: auto;
    padding: 25px 20px;
    border-top: 1px solid #333;
    background-color: #111;
}

.mobile-menu-footer .contact-item {
    margin-bottom: 15px;
    color: #ccc;
    font-size: 0.9rem;
}

.mobile-menu-footer .contact-item i {
    width: 20px;
}

.mobile-menu-social {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    border-top: 1px solid #222;
    padding-top: 15px;
}

.mobile-menu-social .social-icon {
    font-size: 1.2rem;
}

/* --- HIDDEN PAGES (SPA Routing) --- */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 768px) {
    .top-bar {
        display: none !important;
    }

    .desktop-nav {
        display: none !important;
    }

    .mobile-hamburger {
        display: block;
    }

    .hero-section {
        padding: 100px 0 60px 0;
        /* Reduced top/bottom padding for mobile */
        min-height: auto;
        /* Allow section to grow with content on mobile */
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .hero-container {
        flex-direction: column;
        gap: 30px;
        /* Reduced gap */
    }

    .calc-card {
        max-width: 100%;
        flex-basis: auto;
        /* Allow card to grow with content */
        overflow: visible;
        /* Prevent clipping of button shadows or content */
    }

    .calc-body {
        padding: 25px 20px 40px 20px;
        /* Added extra bottom padding */
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }

    .modal-content-custom {
        padding: 25px 20px;
        max-height: 95vh;
        width: 95%;
    }

    .form-grid-custom {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .file-grid-custom {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .file-grid-custom {
        grid-template-columns: 1fr;
    }

    .close-btn-custom {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}