/*
=====================================================
RESPONSIVE BREAKPOINTS

Large desktop: 1400px and above
Small laptop:  992px to 1399px
Tablet:        768px to 991px
Phone:         up to 767px
Small phone:   up to 575px
=====================================================
*/


/* =====================================================
   SMALL LAPTOP / COMPACT DESKTOP
   992px to 1399px
===================================================== */

@media (min-width: 992px) and (max-width: 1399.98px) {

    /* Header */

    .header-logo {
        max-width: 240px;
        max-height: 110px;
    }

    .header-nav {
        gap: 1rem;
    }

    .header-nav a,
    .header-nav span {
        font-size: 1rem;
    }

    /* Hero navigation */

    .hero-menu {
        width: 100%;
        max-width: 255px;

        padding-right: 10px;
    }

    .hero-link {
        width: 100%;

        gap: clamp(20px, 2.5vw, 42px);
        margin: 52px 0;
    }

    .hero-circle {
        width: 34px;
        height: 34px;
    }

    .hero-line {
        left: 15px;
        top: 68px;
        bottom: 68px;
    }

    .hero-text {
        font-size: clamp(1.3rem, 1.75vw, 1.7rem);
        line-height: 1.2;
        white-space: nowrap;
    }

    .hero-navigation {
        overflow: hidden;
    }

    /* Timeline */

    .timeline-content {
        width: min(280px, 23vw);
    }

    .timeline-content h4 {
        font-size: 1.65rem;
    }

    .timeline-content p {
        font-size: 1.1rem;
    }

    /* Arrival */

    .arrival-overlay-items {
        left: 4%;

        width: 92%;

        gap: 35px;
    }

    .arrival-map {
        width: min(42vw, 500px);
    }

    .arrival-plan {
        width: min(42vw, 560px);
    }
}

/* =====================================================
   LARGE DESKTOP ARRIVAL LAYOUT
   1200px and wider
===================================================== */

@media (min-width: 1200px) {

    .arrival-overlay-items {
        left: 50%;
        width: min(1180px, calc(100% - 80px));

        justify-content: center;
        align-items: center;

        gap: clamp(35px, 4vw, 70px);

        transform: translate(-50%, -50%);
    }

    .arrival-map {
        flex: 0 1 470px;
        width: min(470px, 40vw);
    }

    .arrival-map iframe {
        width: 100%;
        height: clamp(280px, 23vw, 330px);
    }

    .arrival-plan {
        flex: 0 1 540px;
        width: min(540px, 43vw);

        transform: none;
    }

    .arrival-plan img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}


/* =====================================================
   UP TO 1200px
   Stack arrival cards vertically
===================================================== */

@media (max-width: 1199.98px) {

    .arrival-hero {
        height: auto;

        overflow: hidden;
    }

    .arrival-bg {
        height: clamp(300px, 45vw, 520px);
    }

    .arrival-overlay-items {
        position: relative;

        top: auto;
        left: auto;
        right: auto;

        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 30px;

        padding: 30px 20px;
        margin: 0;

        background: var(--color-white);

        transform: none;
    }

    .arrival-card,
    .arrival-map,
    .arrival-plan {
        width: 100%;
        max-width: 600px;

        transform: none;
    }

    .arrival-map iframe {
        height: clamp(260px, 55vw, 380px);
    }

    .arrival-blue-bar {
        position: relative;
    }

    .arrival-text-section {
        padding-top: 50px;
    }
}


/* =====================================================
   TABLET AND SMALLER
   Up to 991px
===================================================== */

