/* ==========================================================================
   KidsDoctor - Main Page Styles (main.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    height: 900px;
    position: relative;
    overflow: hidden;
    background: #f7f1ec;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    padding-top: 118px;
    margin-left: max(40px, calc((100% - 1600px) / 2));
    max-width: 650px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 10px 17px;
    border: 1px solid #b6a17a;
    border-radius: 30px;
    color: #9d8655;
    font-size: 16px;
    font-weight: 600;
    background: #ffffffdf;
}

.hero h1 {
    margin-top: 36px;
    font-size: 80px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.05;
    color: #061f42;
}

.hero h1 > span {
    display: block;
    font-size: 36px;
    letter-spacing: 0;
    margin-bottom: 10px;
    color: var(--ink);
}

.hero-description {
    margin: 25px 0 40px;
    font-size: 24px;
    letter-spacing: -0.05em;
    line-height: 1.67;
    color: #777;
}

.hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.hero-caption {
    width: fit-content;
    margin: 0 auto 15px;
    padding: 5px 28px;
    border-radius: 50px;
    background: #fff8ebec;
    box-shadow: 0 8px 15px #0002;
    font-size: 36px;
    letter-spacing: -0.06em;
    line-height: 1.6;
    color: #333;
}

.hero-caption em,
.hero-caption strong {
    font-weight: 800;
}

.hero-caption strong {
    color: var(--navy);
}

/* --------------------------------------------------------------------------
   2. Hero Competencies Carousel / Bar
   -------------------------------------------------------------------------- */
.hero-competencies {
    background: #ffffff9c;
    backdrop-filter: blur(8px);
}

.hero-competencies-inner {
    display: flex;
    height: 180px;
}

.hero-competency {
    flex: 1;
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    padding: 25px 38px;
    min-width: 0;
    text-align: left;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 18px;
    letter-spacing: -0.05em;
    transition:
        flex 0.45s,
        background 0.4s;
}

.hero-competency img {
    width: 48px;
    height: 48px;
    filter: grayscale(1);
    opacity: 0.8;
}

.hero-competency-sub,
.hero-competency b {
    display: none;
}

.hero-competency.is-active {
    flex: 1.35;
    background: #9c8a73;
    color: #fff;
}

.hero-competency.is-active img {
    filter: brightness(0) invert(1);
}

.hero-competency.is-active .hero-competency-sub {
    display: block;
    margin-bottom: -12px;
    opacity: 0.75;
    font-size: 14px;
}

.hero-competency.is-active b {
    display: block;
    position: absolute;
    bottom: 4px;
    right: 22px;
    font-size: 80px;
    line-height: 1;
    color: #fff6;
}

/* --------------------------------------------------------------------------
   3. Core Competencies Section
   -------------------------------------------------------------------------- */
.core-section {
    color: #fff;
    background: var(--navy);
    padding-top: 50px;
}

.core-section .eyebrow {
    border-color: #a2865666;
}

.core-section .section-description {
    color: #a1b5ce;
}

