/* Modern SPA Stylesheet with Top Navigation Layout */
:root {
    /* Color Palette */
    --navy: #0A1F44;
    --navy-light: #1A365D;
    --teal: #14B8A6;
    --teal-light: #CCFBF1;
    --orange: #FF5722;
    --orange-hover: #E64A19;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --gray: #475569;
    --gray-light: #E2E8F0;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --navbar-height: 80px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
    /* Critical so targets stop below the sticky navbar */
}

body {
    font-family: var(--font-body);
    color: var(--navy);
    line-height: 1.6;
    background-color: var(--light);
}

/* Utilities */
.text-navy {
    color: var(--navy);
}

.text-teal {
    color: var(--teal);
}

.text-orange {
    color: var(--orange);
}

.text-white {
    color: var(--white);
}

.text-gray {
    color: var(--gray);
}

.bg-navy {
    background-color: var(--navy);
}

.bg-navy-light {
    background-color: var(--navy-light);
}

.bg-teal {
    background-color: var(--teal);
}

.bg-orange {
    background-color: var(--orange);
}

.bg-light {
    background-color: var(--light);
}

.bg-white {
    background-color: var(--white);
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
}

.opacity-90 {
    opacity: 0.9;
}

.opacity-80 {
    opacity: 0.8;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-5 {
    opacity: 0.05;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-16 {
    margin-top: 4rem;
}

.mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mr-4 {
    margin-right: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.w-full {
    width: 100%;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 1rem;
}

.rounded-2xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.border {
    border-width: 1px;
    border-style: solid;
}

.border-gray {
    border-color: var(--gray);
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

.border-b {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.border-light {
    border-bottom-color: var(--gray-light);
}

.border-l-4 {
    border-left-width: 4px;
    border-left-style: solid;
}

.border-t-4 {
    border-top-width: 4px;
    border-top-style: solid;
}

.border-l-orange {
    border-left-color: var(--orange);
}

.border-l-teal {
    border-left-color: var(--teal);
}

.border-l-navy {
    border-left-color: var(--navy);
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.leading-relaxed {
    line-height: 1.625;
}

/* Flex & Grid */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    margin-bottom: 0.5em;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.hover-underline:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(255, 87, 34, 0.39);
}

.btn-primary:hover {
    background-color: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.23);
}

/* Top Navigation Bar */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: var(--navy);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo .logo-img {
    height: 50px;
    width: auto;
    background: white;
    /* Contrast for the transparent logo if needed */
    padding: 5px;
    border-radius: 4px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-nav .nav-link {
    color: var(--white);
    opacity: 0.8;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--orange);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    opacity: 1;
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link.active {
    opacity: 1;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* Main Content Area */
.main-content {
    margin-top: var(--navbar-height);
    /* Prevent content from hiding behind sticky navbar */
    width: 100%;
}

.section {
    padding: 6rem 8%;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--navbar-height));
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Floating Cursos Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    left: auto;
    background-color: var(--orange);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(255, 87, 34, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-btn::before {
    content: '\270E';
    /* Pencil Unicode character */
    font-size: 1.4rem;
    line-height: 1;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(255, 87, 34, 0.5);
    color: var(--white);
}

/* Container & Typography Tools */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.title-underline {
    height: 4px;
    width: 60px;
    background: var(--orange);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

/* Custom Grids & Layouts */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

/* Cards & Glassmorphism */
.card {
    position: relative;
}

.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    width: calc(100% + 3rem);
}

.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Animations (Scroll Intersection) */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Miscellaneous UI */
.pattern-overlay {
    background-image: radial-gradient(var(--white) 1px, transparent 1px);
    background-size: 20px 20px;
}

.styled-list li p {
    margin-bottom: 0;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 1;
}

/* Contact Form Specifics */
.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    font-family: var(--font-body);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section {
        padding: 5rem 5%;
    }

    .hero-title {
        font-size: 3rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .legal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .mobile-toggle {
        display: block;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        background-color: var(--navy);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav.open {
        max-height: 500px;
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-nav .nav-link.active {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .grid-2-col,
    .grid-3-col {
        grid-template-columns: 1fr;
    }

    .floating-btn {
        right: 20px;
        bottom: 20px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hidden-mobile {
        display: none;
    }
}