/* ============================================
   FRAME Academy — Static Site Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #333;
    line-height: 1.7;
    background: #fff;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.2;
    color: #1a1a1a;
}

a {
    color: #b71c1c;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #d32f2f;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #b71c1c;
    color: #fff;
}

.btn-primary:hover {
    background: #8e0000;
    color: #fff;
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    margin-left: 12px;
}

.btn-outline:hover {
    background: #fff;
    color: #1a1a1a;
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.85rem;
    background: #b71c1c;
    color: #fff;
}

.btn-small:hover {
    background: #8e0000;
    color: #fff;
}

.btn-full {
    width: 100%;
    text-align: center;
}

.btn-nav {
    padding: 10px 24px;
    background: #b71c1c;
    color: #fff !important;
    border-radius: 4px;
    font-size: 0.85rem;
}

.btn-nav:hover {
    background: #8e0000;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.97);
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.logo-img {
    height: 60px;
    width: auto;
    transition: height 0.3s;
}

.navbar.scrolled .logo-img {
    height: 45px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #b71c1c;
    transition: width 0.3s;
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('images/hero.jpg') center center / cover no-repeat;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 140px;
    margin: 0 auto 32px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
    font-style: italic;
}

/* --- Intro --- */
.intro {
    padding: 80px 0;
    text-align: center;
    background: #f9f9f9;
}

.intro h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #b71c1c;
}

.intro p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

/* --- Courses --- */
.courses {
    padding: 80px 0;
    background: #fff;
}

.courses h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.section-sub {
    text-align: center;
    color: #777;
    font-size: 1.05rem;
    margin-bottom: 48px;
}

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

.course-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.course-img {
    height: 220px;
    overflow: hidden;
}

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

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

.course-body {
    padding: 28px 24px;
}

.course-body h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.course-body p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* --- Products --- */
.products {
    padding: 80px 0;
    background: #1a1a1a;
    color: #fff;
}

.products h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 8px;
}

.products .section-sub {
    color: #aaa;
}

.product-feature {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
    margin-top: 20px;
}

.product-img {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
}

.product-img img {
    max-height: 350px;
    object-fit: contain;
}

.product-info h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 16px;
}

.product-info p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.product-info ul {
    list-style: none;
    margin-bottom: 28px;
}

.product-info ul li {
    padding: 6px 0;
    color: #ddd;
    font-size: 0.95rem;
}

.product-info ul li::before {
    content: '✓ ';
    color: #b71c1c;
    font-weight: bold;
    margin-right: 8px;
}

/* --- About --- */
.about {
    padding: 80px 0;
    background: #f9f9f9;
}

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

.about-img img {
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #b71c1c;
}

.about-text p {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 16px;
}

/* --- Contact --- */
.contact {
    padding: 80px 0;
    background: #fff;
}

.contact h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-icon {
    font-size: 1.8rem;
    color: #b71c1c;
    min-width: 40px;
    text-align: center;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: #666;
}

.contact-item a {
    color: #b71c1c;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #b71c1c;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- Footer --- */
.footer {
    background: #111;
    color: #aaa;
    padding: 48px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo img {
    height: 70px;
    opacity: 0.9;
}

.footer-text p {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.footer-text strong {
    color: #ddd;
}

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

.footer-links a {
    color: #aaa;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

@media (max-width: 992px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-feature,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .product-img {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #1a1a1a;
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 0;
        transition: right 0.3s;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid #333;
    }

    .nav-links a:not(.btn-nav)::after {
        display: none;
    }

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

    .hero h1 {
        font-size: 2rem;
    }

    .hero-logo {
        width: 100px;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 12px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
