/* ==========================================================================
   5 AND 8 Studio - Premium Silver Design System & Styles
   ========================================================================== */

/* Color & Typography Tokens */
:root {
    /* Premium bright atmospheric concrete theme */
    --bg-primary: #eef0f3;
    /* Light gray base room color */
    --bg-secondary: #ffffff;
    /* Clean white for sections */
    --bg-card: #f8f9fa;
    /* Off-white card base */

    /* Deep charcoal / black accents for premium minimalist legibility */
    --accent-primary: #000000;
    /* Absolute black for headers and primary elements */
    --accent-secondary: #555558;
    /* Steel grey / charcoal for hover states */
    --accent-dim: rgba(0, 0, 0, 0.06);
    /* Translucent black for borders and lines */

    /* Text colors */
    --text-primary: #000000;
    /* Crisp black */
    --text-secondary: #2d2d30;
    /* Deep charcoal for highly readable body copy */
    --text-dim: #5c5c62;
    /* Refined contrast concrete gray (WCAG AA Compliant) */

    /* Spacing Design Tokens */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Fonts */
    --font-headers: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-snappy: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    background-color: var(--bg-primary);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-dim);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Typography Utility */
h1,
h2,
h3,
h4 {
    font-family: var(--font-headers);
    font-weight: 200;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    text-transform: uppercase;
}

p {
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Keyboard Navigation Accessibility */
a:focus-visible,
button:focus-visible,
.accordion-header:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 140px 40px;
    position: relative;
    width: 100%;
}

.centered-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .section-container {
        padding: 100px 20px;
    }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.studio-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

.studio-header.scrolled {
    background: rgba(238, 240, 243, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.studio-header.scrolled .header-container {
    padding: 20px 40px;
}

.logo {
    font-family: var(--font-headers);
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 0.25em;
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-snappy);
    cursor: pointer;
}

.logo:hover {
    color: var(--accent-secondary);
}

.nav-links {
    display: flex;
    gap: 40px;
    position: relative;
}

.nav-link {
    font-family: var(--font-headers);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--accent-primary);
    text-decoration: none;
    padding: 8px 0;
    transition: var(--transition-snappy);
    cursor: pointer;
}

.nav-link:hover {
    color: var(--accent-secondary);
}

.nav-link.active {
    color: var(--accent-primary);
}

/* Sliding active underline indicator */
.nav-indicator {
    position: absolute;
    bottom: 0;
    height: 1.5px;
    background-color: var(--accent-primary);
    transition: var(--transition-smooth);
    pointer-events: none;
    opacity: 0;
}

.nav-indicator.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .header-container {
        padding: 25px 20px;
    }

    .studio-header.scrolled .header-container {
        padding: 15px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 0.65rem;
        letter-spacing: 0.15em;
    }
}

/* ==========================================================================
   Hero Section (Silver Theme - WebP Optimization)
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: url('assets/hero_background.webp');
    /* Full fit empty room */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-primary);
}

/* Background gradient glow overlay */
.hero-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, rgba(236, 236, 238, 0) 80%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Centered real-time sculpture logo element styling */
.hero-sculpture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
    z-index: 3;
}

.hero-caption {
    position: absolute;
    left: 8vw;
    /* Position on the left side, aligned with light beam */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-family: var(--font-headers);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.2em;
    text-align: left;
    color: var(--text-primary);
    /* Dark charcoal/black for visibility on bright room theme */
    opacity: 0;
    animation: fadeInUpLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
    z-index: 10;
    /* Bring it on top of the logo background */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpCenter {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 20px));
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeInUpLeft {
    from {
        opacity: 0;
        transform: translateY(calc(-50% + 20px));
    }

    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

@keyframes fadeInUpMobile {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    .hero-content {
        height: 100vh;
        width: 100%;
        position: relative;
    }

    .hero-sculpture {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        pointer-events: none;
        opacity: 0;
        animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        animation-delay: 0.2s;
        z-index: 3;
    }

    .hero-caption {
        position: absolute;
        top: auto;
        /* Reset desktop top: 50% */
        bottom: 8vh;
        /* Shifted more down to completely clear the sculpture base */
        left: 50%;
        transform: translate(-50%, 0);
        width: 90vw;
        max-width: 90vw;
        text-align: center;
        font-size: 1.25rem;
        letter-spacing: 0.15em;
        margin-right: -0.15em;
        /* Offset letter-spacing on mobile */
        line-height: 1.5;
        animation: fadeInUpMobile 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        animation-delay: 0.4s;
        z-index: 10;
    }
}

/* ==========================================================================
   About Section ("WHO WE ARE")
   ========================================================================== */


.about-section {
    border-top: 1px solid var(--accent-dim);
    padding-top: 75px;
    padding-bottom: 40px;
    background-image: url('assets/about_background_v2.webp');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1.5px;
    background-color: var(--accent-primary);
    margin: 15px auto 0 auto;
}

.about-center-layout {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.about-lead-text {
    font-size: 1.54rem;
    line-height: 1.5;
    font-weight: 300;
    color: var(--text-primary);
    text-align: center;
}

.about-lead-text strong {
    color: var(--accent-primary);
    font-weight: 400;
}

.about-divider {
    width: 60px;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.15);
}

.about-sub-text {
    font-size: 1.23rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: center;
    max-width: 720px;
}

.about-location {
    color: var(--accent-primary) !important;
    font-weight: 500 !important;
    margin-top: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.8rem !important;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .about-lead-text {
        font-size: 1.3rem;
    }

    .about-sub-text {
        font-size: 1.21rem;
    }
}

/* ==========================================================================
   Services Section ("WHAT WE DO")
   ========================================================================== */
.services-section {
    background-image: url('assets/services_background_v4.webp');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--accent-dim);
    padding-top: 75px;
    padding-bottom: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.services-header-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    gap: 20px;
    text-align: center;
    width: 100%;
}

