/*
=====================================================
    Theme: Summit
    Author: Emily Baldwin Music
    Version: 13.0
=====================================================
*/

/* 1. Variables & Root Styles */
:root {
    --primary-color: #77bdff;
    /* Navy Blue */
    --secondary-color: #6BBEFF;
    /* Sky Blue */
    --dark-color: #1A1A1A;
    --medium-color: #555;
    --light-color: #F8F9FA;
    --bg-color: #FFFFFF;
    --border-color: #E5E5E5;

    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 600;
    --font-weight-bold: 700;
    --font-weight-black: 800;

    --transition-speed: 0.3s;
    --container-width: 1140px;
    --section-padding: 120px 0;
}

/* 2. Base & Reset Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--dark-color);
    line-height: 1.7;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-black);
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 6vw, 3rem);
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

p {
    color: var(--medium-color);
    margin-bottom: 1.5rem;
    max-width: 60ch;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-speed);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* 3. Animations & Utilities */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-load {
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-on-load:nth-child(3) {
    animation-delay: 0.4s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-padding {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

.text-center p,
.text-center h2 {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title .subtitle {
    color: var(--medium-color);
    font-weight: var(--font-weight-bold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-family: var(--font-body);
}

.section-title h2 {
    margin-top: 0.5rem;
}

/* 4. Header & Navigation */
#main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 80px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: var(--font-weight-bold);
}

#hamburger-btn {
    display: none;
    background: none;
    border: none;
    z-index: 1001;
}

#hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: all var(--transition-speed);
}

#hamburger-btn span:not(:last-child) {
    margin-bottom: 5px;
}

/* 5. CTA Button */
.cta-button {
    padding: 16px 36px;
    background: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
    transition: all var(--transition-speed);
    font-weight: var(--font-weight-bold);
    border-radius: 4px;
}

.cta-button:hover {
    background: #081d31;
    border-color: #081d31;
}

.header-cta {
    background: transparent;
    color: var(--dark-color);
    border-color: var(--primary-color);
}

.header-cta:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* 6. Hero Section */
#hero {
    padding: var(--section-padding);
    background-color: var(--light-color);
}

#hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

#hero .subtitle {
    color: var(--primary-color);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
}

#hero .highlight {
    color: var(--secondary-color);
}

#hero p {
    font-size: 1.1rem;
    max-width: 50ch;
    margin: 1rem 0 2rem;
}

.hero-image img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 7. Services Section */
#services {
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    background: var(--white-color);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
    transition: all var(--transition-speed) ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

/* 8. Work (Filtered) Section */
#work {
    background: var(--light-color);
}

.work-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.case-study-card {
    background: var(--white-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.case-study-card.hide {
    display: none;
}

.case-study-card h3 {
    font-size: 2.5rem;
}

.case-study-card p {
    font-weight: 600;
}

/* 9. Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    border-left: 3px solid var(--secondary-color);
    padding-left: 1.5rem;
}

.step-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.process-step h3 {
    font-size: 1.25rem;
    font-family: var(--font-body);
}

/* 10. Testimonial Section */
#testimonial {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.testimonial-content {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--white-color);
    margin-bottom: 1.5rem;
}

.testimonial-content blockquote p {
    font-size: 1.75rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1.5;
    color: var(--white-color);
}

.testimonial-content cite {
    display: block;
    margin-top: 1.5rem;
    font-style: normal;
    opacity: 0.8;
}

/* 11. Philosophy/Values Section */
#philosophy {
    background-color: var(--light-color);
}

.philosophy-toggles {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.toggle-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 1rem;
    position: relative;
}

.toggle-trigger h3 {
    font-size: 1.1rem;
    color: var(--medium-color);
    transition: color var(--transition-speed);
}

.toggle-trigger.active h3,
.toggle-trigger:hover h3 {
    color: var(--dark-color);
}

.toggle-trigger::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width var(--transition-speed);
}

.toggle-trigger.active::after {
    width: 100%;
}

.toggle-panel {
    display: none;
    text-align: center;
    max-width: 60ch;
    margin: 1rem auto;
}

.toggle-panel.active {
    display: block;
    animation: slideInUp 0.5s;
}

.toggle-panel p {
    font-size: 1.1rem;
}

/* 12. Final CTA Section */
#final-cta {
    background-color: var(--primary-color);
    color: var(--white-color);
}

#final-cta h2,
#final-cta p {
    color: var(--white-color);
}

#final-cta p {
    max-width: 600px;
    margin: 1rem auto 2rem;
    opacity: 0.9;
}

#final-cta .cta-button {
    background-color: var(--white-color);
    color: white;
    border: 2px solid white;
}

#final-cta .cta-button:hover {
    color: #081d31;
    background-color: var(--light-color);
    border-color: var(--light-color);
}

/* 13. Page & Legal Styles */
.page-header {
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
    padding: 140px 0 80px;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    margin-top: 2rem;
}

#contact-page .contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
}

.contact-item {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item p {
    margin: 0;
}

/* 14. Footer */
#main-footer {
    padding: 80px 0;
    background-color: var(--light-color);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* 15. Responsive Design */
@media (max-width: 991px) {
    .header-cta {
        display: none;
    }

    #hamburger-btn {
        display: block;
    }

    .nav-open #main-nav {
        transform: translateX(0);
    }

    .nav-open #hamburger-btn .bar:first-of-type {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-open #hamburger-btn .bar:nth-of-type(2) {
        opacity: 0;
    }

    .nav-open #hamburger-btn .bar:last-of-type {
        transform: translateY(-8px) rotate(-45deg);
    }

    #main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--white-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform var(--transition-speed);
        z-index: 1000;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-links {
        flex-direction: column;
        gap: 2rem;
    }

    #hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #hero p {
        margin: 1rem auto 2rem;
    }

    .hero-image {
        display: none;
    }
}

@media (max-width: 768px) {

    .process-grid,
    .footer-grid,
    #contact-page .contact-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        margin-bottom: 2rem;
    }

    .footer-grid {
        text-align: center;
    }

    .philosophy-toggles {
        flex-direction: column;
    }
}