/* The Metric Academy — standalone static site */
:root {
    --tm-navy: #16375d;
    --tm-navy-deep: #0c2039;
    --tm-gold: #c8a24a;
    --tm-gold-soft: #e7cf9a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #f5f3ef;
    color: #1f1b16;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
    -webkit-font-smoothing: antialiased;
}

@keyframes tm-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tm-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 162, 74, 0.45); }
    50% { box-shadow: 0 0 0 8px rgba(200, 162, 74, 0); }
}

.tm-reveal { animation: tm-fade-up 0.6s ease-out both; }

.tm-page { padding: 0 12px; }

.tm-filecard {
    max-width: 720px;
    margin: 18px auto 8px;
    background: #fff;
    border-radius: 18px;
    padding: 20px 16px 28px;
    box-shadow: 0 1px 4px rgba(12, 32, 57, 0.07);
}

@media (min-width: 768px) {
    .tm-filecard { padding: 30px 34px 34px; margin-top: 26px; }
}

.tm-group { margin: 26px 0 4px; }

.tm-group-label {
    font-family: Georgia, "Times New Roman", "Noto Naskh Arabic", serif;
    font-size: 23px;
    font-weight: 600;
    color: #241f1a;
    margin: 0 0 12px;
    line-height: 1.3;
}

.tm-header { margin: 30px 0 4px; }