@media (max-width: 991.98px) {

    /* Header */

    .top-header {
        height: auto;
        min-height: 100px;

        padding: 14px 0;
    }

    .top-header-content {
        flex-wrap: nowrap;
        gap: 16px;
    }

    .header-logo {
        flex: 0 1 auto;

        max-width: 180px;
        max-height: 85px;

        margin-left: 3%;
    }

    .header-nav {
        width: auto;

        flex: 0 0 auto;
        flex-wrap: nowrap;

        gap: 0.65rem;

        margin-right: 3%;

        white-space: nowrap;
    }

    .header-nav a,
    .header-nav span {
        font-size: 0.95rem;
        white-space: nowrap;
    }

    /* Hero */

    .hero-image {
        height: clamp(380px, 65vh, 570px);
    }

    .hero-info-box {
        left: 24px;
        right: 24px;
        bottom: 28px;

        width: auto;
        padding: 28px;
    }

    /* Mobile/tablet hero navigation */

    .hero-navigation {
        height: auto;
        min-height: auto;

        padding: 25px 20px;
    }

    .hero-menu {
        width: 100%;
        max-width: 760px;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;

        padding: 0;
    }

    .hero-line {
        display: none;
    }

    .hero-link {
        min-width: 0;
        min-height: 52px;

        display: flex;
        align-items: center;
        gap: 12px;

        margin: 0;
        padding: 14px 16px;

        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 12px;
    }

    .hero-circle {
        width: 16px;
        height: 16px;
    }

    .hero-text {
        font-size: 1.1rem;

        overflow-wrap: anywhere;
    }

    /* History */

    .history-card {
        margin-bottom: 2rem;
        padding: 35px;

        box-shadow: -14px 14px 0 var(--color-light-blue);
    }

    .section-title {
        font-size: 2.4rem;
        white-space: normal;
    }

    /* Leadership */

    .leadership-entry {
        margin-bottom: 80px;
    }

    .leader-image {
        max-width: 420px;
    }

    .leader-text {
        margin-top: 10px;
    }

    .leader-text p {
        font-size: 1.3rem;
        line-height: 1.7;
    }

    .quote-icon {
        display: none;
    }

    /* Gallery */

    .gallery-track img {
        width: 260px;
        height: 170px;
    }

    /* Timeline becomes vertical */

    .timeline-section {
        padding: 70px 0;
    }

    .timeline {
        position: relative;

        width: 100%;
        height: auto;

        display: block;

        margin-top: 45px;
        padding-left: 46px;
    }

    .timeline-line {
        left: 14px;
        right: auto;
        top: 0;
        bottom: 0;

        width: 4px;
        height: auto;

        transform: none;
    }

    .timeline-line::after {
        display: none;
    }

    .timeline-item {
        position: relative;

        width: 100%;
        min-height: auto;

        margin-bottom: 48px;
        padding: 0;

        text-align: left;
    }

    .timeline-item:last-child {
        margin-bottom: 0;
    }

    .timeline-content,
    .timeline-item.top .timeline-content,
    .timeline-item.bottom .timeline-content {
        position: static;

        left: auto;
        top: auto;
        bottom: auto;

        width: 100%;
        max-width: none;

        transform: none;
    }

    .timeline-dot {
        left: -32px;
        top: 2px;

        width: 28px;
        height: 28px;

        transform: translateX(-50%);
    }

    .timeline-dot::before {
        display: none;
    }

    .timeline-content h4 {
        margin-bottom: 10px;

        font-size: clamp(1.25rem, 4vw, 1.65rem);
    }

    .timeline-content p {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    /* Event */

    .event-content {
        padding: 60px 20px;
    }

    .event-title {
        font-size: 2.4rem;
    }

    .event-subtitle {
        font-size: 1.8rem;
    }

    .cta-box {
        width: 100%;

        margin-top: 40px;
        padding: 35px;
    }

    .countdown-left {
        margin-bottom: 35px;

        text-align: center;
    }

    .countdown-wrapper {
        justify-content: center;
    }

    /* Footer */

    .footer-title,
    .footer-contact {
        text-align: center;
    }

    .footer-links {
        justify-content: center;

        margin-top: 40px;

        font-size: 1.1rem;
    }
}


/* =====================================================
   TABLET ONLY
   768px to 991px
===================================================== */

@media (min-width: 768px) and (max-width: 991.98px) {

    .history .container,
    .leadership-section .container,
    .timeline-section .container,
    .arrival-text-section {
        max-width: 760px;
    }

    .history-card {
        padding: 32px;
    }

    .leader-text p {
        font-size: 1.2rem;
    }

    .arrival-map,
    .arrival-plan {
        max-width: 560px;
    }
}


/* =====================================================
   PHONE
   Up to 767px
===================================================== */

@media (max-width: 767.98px) {

    /* Header */

    .top-header {
        min-height: 96px;

        padding: 14px 12px;
    }

    .top-header-content {
        width: 100%;

        justify-content: space-between;
        gap: 10px;
    }

    .header-logo {
        width: 76px;
        max-width: 76px;
        max-height: 72px;

        flex: 0 0 auto;

        margin: 0;
    }

    .header-nav {
        width: auto;

        flex: 0 1 auto;
        justify-content: flex-end;
        gap: 8px;

        margin: 0;
    }

    .header-nav a,
    .header-nav span {
        font-size: 0.88rem;
    }

    /* Hero */

    .hero-image {
        height: clamp(360px, 62vh, 500px);
    }

    .hero-info-box {
        left: 16px;
        right: 16px;
        bottom: 20px;

        width: auto;
        padding: 22px;

        border-radius: 22px;
    }

    .hero-info-box p {
        margin-bottom: 5px;

        font-size: 1rem;
    }

    /* History */

    .history {
        padding-right: 0;
        padding-left: 0;
    }

    .history .container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .history .row {
        margin-right: 0;
        margin-left: 0;
    }

    .history .row > [class*="col-"] {
        padding-right: 0;
        padding-left: 0;
    }

    .history-card {
        width: 100%;

        padding: 21px;
    }

    .history-card p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    /* Titles */

    .section-title {
        font-size: clamp(1.7rem, 7vw, 2rem);
        line-height: 1.12;
    }

    /* Leadership */

    .leadership-section {
        padding: 60px 0;
    }

    .leadership-entry {
        margin-bottom: 60px;
    }

    .leader-image {
        display: block;

        width: 100%;
        max-width: 320px;

        margin-right: auto;
        margin-left: auto;
    }

    .leader-text {
        width: 100%;
    }

    .leader-text p {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    /* Gallery */

    .gallery-wrapper {
        padding: 40px 0;

        border-radius: 0;
    }

    .gallery-row {
        padding: 20px 0;
    }

    .gallery-track {
        gap: 15px;
    }

    .gallery-track img {
        width: 180px;
        height: 120px;

        border-radius: 12px;
    }

    /* Event */

    .event-hero {
        min-height: 460px;
    }

    .event-content {
        padding: 50px 18px;
    }

    .event-title {
        font-size: 2.1rem;
    }

    .event-subtitle {
        font-size: 1.55rem;
        line-height: 1.4;
    }

    .cta-button {
        padding: 0;

        font-size: 1.15rem;
    }

    .countdown-bar {
        padding: 45px 0;
    }

    .event-meta,
    .event-meta-sub {
        font-size: 1.45rem;
    }

    .countdown-wrapper {
        width: 100%;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 15px;
    }

    .time-box {
        width: 100%;
        min-width: 0;
    }

    .time-box span {
        font-size: 2.3rem;
    }

    /* Arrival */

    .arrival-bg {
        height: 300px;
    }

    .arrival-overlay-items {
        gap: 26px;

        padding: 24px 15px;
    }

    .arrival-map,
    .arrival-plan {
        width: 100%;
        max-width: 520px;

        margin-right: auto;
        margin-left: auto;
    }

    .arrival-map iframe {
        height: 280px;
    }

    .arrival-plan img {
        width: 100%;
        height: auto;

        object-fit: contain;
    }

    .arrival-text-section {
        padding: 50px 20px;
    }

    .arrival-text-section h2 {
        font-size: 2rem;
    }

    /* Footer */

    .footer-section {
        margin-top: 60px;
        padding: 55px 0 35px;
    }

    .footer-links {
        flex-wrap: wrap;

        font-size: 1rem;
    }

    /* Scroll button */

    .hero-scroll {
        right: 14px;
        bottom: 14px;

        width: 42px;
        height: 42px;

        font-size: 1.55rem;
    }
}


/* =====================================================
   SMALL PHONE
   Up to 575px
===================================================== */

@media (max-width: 575.98px) {

    /* Header */

    .top-header {
        min-height: 88px;

        padding: 12px 10px;
    }

    .header-logo {
        width: 68px;
        max-width: 68px;
        max-height: 64px;
    }

    .header-nav {
        gap: 6px;
    }

    .header-nav a,
    .header-nav span {
        font-size: 0.82rem;
    }

    /* Hero */

    .hero-info-box {
        left: 14px;
        right: 14px;
        bottom: 18px;

        padding: 18px;

        border-radius: 20px;
    }

    .hero-info-box p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .hero-navigation {
        padding: 20px 16px;
    }

    .hero-menu {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-link {
        min-height: 46px;

        padding: 11px 13px;
    }

    .hero-circle {
        width: 15px;
        height: 15px;
    }

    .hero-text {
        font-size: 0.98rem;
    }

    /* History */

    .history .container {
        padding-right: 13px;
        padding-left: 13px;
    }

    .history-card {
        padding: 19px;

        box-shadow: -7px 7px 0 var(--color-light-blue);
    }

    .history-card:hover {
        transform: none;
        box-shadow: -7px 7px 0 var(--color-light-blue);
    }

    .history-card p {
        font-size: 0.96rem;
        line-height: 1.62;
    }

    /* Titles */

    .section-title {
        font-size: clamp(1.58rem, 7.6vw, 1.9rem);
        line-height: 1.08;
    }

    .leadership-section .section-title {
        font-size: clamp(1.52rem, 7vw, 1.75rem);
    }

    /* Leadership */

    .leadership-entry {
        margin-bottom: 52px;
    }

    .leader-image {
        max-width: 285px;
    }

    .leader-text p {
        font-size: 1rem;
        line-height: 1.68;
    }

    /* Timeline */

    .timeline {
        padding-left: 40px;
    }

    .timeline-line {
        left: 12px;
    }

    .timeline-dot {
        left: -28px;

        width: 24px;
        height: 24px;
    }

    .timeline-content p {
        font-size: 1rem;
    }

    /* Event */

    .event-hero {
        min-height: 420px;
    }

    .cta-box {
        padding: 25px 20px;
    }

    .time-box span {
        font-size: 2rem;
    }

    .time-box small {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    /* Arrival */

    .arrival-bg {
        height: 270px;
    }

    .arrival-overlay-items {
        gap: 22px;

        padding: 22px 13px;
    }

    .arrival-map {
        max-width: 100%;
    }

    .arrival-map iframe {
        height: 250px;

        border-radius: 14px;
    }

    .arrival-plan {
        max-width: 320px;
    }

    .arrival-plan img {
        border-radius: 14px;
    }

    /* Scroll button */

    .hero-scroll {
        right: 11px;
        bottom: 11px;

        width: 39px;
        height: 39px;

        font-size: 1.4rem;
    }
}


/* =====================================================
   EXTRA-SMALL PHONE
   Up to 420px
===================================================== */

@media (max-width: 420px) {

    .header-logo {
        width: 62px;
        max-width: 62px;
    }

    .header-nav {
        gap: 5px;
    }

    .header-nav a,
    .header-nav span {
        font-size: 0.78rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .history-card {
        padding: 18px;
    }

    .history-card p {
        font-size: 0.94rem;
    }

    .arrival-plan {
        max-width: 300px;
    }
}

