/* Miyabi Resonance - Main Styles */

:root {
    --primary-indigo: #2E3A59;
    --vermilion: #E63946;
    --gold: #D4AF37;
    --warm-ivory: #F5F5DC;
    --light-gray: #F8F9FA;
    --text-dark: #2C3E50;
    --text-medium: #556B7D;
    --text-light: #7A8B99;
    
    --serif-font: 'Crimson Text', serif;
    --sans-font: 'Inter', sans-serif;
}

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

body {
    font-family: var(--sans-font);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--warm-ivory);
}

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

/* Header */
.header {
    background: var(--warm-ivory);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(46, 58, 89, 0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 48px;
    height: 48px;
}

.brand-name {
    font-family: var(--serif-font);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-indigo);
    margin: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--warm-ivory) 0%, #F0F0E8 100%);
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="seigaiha" x="0" y="0" width="100" height="50" patternUnits="userSpaceOnUse"><path d="M0,50 C25,25 75,25 100,50" stroke="%23D4AF37" stroke-width="1" fill="none" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23seigaiha)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    padding-right: 1rem;
}

.hero-title {
    font-family: var(--serif-font);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--primary-indigo);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.feature-icon {
    font-size: 1.2rem;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(46, 58, 89, 0.15);
}

.cta-button {
    background: var(--vermilion);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--sans-font);
}

.cta-button:hover {
    background: #D63031;
}

.secondary-button {
    background: var(--primary-indigo);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--sans-font);
}

.secondary-button:hover {
    background: #1A2332;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.content-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(46, 58, 89, 0.1);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(46, 58, 89, 0.1);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Sections */
section {
    padding: 4rem 0;
    text-align: center;
}

.section-title {
    font-family: var(--serif-font);
    font-size: 2.5rem;
    color: var(--primary-indigo);
    text-align: center;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-medium);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background: var(--light-gray);
    text-align: center;
}

/* Services Overview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(46, 58, 89, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.service-icon {
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--serif-font);
    font-size: 1.3rem;
    color: var(--primary-indigo);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-medium);
}

/* Content Split Layouts */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text {
    padding: 1rem;
}

.content-text .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '•';
    color: var(--vermilion);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Online Lessons */
.online-lessons {
    background: var(--light-gray);
}

/* Marketplace */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(46, 58, 89, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
}

.product-image .image-placeholder {
    height: 100%;
}

.product-card h3 {
    font-family: var(--serif-font);
    color: var(--primary-indigo);
    margin: 1rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-medium);
    margin: 0 1rem;
    margin-bottom: 1rem;
}

.product-price {
    font-weight: 600;
    color: var(--vermilion);
    font-size: 1.1rem;
    margin: 0 1rem;
    margin-bottom: 1rem;
}

.product-button {
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    background: var(--primary-indigo);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.product-button:hover {
    background: #1A2332;
}

.product-button.rental {
    background: var(--gold);
    color: var(--primary-indigo);
}

.product-button.rental:hover {
    background: #C19B26;
}

/* Digital Library */
.digital-library {
    background: var(--light-gray);
}

/* Studio & Events */
.services-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.service-block {
    text-align: center;
}

.service-block .image-placeholder {
    margin-bottom: 1.5rem;
    height: 200px;
}

.service-block h3 {
    font-family: var(--serif-font);
    font-size: 1.5rem;
    color: var(--primary-indigo);
    margin-bottom: 1rem;
}

.service-block p {
    color: var(--text-medium);
}

/* Articles */
.articles {
    background: var(--light-gray);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(46, 58, 89, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.article-image {
    height: 200px;
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-family: var(--serif-font);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.article-title a {
    color: var(--primary-indigo);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--vermilion);
}

.article-excerpt {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.read-more {
    color: var(--vermilion);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    color: var(--primary-indigo);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(46, 58, 89, 0.1);
    border-left: 4px solid var(--gold);
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-card cite {
    color: var(--primary-indigo);
    font-weight: 500;
}

/* Contact */
.contact {
    background: var(--light-gray);
    text-align: left;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.contact-icon {
    background: var(--warm-ivory);
    padding: 0.8rem;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.contact-item h3 {
    font-family: var(--serif-font);
    color: var(--primary-indigo);
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: var(--text-medium);
    margin: 0;
}

.contact-form-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(46, 58, 89, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-form-section h3 {
    font-family: var(--serif-font);
    color: var(--primary-indigo);
    margin-bottom: 1rem;
}

.contact-form-section p {
    color: var(--text-medium);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--primary-indigo);
    color: white;
    padding: 2.5rem 0 1rem;
    text-align: left;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-brand {
    font-family: var(--serif-font);
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section h4 {
    font-family: var(--serif-font);
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #B0C4DE;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(176, 196, 222, 0.2);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #B0C4DE;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        text-align: center;
        padding-right: 0;
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-features {
        justify-content: center;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .content-split {
        grid-template-columns: 1fr;
    }
    
    .services-split {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-img {
        height: 250px;
    }
    
    .content-img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .hero {
        padding: 2rem 0 3rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-img {
        height: 200px;
    }
}