.tm-header-fact { font-size: 13px; color: #8a8577; margin-top: -6px; }

p { font-size: 14.5px; line-height: 1.8; color: #3d3830; margin: 10px 0; }

.tm-facts { margin: 12px 0; }

.tm-fact {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    border-bottom: 1px solid #eceae6;
    font-size: 13.5px;
}

.tm-fact span:first-child { color: #6b7a8d; }

.tm-fact span:last-child { color: #241f1a; font-weight: 500; text-align: end; }

.tm-bullets { list-style: none; padding: 0; margin: 8px 0; }

.tm-bullets li {
    position: relative;
    padding-inline-start: 22px;
    font-size: 14.5px;
    line-height: 1.7;
    color: #3d3830;
    margin: 10px 0;
}

.tm-bullets li::before {
    content: "";
    position: absolute;
    inset-inline-start: 2px;
    top: 9px;
    width: 7px;
    height: 7px;
    background: var(--tm-gold);
    border-radius: 2px;
}

.tm-numlist { list-style: none; padding: 0; margin: 8px 0; counter-reset: tmnum; }

.tm-numlist li {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #eceae6;
    font-size: 14.5px;
    line-height: 1.7;
    color: #3d3830;
}

.tm-numlist .tm-num { color: #8a8577; font-size: 13.5px; min-width: 18px; }

.tm-btn {
    display: inline-block;
    border: 1px solid #d8d4d0;
    background: #fff;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #241f1a;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.tm-btn:hover { border-color: var(--tm-navy); }

.tm-btn-primary { background: #2b2a26; color: #fff; border-color: #2b2a26; }

.tm-btn-primary:hover { background: #16375d; border-color: #16375d; }

.tm-copy-btn { font-size: 12.5px; padding: 7px 14px; }

.tm-textlink { color: var(--tm-navy); font-weight: 600; font-size: 14px; }

.tm-callout {
    background: #faf8f3;
    border: 1px solid #eceae6;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 12px 0;
}

.tm-callout-title { font-weight: 700; font-size: 14px; color: #241f1a; margin-bottom: 4px; }

.tm-callout-body { font-size: 13.5px; color: #5c5545; line-height: 1.7; }

.tm-caption { font-size: 12px; color: #8a8577; margin: 6px 0 10px; }

.tm-closing { text-align: center; color: #8a8577; font-size: 13px; margin: 28px 0 6px; }

.tm-nav { margin: 14px 0 4px; }

.tm-illu { width: 100%; border-radius: 14px; display: block; }

/* Heroes */
.tm-hero {
    background: linear-gradient(135deg, var(--tm-navy) 0%, var(--tm-navy-deep) 100%);
    border-radius: 16px;
    padding: 28px 24px;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.tm-hero::after {
    content: "";
    position: absolute;
    inset-inline-end: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid rgba(200, 162, 74, 0.35);
}

.tm-hero::before {
    content: "";
    position: absolute;
    inset-inline-end: 24px;
    top: 24px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tm-gold);
    animation: tm-pulse 2.4s ease-in-out infinite;
}

.tm-hero-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.tm-logo { width: 40px; height: 40px; border-radius: 8px; background: #fff; padding: 2px; }

.tm-hero-eyebrow { font-size: 11px; letter-spacing: 3px; font-weight: 700; color: var(--tm-gold); }

.tm-hero-title { font-size: 27px; font-weight: 800; line-height: 1.25; position: relative; }

.tm-hero-tagline { font-size: 15px; color: var(--tm-gold-soft); margin-top: 6px; font-weight: 600; }

.tm-hero-sub { font-size: 12.5px; color: #c3d2e4; margin-top: 10px; line-height: 1.6; max-width: 640px; }

/* Cards grid */
.tm-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 14px 0 6px; }

@media (min-width: 768px) { .tm-grid { grid-template-columns: 1fr 1fr; } }

.tm-card {
    border: 1px solid #eae9ea;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tm-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(12, 32, 57, 0.12); border-color: var(--tm-gold); }

.tm-card-img { width: 100%; border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }

.tm-card-num { font-size: 10.5px; letter-spacing: 1.5px; color: var(--tm-gold); font-weight: 700; text-transform: uppercase; }

.tm-card-name { font-size: 16px; font-weight: 700; color: var(--tm-navy-deep); }

.tm-card-detail { font-size: 12px; color: #6b7a8d; line-height: 1.5; }

.tm-card .tm-btn { margin-top: 6px; }

.tm-cert-badge {
    align-self: stretch;
    background: linear-gradient(135deg, var(--tm-navy) 0%, var(--tm-navy-deep) 100%);
    border-radius: 10px;
    padding: 22px 12px;
    text-align: center;
    color: var(--tm-gold);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Navbar */
.tm-navbar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(12, 32, 57, 0.97);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid var(--tm-gold);
    color: #fff;
}

.tm-navbar-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 10px 16px; }

.tm-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-inline-end: auto; }

.tm-brand-logo { width: 30px; height: 30px; border-radius: 6px; background: #fff; padding: 1px; }

.tm-brand-name { color: var(--tm-gold); font-weight: 800; font-size: 16px; letter-spacing: 0.5px; }

.tm-links { display: none; align-items: center; gap: 14px; }

.tm-menu-toggle { display: none; }

@media (min-width: 880px) {
    .tm-links { display: flex; }
    .tm-burger { display: none; }
}

.tm-navlink {
    color: #dce6f2;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 6px 2px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.tm-navlink:hover { color: var(--tm-gold); }

.tm-dd { position: relative; }

.tm-dd-summary { list-style: none; }
.tm-dd-summary::-webkit-details-marker { display: none; }

.tm-dd-summary::after { content: "\25BE"; margin-inline-start: 4px; font-size: 10px; }

.tm-dd[open] .tm-dd-summary { color: var(--tm-gold); }

.tm-dd-panel {
    position: absolute;
    inset-inline-start: 0;
    top: calc(100% + 8px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(12, 32, 57, 0.18);
    padding: 8px;
    min-width: 270px;
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid #eee;
    z-index: 70;
}

.tm-dd-link { display: block; padding: 8px 10px; border-radius: 8px; color: var(--tm-navy-deep); text-decoration: none; font-size: 13px; font-weight: 600; }

.tm-dd-link:hover { background: #f4f1e8; color: var(--tm-navy); }

.tm-dd-label { font-size: 10.5px; letter-spacing: 1.5px; color: var(--tm-gold); font-weight: 700; text-transform: uppercase; padding: 8px 10px 2px; }

.tm-dd-cta { color: var(--tm-navy) !important; background: #f4f1e8; margin-top: 6px; text-align: center; }

.tm-inquire {
    background: var(--tm-gold);
    color: var(--tm-navy-deep);
    font-weight: 800;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.tm-inquire:hover { background: var(--tm-gold-soft); }

.tm-burger {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    padding: 4px 12px;
    cursor: pointer;
    user-select: none;
}

.tm-mobile-menu {
    background: var(--tm-navy-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 18px 16px;
    display: none;
    flex-direction: column;
    max-height: 75vh;
    overflow-y: auto;
}

.tm-menu-toggle:checked ~ .tm-mobile-menu { display: flex; }

@media (min-width: 880px) { .tm-mobile-menu { display: none !important; } }

.tm-m-label { color: var(--tm-gold); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin: 12px 0 2px; font-weight: 700; }

.tm-m-link { color: #dce6f2; text-decoration: none; padding: 9px 2px; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

.tm-m-course { padding-inline-start: 16px; font-size: 14px; }

.tm-m-inquire { margin-top: 14px; text-align: center; }

/* Footer */
.tm-footer { background: var(--tm-navy-deep); color: #c3d2e4; margin-top: 28px; }

.tm-footer-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 22px; padding: 30px 18px; }

@media (min-width: 768px) { .tm-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.tm-footer-brand { display: flex; align-items: center; gap: 8px; }

.tm-footer-tag { font-size: 12.5px; margin-top: 10px; max-width: 360px; line-height: 1.7; }

.tm-footer-head { color: var(--tm-gold); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }

.tm-footer-link { display: block; color: #c3d2e4; text-decoration: none; font-size: 13.5px; padding: 4px 0; }

.tm-footer-link:hover { color: var(--tm-gold); }

.tm-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: center; font-size: 12px; padding: 14px; color: #8fa3bb; }

/* Payment card */
.tm-pay { border: 1px solid #ecdfc0; background: #fbf7ec; border-radius: 14px; padding: 18px; margin: 12px 0; }

.tm-pay-title { font-size: 16px; font-weight: 800; color: var(--tm-navy-deep); margin-bottom: 6px; }

.tm-pay-body { font-size: 13.5px; color: #5c5545; line-height: 1.7; margin-bottom: 14px; }

.tm-pay-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }

.tm-pay-qr { width: 150px; height: 150px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid #e5d9bd; background: #fff; }

.tm-pay-info { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.tm-pay-addr { font-size: 16px; font-weight: 800; color: var(--tm-navy); letter-spacing: 0.3px; direction: ltr; }

.tm-pay-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.tm-pay-btn { background: var(--tm-navy); color: #fff; font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px; text-decoration: none; }

.tm-pay-btn:hover { background: var(--tm-navy-deep); }

.tm-pay-fawry { font-size: 12px; color: #8a7f66; font-weight: 600; }

.tm-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 6px 0; }

/* Booking form */
.tm-form { display: flex; flex-direction: column; gap: 14px; margin: 10px 0 4px; }

.tm-honey { position: absolute; left: -9999px; opacity: 0; height: 0; }

.tm-field { display: flex; flex-direction: column; gap: 6px; }

.tm-field span { font-size: 13px; font-weight: 700; color: var(--tm-navy-deep); }

.tm-field input, .tm-field select, .tm-field textarea {
    border: 1px solid #d8d4d0;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #1f1b16;
    width: 100%;
}

.tm-field input:focus, .tm-field select:focus, .tm-field textarea:focus {
    outline: 2px solid var(--tm-gold);
    outline-offset: 1px;
    border-color: var(--tm-gold);
}

.tm-form-submit {
    background: var(--tm-gold);
    color: var(--tm-navy-deep);
    font-weight: 800;
    font-size: 15px;
    padding: 13px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
}

.tm-form-submit:hover { background: var(--tm-gold-soft); }
