/* =========================================
   VARIABLES & GLOBAL STYLES
   ========================================= */
:root {
    --primary-navy: #111E38;
    --primary-navy-dark: #1a2d4f;
    --primary-navy-darker: #1e3560;
    --accent-gold: #D4A64A;
    --text-off-white: #F7F6F5;
    --bg-light: #eeecea;
    --bg-card: #ffffff;
    --text-body: #4b5563;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--text-off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    border-radius: 999px;
}

.section-subheading {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 3rem;
    color: var(--text-body);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-navy);
    border-bottom: 3px solid var(--accent-gold);
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
    transition: transform var(--transition-smooth);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-off-white);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-gold);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    border: 1px solid var(--accent-gold);
    padding: 6px 16px;
    border-radius: 4px;
}
.nav-links a.active::after {
    display: none;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 2px;
    background-color: var(--text-off-white);
    transition: var(--transition-smooth);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    border: 1px solid var(--accent-gold);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--text-off-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-off-white);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    background-color: var(--primary-navy);
    padding: 160px 0 100px 0;
    color: var(--text-off-white);
    overflow: hidden;
}

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

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-off-white);
    margin-bottom: 1.5rem;
}

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

.hero-content p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Blur effects */
.hero-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero-blur-1 {
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(212, 166, 74, 0.08);
}

.hero-blur-2 {
    bottom: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    background-color: rgba(30, 53, 96, 0.4);
}

/* =========================================
   WHY CHOOSE SECTION (FEATURES)
   ========================================= */
.why-choose {
    padding: 100px 0;
    background-color: var(--bg-card);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background-color: var(--text-off-white);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-body);
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services {
    padding: 100px 0;
    background-color: var(--text-off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: rgba(17, 30, 56, 0.05);
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-body);
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-navy);
}

.service-list li span {
    color: var(--accent-gold);
    font-weight: bold;
}

/* =========================================
   CALCULATOR SECTION
   ========================================= */
.calculator-section {
    padding: 100px 0;
    background-color: var(--bg-card);
}

.calc-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    margin-top: 4rem;
    background-color: var(--text-off-white);
    padding: 50px;
    border-radius: 24px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.input-header label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.value-badge {
    background-color: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-navy);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #cbd5e1;
    border-radius: 10px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-navy);
    border: 3px solid var(--accent-gold);
    cursor: pointer;
    transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calc-results-area {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.result-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.result-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-body);
}

.result-value {
    font-size: 1.15rem;
    font-weight: 700;
}

.invested-color { color: var(--primary-navy); }
.returns-color { color: #16a34a; }

.total-box {
    border-bottom: none;
    padding-top: 10px;
}

.total-box .result-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.total-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-navy);
}

/* SVG Chart wrapper */
.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 2rem;
}

.chart-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
}

.circular-chart {
    display: block;
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3.5;
}

.circle {
    fill: none;
    stroke: var(--accent-gold);
    stroke-width: 3.5;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.chart-center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.chart-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-body);
    text-transform: uppercase;
}

.chart-subtitle {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-navy);
}

.chart-legend {
    display: flex;
    gap: 20px;
}

.legend-item {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-invested { background-color: #cbd5e1; }
.dot-returns { background-color: var(--accent-gold); }

.calc-disclaimer {
    font-size: 0.65rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.4;
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonials {
    padding: 100px 0;
    background-color: var(--text-off-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.testimonial-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stars {
    color: var(--accent-gold);
    font-size: 1.25rem;
}

.quote {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-body);
    line-height: 1.6;
    flex-grow: 1;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 1rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.25rem;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--primary-navy);
    color: var(--text-off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.name {
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 0.95rem;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
    padding: 100px 0;
    background-color: var(--bg-card);
}

.contact-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-body);
    margin-bottom: 3rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    color: var(--primary-navy);
    font-weight: 600;
}

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

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    color: var(--primary-navy);
}

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

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--text-off-white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.form-group input, .form-group select, .form-group textarea {
    background-color: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-navy);
}

.btn-submit {
    background-color: var(--primary-navy);
    color: var(--text-off-white);
    border: 1px solid var(--primary-navy);
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-submit:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    border-color: var(--accent-gold);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--primary-navy);
    padding: 40px 0;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    font-size: 0.85rem;
}

/* =========================================
   RESPONSIVE LAYOUTS
   ========================================= */
@media (max-width: 992px) {
    .calc-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 30px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .section-heading { font-size: 2rem; }
    
    .hamburger { display: flex; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-navy);
        flex-direction: column;
        gap: 0;
        border-top: 1px solid rgba(255,255,255,0.05);
        border-bottom: 2px solid var(--accent-gold);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        width: 100%;
        padding: 18px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.03);
    }
    
    .nav-links a.active {
        border: none;
        border-left: 4px solid var(--accent-gold);
        border-radius: 0;
    }
    
    .nav-links a::after { display: none; }
    
    .hero-content h1 { font-size: 2.25rem; }
    .hero-content p { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; }
    
    /* Hamburger active animation */
    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
