/* 
  Valutinum Advisory - CSS Stylesheet
  A clean, professional, human-made design structure.
*/

/* --- Variables --- */
:root {
    --primary-color: #1A365D; /* Deep Navy Blue */
    --primary-light: #2A4A7F;
    --accent-color: #B89768; /* Elegant Muted Gold */
    --accent-hover: #D4AF37;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #111111;
    
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Inter', Helvetica, Arial, sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 500;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: #fff; }
h2 { font-size: clamp(2rem, 3vw, 2.75rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 6rem 0;
}

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

.section-subtitle {
    display: block;
    color: var(--accent-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}

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

.btn-outline {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: none;
}

.site-header.scrolled .logo-text,
.site-header.scrolled .nav-list > li > a:not(.btn) {
    color: var(--primary-color);
}

.site-header.scrolled .mobile-toggle span {
    background-color: var(--primary-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    transition: var(--transition);
}

/* Automatically turn the dark logo pure white on the transparent header */
.site-header .logo-icon {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

/* Return the logo to its original Navy/Gold color when the header scrolls to white */
.site-header.scrolled .logo-icon {
    filter: none;
}

/* --- 1. DESKTOP VIEW (Fixed & Controlled) --- */
.site-header .logo {
    display: flex;
    align-items: center;
}

/* --- MASTER LOGO SIZING (FORCES OVERRIDE) --- */
/* Desktop Size */
img.logo-icon {
    height: 60px !important;
    width: auto !important;
    max-width: 350px !important;
    object-fit: contain !important;
}

/* Mobile Size (15px smaller) */
/* Mobile Size (15px smaller with 5px left screen padding) */
@media screen and (max-width: 768px) {
    .site-header .logo {
        padding-left: 10px !important; /* Forces exactly 5px of space from the left edge */
        margin-left: 10px !important;
    }
    
    img.logo-icon {
        height: 55px !important;
        max-width: 250px !important;
    }
}
/* --- Footer Logo --- */
.logo-icon-footer {
    /* Turns the blue PNG pure white */
    filter: brightness(0) invert(1);
    
    /* Ensures the image remains static */
    animation: none;
    transition: none;
    
    /* Default sizing for desktop */
    height: 60px;
    width: auto;
    max-width: 100%; /* Prevents it from breaking the container */
    display: block;
    margin-bottom: 1.5rem;
}

/* Mobile Responsive Sizing for Footer Logo */
@media (max-width: 768px) {
    .logo-icon-footer {
        height: 45px; /* Scales down smoothly for phones */
        /* Optional: Centers the logo in mobile view if you want */
        /* margin: 0 auto 1.5rem auto; */ 
    }
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list > li > a {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-list > li > a:not(.btn):hover {
    color: var(--accent-color) !important;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

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

.hero-content {
    max-width: 800px;
    padding-top: 80px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.about-image img {
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* --- Approach Section --- */
.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.approach-image img {
    border-radius: 4px;
    box-shadow: -20px 20px 0 var(--bg-light);
}

.feature-list {
    margin-top: 2.5rem;
}

.feature-item {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent-color);
}

/* --- WhatsApp CTA Box --- */
.whatsapp-box {
    margin-top: 2.5rem;
    background: #fff;
    padding: 3.5rem 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.whatsapp-box h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.whatsapp-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Button Layout Syncing */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Forces the SVG Icon to stay exactly 24x24 pixels */
.btn-whatsapp .wa-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
}

/* Centers text vertically with the icon */
.btn-whatsapp span {
    line-height: 1;
}

/* The Continuous Pulse Animation */
@keyframes pulse-green {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.pulse-anim {
    animation: pulse-green 2s infinite;
}

/* Hover Behavior: Stops the pulse and slightly lifts the button */
.btn-whatsapp:hover {
    background-color: #1DA851;
    animation: none; 
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #fff;
}

/* --- Contact CTA Section --- */
.cta-section {
    background-color: var(--primary-color);
    color: #fff;
}

.cta-section h2 {
    color: #fff;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
}

.cta-container {
    max-width: 600px;
    text-align: center;
}

.contact-form {
    margin-top: 2.5rem;
    background: #fff;
    padding: 2.5rem;
    border-radius: 4px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.5rem;
}

.footer-brand p {
    color: #999;
    max-width: 300px;
}

.site-footer h4 {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.site-footer ul li {
    margin-bottom: 0.75rem;
}

.site-footer ul li a {
    color: #999;
}

.site-footer ul li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    color: #999;
    margin-bottom: 0.25rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
    font-size: 0.85rem;
}

.footer-bottom p {
    color: #666;
    margin-bottom: 0;
}

.legal-links a {
    color: #666;
    margin-left: 1.5rem;
}

.legal-links a:hover {
    color: #fff;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .about-grid, .approach-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .approach-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }
    
    .main-nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-list > li {
        width: 100%;
        text-align: center;
    }
    
    .nav-list > li > a {
        display: block;
        padding: 1rem;
        color: var(--primary-color);
    }
    
    .site-header .nav-list > li > a:not(.btn) {
        color: var(--primary-color);
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
