@font-face {
    font-family: 'TT Octosquares Trial';
    src: url('../../fonts/TT Octosquares Trial Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'TT Octosquares Trial';
    src: url('../../fonts/TT Octosquares Trial Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #ffffff;
    --bg-dark: #1b1b1c;
    --surface: #f4f6fa;
    --surface-hover: #e9edf4;
    --border: rgba(15, 23, 42, 0.09);
    --border-strong: rgba(15, 23, 42, 0.18);
    --border-on-dark: rgba(255, 255, 255, 0.14);
    --text: #12161f;
    --muted: #565f6f;
    --muted-2: #8890a0;
    --muted-on-dark: rgba(255, 255, 255, 0.72);
    --accent: #009fe3;
    --accent-strong: #0086c2;
    --accent-ink: #ffffff;
    --accent-2: #e30613;
    --accent-2-strong: #c00510;
    --danger: #c23b30;
    --success: #2f9153;
    --radius: 0px;
    --radius-sm: 0px;
    --shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.18);
    --font: 'TT Octosquares Trial', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
img { max-width: 100%; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, p { overflow-wrap: break-word; word-break: break-word; }

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

h1, h2, h3 { font-family: var(--font); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); text-transform: uppercase; }
p { color: var(--muted); margin: 0 0 16px; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(27, 27, 28, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-on-dark);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 24px;
    flex-wrap: nowrap;
}
.header-inner > * { min-width: 0; flex-shrink: 0; }

.header-logos { display: flex; align-items: center; gap: 18px; min-width: 0; flex-shrink: 1; overflow: hidden; }
.logo { display: inline-flex; flex-shrink: 0; }
.logo img { height: 34px; width: auto; display: block; max-width: none; }
.partner-logo { height: 30px; width: auto; display: block; flex-shrink: 1; min-width: 0; object-fit: contain; }

.main-nav { display: flex; gap: 26px; align-items: center; }
.main-nav a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.main-nav a:hover { color: #fff; }

.header-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}
.header-meta a { color: #fff; font-weight: 700; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-on-dark);
    color: #fff;
    font-size: 1.2rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

/* ---------- Buttons ---------- */

.btn, button, input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: var(--accent-ink);
    border: none;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: var(--font);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}
.btn:hover, button:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn:active, button:active { transform: translateY(1px); }

.btn-red { background: var(--accent-2); }
.btn-red:hover { background: var(--accent-2-strong); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn-outline:hover { background: var(--surface-hover); color: var(--text); }

/* ---------- Sections ---------- */

section { padding: 64px 0; }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--muted-on-dark); }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.section-head h2 { margin: 0; }
.section-link { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.section-title-center { text-align: center; margin-bottom: 40px; }
.section-title { margin-bottom: 40px; }

.hero-eyebrow {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* ---------- Hero (index.php) ---------- */

.hero-split {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 40px;
}
.hero-split > * { min-width: 0; }
.hero-split h1 .accent { color: var(--accent); }
.hero-split p { font-size: 1.05rem; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-media-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.hero-media-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- About (photo + navy overlay) ---------- */

.about-photo-section {
    position: relative;
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 72px 0 0;
    overflow: visible;
    color: #fff;
}
.about-photo-section h2 { color: #fff; }
.about-photo-section p { color: rgba(255, 255, 255, 0.85); }
.about-photo-section p a { color: #bfe3fb; text-decoration: underline; }
.about-photo-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(9, 22, 40, 0.9), rgba(22, 48, 80, 0.68));
}
.about-photo-section .container { position: relative; z-index: 1; }
.about-photo-section p { max-width: 760px; margin-left: auto; margin-right: auto; }

.about-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    transform: translateY(56px);
    padding-bottom: 56px;
}
.about-icons > div {
    background: #fff;
    color: var(--text);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}
.about-icons img { width: 56px; height: 56px; margin-bottom: 12px; }
.about-icons h3 { font-size: 1rem; margin-bottom: 8px; }
.about-icons p { font-size: 0.9rem; margin: 0; color: var(--muted); }

/* ---------- Jump type rows ---------- */

.jump-row {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    background: #fff;
    color: var(--text);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}
.jump-row > * { min-width: 0; }
.jump-row img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }
.jump-row-body { padding: 32px 36px; display: flex; flex-direction: column; color: var(--text); }
.jump-row-body h3 { font-size: 1.25rem; text-transform: uppercase; margin-bottom: 14px; color: var(--text); }
.jump-row-body p { color: #4b5563; }
.jump-row-body .desc { color: #4b5563; white-space: pre-line; margin-bottom: 20px; }
.jump-row-body .phone-line { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.jump-row-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.jump-row--info .jump-row-body { justify-content: center; }

/* ---------- Gallery ---------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px;
}
.gallery-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

/* ---------- Certificate ---------- */

.cert-split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 44px;
    align-items: center;
}
.cert-split > * { min-width: 0; }
.cert-image-wrap { display: flex; justify-content: center; }
.cert-image-wrap img {
    max-width: 320px;
    width: 100%;
    box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.6);
    transform: rotate(-4deg);
}
.cert-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: 32px; }
.cert-card h3 { color: var(--text); }
.cert-card ul { margin: 0 0 22px; padding-left: 20px; color: #4b5563; }
.cert-card li { margin-bottom: 6px; }

/* ---------- Reviews ---------- */

.review-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}
.review-simple { text-align: center; }
.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 16px;
}
.review-simple p { color: #374151; }
.review-author { font-weight: 700; color: var(--text); margin: 0; }

/* ---------- FAQ (line list) ---------- */

.faq-lines { max-width: 100%; }
.faq-lines details {
    border-bottom: 1px solid var(--border-on-dark);
    padding: 20px 0;
}
.faq-lines summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
}
.faq-lines summary::-webkit-details-marker { display: none; }
.faq-lines summary::after { content: '+'; color: var(--accent); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq-lines details[open] summary::after { content: '\D7'; }
.faq-lines details p { color: var(--muted-on-dark); margin: 14px 0 0; }

/* ---------- Contacts ---------- */

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

.contact-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 0;
    align-items: stretch;
}
.contact-layout > * { min-width: 0; }
.contact-map { background: #e4e4e0; min-height: 340px; overflow: hidden; }
.contact-map iframe { max-width: 100%; }
.contact-facts {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.contact-facts p { margin: 0; line-height: 1.8; }
.callback-form { max-width: 360px; }
.callback-form button { width: 100%; margin-top: 4px; }

/* ---------- Cards (events/courses/category listing pages) ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
    margin: 0 0 12px;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.card-media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #eef2f8, #e2e8f2 65%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media-mono { font-family: var(--font); font-weight: 800; font-size: 2.4rem; color: rgba(0, 159, 227, 0.35); letter-spacing: -0.02em; }
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(27, 27, 28, 0.78);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.1rem; text-transform: none; }
.card-date { color: var(--muted-2); font-size: 0.85rem; margin: 0; }
.card-price { margin: auto 0 0; padding-top: 8px; font-size: 1.05rem; }

.price-old { text-decoration: line-through; color: var(--muted-2); margin-right: 10px; font-weight: 500; }
.price-sale { color: var(--accent-strong); font-weight: 800; }
.price-regular { font-weight: 800; }
.price-range { font-weight: 800; }
.price-request { font-weight: 700; color: var(--muted-2); }

.empty-state {
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    color: var(--muted);
}

/* ---------- Item detail ---------- */

.item-detail { padding: 40px 0 80px; }
.item-hero-media {
    aspect-ratio: 21 / 8;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #eef2f8, #e2e8f2 65%);
    margin-bottom: 28px;
    overflow: hidden;
}
.item-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.item-price { font-size: 1.6rem; margin: 4px 0 20px; }
.item-description { color: var(--text); white-space: pre-line; }

.booking-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    position: sticky;
    top: 100px;
}
.booking-form h2 { font-size: 1.2rem; margin-bottom: 6px; text-transform: none; }
.booking-form > p { font-size: 0.9rem; margin-bottom: 20px; }

/* ---------- Forms ---------- */

form label { display: block; margin-bottom: 16px; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
form input, form select, form textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.18);
}
form textarea { resize: vertical; font-family: var(--font); }
form input[type="checkbox"] { width: auto; display: inline-block; margin: 0 8px 0 0; vertical-align: middle; }

.section-dark form input, .section-dark form select, .section-dark form textarea {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-on-dark);
    color: #fff;
}
.section-dark form label { color: var(--muted-on-dark); }

