:root {
    --brand: #bf4f16;
    --brand-dark: #7d2f0c;
    --brand-soft: #fff1e8;
    --ink: #18222f;
    --ink-soft: #536171;
    --sky: #d9edf4;
    --surface: #fffdf8;
    --surface-strong: #ffffff;
    --border: rgba(24, 34, 47, 0.1);
    --shadow: 0 18px 50px rgba(40, 29, 17, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(249, 205, 146, 0.35), transparent 28%),
        linear-gradient(180deg, #fff8ef 0%, #f5f9fb 55%, #fffdf8 100%);
}

h1 {
    font-size: 42px;
    font-weight: 700;
}

h2 {
    font-size: 36px;
    font-weight: 700;
}

h3 {
    font-size: 30px;
    font-weight: 600;
}

h4 {
    font-size: 24px;
    font-weight: 600;
}

h5 {
    font-size: 20px;
    font-weight: 600;
}

h6 {
    font-size: 18px;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(16px);
}

.topbar {
    background: rgba(255, 248, 239, 0.92);
    border-bottom: 1px solid rgba(125, 47, 12, 0.08);
}

.navbar {
    background: rgba(24, 34, 47, 0.92);
}

.site-header.header-scrolled .navbar {
    box-shadow: 0 18px 40px rgba(10, 16, 23, 0.18);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark span {
    display: flex;
    flex-direction: column;
}

.brand-mark strong {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.brand-mark small {
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.topbar-link {
    font-weight: 700;
}

.nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.nav-link--submenu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
    border: 0;
    padding-left: var(--bs-navbar-nav-link-padding-x, 0.5rem);
    padding-right: var(--bs-navbar-nav-link-padding-x, 0.5rem);
}

.nav-link.active,
.nav-link:hover {
    color: #fff;
}

.nav-item--courses {
    position: relative;
}

.nav-caret {
    width: 0.65rem;
    height: 0.65rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.22s ease;
}

.nav-item--courses.is-open .nav-caret,
.nav-item--courses.is-current .nav-caret,
.nav-item--courses:focus-within .nav-caret {
    transform: rotate(-135deg) translateY(-1px);
}

.nav-submenu {
    overflow: hidden;
}

.nav-submenu-inner {
    display: grid;
    gap: 0.45rem;
    padding-top: 0.85rem;
}

.nav-submenu-link {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-submenu-link:hover,
.nav-submenu-link:focus,
.nav-submenu-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-cta .btn {
    white-space: nowrap;
}

.btn-brand,
.btn-brand:hover,
.btn-brand:focus {
    background: linear-gradient(135deg, var(--brand) 0%, #d66b2a 100%);
    border: 1px solid transparent;
    color: #fff;
    box-shadow: 0 12px 28px rgba(191, 79, 22, 0.28);
}

.btn-brand-outline,
.btn-brand-outline:hover,
.btn-brand-outline:focus {
    border: 1px solid rgba(191, 79, 22, 0.35);
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.9);
}

.btn-brand-light,
.btn-brand-light:hover,
.btn-brand-light:focus {
    border: 1px solid rgba(24, 34, 47, 0.12);
    color: var(--ink);
    background: rgba(217, 237, 244, 0.86);
}

.hero-section {
    padding: 6.5rem 0 4.5rem;
}

.hero-section--inner {
    padding: 5rem 0 2rem;
}

.hero-kicker,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(191, 79, 22, 0.14);
    color: var(--brand-dark);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-title,
.section-title,
.form-title,
.footer-title {
    font-family: 'Source Serif 4', serif;
}

.hero-title {
    margin: 1rem 0;
    font-size: clamp(2.6rem, 6vw, 4.7rem);
    line-height: 1.05;
}

.hero-title--inner {
    font-size: clamp(2.4rem, 4.4vw, 3.8rem);
}

.hero-copy,
.section-copy {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.85;
}

.hero-copy--wide {
    max-width: 820px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-trust span {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(24, 34, 47, 0.08);
    font-size: 0.92rem;
}

.section-space {
    padding: 4.5rem 0;
}

.bg-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(217, 237, 244, 0.5) 100%);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 2.25rem;
}

.section-title {
    margin: 1rem 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.icon-card,
.course-card,
.content-card,
.form-card,
.testimonial-card,
.stat-card,
.map-card,
.cta-panel,
.image-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.icon-card,
.content-card,
.form-card,
.stat-card {
    padding: 2rem;
}

.icon-card h3,
.course-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.85rem;
}

.icon-card__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

.icon-card__symbol {
    flex-shrink: 0;
    color: var(--brand);
    font-size: 1.35rem;
}

.icon-card__symbol--xl {
    font-size: 1.9rem;
}

.icon-card p,
.course-card p,
.testimonial-card,
.footer-copy {
    color: var(--ink-soft);
}

.course-card {
    display: block;
    height: 100%;
    padding: 2rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    border-color: rgba(191, 79, 22, 0.28);
}

.course-detail-card {
    height: 100%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.course-detail-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.9rem;
}

.course-detail-card__media {
    margin: -2rem -2rem 1.35rem;
    border-radius: 28px 28px 20px 20px;
    overflow: hidden;
}

.course-detail-card__media img {
    width: 100%;
    height: auto;
    display: block;
}

.course-detail-card p {
    color: var(--ink-soft);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.course-badge,
.course-link {
    display: inline-flex;
}

.course-badge {
    margin-bottom: 1rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.course-link {
    margin-top: 1rem;
    color: var(--brand-dark);
    font-weight: 700;
}

.feature-list,
.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li,
.footer-links li,
.footer-contact li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.9rem;
    color: var(--ink-soft);
}

.feature-list li::before,
.footer-links li::before,
.footer-contact li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, #f4b36d 100%);
}

.image-card {
    padding: 1rem;
    overflow: hidden;
}

.image-card img {
    width: 100%;
    object-fit: cover;
}

.form-card .form-control,
.form-card .form-select,
.form-card textarea {
    border-radius: 14px;
    border-color: rgba(24, 34, 47, 0.12);
    padding: 0.85rem 1rem;
}

.form-card .form-control:focus,
.form-card .form-select:focus,
.form-card textarea:focus {
    border-color: rgba(191, 79, 22, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(191, 79, 22, 0.12);
}

.stat-value {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(2.3rem, 4vw, 3.3rem);
    color: var(--brand-dark);
}

.stat-card__icon,
.results-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.stat-card__icon i,
.results-card__icon i {
    font-size: 1.4rem;
    line-height: 1;
}

.testimonial-card {
    max-width: 820px;
    padding: 2.5rem;
    text-align: center;
}

.testimonials-slider-wrap {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 4.5rem;
}

.testimonials-carousel .carousel-inner {
    overflow: visible;
}

.testimonial-card--grid {
    max-width: none;
    height: 100%;
    text-align: left;
}

.testimonial-quote {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.carousel-control-pill {
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1.2rem;
    background: var(--ink);
    color: #fff;
}

.testimonials-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 34, 47, 0.92);
    color: #fff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.testimonials-arrow:hover,
.testimonials-arrow:focus {
    background: var(--brand-dark);
}

.testimonials-arrow--prev {
    left: 0;
}

.testimonials-arrow--next {
    right: 0;
}

.testimonials-arrow i {
    font-size: 1.15rem;
    line-height: 1;
}

.gallery-card {
    width: 100%;
    height: 100%;
    padding: 0;
    text-align: left;
    appearance: none;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-card:hover,
.gallery-card:focus {
    transform: translateY(-6px);
    border-color: rgba(191, 79, 22, 0.28);
    box-shadow: 0 24px 58px rgba(40, 29, 17, 0.16);
}

.gallery-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(180deg, #fff8ef 0%, #f5f9fb 100%);
}

.gallery-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.gallery-lightbox .modal-content {
    position: relative;
    border: 0;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 28px 80px rgba(12, 18, 24, 0.28);
}

.gallery-lightbox .modal-body {
    padding: 1rem;
}

.gallery-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(24, 34, 47, 0.88);
    color: #fff;
}

.gallery-lightbox__image {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    display: block;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff8ef 0%, #f5f9fb 100%);
}

.gallery-pagination .page-link {
    border: 1px solid rgba(24, 34, 47, 0.1);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.7rem 1rem;
    margin: 0 0.22rem;
    background: rgba(255, 255, 255, 0.96);
}

.gallery-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--brand) 0%, #d66b2a 100%);
    border-color: transparent;
    color: #fff;
}

.gallery-pagination .page-item.disabled .page-link {
    color: rgba(83, 97, 113, 0.7);
    background: rgba(255, 255, 255, 0.72);
}

.faq-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
}

.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--ink);
    background: transparent;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--brand-dark);
    box-shadow: none;
    background: rgba(255, 241, 232, 0.65);
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
}

