/* 
 * Dylan Ernst Piano Studio
 * Professional Piano Teaching Website
 */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

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

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #b8860b;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #1a1a1a;
}

.nav-menu a:hover::after {
    width: 100%;
}

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

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #996f09;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

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

.btn-full {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 6rem 2rem 4rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../content/background.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #b8860b;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-description {
    font-size: 1.25rem;
    color: #ccc;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECTION STYLES ===== */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.section-title.center {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: #fafafa;
}

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid #b8860b;
    border-radius: 8px;
    z-index: -1;
}

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

.about-highlights {
    margin-top: 2rem;
}

.about-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #444;
}

.about-highlights li span {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.about-highlights i {
    color: #b8860b;
    font-size: 0.9rem;
}

/* ===== LESSONS SECTION ===== */
.lessons {
    background-color: #fff;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.lesson-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.lesson-card.featured {
    border-color: #b8860b;
    background: linear-gradient(to bottom, #fffbf0, #fff);
}

.lesson-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #b8860b;
    color: #fff;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

.lesson-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-card.featured .lesson-icon {
    background-color: #b8860b;
}

.lesson-icon i {
    font-size: 1.75rem;
    color: #b8860b;
}

.lesson-card.featured .lesson-icon i {
    color: #fff;
}

.lesson-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.lesson-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.lesson-features {
    text-align: left;
    padding-left: 1rem;
}

.lesson-features li {
    padding: 0.35rem 0;
    color: #555;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.25rem;
}

.lesson-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #b8860b;
}

.pricing-note {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.pricing-note p {
    font-size: 1.1rem;
    color: #333;
}

.pricing-subtext {
    color: #b8860b !important;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* ===== VIDEOS SECTION ===== */
.videos {
    background-color: #1a1a1a;
    color: #fff;
}

.videos .section-title {
    color: #fff;
}

.videos .section-subtitle {
    color: #aaa;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.video-card {
    text-align: center;
}

.video-placeholder {
    position: relative;
    aspect-ratio: 16/9;
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.video-placeholder.empty {
    border: 2px dashed #444;
}

.play-button {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    background-color: rgba(184, 134, 11, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    background-color: #b8860b;
}

.play-button i {
    color: #fff;
    font-size: 1.25rem;
    margin-left: 3px;
}

.placeholder-text {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: #aaa;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    z-index: 1;
}

.video-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.video-card p {
    color: #888;
    font-size: 0.9rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8860b;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

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

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

.contact-item a:hover {
    text-decoration: underline;
}

.contact-availability {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.contact-availability h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.contact-availability p {
    color: #666;
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-container {
    background-color: #fafafa;
    padding: 2.5rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b8860b;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

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

/* ===== FOOTER ===== */
.footer {
    background-color: #1a1a1a;
    color: #aaa;
    padding: 2rem 0;
}

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

.footer-links a {
    color: #b8860b;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ===== SUCCESS MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    max-width: 420px;
    width: 100%;
    background-color: #fff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: auto;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content.modal-form {
    max-width: 550px;
    text-align: left;
}

.modal-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    text-align: center;
}

.modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: rgba(184, 134, 11, 0.1);
    color: #b8860b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.modal-content p {
    color: #555;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image::before {
        display: none;
    }
    
    .lessons-grid,
    .videos-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 2rem 2rem;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
        margin: 0.15rem 0;
        line-height: 2rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero {
        padding: 5rem 1.5rem 3rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Mobile modal improvements */
    .modal-overlay {
        padding: 1rem;
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-content {
        margin: 2rem auto;
        max-height: none;
        padding: 2rem 1.5rem;
    }
    
    .modal-content.modal-form {
        max-width: 100%;
    }
}