/* ========================================
   ISTA - Instituto Eclesiástico de Filosofia
   e Teologia Santo Tomás de Aquino
   Estilo Monocromático Elegante
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #0a0a0a;
    --color-dark: #1a1a1a;
    --color-gray-dark: #2a2a2a;
    --color-gray: #555;
    --color-gray-light: #999;
    --color-gray-lighter: #e5e5e5;
    --color-white: #ffffff;
    --color-cream: #f8f7f4;
    --color-gold: #c9a84c;
    --color-gold-dark: #a68a3e;

    --font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --font-sans: 'Inter', 'Helvetica Neue', sans-serif;

    --nav-height: 70px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

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

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

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    height: var(--nav-height);
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.nav-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-menu a {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a:hover {
    color: var(--color-white);
}

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

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--color-black);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 24px;
}

.hero-brasao {
    width: 140px;
    height: auto;
    margin-bottom: 32px;
    filter: drop-shadow(0 4px 20px rgba(201, 168, 76, 0.2));
    animation: fadeInDown 1s ease-out;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.3;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero h1 strong {
    font-weight: 700;
    color: var(--color-gold);
}

.hero-motto {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-gold);
    letter-spacing: 0.15em;
    margin-bottom: 48px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-arrow {
    display: inline-block;
    color: rgba(255,255,255,0.5);
    animation: fadeInUp 1s ease-out 0.6s both, bounce 2s infinite 1.6s;
}

.hero-arrow:hover {
    color: var(--color-gold);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 100px 0;
}

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

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: 0.02em;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    margin: 16px auto 0;
}

.section-content p {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.narrow {
    max-width: 780px;
    margin: 0 auto;
}

/* Two columns */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

/* ========================================
   QUOTE SECTION
   ======================================== */
.section-quote {
    background: var(--color-cream);
    padding: 80px 0;
}

.section-quote blockquote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-quote blockquote p {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-style: italic;
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: 24px;
}

.section-quote blockquote cite {
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
}

/* ========================================
   COURSES
   ======================================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.course-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 40px 28px;
    text-align: center;
    transition: all 0.4s ease;
}

.course-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--color-gold);
    transform: translateY(-4px);
}

.course-icon {
    margin-bottom: 24px;
    color: var(--color-gold);
}

.course-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.course-alt {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.course-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.course-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: rgba(255,255,255,0.7);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-black);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brasao {
    width: 80px;
    height: auto;
    margin-bottom: 16px;
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.6);
}

.footer-name strong {
    color: var(--color-gold);
}

.footer h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.footer address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer address p {
    margin-bottom: 12px;
}

.footer address a:hover {
    color: var(--color-gold);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40%  { transform: translateY(-8px); }
    60%  { transform: translateY(-4px); }
}

/* Scroll reveal */
.section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 32px 0;
        gap: 24px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero-brasao {
        width: 100px;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        margin-bottom: 36px;
    }
}
