/* Mobile Responsive Styles for Premiere School */

:root {
    --primary-color: #14532d;
    --primary-light: #22c55e;
    --primary-dark: #052e16;
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --bg-lighter: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: white;
}

/* ==================== HEADER & NAVIGATION ==================== */
header {
    /*background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);*/
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.9;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: 14px;
    font-weight: 500;
}

nav a:hover {
    opacity: 0.8;
}

.apply-btn {
    background: var(--accent-color);
    color: white;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 14px;
    white-space: nowrap;
}

.apply-btn:hover {
    background: #e65100;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
}

/* ==================== RESPONSIVE SECTIONS ==================== */
section {
    padding: 60px 20px;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
    padding: 80px 20px 60px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero .cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero a {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* ==================== GRID LAYOUTS ==================== */
.grid-container {
    max-width: 1200px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ==================== FORMS ==================== */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form div {
    display: flex;
    flex-direction: column;
}

label {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

input, select, textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 5px rgba(57, 73, 171, 0.2);
}

button {
    background: var(--primary-light);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

button:hover {
    background: var(--primary-color);
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--primary-color);
    color: white;
    margin-top: 60px;
    padding: 40px 20px;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

footer h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

footer p, footer li {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.9;
}

footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #e65100;
}

footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
}

footer .footer-bottom p {
    font-size: 12px;
    margin-bottom: 10px;
}

/* ==================== TEXT & HEADINGS ==================== */
h1 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 28px;
    color: var(--primary-light);
    margin-bottom: 25px;
}

h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

main {
    min-height: calc(100vh - 150px);
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== UTILITY CLASSES ==================== */
.bg-light {
    background: var(--bg-light);
}

.bg-lighter {
    background: var(--bg-lighter);
}

.text-center {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.br-5 {
    border-radius: 5px;
}

.shadow {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ==================== TABLET DEVICES (768px and below) ==================== */
@media (max-width: 768px) {
    .header-container {
        padding: 12px 15px;
        flex-wrap: wrap;
        position: relative;
    }

    .logo {
        font-size: 18px;
        flex: 0 0 auto;
    }

    .mobile-menu-toggle {
        display: block;
        order: 3;
    }

    nav {
        order: 2;
        width: 100%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        padding: 20px 15px;
        gap: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        border-top: 2px solid var(--primary-light);
    }

    nav ul.active {
        display: flex;
    }

    nav a {
        display: block;
        padding: 10px 0;
        font-size: 15px;
    }

    .apply-btn {
        padding: 10px 15px;
        font-size: 13px;
        width: 100%;
        text-align: center;
    }

    /* Hero Section */
    .hero {
        padding: 50px 15px 40px;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .hero .cta-buttons {
        gap: 10px;
        flex-direction: column;
    }

    .hero a {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Sections */
    section {
        padding: 40px 15px;
    }

    /* Headings */
    h1 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    h3 {
        font-size: 18px;
    }

    /* Grids */
    .grid-2, .grid-3, .grid-4 {
        gap: 20px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Cards */
    .card {
        padding: 20px;
    }

    /* Contact Form Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Footer */
    footer .footer-grid {
        gap: 25px;
    }

    footer h4 {
        font-size: 15px;
    }

    footer p, footer li {
        font-size: 13px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
    }
}

/* ==================== MOBILE DEVICES (480px and below) ==================== */
@media (max-width: 480px) {
    .header-container {
        padding: 10px 12px;
        gap: 10px;
    }

    .logo {
        font-size: 16px;
    }

    .mobile-menu-toggle {
        font-size: 24px;
        padding: 0;
    }

    nav ul {
        padding: 15px 12px;
        top: calc(100% - 10px);
        gap: 8px;
    }

    nav a {
        padding: 8px 0;
        font-size: 14px;
    }

    /* Hero Section */
    .hero {
        padding: 40px 12px 30px;
    }

    .hero h1 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .hero .cta-buttons {
        gap: 8px;
    }

    .hero a {
        padding: 10px 15px;
        font-size: 13px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    /* Sections */
    section {
        padding: 30px 12px;
    }

    /* Headings */
    h1 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 19px;
        margin-bottom: 15px;
    }

    h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    /* Content Layout */
    .content-grid {
        grid-template-columns: 1fr !important;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Cards */
    .card {
        padding: 15px;
    }

    .card h3 {
        font-size: 16px;
    }

    .card p {
        font-size: 13px;
    }

    /* Forms */
    form {
        gap: 12px;
    }

    label {
        font-size: 13px;
        margin-bottom: 5px;
    }

    input, select, textarea {
        padding: 10px;
        font-size: 13px;
    }

    button {
        padding: 10px;
        font-size: 14px;
    }

    /* Footer */
    footer {
        padding: 30px 12px;
    }

    footer .footer-grid {
        gap: 20px;
    }

    footer h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    footer p, footer li {
        font-size: 12px;
        line-height: 1.6;
    }

    .social-links {
        gap: 12px;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    footer .footer-bottom {
        padding-top: 15px;
    }

    footer .footer-bottom p {
        font-size: 11px;
        margin-bottom: 8px;
    }

    /* Main content */
    main {
        padding: 0 12px;
    }
}

/* ==================== SMALL MOBILE DEVICES (360px and below) ==================== */
@media (max-width: 360px) {
    .header-container {
        padding: 8px 10px;
    }

    .logo {
        font-size: 14px;
    }

    .mobile-menu-toggle {
        font-size: 22px;
    }

    .hero {
        padding: 30px 10px 25px;
    }

    .hero h1 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 12px;
    }

    .hero a {
        padding: 8px 12px;
        font-size: 12px;
    }

    section {
        padding: 25px 10px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 17px;
    }

    h3 {
        font-size: 15px;
    }

    .card {
        padding: 12px;
    }

    footer {
        padding: 25px 10px;
    }

    footer h4 {
        font-size: 13px;
    }

    footer p, footer li {
        font-size: 11px;
    }

    .social-links a {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* ==================== LARGE SCREENS (1200px and above) ==================== */
@media (min-width: 1200px) {
    .header-container {
        padding: 15px 30px;
    }

    section {
        padding: 80px 30px;
    }

    .hero {
        padding: 100px 30px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }
}

/* ==================== MOBILE TOUCH IMPROVEMENTS ==================== */
@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    button, 
    a, 
    .card,
    input[type="submit"],
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        min-width: 44px;
    }

    /* Disable hover effects on touch devices */
    .card:hover {
        transform: none;
    }

    /* Improve tap targets */
    nav a {
        padding: 12px 16px;
    }

    .checkbox-group label {
        padding: 8px 0;
    }
}

/* ==================== LANDSCAPE MOBILE ==================== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 30px 20px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero .cta-buttons {
        flex-direction: row;
    }
}

/* ==================== ACCESSIBILITY IMPROVEMENTS ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* ==================== PRINT STYLES ==================== */
@media print {
    header, footer {
        display: none;
    }

    body {
        background: white;
    }

    main {
        max-width: 100%;
    }
}