/* ---------- Rich text editor (Quill, admin) ---------- */

.rich-editor-container { margin-bottom: 16px; }
.ql-toolbar.ql-snow { background: var(--surface); border-color: var(--border) !important; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.ql-container.ql-snow { background: var(--surface); border-color: var(--border) !important; border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-family: var(--font); }
.ql-editor { color: var(--text); min-height: 220px; }
.ql-editor.ql-blank::before { color: var(--muted-2); font-style: normal; }
.ql-snow .ql-stroke { stroke: var(--muted); }
.ql-snow .ql-fill, .ql-snow .ql-stroke.ql-fill { fill: var(--muted); }
.ql-snow .ql-picker { color: var(--muted); }
.ql-snow .ql-picker-options { background: var(--surface); border-color: var(--border) !important; }
.ql-snow .ql-picker-item:hover, .ql-snow .ql-picker-label:hover { color: var(--accent-strong); }
.ql-snow .ql-picker-label:hover .ql-stroke { stroke: var(--accent-strong); }
.ql-snow.ql-toolbar button:hover, .ql-snow.ql-toolbar button.ql-active { color: var(--accent-strong); }
.ql-snow.ql-toolbar button:hover .ql-stroke, .ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: var(--accent-strong); }
.ql-snow .ql-tooltip { background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow); }
.ql-snow .ql-tooltip input[type="text"] { background: #fff; color: var(--text); border: 1px solid var(--border); }
.ql-snow .ql-tooltip a.ql-action::after, .ql-snow .ql-tooltip a.ql-remove::before { color: var(--accent-strong); }

/* ---------- Flash / errors ---------- */

.flash {
    background: rgba(47, 145, 83, 0.1);
    border: 1px solid rgba(47, 145, 83, 0.35);
    color: #1e7038;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-size: 0.92rem;
}
.error { color: var(--danger); font-size: 0.92rem; }

/* ---------- Footer ---------- */

.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    color: var(--muted);
    padding: 40px 0;
    text-align: center;
    font-size: 0.85rem;
}
.site-footer img { height: 40px; margin-bottom: 18px; }
.site-footer a { color: var(--muted); text-decoration: underline; }
.site-footer p { margin: 0 0 6px; color: var(--muted); }

