/* 
    English Institute - Global Styles
*/

/* --- Variables --- */
:root {
    /* Colors */
    --navy-blue: #1C2A43; /* Escuro premium clássico */
    --navy-light: #2A3C5A;
    --navy-accent: #111A2A;
    --gold: #C5A059;
    --gold-hover: #D8B56C;
    --classic-red: #A62C2B;
    --classic-red-hover: #8F2221;
    --parchment: #F4EFE6;
    --parchment-dark: #E6DECE;
    --green: #156233;
    --green-light: #288b4d;
    
    --text-main: #333333;
    --text-muted: #555555;
    --text-light: #F4EFE6;
    
    --bg-main: #F4EFE6;
    --bg-light: #E6DECE;
    
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
    --font-accent: 'Inter', sans-serif;
    
    /* Borders & Shadow */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* --- Reset & Base --- */
* {
    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-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-gold { color: var(--gold) !important; }
.bg-light { background-color: var(--bg-light); }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.opacity-90 { opacity: 0.9; }

.img-fluid {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.rounded { border-radius: var(--radius-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--classic-red);
    color: var(--white);
    border: 2px solid #822222;
}

.btn-primary:hover {
    background-color: var(--classic-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(166, 44, 43, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--navy-blue);
    border: 2px solid var(--navy-blue);
}

.btn-secondary:hover {
    background-color: rgba(28, 42, 67, 0.05);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--navy-blue);
    border: 2px solid var(--navy-blue);
}

.btn-outline:hover {
    background-color: var(--navy-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

/* Pulse Animation for CTA */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}
.pulse-btn {
    animation: pulse 2s infinite;
}

/* --- Header & Nav --- */
.header {
    background-color: var(--navy-blue);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 5px 0;
    background-color: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

.header.scrolled .header-container {
    height: 70px;
}

.text-decoration-none {
    text-decoration: none !important;
}

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

.logo-img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gold);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--white);
    letter-spacing: 2.5px;
    opacity: 0.9;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

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

.btn-contato {
    background-color: var(--gold);
    color: var(--navy-blue) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
}
.btn-contato::after { display: none; }
.btn-contato:hover {
    background-color: var(--gold-hover);
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Classical Section --- */
.hero-classical {
    position: relative;
    background-color: var(--navy-blue);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.carousel-item {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
}
.carousel-item.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-frame-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px; 
    margin: 0 auto;
    padding: 24px;
}

.hero-classical-content {
    background-color: rgba(244, 239, 230, 0.5); /* 50% de transparência no parchment */
    backdrop-filter: blur(8px); /* Efeito vidro para facilitar a leitura */
    border: 4px solid var(--navy-blue);
    outline: 2px solid var(--navy-blue);
    outline-offset: -10px;
    padding: 70px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-classical-content::before {
    content: '';
    position: absolute;
    top: 15px; left: 15px; /* Between main border and outline */
    right: 15px; bottom: 15px;
    border: 1px solid rgba(28, 42, 67, 0.2);
    pointer-events: none;
}

.hero-top-text {
    font-family: var(--font-accent);
    color: var(--navy-blue);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.hero-crest {
    margin: 0 auto 25px;
    display: flex;
    justify-content: center;
}

.hero-logo-svg {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.hero-main-title {
    font-family: var(--font-heading);
    color: var(--navy-blue);
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-sub-title {
    font-family: var(--font-accent);
    color: var(--classic-red);
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 5px;
    font-weight: 700;
    margin-bottom: 35px;
}

.hero-ribbon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.hero-ribbon {
    background-color: var(--classic-red);
    color: var(--white);
    padding: 10px 40px;
    position: relative;
    font-family: var(--font-accent);
    font-size: 0.95rem;
    letter-spacing: 2px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.hero-ribbon::before,
.hero-ribbon::after {
    content: '';
    position: absolute;
    top: -10px;
    z-index: -1;
    border: 15px solid transparent;
}
.hero-ribbon::before {
    left: -20px;
    border-right-color: #8F2221;
    border-bottom-color: #8F2221;
}
.hero-ribbon::after {
    right: -20px;
    border-left-color: #8F2221;
    border-bottom-color: #8F2221;
}

.hero-welcome {
    font-family: var(--font-heading);
    color: var(--navy-blue);
    font-size: 1.8rem;
    margin-bottom: 35px;
    font-weight: 600;
}

.hero-columns {
    display: flex;
    gap: 30px;
    text-align: left;
    max-width: 700px;
    margin: 0 auto 40px;
    background-color: rgba(255, 255, 255, 0.4);
    padding: 24px 30px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.hero-column {
    flex: 1;
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.7;
}

.hero-divider {
    width: 2px;
    background-color: rgba(197, 160, 89, 0.4); /* gold-ish divider */
}

.hero-action-classical {
    margin-top: 20px;
}

.hero-btn-classical {
    display: inline-block;
    background-color: var(--classic-red);
    color: var(--white);
    padding: 16px 36px;
    font-family: var(--font-accent);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 1rem;
    border: 1px solid var(--white);
    outline: 2px solid var(--classic-red);
    outline-offset: 2px;
    transition: all 0.3s ease;
}

.hero-btn-classical:hover {
    background-color: var(--classic-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(166, 44, 43, 0.4);
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .hero-frame-container {
        padding: 15px;
    }
    .hero-classical-content {
        padding: 40px 20px;
    }
    .hero-columns {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px 15px;
    }
    .hero-divider {
        width: 50px;
        height: 2px;
        margin: 0 auto;
    }
}

/* --- Typography & Sections Shared --- */
.section-header {
    margin-bottom: 60px;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.section-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Diferenciais Section --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--gold);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(197, 160, 89, 0.1);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Cursos Section --- */
.cursos-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* --- Accordion Cursos --- */
.course-accordion {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    font-family: inherit;
    text-align: left;
    transition: all 0.2s ease;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.accordion-title i {
    color: var(--navy-blue);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.accordion-icon {
    color: var(--navy-blue);
    transition: transform 0.3s ease;
}

.accordion-header:hover {
    background-color: rgba(197, 160, 89, 0.1); /* Efeito hover dourado leve */
}

.accordion-item.active .accordion-header {
    background-color: var(--gold);
    color: var(--navy-blue);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-body {
    padding: 16px 20px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* --- Gestão Agrícola Section --- */
.gestao-agricola {
    background-color: var(--navy-blue);
    position: relative;
    overflow: hidden;
}

.gestao-agricola::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at right, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.gestao-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge-green {
    background-color: var(--gold);
    color: var(--navy-blue);
    border: none;
    padding: 5px 10px;
}

.check-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
}
.check-list i {
    margin-top: 4px;
}

.promo-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(255,255,255,0.3);
}

.promo-discount {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--gold);
    line-height: 1;
}

/* --- Contato Section --- */
.contato-box {
    background-color: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.contato-info {
    padding: 60px;
    background-color: var(--navy-blue);
    color: var(--white);
}

.contato-info h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.contato-info p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.contact-link {
    color: inherit;
    transition: color 0.3s ease;
}
.contact-link:hover {
    color: var(--gold);
}

.method-item i {
    font-size: 2rem;
    color: var(--gold);
    width: 40px;
    text-align: center;
}

.method-item span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-item strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
}

.contato-form {
    padding: 60px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy-blue);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #F8FAFC;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
    background-color: var(--white);
}

.form-privacy {
    color: var(--text-muted);
}

/* --- Footer --- */
.footer {
    background-color: #050d18;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-title {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.footer-desc {
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 30px;
}

.footer-copyright {
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.footer-social {
    margin-bottom: 24px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--gold);
    color: var(--navy-blue);
    transform: translateY(-3px);
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    font-size: 32px;
    box-shadow: var(--shadow-md);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: #FFF;
}

/* --- Responsive Design --- */
@media (max-width: 991px) {
    .nav-list {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }

    .logo-img {
        height: 40px;
    }
    
    .logo-title {
        font-size: 1.1rem;
    }

    .cursos-layout,
    .gestao-layout,
    .contato-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .gestao-layout {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .contato-info, .contato-form {
        padding: 40px 30px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--navy-blue);
        padding: 20px;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .btn-contato {
        margin-top: 10px;
    }
    
    .hero {
        padding: 120px 0 80px;
        text-align: center;
    }
    
    .hero-text {
        margin: 0 auto;
    }
    
    .hero-action {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
