/* ========================================
   Bright Stars English - Custom Styles
   ======================================== */

/* CSS Variables */
:root {
    --color-cream: #F6F0E2;
    --color-cream-light: #FAF5EB;
    --color-sky: #7BB0CE;
    --color-sky-light: #E8F4F8;
    --color-sky-bright: #66EBF2;
    --color-navy: #2C2F46;
    --color-navy-dark: #020B6B;
    --color-gold: #D9AD4A;
    --color-gold-light: #FDF5E0;
    --color-gold-bright: #F2B319;

    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-rounded: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
    --font-nunito: 'Nunito', sans-serif;

    --border-radius: 1rem;
    --border-radius-lg: 1.5rem;
    --shadow-sm: 0 2px 8px rgba(44, 47, 70, 0.08);
    --shadow: 0 4px 20px rgba(44, 47, 70, 0.12);
    --shadow-lg: 0 8px 40px rgba(44, 47, 70, 0.15);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-cream);
    color: var(--color-navy);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-rounded);
    font-weight: 700;
    line-height: 1.4;
}

/* Color Utilities */
.text-navy { color: var(--color-navy) !important; }
.text-sky { color: var(--color-sky) !important; }
.text-gold { color: var(--color-gold) !important; }

.bg-cream { background-color: var(--color-cream) !important; }
.bg-navy { background-color: var(--color-navy) !important; }
.bg-sky { background-color: var(--color-sky) !important; }
.bg-gold { background-color: var(--color-gold) !important; }
.bg-sky-light { background-color: var(--color-sky-light) !important; }
.bg-gold-light { background-color: var(--color-gold-light) !important; }

/* Button Styles */
.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-navy);
    font-family: var(--font-nunito);
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--color-gold-bright);
    color: var(--color-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-navy {
    border: 2px solid var(--color-navy);
    color: var(--color-navy);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-outline-navy:hover {
    background-color: var(--color-navy);
    color: white;
}

/* Navigation */
.navbar {
    background-color: transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(246, 240, 226, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: var(--font-rounded);
}

.nav-link {
    font-family: var(--font-rounded);
    font-weight: 500;
    color: var(--color-navy) !important;
    padding: 0.5rem 1rem !important;
    text-align: center;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-sky) !important;
}

.nav-link small {
    font-size: 0.65rem;
    font-family: var(--font-nunito);
}

/* Hero Section */
.hero-section {
    min-height: auto;
    height: auto;
    max-height: 700px;
    padding-top: 100px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    opacity: 0.5;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(246, 240, 226, 0.3) 0%, rgba(246, 240, 226, 0.8) 100%);
}

.hero-content {
    padding: 2rem 0;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    aspect-ratio: 4/3;
}

/* Section Spacing */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Course Cards */
.course-card {
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.course-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Teacher Section */
.teacher-image-wrapper {
    position: relative;
}

.teacher-image-wrapper img {
    border-radius: var(--border-radius-lg);
}

.experience-badge {
    position: absolute;
    bottom: -15px;
    left: -15px;
    background-color: var(--color-gold);
    color: var(--color-navy);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    font-family: var(--font-rounded);
    box-shadow: var(--shadow);
}

/* Gallery */
.gallery-img {
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow);
}

/* Icon Circle */
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Calendar Placeholder */
.calendar-placeholder {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Resource Links */
.resource-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--color-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: var(--color-sky);
}

/* Form Styles */
.form-control {
    border: 2px solid rgba(44, 47, 70, 0.1);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-sky);
    box-shadow: 0 0 0 0.2rem rgba(123, 176, 206, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Alert */
.alert {
    border-radius: var(--border-radius);
}

/* Modal */
.modal-content {
    border-radius: var(--border-radius-lg);
}

/* Footer */
footer {
    font-family: var(--font-rounded);
}

footer a:hover {
    color: var(--color-gold) !important;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--color-cream);
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 0.5rem;
        box-shadow: var(--shadow);
    }

    .hero-section {
        padding: 100px 0 40px;
        max-height: none;
    }

    .hero-image {
        aspect-ratio: 16/9;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .py-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .experience-badge {
        bottom: -10px;
        left: -10px;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 90px 0 30px;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar {
        display: none !important;
    }

    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* Selection */
::selection {
    background-color: rgba(123, 176, 206, 0.3);
    color: var(--color-navy);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--color-sky);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5A9ABD;
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--color-sky);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   Contact Form 7 Styles
   ======================================== */

.wpcf7 {
    margin: 0;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wpcf7-form p {
    margin-bottom: 0;
}

.wpcf7-form-control-wrap {
    display: block;
}

.wpcf7-form label {
    display: block;
    font-weight: 500;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.wpcf7-form-control:not([type="submit"]) {
    width: 100%;
    border: 2px solid rgba(44, 47, 70, 0.1);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.wpcf7-form-control:not([type="submit"]):focus {
    border-color: var(--color-sky);
    box-shadow: 0 0 0 0.2rem rgba(123, 176, 206, 0.25);
    outline: none;
}

.wpcf7-textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--color-gold);
    color: var(--color-navy);
    font-family: var(--font-nunito);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-submit:hover {
    background-color: var(--color-gold-bright);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.wpcf7-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Validation styles */
.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.wpcf7-response-output {
    margin: 1rem 0 0 !important;
    padding: 1rem !important;
    border-radius: var(--border-radius) !important;
    font-size: 0.875rem;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors,
.wpcf7-spam-blocked {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
}

/* Spinner */
.wpcf7-spinner {
    margin-left: 1rem;
}

/* Required field indicator */
.wpcf7-form .required-indicator {
    color: var(--color-gold);
}