/* View 2: Accordion List */
.services-accordion-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    text-align: left;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.accordion-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 10px;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.accordion-title {
    font-family: var(--font-headers);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    transition: var(--transition-snappy);
}

.accordion-icon {
    font-family: var(--font-headers);
    font-size: 1.8rem;
    font-weight: 200;
    color: var(--accent-primary);
    transition: var(--transition-smooth);
    display: inline-block;
}

.accordion-header:hover .accordion-title,
.accordion-header:hover .accordion-icon {
    color: var(--accent-secondary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-list {
    list-style: none;
    padding: 0 10px 40px 10px;
}

.detail-list li {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    padding: 10px 0;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Animation trigger when accordion expands */
.accordion-item.open .detail-list li {
    opacity: 1;
    transform: translateY(0);
}

.accordion-item.open .detail-list li:nth-child(1) {
    transition-delay: 0.05s;
}

.accordion-item.open .detail-list li:nth-child(2) {
    transition-delay: 0.1s;
}

.accordion-item.open .detail-list li:nth-child(3) {
    transition-delay: 0.15s;
}

.accordion-item.open .detail-list li:nth-child(4) {
    transition-delay: 0.2s;
}

.accordion-item.open .detail-list li:nth-child(5) {
    transition-delay: 0.25s;
}

.accordion-item.open .detail-list li:nth-child(6) {
    transition-delay: 0.3s;
}

.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
    color: var(--accent-primary);
}

.accordion-item.open .accordion-title {
    color: var(--accent-primary);
}

@media (max-width: 768px) {

    .accordion-title,
    .accordion-icon {
        font-size: 1.3rem;
    }

    .accordion-header {
        padding: 25px 5px;
    }

    .detail-list li {
        font-size: 0.95rem;
        padding: 8px 0;
    }
}

/* Services Footer Banner */
.services-footer {
    margin-top: 70px;
    text-align: center;
    border-top: 1px solid var(--accent-dim);
    padding-top: 40px;
    width: 100%;
}

.services-banner-text {
    font-family: var(--font-headers);
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: var(--accent-primary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    border-top: 1px solid var(--accent-dim);
    padding-top: 110px;
    padding-bottom: 150px;
    background-image: url('assets/contact_image_v2.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.contact-center-layout {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-lead {
    font-family: var(--font-headers);
    font-size: 2.2rem;
    font-weight: 200;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: var(--accent-primary);
    text-transform: none;
    margin-bottom: 40px;
    max-width: 750px;
}

.contact-email {
    font-family: var(--font-body);
    font-weight: 200;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 45px;
    transition: var(--transition-smooth);
    word-break: break-all;
    position: relative;
    display: inline-block;
    width: fit-content;
    cursor: pointer;
}

.contact-email::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-primary);
    transition: var(--transition-smooth);
}

.contact-email:hover {
    color: var(--accent-secondary);
}

.contact-email:hover::after {
    width: 100%;
}

.contact-divider-center {
    width: 50px;
    height: 1.5px;
    background-color: var(--accent-primary);
    margin-bottom: 35px;
}

.contact-location-centered p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.contact-copyright {
    position: absolute;
    bottom: -160px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .contact-lead {
        font-size: 2.2rem;
    }

    .contact-email {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   Studio Footer
   ========================================================================== */
.studio-footer {
    border-top: 1px solid var(--accent-dim);
    background-color: var(--bg-primary);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}

.studio-footer p {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Global Fade-in Animations (Intersection Observer)
   ========================================================================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px) scale(0.99);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 992px) {

    .about-section,
    .services-section,
    .contact-section {
        min-height: auto;
        display: block;
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

/* Accessibility: Support prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }

    .fade-in-section {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-sculpture,
    .hero-caption {
        opacity: 1 !important;
        transform: none !important;
    }
}