/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #D3B574;
    /* Accent color for CTAs and highlights */
    --charcoal: #1B1B1B;
    /* Main professional dark */
    --slate-gray: #4A4A4A;
    /* Refined professional gray */
    --soft-beige: #F8F8F8;
    /* Subtle neutral gray background */
    --white: #FFFFFF;
    --border-gray: rgba(0, 0, 0, 0.08);
    --gold-gradient: linear-gradient(90deg, #D3B574, #FFE5B4, #D3B574);
    --transition-standard: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.vision-highlight {
    color: var(--gold) !important;
    font-weight: 700;
    display: inline-block;
}

html {
    scroll-behavior: initial;
}

body {
    background-color: var(--white);
    color: var(--slate-gray);
    font-family: 'Open Sans', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-serif {
    font-family: 'Open Sans', sans-serif;
    color: var(--charcoal);
}

/* Canvas Background - Fixed behind specific sections */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
    /* Subtle presence on light sections */
}

/* Sections */
section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

#hero {
    padding: 0;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    /* Behind text (z-10) and overlay (z-1) */
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transform-origin: center center;
}

/* Ensure first slide and text are visible immediately even if JS fails */
.hero-slideshow .slide:first-child {
    opacity: 1;
    z-index: 1;
}

.hero-slideshow .slide-visible {
    opacity: 1;
}

/* Buttons (Five Star Style) */
.btn-gold {
    display: inline-block;
    padding: 18px 45px;
    background: var(--gold);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    border-radius: 3px;
    text-decoration: none;
    transition: var(--transition-standard);
    border: 2px solid var(--gold);
}

.btn-gold:hover {
    background: transparent;
    color: var(--gold);
}

.btn-outline {
    display: inline-block;
    padding: 18px 45px;
    background: transparent;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    border-radius: 3px;
    text-decoration: none;
    transition: var(--transition-standard);
    border: 2px solid var(--white);
}

.btn-gold-gradient {
    display: inline-block;
    padding: 20px 50px;
    background: linear-gradient(135deg, #D3B574 0%, #B69A5E 100%);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 5px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(211, 181, 116, 0.3);
}

.btn-gold-gradient:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(211, 181, 116, 0.4);
    filter: brightness(1.1);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--charcoal);
}

/* Header Interaction */
#main-header.scrolled {
    background: rgba(27, 27, 27, 0.95);
    padding: 15px 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Materials Cards */
.material-card {
    cursor: pointer;
    background: var(--white);
    padding: 0;
    border-radius: 30px;
    /* Large rounded corners as requested */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-standard);
}

.material-card:hover {
    transform: translateY(-10px);
}

.material-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.material-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.material-card:hover .material-img {
    transform: scale(1.1);
}

.material-card h3 {
    padding: 20px 20px 5px 20px;
    text-align: center;
    font-size: 1.5rem;
}

.material-card p {
    padding: 0 20px 30px 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}

/* Timeline */
.timeline-container {
    border-left: 2px solid var(--gold);
    padding-left: 40px;
}

.timeline-number {
    color: var(--gold) !important;
    opacity: 1 !important;
    font-size: 4rem;
    line-height: 1;
}

/* Scrollytelling Reveals - JS will handle the transition */
.reveal-section {
    opacity: 0;
    transform: translateY(50px);
}

.reveal-text {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    .btn-gold,
    .btn-outline {
        padding: 15px 30px;
        width: 100%;
        text-align: center;
    }
}

/* New Section Styles */

/* Who We Serve */
.serve-card {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 3px;
    border: 1px solid var(--border-gray);
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
}

.serve-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.serve-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.6s ease;
    transform-origin: left;
}

.serve-card:hover::before {
    transform: scaleX(1);
}

/* Gallery Tab */
.gallery-tab.active-tab {
    background: var(--gold);
    color: var(--charcoal);
    font-weight: 700;
}

/* Portfolio Gallery */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 3px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: var(--white);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Quote Form */
.quote-form-container {
    background: var(--charcoal);
    padding: 80px;
    border-radius: 3px;
    color: var(--white);
    position: relative;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    color: var(--white);
    font-family: inherit;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

/* Select dropdown styling */
select.form-input {
    background-color: var(--charcoal);
    cursor: pointer;
}

select.form-input option {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 12px;
}

select.form-input option:hover,
select.form-input option:focus,
select.form-input option:checked {
    background-color: var(--gold) !important;
    color: var(--charcoal) !important;
}

/* Testimonials */
.testimonial-card {
    background: var(--soft-beige);
    padding: 50px;
    border-radius: 3px;
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 40px;
    font-family: 'Open Sans', sans-serif;
    font-size: 8rem;
    color: var(--gold);
    opacity: 0.1;
    line-height: 1;
}

/* City Matrix */
.city-link {
    display: block;
    padding: 15px 20px;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 3px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
}

.city-link:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

/* Custom Overlays for Premium Look */
.star-icon {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    opacity: 0.15;
    z-index: 100;
}

#hero h1 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 900;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

#hero h1 span {
    color: var(--gold);
    text-shadow: 0 4px 20px rgba(211, 181, 116, 0.3);
}

.hero-content {
    animation: heroFadeIn 1.2s ease-out forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Workshop Slideshow */
.workshop-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.05);
    z-index: 1;
}

.workshop-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Global Lightbox Helpers */
#lightbox-caption {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.active-tab {
    border-color: var(--gold) !important;
    color: var(--white) !important;
}

.gallery-panel {
    transition: all 0.5s ease;
}