/* =========================================
   RESET
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #17202a;
    background: #ffffff;
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
}

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

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    color: white;
    padding: 22px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: #ffcc33;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 750px;
    display: flex;
    align-items: center;
    position: relative;

    background-image: url("../media/hero.jpg");
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.70),
            rgba(0, 0, 0, 0.20)
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.eyebrow,
.section-label {
    color: #e2aa00;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 86px);
    line-height: 1.02;
    max-width: 800px;
    margin-bottom: 25px;
}

.hero h1 span {
    color: #ffcc33;
}

.hero-text {
    max-width: 560px;
    font-size: 18px;
    color: #eeeeee;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


/* =========================================
   BUTTONS
========================================= */

.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-primary {
    background: #ffbd18;
    color: #111;
}

.btn-primary:hover {
    background: #ffd45a;
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #111;
}


/* =========================================
   INTRO
========================================= */

.intro {
    padding: 100px 0;
    background: #f5f7f6;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.intro h2,
.about h2,
.section-heading h2,
.cta h2,
.contact h2 {
    font-size: clamp(36px, 5vw, 55px);
    line-height: 1.1;
    margin-bottom: 25px;
}

.intro p {
    color: #5f686d;
    margin-bottom: 15px;
}


/* =========================================
   ABOUT
========================================= */

.about {
    padding: 110px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    height: 600px;
    overflow: hidden;
}

.about-image img {
    height: 100%;
    object-fit: cover;
}

.about-content > p:not(.section-label) {
    color: #626b70;
    margin-bottom: 35px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature {
    display: flex;
    gap: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;

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

    background: #ffca28;
    color: #111;
    font-weight: 700;
}

.feature h3 {
    margin-bottom: 4px;
}

.feature p {
    color: #6d7478;
    font-size: 14px;
}


/* =========================================
   COURSES
========================================= */

.courses {
    padding: 110px 0;
    background: #f5f7f6;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 55px;
}

.section-heading > p:last-child {
    color: #687277;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.course-card {
    background: white;
    transition: 0.3s;
}

.course-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.course-image {
    height: 240px;
    overflow: hidden;
}

.course-image img {
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-content {
    padding: 30px;
}

.course-number {
    color: #c49500;
    font-size: 13px;
    font-weight: 700;
}

.course-content h3 {
    font-size: 25px;
    margin: 8px 0 12px;
}

.course-content p {
    color: #687277;
    font-size: 15px;
    margin-bottom: 25px;
}

.course-link {
    font-weight: 700;
    font-size: 14px;
    color: #bd8d00;
}


/* =========================================
   CTA
========================================= */

.cta {
    padding: 120px 0;
    background:
        linear-gradient(
            rgba(12, 25, 35, 0.88),
            rgba(12, 25, 35, 0.88)
        ),
        url("../media/flying.jpg");

    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 750px;
}

.cta h2 {
    margin-bottom: 20px;
}

.cta p:not(.section-label) {
    color: #d4d9dc;
    margin-bottom: 30px;
}


/* =========================================
   GALLERY
========================================= */

.gallery {
    padding: 110px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-large {
    grid-row: span 2;
}


/* =========================================
   CONTACT
========================================= */

.contact {
    padding: 110px 0;
    background: #f5f7f6;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
}

.contact-info > p:not(.section-label) {
    color: #667076;
    max-width: 500px;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-details span {
    display: block;
    font-size: 12px;
    color: #a17a00;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.contact-details a,
.contact-details p {
    font-size: 16px;
    color: #222;
}

.contact-form {
    background: white;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 14px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #d7a900;
}

.form-group textarea {
    resize: vertical;
}

.form-message {
    margin-top: 15px;
    font-size: 14px;
    color: #408a55;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    background: #10191f;
    color: white;
    padding: 60px 0 25px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 40px;
}

.footer h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.footer p {
    color: #9da6ab;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #b8c0c4;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffca28;
}

.copyright {
    padding-top: 25px;
    border-top: 1px solid #293239;
    color: #7e898f;
    font-size: 13px;
}


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

@media (max-width: 850px) {

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 5%;
        width: 90%;

        flex-direction: column;
        gap: 0;

        background: #10191f;
        padding: 10px 0;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 15px 20px;
    }

    .hero {
        min-height: 680px;
    }

    .intro-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 250px 250px 250px;
    }

    .gallery-large {
        grid-row: span 1;
        grid-column: span 2;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}


@media (max-width: 550px) {

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-image {
        height: 400px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 250px);
    }

    .gallery-large {
        grid-column: span 1;
    }

    .contact-form {
        padding: 25px;
    }
}