:root {
    --navy: #14233f;
    --navy-deep: #0c172b;
    --blue: #2f6fa8;
    --blue-soft: #eaf3fb;
    --orange: #e45a24;
    --orange-soft: #fff1ea;
    --cream: #fbfaf7;
    --text: #263142;
    --muted: #687181;
    --line: #e8e5df;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
}

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

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

/* Header */
.site-header {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(20,35,63,.08);
    position: relative;
    z-index: 5;
}

.header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-mark,
.footer-logo {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(145deg, var(--orange), #bd3e12);
    font-family: "Playfair Display", serif;
    font-size: 23px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(228,90,36,.2);
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--navy);
}

.brand-tagline {
    color: var(--orange);
    font-size: 10px;
    font-style: italic;
    margin-top: -3px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--navy);
}

.contact-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--navy);
    border-radius: 50%;
    font-weight: 700;
}

.header-contact small,
.footer-phone small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.header-contact strong {
    display: block;
    font-size: 14px;
}

/* Hero */
.hero {
    min-height: 410px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 15%, rgba(228,90,36,.10), transparent 30%),
        linear-gradient(180deg, #fff 0%, #f5f7f8 100%);
    display: flex;
    align-items: center;
    text-align: center;
}

.hero::after {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -80px;
    height: 150px;
    background: var(--cream);
    border-radius: 50% 50% 0 0 / 65% 65% 0 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 54px 0 90px;
}

.eyebrow {
    color: var(--orange);
    font-size: 11px;
    letter-spacing: .26em;
    font-weight: 700;
}

h1 {
    margin-top: 13px;
    color: var(--navy);
    font-family: "Playfair Display", serif;
    font-size: clamp(46px, 6vw, 76px);
    line-height: .98;
    letter-spacing: -.035em;
}

h1 span {
    color: var(--orange);
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 22px auto 17px;
}

.ornament i {
    width: 62px;
    height: 1px;
    background: #d7b9ab;
}

.ornament b {
    color: var(--orange);
    font-size: 16px;
}

.hero-lead {
    font-size: 18px;
    color: var(--navy);
}

.hero-lead strong {
    font-weight: 700;
}

.hero-instruction {
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
}

/* Branches */
.branches {
    padding: 12px 0 90px;
    background: var(--cream);
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.branch-card {
    min-height: 660px;
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(20,35,63,.07);
    transition: transform .3s ease, box-shadow .3s ease;
}

.branch-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 65px rgba(20,35,63,.12);
}

.branch-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.academy::before {
    background: var(--orange);
}

.college::before {
    background: var(--blue);
}

.card-top {
    padding: 37px 40px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.branch-type {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    padding: 7px 10px;
    border-radius: 99px;
}

.academy .branch-type {
    color: var(--orange);
    background: var(--orange-soft);
}

.college .branch-type {
    color: var(--blue);
    background: var(--blue-soft);
}

.logo-wrap {
    width: 108px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    margin-top: -8px;
}

.logo-wrap img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.card-body {
    padding: 6px 40px 45px;
    position: relative;
    z-index: 2;
}

.branch-number {
    font-family: "Playfair Display", serif;
    color: #d7d9dc;
    font-size: 16px;
    margin-bottom: 3px;
}

.branch-card h2 {
    font-family: "Playfair Display", serif;
    color: var(--navy);
    font-size: clamp(33px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -.025em;
}

.branch-card h2 em {
    font-style: normal;
    color: var(--orange);
}

.college h2 em {
    color: var(--blue);
}

.accent-line {
    width: 48px;
    height: 3px;
    margin: 19px 0 12px;
}

.academy .accent-line {
    background: var(--orange);
}

.college .accent-line {
    background: var(--blue);
}

.motto {
    font-family: "Playfair Display", serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
}

.description {
    color: var(--muted);
    font-size: 13px;
    max-width: 460px;
    margin-top: 9px;
}

.details {
    border-top: 1px solid var(--line);
    margin-top: 25px;
    padding-top: 19px;
    display: grid;
    gap: 14px;
}

.detail {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.detail-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 14px;
}

.academy .detail-icon {
    background: var(--orange-soft);
    color: var(--orange);
}

.college .detail-icon {
    background: var(--blue-soft);
    color: var(--blue);
}

.detail small {
    display: block;
    color: #8b929c;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
}

.detail p {
    color: var(--text);
    font-size: 12px;
    line-height: 1.45;
    margin-top: 2px;
}

.branch-btn {
    margin-top: 25px;
    width: 100%;
    min-height: 54px;
    padding: 0 18px 0 21px;
    border-radius: 9px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}

.academy .branch-btn {
    background: var(--orange);
    box-shadow: 0 10px 22px rgba(228,90,36,.22);
}

.college .branch-btn {
    background: var(--navy);
    box-shadow: 0 10px 22px rgba(20,35,63,.20);
}

.branch-btn:hover {
    transform: translateY(-2px);
}

.arrow {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.card-watermark {
    position: absolute;
    right: -24px;
    bottom: -66px;
    font-family: "Playfair Display", serif;
    font-size: 260px;
    line-height: 1;
    font-weight: 700;
    opacity: .035;
    color: var(--navy);
}

/* Values */
.values {
    margin-top: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 23px 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    box-shadow: 0 10px 35px rgba(20,35,63,.04);
}

.value {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding-right: 18px;
    border-right: 1px solid var(--line);
}

.value:last-child {
    border-right: 0;
}

.value > span {
    font-family: "Playfair Display", serif;
    color: var(--orange);
    font-size: 18px;
}

.value strong {
    display: block;
    color: var(--navy);
    font-size: 12px;
}

.value p {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
    margin-top: 3px;
}

/* Footer */
.site-footer {
    background: var(--navy-deep);
    color: #fff;
}

.footer-main {
    min-height: 145px;
    display: grid;
    grid-template-columns: 1fr 1.4fr auto;
    gap: 35px;
    align-items: center;
}

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

.footer-logo {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.footer-brand strong {
    display: block;
    font-size: 14px;
    letter-spacing: .13em;
}

.footer-brand span {
    display: block;
    color: #e37a4e;
    font-size: 9px;
    font-style: italic;
}

.footer-copy p {
    color: #c8d0dc;
    font-size: 12px;
}

.footer-copy small {
    display: block;
    color: #78869a;
    font-size: 10px;
    margin-top: 5px;
}

.footer-phone {
    padding-left: 35px;
    border-left: 1px solid rgba(255,255,255,.12);
}

.footer-phone small {
    color: #78869a;
    letter-spacing: .13em;
}

.footer-phone strong {
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    .branch-grid {
        grid-template-columns: 1fr;
    }

    .branch-card {
        min-height: auto;
    }

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

    .value:nth-child(2) {
        border-right: 0;
    }

    .value:nth-child(-n+2) {
        padding-bottom: 12px;
        border-bottom: 1px solid var(--line);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        padding: 30px 0;
    }

    .footer-phone {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 30px, 1180px);
    }

    .header-inner {
        min-height: 72px;
    }

    .brand-name {
        font-size: 13px;
    }

    .header-contact {
        display: none;
    }

    .hero {
        min-height: 390px;
    }

    .hero-content {
        padding-top: 40px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .branch-card {
        border-radius: 18px;
    }

    .card-top {
        padding: 30px 25px 5px;
    }

    .card-body {
        padding: 6px 25px 30px;
    }

    .branch-card h2 {
        font-size: 36px;
    }

    .values {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .value,
    .value:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 15px;
    }

    .value:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

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