/*
==================================================
    STYLE.CSS
    Theme: Online Banking Security in Argentina
    Design System: Retro + Neo-Brutalism
    Color Scheme: Complementary
==================================================
*/

/* 1. ROOT VARIABLES & GLOBAL RESET
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@700;800&family=Rubik:wght@400;500&display=swap');

:root {
    /* Color Palette (Complementary: Blue & Orange) */
    --color-primary: #0D47A1; /* Deep Blue */
    --color-primary-dark: #002171;
    --color-accent: #FF9800; /* Vibrant Orange */
    --color-accent-dark: #C66900;
    --color-background: #F5F5F5; /* Retro Off-White */
    --color-background-dark: #212121; /* Dark Grey for contrast */
    --color-text: #333333;
    --color-text-light: #FFFFFF;
    --color-border: #222222;
    --color-shadow: var(--color-border);
    --color-success: #4CAF50;
    --color-error: #F44336;

    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* Spacing & Layout */
    --container-width: 1140px;
    --spacing-unit: 1rem; /* 16px */
    --header-height: 80px;

    /* Borders & Shadows (Neo-Brutalism) */
    --border-strong: 2px solid var(--color-border);
    --box-shadow-strong: 5px 5px 0px var(--color-shadow);
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. LAYOUT & TYPOGRAPHY
-------------------------------------------------- */
.main-container {
    overflow: hidden; /* Contains AOS animations */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 1.5);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: var(--spacing-unit); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: calc(var(--spacing-unit) * 2); text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: calc(var(--spacing-unit) * 0.75); }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: var(--spacing-unit);
    max-width: 75ch;
}

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

a:hover, a:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

ul {
    list-style-type: none;
}

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

.section {
    padding: calc(var(--spacing-unit) * 5) 0;
}

.section-title {
    color: var(--color-border);
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: calc(var(--spacing-unit) * -1.5);
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: #555;
}

.section-dark {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
    color: var(--color-text-light);
}

.section-light {
    background-color: #ffffff;
}

/* 3. HEADER & NAVIGATION
-------------------------------------------------- */
.header {
    background: var(--color-background);
    border-bottom: var(--border-strong);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-border);
    text-decoration: none;
}
.nav-logo:hover {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link:focus {
    color: var(--color-primary);
    text-decoration: none;
}

.nav-cta {
    padding: 0.5rem 1rem;
    border: var(--border-strong);
    background-color: var(--color-accent);
    color: var(--color-border);
    font-weight: 700;
    transition: all 0.2s ease;
}

.nav-cta:hover, .nav-cta:focus {
    background-color: var(--color-accent-dark);
    box-shadow: var(--box-shadow-strong);
    transform: translate(-3px, -3px);
    color: var(--color-border);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-border);
}

/* 4. HERO SECTION
-------------------------------------------------- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - var(--header-height));
    padding: calc(var(--spacing-unit) * 2);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--color-text-light);
}

.hero-content {
    max-width: 900px;
}

.hero-title, .hero-subtitle {
    color: var(--color-text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* 5. BUTTONS & FORMS
-------------------------------------------------- */
.button {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: var(--border-strong);
    transition: all 0.2s ease-out;
    text-decoration: none;
}

.button-primary {
    background-color: var(--color-accent);
    color: var(--color-border);
}

.button:hover, .button:focus {
    transform: translate(-4px, -4px);
    box-shadow: var(--box-shadow-strong);
    text-decoration: none;
}
.button-primary:hover, .button-primary:focus {
    background-color: var(--color-accent-dark);
    color: var(--color-border);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: var(--border-strong);
    background-color: var(--color-background);
    color: var(--color-text);
    width: 100%;
    transition: box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-primary);
}

/* 6. COMPONENTS
-------------------------------------------------- */
/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 2) 0;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-accent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}
.timeline-icon {
    position: absolute;
    top: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-background);
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}
.timeline-item:nth-child(odd) .timeline-icon {
    right: -25px;
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}
.timeline-content {
    padding: 20px 30px;
    background-color: #fff;
    border: var(--border-strong);
    position: relative;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    text-align: center;
}
.stat-item {
    padding: var(--spacing-unit);
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-accent);
}
.stat-label {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Cards (Experts, Gallery) */
.columns {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 2);
    justify-content: center;
}
.column {
    flex: 1 1 300px; /* Flex-grow, flex-shrink, flex-basis */
    max-width: 350px;
}
.is-two-thirds {
    flex-basis: calc(66.66% - var(--spacing-unit));
    max-width: calc(66.66% - var(--spacing-unit));
}
.card {
    background-color: #fff;
    border: var(--border-strong);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-strong);
}
.card-image {
    width: 100%;
    padding: var(--spacing-unit);
}
.image-container {
    width: 100%;
    overflow: hidden;
}
.image-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: var(--border-strong);
}
.card-content {
    padding: var(--spacing-unit);
    flex-grow: 1; /* Allows content to fill space */
}
.card-content h3 {
    color: var(--color-primary);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

/* Testimonials */
.testimonial-card {
    background-color: var(--color-background);
    padding: calc(var(--spacing-unit) * 2);
    border: var(--border-strong);
    border-left: 8px solid var(--color-accent);
}
.testimonial-card blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: var(--spacing-unit);
    border: none;
    padding: 0;
}
.testimonial-card cite {
    font-weight: 700;
    font-style: normal;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: var(--border-strong);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}
.faq-question:hover {
    background-color: #e0e0e0;
}
.faq-question::after {
    content: '+';
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
}
.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust as needed */
}

/* Resources */
.resources-list ul {
    max-width: 800px;
    margin: 0 auto;
}
.resources-list li {
    margin-bottom: var(--spacing-unit);
}
.resources-list a {
    display: block;
    padding: 1rem;
    background-color: #fff;
    border: var(--border-strong);
    font-weight: 500;
    transition: all 0.2s ease;
}
.resources-list a:hover {
    background-color: var(--color-accent);
    color: var(--color-border);
    transform: translate(-4px, -4px);
    box-shadow: var(--box-shadow-strong);
    text-decoration: none;
}


/* 7. FOOTER
-------------------------------------------------- */
.footer {
    background-color: var(--color-background-dark);
    color: #ccc;
    padding: calc(var(--spacing-unit) * 4) 0 calc(var(--spacing-unit) * 2);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.footer-col h3, .footer-col h4 {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-unit);
}
.footer-col p {
    color: #aaa;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: #ccc;
    text-decoration: none;
}
.footer-col a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    padding-top: calc(var(--spacing-unit) * 2);
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #aaa;
}

/* 8. SPECIFIC PAGE STYLES
-------------------------------------------------- */
.success-page-container,
.static-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.success-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-unit);
}
.success-card {
    background: #fff;
    padding: calc(var(--spacing-unit) * 3);
    border: var(--border-strong);
    box-shadow: var(--box-shadow-strong);
    max-width: 500px;
}
.success-card h1 {
    color: var(--color-success);
}
.static-page {
    padding-top: calc(var(--header-height) + var(--spacing-unit) * 3);
    padding-bottom: calc(var(--spacing-unit) * 3);
    flex-grow: 1;
}
.static-page h1 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.static-page h2 {
    text-align: left;
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
}

/* 9. RESPONSIVE DESIGN
-------------------------------------------------- */
@media (max-width: 992px) {
    .is-two-thirds {
        flex-basis: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--color-background);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-bottom: var(--border-strong);
        padding: var(--spacing-unit) 0;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 1rem 0;
    }

    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline-icon {
        left: 6px !important;
    }
}