/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@300;400&display=swap');

/* CSS Variables */
:root {
    --color-primary: #C8A061; /* Old Gold */
    --color-secondary: #C77D5F; /* Terracota Suave */
    --color-tertiary: #c7ab5f; /* Gold */
    --color-neutral-dark: #000000; /* Negro */
    --color-neutral-light: #F8F4F0; /* Blanco Roto */
    --color-neutral-light-gray: #E3E3E3; /* Blanco Roto */
    --color-background-images: #f5f4ef;
    --color-backgound-middle: rgba(232, 155, 102, 0.1);
    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1200px;
    --section-padding: 6rem 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-neutral-dark);
    background-color: var(--color-neutral-light);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--color-neutral-dark);
    line-height: 1.3;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--color-tertiary);
}

ul {
    list-style-position: inside;
    padding-left: 1rem;
}

ul li {
    margin-bottom: 0.5rem;
}

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

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

section {
    padding: var(--section-padding);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-family: var(--font-headings);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-tertiary);
    border-color: var(--color-tertiary);
    color: var(--color-neutral-dark);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-neutral-dark);
}


.btn-secondary {
    background-color: transparent;
    color: var(--color-neutral-light);
    border-color: var(--color-neutral-light);
}

.btn-secondary:hover {
    background-color: var(--color-neutral-light);
    color: var(--color-neutral-dark);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    background-color: var(--color-neutral-dark)
}

.main-header.scrolled {
    background-color: var(--color-neutral-dark);
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.main-header .logo, .main-header .logo img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.main-header.scrolled .logo, .main-header.scrolled .logo img {
    height: 50px;
}

.main-header .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-header .nav-menu a {
    color: var(--color-neutral-light);
    font-family: var(--font-headings);
    font-weight: 600;
    position: relative;
}

.main-header .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-header .nav-menu a:hover::after {
    width: 100%;
}

.main-header .btn {
    margin: 0 10px;
}
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-neutral-dark);
    padding: 1rem;
    border-radius: 5px;
    list-style: none;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin-bottom: 0.5rem;
}

.dropdown-menu a {
    white-space: nowrap;
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .6)), url('../assets/hero_background_2.jpg') no-repeat center;
    background-color: #000000;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0% 5%;
}

.hero-content h1 {
    color: var(--color-tertiary);
    margin-bottom: 7rem;
    border-color: #C77D5F;
    border-width: 2px;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-weight: 300;
    text-align: justify;
}

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

/* Who We Are Section */
.who-we-are-section {
    background-color: var(--color-neutral-light);
}

.who-we-are-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Our Mission Section */
.mission-section {
    background-color:var(--color-backgound-middle); /* #E89B66 with low opacity */
    text-align: center;
}

.mission-section blockquote {
    font-size: 1.5rem;
    font-family: var(--font-headings);
    font-weight: 600;
    max-width: 900px;
    margin: 0 auto;
    border: none;
}

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

.why-valorem-item {
    text-align: center;
}

.why-valorem-item .why-valorem-icon {
    height: 200px;
    margin-bottom: 1rem;
}

.why-valorem-item h4 {
    margin-bottom: 0.5rem;
}

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

.service-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.12);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--color-background-images);
}

.service-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-content h3 {
    margin-bottom: 1rem;
}

.service-card-content p {
    flex-grow: 1;
}

.service-card-content .btn {
    margin-top: 1.5rem;
    align-self: flex-start;
}

/* About Us Section */
.founders-container {
    display: flex;
    gap: 3rem;
}

.founder-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.founder-image {
    margin-bottom: 1.5rem;
}

.founder-image img {
    width: 40%;
    border-radius: 10px;
}

.founder-text h4 {
    color: var(--color-secondary);
    margin-top: 1.5rem;
}

.founder-socials {
    margin-top: 1.5rem;
}

.founder-socials a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-tertiary);
    font-weight: 600;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info p {
    font-size: 1.1rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.contact-info li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form .form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Final CTA Section */
.final-cta-section {
    background-color: var(--color-neutral-dark);
    color: var(--color-neutral-light);
    text-align: center;
}

.final-cta-section h2, .final-cta-section p {
    color: var(--color-neutral-light);
}

.final-cta-section .btn {
    margin-top: 1.5rem;
}

/* Nearshore Application Section */
.nearshore-apply-section {
    background-color: var(--color-backgound-middle);
}

.nearshore-apply-content {
    padding: 2rem;
    margin-top: 1rem;
    /* border: 1px solid #eee; */
    border-radius: 5px;
    /* background: #fff; */
}





.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Footer */
.main-footer {
    background-color: var(--color-neutral-dark);
    color: var(--color-neutral-light);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--color-neutral-light);
    margin-bottom: 1.5rem;
    font-family: var(--font-headings);
}

.footer-col .logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: var(--color-neutral-light);
    opacity: 0.8;
}

.footer-col ul a:hover {
    opacity: 1;
    color: var(--color-tertiary);
}

.footer-socials a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(248, 244, 240, 0.2);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Service Page Specific */
.service-page-header {
    padding: 8rem 0 4rem 0;
    background-color: var(--color-neutral-dark);
    color: var(--color-neutral-light);
}

.service-page-header h1, .service-page-header h2 {
    color: var(--color-neutral-light);
}

.service-page-header h2 {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.5rem;
    max-width: 800px;
}

.service-page-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.service-page-content img {
    border-radius: 10px;
    margin-top: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-content, .service-page-content {
        grid-template-columns: 1fr;
    }

    .founders-container {
        flex-direction: column;
    }
    
    .service-page-content img {
        order: -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
    }
    
    .main-header {
        padding: 0.5rem 0;
        background-color: var(--color-neutral-dark); /* Always dark on mobile */
    }

    .main-header .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: var(--color-neutral-dark);
        padding: 1rem 0;
        gap: 0.5rem;
    }
    
    .main-header .nav-menu.active {
        display: flex;
    }

    .main-header .nav-menu > li {
        width: 100%;
        text-align: center;
        padding: 0.17rem 0;
    }
    
    .nav-dropdown .dropdown-menu {
        position: static;
        display: block;
        background: none;
        box-shadow: none;
        padding: 0.5rem 0 0.5rem 2rem;
        min-width: auto;
    }

    .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);
    }
    .hero {
        background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)), url('../assets/hero_background_2.png') no-repeat center;
        background-size: 100vh;
        background-color: var(--color-neutral-dark)
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .hero-content .cta-buttons {
        flex-direction: column;
        margin-top: 3rem;
    }

    .why-valorem-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col .logo {
        margin: 0 auto 1rem auto;
    }
    
    .nearshore-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide reCAPTCHA badge */
.grecaptcha-badge { 
    visibility: hidden;
}