/* ---------- Tables (admin) ---------- */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
th, td { border-bottom: 1px solid var(--border); padding: 14px 16px; text-align: left; font-size: 0.92rem; }
th { color: var(--muted); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }

.admin-nav { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); }
.admin-nav a:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Nav dropdown (admin-area reuse, not used in public nav) ---------- */

.nav-item { position: relative; }
.nav-dropdown-toggle { background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.75); font-family: var(--font); font-size: 0.9rem; font-weight: 600; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; }
.nav-dropdown-toggle:hover { color: #fff; }
.nav-caret { font-size: 0.6rem; transition: transform 0.2s ease; }
.nav-item.open .nav-caret { transform: rotate(180deg); }
.nav-dropdown { display: none; position: absolute; top: calc(100% + 14px); left: 0; min-width: 210px; background: #242425; border: 1px solid var(--border-on-dark); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px; z-index: 20; }
.nav-item.open .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 10px 12px; border-radius: 6px; color: #fff; font-size: 0.9rem; font-weight: 500; }
.nav-dropdown a:hover { background: rgba(255,255,255,0.06); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .item-layout { grid-template-columns: 1fr; }
    .booking-form { position: static; }
    .hero-split { grid-template-columns: 1fr; }
    .jump-row { grid-template-columns: 1fr; }
    .jump-row img { min-height: 220px; }
    .about-icons { grid-template-columns: 1fr; transform: none; margin-top: 32px; padding-bottom: 0; }
    .about-photo-section { padding-bottom: 40px; }
    .cert-split { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-facts { padding: 32px 0; }
    .header-meta { display: none; }
}

@media (max-width: 640px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        position: absolute;
        right: 24px;
        left: 24px;
        top: 66px;
        background: #242425;
        border: 1px solid var(--border-on-dark);
        border-radius: var(--radius);
        padding: 20px;
        z-index: 10;
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    section { padding: 44px 0; }
    .header-inner { padding: 12px 16px; gap: 12px; }
    .partner-logo { display: none; }
    .logo img { height: 26px; }
    .hero-actions, .jump-row-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn, .jump-row-actions .btn { display: flex; text-align: center; padding: 13px 16px; font-size: 0.85rem; white-space: normal; width: 100%; box-sizing: border-box; }
    h1, h2, h3 { letter-spacing: 0; }
    h1 { font-size: 1.2rem; line-height: 1.3; }
    h2 { font-size: 0.92rem; line-height: 1.35; }
}

@media (max-width: 400px) {
    .header-inner { gap: 8px; }
    .nav-toggle { padding: 6px 9px; font-size: 1.05rem; }
}
