/* ========== Homepage Hero ========== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--header-height) 0 0 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        linear-gradient(to bottom, rgba(139, 154, 130, 0.75), rgba(139, 154, 130, 0.65)),
        url('/images/heroes/cafe-interior.jpg') center/cover no-repeat;
    z-index: -1;
}

.music-staff-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.music-staff-overlay svg {
    position: absolute;
    top: 50%; left: 0;
    width: 120%; height: 200px;
    transform: translateY(-120%) translateX(-10%);
}

.music-staff-overlay .staff-line {
    animation: staffWave 6s ease-in-out infinite;
}

.music-staff-overlay .staff-line:nth-child(1) { animation-delay: 0s; }
.music-staff-overlay .staff-line:nth-child(2) { animation-delay: 0.3s; }
.music-staff-overlay .staff-line:nth-child(3) { animation-delay: 0.6s; }
.music-staff-overlay .staff-line:nth-child(4) { animation-delay: 0.9s; }
.music-staff-overlay .staff-line:nth-child(5) { animation-delay: 1.2s; }

@keyframes staffWave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10%); }
}

.music-staff-overlay svg text {
    animation: noteFloat 4s ease-in-out infinite;
}

.music-staff-overlay svg text:nth-child(7) { animation-delay: 0s; }
.music-staff-overlay svg text:nth-child(8) { animation-delay: 0.3s; }
.music-staff-overlay svg text:nth-child(9) { animation-delay: 0.6s; }
.music-staff-overlay svg text:nth-child(10) { animation-delay: 0.9s; }
.music-staff-overlay svg text:nth-child(11) { animation-delay: 1.2s; }
.music-staff-overlay svg text:nth-child(12) { animation-delay: 0.2s; }
.music-staff-overlay svg text:nth-child(13) { animation-delay: 0.5s; }
.music-staff-overlay svg text:nth-child(14) { animation-delay: 0.8s; }
.music-staff-overlay svg text:nth-child(15) { animation-delay: 1.1s; }
.music-staff-overlay svg text:nth-child(16) { animation-delay: 0.4s; }
.music-staff-overlay svg text:nth-child(17) { animation-delay: 0.7s; }
.music-staff-overlay svg text:nth-child(18) { animation-delay: 1.0s; }

@keyframes noteFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--text-light);
    max-width: 900px;
    padding: 0 24px;
    z-index: 2;
    margin-top: -40px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0;
    font-variant: small-caps;
    letter-spacing: 0.05em;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
    font-variant: small-caps;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-primary { background-color: var(--text-light); color: var(--sage-dark); }
.hero .btn-primary:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* Spectrum Analyzer */
.spectrum-analyzer {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    gap: 4px;
    padding: 0;
    z-index: 1;
    height: 120px;
    align-items: flex-end;
}

.spectrum-bar {
    flex: 1;
    min-width: 8px;
    max-width: 20px;
    background: linear-gradient(to top, rgba(255,255,255,0.2), rgba(255,255,255,0.5));
    border-radius: 2px 2px 0 0;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

/* ========== Services Section ========== */
.services-section {
    background-color: var(--cream);
    padding: 0 24px 80px;
}

.services-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
}

.service-card {
    display: block;
    background: var(--text-light);
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform var(--transition), box-shadow var(--transition);
    margin-top: -2em;
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background-color: var(--sage-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--sage-dark);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--sage-dark);
    margin-bottom: 12px;
}

.service-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-features {
    margin-top: 16px;
}

.service-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.service-feature svg {
    width: 18px;
    height: 18px;
    color: var(--sage-green);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========== Stats Section ========== */
.stats-section {
    background-color: var(--sage-green);
    padding: 60px 24px;
}

.stats-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item { color: var(--text-light); }

.stat-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ========== Why Us Section ========== */
.why-section {
    background-color: var(--cream);
    padding: 80px 24px;
}

.why-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--sage-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.why-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--text-light);
    border-radius: 12px;
    transition: box-shadow var(--transition);
}

.why-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.why-icon {
    width: 48px;
    height: 48px;
    background-color: var(--sage-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--sage-dark);
}

.why-icon svg {
    width: 24px;
    height: 24px;
}

.why-content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--sage-dark);
    margin-bottom: 8px;
}

.why-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== Industries Section ========== */
.industries-section {
    background-color: var(--cream-dark);
    padding: 80px 24px;
}

.industries-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.industry-card {
    background: var(--text-light);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.industry-icon {
    width: 64px;
    height: 64px;
    background-color: var(--sage-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--sage-dark);
}

.industry-icon svg {
    width: 32px;
    height: 32px;
}

.industry-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--sage-dark);
}

/* ========== CTA Section ========== */
.cta-section {
    background-color: var(--sage-dark);
    padding: 80px 24px;
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 16px;
}

.cta-text {
    color: var(--text-light);
    opacity: 0.9;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
    .service-card { margin-top: 0; }
}

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; gap: 24px; }
    .service-card { margin-top: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .why-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .hero { min-height: 100vh; }
    .hero-cta-group { flex-direction: column; align-items: center; }
    .hero-cta-group .btn { width: 100%; max-width: 280px; text-align: center; }
    .stats-grid { grid-template-columns: 1fr; gap: 24px; }
    .industries-grid { grid-template-columns: 1fr; }
}
