*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    color: #111;
    background: #fff;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.is-loading { overflow: hidden; }

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    transition: opacity .55s ease, visibility .55s ease;
}

.page-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(72vw, 420px);
}

.page-loader__mark {
    width: 100%;
    overflow: visible;
}

.page-loader__logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.page-loader__bar {
    display: block;
    width: 88px;
    height: 2px;
    margin-top: -6%;
    background: rgba(255,255,255,.18);
    overflow: hidden;
    position: relative;
}

.page-loader__bar::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 40%;
    background: #fff;
    animation: loaderBar 1.1s ease-in-out infinite;
}

@keyframes loaderBar {
    0% { left: -40%; }
    100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader__bar::after { animation: none; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink, #000);
    line-height: 1.15;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.kicker {
    display: inline-block;
    margin: 0 0 12px;
    color: #666;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.kicker--light { color: #cfcfcf; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-sm { min-height: 40px; padding: 0 16px; }
.btn-accent { background: #000; color: #fff; }
.btn-accent:hover { background: #222; }
.btn-navy { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: #000; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.text-link { color: #000; font-weight: 700; border-bottom: 1px solid #000; }
.text-link i { font-size: 0.8em; margin-left: 4px; }

.hero .btn-accent,
.section--navy .btn-accent,
.cta .btn-accent,
.header .btn-accent,
.cover-page .btn-accent {
    background: #fff;
    color: #000;
}
.hero .btn-accent:hover,
.section--navy .btn-accent:hover,
.cta .btn-accent:hover,
.header .btn-accent:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.topbar {
    background: #000;
    color: #cfcfcf;
    font-size: 0.82rem;
    border-bottom: 1px solid #1a1a1a;
}

.topbar__inner,
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar__inner { min-height: 38px; }
.topbar__meta,
.topbar__social { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #000;
    color: #fff;
}

.header.is-scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.35); }

.header__inner { min-height: 96px; position: relative; }

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    background: #000;
}

.logo img {
    height: 80px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
}

.logo--footer img { height: 108px; max-width: 270px; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav > ul > li { position: relative; }
.nav a {
    display: block;
    padding: 16px 12px;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.nav > ul > li > a:hover,
.nav > ul > li:hover > a { color: #fff; opacity: .72; }

.nav li ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #111;
    border: 1px solid #2a2a2a;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: .2s ease;
    z-index: 20;
}

.nav li:hover > ul,
.nav li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.nav li ul a { padding: 10px 16px; }
.nav li ul a:hover { background: #1c1c1c; }
.lang-item img { width: 18px; height: 12px; display: inline-block; margin-right: 6px; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid #333;
    background: transparent;
    padding: 10px 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: #fff;
}

.hero-slider { position: relative; min-height: 78vh; overflow: hidden; background: #000; }
.hero-slide {
    position: absolute;
    inset: 0;
    background: #000 center/cover no-repeat;
    opacity: 0;
    transition: opacity .6s ease;
}

.hero-slide.is-active { opacity: 1; position: relative; }
.hero-slide__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 70%);
}

.hero-slide__content,
.hero-fallback {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 110px 0 96px;
    max-width: 720px;
}

.hero-slide__content h1,
.hero-fallback h1 {
    color: #fff;
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    margin: 0 0 16px;
}

.hero-slide__content--center { text-align: center; margin: 0 auto; }
.hero-slide__content--right { margin-left: auto; text-align: right; }

.hero-fallback {
    min-height: 78vh;
    max-width: none;
    background:
        radial-gradient(circle at 82% 18%, rgba(255,255,255,.08), transparent 32%),
        #000;
    display: flex;
    align-items: center;
}

.hero-fallback .container { max-width: 760px; margin: 0; }
.hero-slider__nav {
    position: absolute;
    right: 24px;
    bottom: 28px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.hero-slider__nav button,
.hero-slider__dots button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.hero-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 8px;
}

.hero-slider__dots button { width: 10px; height: 10px; padding: 0; }
.hero-slider__dots button.is-active { background: #fff; }

.stats { background: transparent; margin-top: -36px; position: relative; z-index: 3; }
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.stats__grid div {
    padding: 26px 16px;
    text-align: center;
    border-right: 1px solid #ececec;
}

.stats__grid div:last-child { border: 0; }
.stats strong {
    display: block;
    font-family: "Oswald", sans-serif;
    font-size: 1.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #000;
}

.stats span { color: #666; font-size: 0.86rem; }

.section { padding: 84px 0; }
.section--cream { background: var(--cream, #f3f3f3); }
.section--navy { background: #000; color: #cfcfcf; }
.section--navy h2 { color: #fff; }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.section-head p { color: #666; }
.section-head--light p { color: #a7a7a7; }

.card-grid,
.feature-grid,
.logo-grid { display: grid; gap: 20px; }

.card-grid,
.card-grid--3 { grid-template-columns: repeat(2, 1fr); }

.course-card,
.post-card,
.feature-card,
.quote-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.course-card:hover,
.post-card:hover { border-color: #000; }

.course-card__media,
.post-card__media,
.media-fallback {
    display: block;
    height: 210px;
    background: #000;
}

.course-card__media img,
.post-card__media img,
.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card__media img,
.post-card__media img { height: 210px; }

.media-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.media-fallback--tall { min-height: 360px; }

.course-card__body,
.post-card__body { padding: 22px; }
.course-card h3,
.post-card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.course-card p,
.post-card p { color: #555; margin: 0 0 16px; }
.post-card time { color: #000; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 32px;
    align-items: center;
}

.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.about-visual { overflow: hidden; min-height: 360px; background: #000; }
.feature-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 8px;
}

.feature-card { padding: 22px; background: #fff; }
.feature-card i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    margin-bottom: 12px;
}

.feature-card h3 { font-size: 1rem; margin: 0 0 8px; }
.feature-card p { margin: 0; color: #555; font-size: 0.95rem; }

.logo-grid { grid-template-columns: repeat(4, 1fr); }
.logo-grid__item {
    background: #fff;
    border: 1px solid #e8e8e8;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.logo-grid img { max-height: 52px; width: auto; filter: grayscale(1); opacity: .8; }
.logo-grid a:hover img { filter: none; opacity: 1; }

.quote-slider { position: relative; min-height: 220px; }
.quote-card {
    position: absolute;
    inset: 0;
    background: #111;
    color: #fff;
    padding: 36px;
    opacity: 0;
    transition: opacity .4s ease;
    border: 0;
}

.quote-card.is-active { opacity: 1; position: relative; }
.quote-card p { font-family: "Oswald", sans-serif; font-size: clamp(1.2rem, 2.4vw, 1.7rem); line-height: 1.4; margin-top: 0; text-transform: none; letter-spacing: 0; }
.quote-card footer { display: flex; flex-direction: column; gap: 4px; color: #b0b0b0; }
.quote-card strong { color: #fff; }

.cta { padding: 0 0 84px; }
.cta__box {
    overflow: hidden;
    background: #000 center/cover no-repeat;
    position: relative;
    border: 1px solid #1f1f1f;
}

.cta__box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.55));
}

.cta__content { position: relative; z-index: 1; padding: 64px 48px; color: #fff; max-width: 640px; }
.cta__content h2 { color: #fff; margin-top: 0; }

.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

.page-hero {
    background: #000;
    color: #fff;
    padding: 64px 0 48px;
}

.page-hero h1 { color: #fff; margin: 0 0 16px; font-size: clamp(1.8rem, 4vw, 3rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: #9a9a9a; font-size: 0.88rem; }
.crumbs a:hover { color: #fff; }
.crumbs a::after { content: "/"; margin-left: 8px; color: #555; }

.page-section { padding: 56px 0 80px; }
.split { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; align-items: start; }
.split--blog { grid-template-columns: 1fr minmax(240px, 300px); }

.prose { font-size: 1.04rem; }
.prose h2, .prose h3 { margin-top: 1.5em; }
.prose img { margin: 18px 0; }
.prose ul { list-style: disc; padding-left: 1.2em; margin: 12px 0 18px; }

.course-list,
.gallery-grid,
.ref-grid { display: grid; gap: 20px; }
.course-list { grid-template-columns: repeat(2, 1fr); }
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.ref-grid { grid-template-columns: repeat(4, 1fr); }

.gallery-grid a,
.ref-grid img,
.ref-grid a {
    display: block;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
}

.gallery-grid img,
.ref-grid img { width: 100%; height: 220px; object-fit: cover; }
.ref-grid img { height: 140px; object-fit: contain; padding: 18px; background: #fff; }

.service-layout { display: grid; grid-template-columns: 1fr 260px; gap: 28px; }
.service-side { background: #f3f3f3; padding: 22px; }
.service-side h2 { font-size: 1rem; margin-top: 0; }
.service-side a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}
.service-side a.is-active,
.service-side a:hover { color: #000; font-weight: 700; }
.photo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.photo-row img { height: 90px; width: 100%; object-fit: cover; }

.blog-list { display: grid; gap: 22px; }
.blog-item {
    display: grid;
    grid-template-columns: minmax(0, 240px) 1fr;
    gap: 22px;
    background: #fff;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.blog-item img,
.blog-item .media-fallback { height: 100%; min-height: 180px; }
.blog-item__body { padding: 22px 22px 22px 0; }
.meta { display: flex; flex-wrap: wrap; gap: 14px; color: #777; font-size: 0.86rem; margin: 8px 0 14px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.post-tags a { padding: 6px 12px; background: #f3f3f3; font-size: 0.86rem; }

.sidebar .widget {
    background: #f3f3f3;
    padding: 22px;
    margin-bottom: 16px;
}

.sidebar h2 { font-size: 1rem; margin: 0 0 12px; }
.sidebar li { margin: 8px 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { background: #fff; border: 1px solid #e8e8e8; padding: 6px 12px; font-size: 0.86rem; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; }
.info-list { display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list i {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: #000;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-grid textarea,
.captcha { grid-column: 1 / -1; }

input[type="text"],
textarea {
    width: 100%;
    border: 1px solid #d4d4d4;
    border-radius: 0;
    padding: 14px 16px;
    background: #fff;
}

input[type="text"]:focus,
textarea:focus { outline: 2px solid #000; outline-offset: 0; border-color: #000; }
textarea { min-height: 140px; resize: vertical; }
.alert { padding: 12px 16px; margin-bottom: 12px; }
.alert-success { background: #111; color: #fff; }
.alert-danger { background: #f3f3f3; color: #000; border: 1px solid #000; }

.pagination-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 36px 0 0; list-style: none; padding: 0; }
.page-link {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
}
.page-item.active .page-link { background: #000; color: #fff; }

.error-box { text-align: center; padding: 48px 0; }
.error-box i { font-size: 3rem; color: #000; }
.cover-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}
.cover-page h1 { color: #fff; }

.footer { background: #000; color: var(--footer-text, #c8c8c8); padding-top: 48px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 36px; }
.footer h2 { color: #fff; font-size: 1rem; }
.footer a:hover { color: #fff; }
.footer__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__tags a { background: #141414; border: 1px solid #2a2a2a; padding: 6px 10px; }
.footer__copy {
    border-top: 1px solid #1f1f1f;
    background: #000;
    color: var(--copy-text, #8a8a8a);
    padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
    font-size: 0.88rem;
}

.whatsapp-float {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 50;
}

.cookie-bar {
    position: fixed;
    left: 16px;
    right: 84px;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 60;
    background: #000;
    color: #fff;
    border: 1px solid #2a2a2a;
    padding: 14px 18px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.cookie-bar .btn-accent { background: #fff; color: #000; }

.popup-layer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.78);
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-layer.is-open { display: flex; }
.popup-layer__box { position: relative; max-width: min(720px, 100%); }
.popup-layer__close {
    position: absolute;
    right: 0;
    top: -40px;
    width: 36px;
    height: 36px;
    border: 1px solid #fff;
    background: #000;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .card-grid,
    .card-grid--3,
    .course-list { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
    .header__inner { min-height: 82px; }
    .nav-toggle { display: block; }
    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #000;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 16px 20px;
        border-top: 1px solid #1f1f1f;
        box-shadow: 0 18px 30px rgba(0,0,0,.4);
    }
    .nav.is-open { display: flex; }
    .nav > ul { flex-direction: column; align-items: stretch; }
    .nav a { padding: 14px 4px; }
    .nav li ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        padding: 0 0 8px 12px;
        background: transparent;
    }
    .header__cta { width: 100%; margin: 8px 0 6px; }
    .stats { margin-top: 0; }
    .stats__grid,
    .logo-grid,
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .about-grid,
    .split,
    .split--blog,
    .service-layout,
    .contact-grid,
    .blog-item,
    .form-grid,
    .footer__grid { grid-template-columns: 1fr; }
    .blog-item__body { padding: 0 16px 16px; }
    .ref-grid { grid-template-columns: 1fr 1fr; }
    .topbar__social { display: none; }
}

@media (max-width: 640px) {
    .container { width: calc(100% - 24px); }
    .logo img { height: 68px; max-width: 170px; }
    .page-loader__inner { width: min(82vw, 300px); }
    .topbar { font-size: 0.75rem; }
    .topbar__meta { gap: 10px; }
    .stats__grid,
    .card-grid,
    .card-grid--3,
    .feature-grid,
    .logo-grid,
    .course-list,
    .gallery-grid,
    .ref-grid,
    .photo-row { grid-template-columns: 1fr; }
    .hero-slide__content,
    .hero-fallback { padding: 72px 0 64px; }
    .hero-slider,
    .hero-fallback { min-height: 70vh; }
    .hero-slider__nav { right: 12px; bottom: 16px; }
    .hero-slider__dots { bottom: 18px; }
    .section,
    .page-section { padding: 52px 0 56px; }
    .cta { padding-bottom: 52px; }
    .cta__content { padding: 36px 20px; }
    .cookie-bar {
        left: 12px;
        right: 12px;
        bottom: 76px;
        flex-direction: column;
        align-items: stretch;
    }
    .page-hero { padding: 40px 0 32px; }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .topbar__meta a:last-child { display: none; }
}