.competency-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.competency-card {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 44px 20px;
    text-align: center;
    border-radius: 25px;
    background: linear-gradient(140deg, #ffffff19, #ffffff20);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.competency-card:hover,
.competency-card:focus-visible {
    transform: translateY(-8px);
    border-color: #c6a56899;
    background: #ffffff24;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.number {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: linear-gradient(110deg, #c6a568, #b38e49);
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 3px 8px #c6a56833;
}

.competency-card > img {
    margin: 24px 0;
    width: 48px;
    height: 48px;
}

.competency-card h3 {
    font-size: 22px;
    white-space: nowrap;
    letter-spacing: -0.06em;
}

.competency-card .competency-subtitle {
    color: var(--gold-light);
    font-size: 16px;
    margin: 8px 0 20px;
}

.competency-card > p:last-child {
    color: #a1b5ce;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.05em;
}

/* --------------------------------------------------------------------------
   4. Program Section
   -------------------------------------------------------------------------- */
.program-section {
    background: var(--cream);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.program-number {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 1px solid #d3b583;
    color: #c7a15c;
    background: #f7f1e6;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 700;
}

.program-card-link {
    display: block;
    height: calc(100% - 80px);
    border: 1px solid #e2c497;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.program-card-link:hover {
    box-shadow: 0 10px 30px #152d4e12;
}

.program-card-link > img {
    width: 100%;
    height: auto;
    aspect-ratio: 449 / 302;
    object-fit: cover;
}

.program-card-body {
    padding: 40px 28px;
}

.program-card-body h3 {
    font-size: 28px;
    letter-spacing: -0.06em;
}

.program-card-body .gold {
    color: var(--gold);
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 16px;
}

.program-card-body > p:last-child {
    color: #8c8c8c;
    font-size: 18px;
    letter-spacing: -0.05em;
}

/* --------------------------------------------------------------------------
   5. Brand Quote Section
   -------------------------------------------------------------------------- */
.brand-quote {
    padding: 100px 0;
    color: #fff;
    background: var(--navy-deep);
    text-align: center;
}

.brand-quote .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.quote-line {
    width: 150px;
    height: 1px;
    background: #b38e4980;
}

.brand-quote img {
    width: 82px;
    height: 24px;
    margin: 0 auto 20px;
}

.brand-quote h2 {
    font-size: 40px;
    line-height: 1.4;
    font-weight: 700;
}

.brand-quote p {
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 20px;
}

/* --------------------------------------------------------------------------
   6. Quick Info Section
   -------------------------------------------------------------------------- */
.quick-section .section-heading {
    margin-bottom: 50px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 35px 15px;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 24px;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.quick-card:hover,
.quick-card:focus-visible {
    transform: translateY(-8px);
    border-color: #e2c497;
    background: #fcf9f1;
    box-shadow: 0 12px 24px rgba(21, 45, 78, 0.12);
}

.quick-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border: 1px solid #e2c497;
    background: #f8f1e5;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.quick-card:hover .quick-icon {
    transform: scale(1.06);
}

.quick-card h3 {
    margin: 20px 0 12px;
}

.quick-card p {
    font-size: 18px;
    color: #8c8c8c;
    letter-spacing: -0.05em;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   7. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1500px) {
    .hero-content {
        margin-left: 8.33%;
        max-width: 580px;
    }

    .hero h1 {
        font-size: 68px;
    }

    .hero h1 > span {
        font-size: 30px;
    }

    .hero-description {
        font-size: 21px;
    }

    .hero-image {
        object-position: 58% center;
    }

    .hero-competency {
        padding-inline: 25px;
        font-size: 16px;
    }

    .competency-card {
        padding-inline: 15px;
    }

    .competency-card h3 {
        font-size: 18px;
    }

    .competency-card > p:last-child {
        font-size: 15px;
    }

    .program-card-body {
        padding: 30px 24px;
    }

    .program-card-body h3 {
        font-size: 24px;
    }
}

@media (max-width: 1100px) {
    .hero {
        height: 790px;
    }

    .hero-image {
        inset: 0;
        width: 100%;
        height: 100%;
        object-position: 60% center;
    }

    .hero-content {
        margin-left: var(--site-gutter);
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 56px;
    }

    .hero h1 > span {
        font-size: 26px;
    }

    .hero-description {
        font-size: 18px;
        max-width: 460px;
    }

    .hero-caption {
        font-size: 28px;
    }

    .hero-competencies-inner {
        height: 150px;
        width: 100%;
    }

    .hero-competency {
        padding: 20px 18px;
        font-size: 14px;
    }

    .hero-competency img {
        width: 35px;
        height: 35px;
    }

    .hero-competency.is-active .hero-competency-sub {
        font-size: 11px;
    }

    .hero-competency.is-active b {
        font-size: 55px;
        bottom: 0;
        right: 12px;
    }

    .competency-grid {
        gap: 12px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .competency-card {
        min-height: 350px;
        padding: 30px 16px;
    }

    .competency-card h3 {
        white-space: normal;
        font-size: 20px;
    }

    .program-card-body h3 {
        font-size: 21px;
    }

    .program-card-body > p:last-child {
        font-size: 16px;
    }

    .quick-card {
        min-height: 250px;
    }

    .quick-card p {
        font-size: 16px;
    }

    .brand-quote h2 {
        font-size: 34px;
    }

    .quote-line {
        width: 90px;
    }
}

@media (max-width: 700px) {
    .hero {
        height: 880px;
    }

    .hero-image {
        width: 100%;
        height: 470px;
        top: 315px;
        object-fit: cover;
        object-position: 70% center;
        opacity: 0.95;
    }

    .hero::after {
        content: "";
        position: absolute;
        top: 310px;
        left: 0;
        right: 0;
        height: 130px;
        background: linear-gradient(#f7f1ec, transparent);
    }

    .hero-content {
        padding-top: 35px;
        margin-inline: 22px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero h1 {
        font-size: clamp(40px, 10.4vw, 60px);
        margin-top: 22px;
    }

    .hero h1 > span {
        font-size: clamp(18px, 4.7vw, 26px);
        margin-bottom: 8px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.7;
        margin: 18px 0 20px;
    }

    .hero-description br {
        display: none;
    }

    .hero .button-row {
        gap: 8px;
    }

    .hero .button {
        font-size: 13px;
        padding-inline: 16px;
    }

    .hero-caption {
        font-size: 20px;
        padding-inline: 18px;
        margin-bottom: 14px;
    }

    .hero-competencies-inner {
        height: 130px;
    }

    .hero-competency {
        flex: 1;
        padding: 12px 5px;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        font-size: 11px;
        gap: 12px;
        line-height: 1.3;
    }

    .hero-competency.is-active {
        flex: 1;
    }

    .hero-competency.is-active .hero-competency-sub,
    .hero-competency.is-active b {
        display: none;
    }

    .hero-competency img {
        width: 30px;
        height: 30px;
        margin-top: 12px;
    }

    .competency-grid {
        grid-template-columns: 1fr;
    }

    .competency-card {
        min-height: 0;
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 8px 18px;
        text-align: left;
        padding: 25px;
        border-radius: 20px;
    }

    .competency-card .number {
        display: none;
    }

    .competency-card > img {
        grid-row: 1 / 4;
        margin: 0;
        align-self: start;
    }

    .competency-card h3 {
        font-size: 20px;
    }

    .competency-card .competency-subtitle {
        margin: 0;
        font-size: 14px;
    }

    .competency-card > p:last-child {
        font-size: 14px;
    }

    .competency-card > p:last-child br {
        display: none;
    }

    .program-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .program-number {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-bottom: 14px;
    }

    .program-card-link {
        height: auto;
        border-radius: 22px;
    }

    .program-card-body {
        padding: 27px 24px;
    }

    .program-card-body h3 {
        font-size: 24px;
    }

    .brand-quote {
        padding: 65px 0;
    }

    .brand-quote .container {
        justify-content: center;
    }

    .brand-quote h2 {
        font-size: 28px;
    }

    .quote-line {
        display: none;
    }

    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .quick-card {
        min-height: 215px;
        padding: 25px 12px;
    }

    .quick-card h3 {
        font-size: 20px;
    }

    .quick-card p {
        font-size: 14px;
    }
}