.cta-panel {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.map-card {
    padding: 1rem;
    min-height: 100%;
}

.map-card iframe {
    width: 100%;
    min-height: 100%;
    height: 100%;
    border: 0;
    border-radius: 22px;
}

.site-footer {
    background: #18222f;
    color: rgba(255, 255, 255, 0.84);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.84);
}

.footer-copy,
.footer-bottom,
.footer-links li,
.footer-contact li {
    color: rgba(255, 255, 255, 0.75);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.floating-action,
.scroll-top-button {
    position: fixed;
    right: 1rem;
    border: 0;
    border-radius: 999px;
    padding: 0.9rem 1.1rem;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    z-index: 1025;
}

.floating-action--whatsapp {
    bottom: 5.8rem;
    background: #1b8756;
}

.floating-action--call {
    bottom: 10.1rem;
    background: var(--brand-dark);
}

.scroll-top-button {
    bottom: 1rem;
    background: var(--ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.scroll-top-button.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.blog-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.6rem;
}

.blog-card__title {
    margin: 1rem 0 0.8rem;
    font-size: 1.4rem;
    font-family: 'Source Serif 4', serif;
}

.blog-card__copy {
    color: var(--ink-soft);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.blog-card__body .btn {
    margin-top: auto;
    align-self: flex-start;
}

.blog-detail-card__image {
    width: 100%;
    border-radius: 22px;
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.blog-detail-card__content {
    color: var(--ink-soft);
    line-height: 1.95;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
        align-items: stretch !important;
    }

    .nav-link,
    .nav-link--submenu-toggle {
        width: 100%;
        justify-content: space-between;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .nav-submenu {
        padding-left: 0.75rem;
    }

    .nav-submenu-inner {
        padding-top: 0.25rem;
        padding-bottom: 0.65rem;
    }

    .navbar-cta {
        width: 100%;
    }

    .navbar-cta .btn {
        width: 100%;
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-section {
        padding-top: 4.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.55rem;
    }

    .section-space {
        padding: 3.5rem 0;
    }

    .icon-card,
    .course-card,
    .content-card,
    .form-card,
    .testimonial-card,
    .stat-card {
        padding: 1.5rem;
    }

    .floating-action,
    .scroll-top-button {
        right: 0.75rem;
    }

    .testimonials-slider-wrap {
        padding: 0 3rem;
    }

    .testimonials-arrow {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (min-width: 992px) {
    .navbar-collapse {
        justify-content: center;
    }

    .navbar-nav {
        width: auto;
        justify-content: center;
        gap: 0.75rem !important;
    }

    .navbar-nav .nav-link,
    .navbar-nav .nav-link--submenu-toggle {
        width: auto;
        justify-content: center;
        text-align: center;
    }

    .nav-item--courses::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: min(26rem, 70vw);
        height: 1rem;
    }

    .nav-submenu {
        position: absolute;
        top: calc(100% + 0.9rem);
        left: 0;
        width: min(26rem, 70vw);
        display: block !important;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 28px;
        background: rgba(24, 34, 47, 0.98);
        box-shadow: 0 24px 60px rgba(7, 12, 18, 0.32);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(12px);
        transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
    }

    .nav-submenu-inner {
        padding: 1rem;
    }

    .nav-submenu-link:hover,
    .nav-submenu-link:focus,
    .nav-submenu-link.active {
        transform: translateX(4px);
    }

    .nav-item--courses.is-open .nav-submenu,
    .nav-item--courses:hover .nav-submenu,
    .nav-item--courses:focus-within .nav-submenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}
