:root {
    --bg-color: #FFFFFF;
    --text-color: #2C2C2C;
    --accent-color: #C37A67;
    --placeholder-gray: #E0E0E0;
    --font-main: 'Outfit', sans-serif;
    --font-brand: 'Outfit', sans-serif;
    --page-margin: 2%;
    /* Consistent page margin matching hero frame */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Navbar (Solid Frame Look) */
.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem var(--page-margin);
    position: relative;
    width: 100%;
    z-index: 100;
    background: #fff;
    color: var(--text-color);
}

.logo {
    font-family: var(--font-brand);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-right: auto;
    color: #000;
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2.5rem;
        margin-left: auto;
    }
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: capitalize;
    color: var(--text-color);
    text-decoration: none;
    opacity: 1;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section (Framed + Slider) */
.hero-slider {
    height: 85vh;
    width: calc(100% - var(--page-margin) * 2);
    margin: 0 auto 2rem;
    position: relative;
    color: #fff;
}

.hero-static-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 20;
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-brand);
    font-size: 2.2rem;
    /* Reduced from 2.5rem */
    /* Mobile */
    line-height: 1.1;
    margin-bottom: 0;
    font-weight: 500;
    /* Reduced from 700 to Medium */
    text-transform: none;
    /* Sentence case 'Bespoke' */
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.8rem;
        /* Reduced from 4.5rem */
    }

    .hero-slider {
        /* On larger screens, expand upwards / taller aspect */
        height: 90vh;
        /* Taller */
    }
}

/* Mobile Layout: Proportional, No Crop */
@media (max-width: 768px) {
    .hero-slider {
        height: auto;
        /* Let image define height */
        aspect-ratio: 4/3;
        /* Enforce a reasonable ratio or let img dictate */
        width: 94%;
        /* Slightly tighter frame */
        margin: 0 auto 1.5rem;
    }

    .slider-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 400px;
        /* Minimum height to avoid collapse */
    }

    .hero-title {
        font-size: 2rem;
        /* Ensure specific mobile alignment if needed, usually absolute center handles it */
        width: 100%;
    }
}

/* Slider Wrapper: NATIVE SCROLL (like Systems section) */
.slider-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 4px;

    /* Native Horizontal Scroll */
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;

    /* Scroll Snap for slide effect */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    /* Hide Scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;

    /* Prevent text selection during drag */
    user-select: none;
    -webkit-user-drag: none;
    -webkit-overflow-scrolling: touch;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slide {
    /* Flex item in row (NOT absolute) */
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;

    /* Snap alignment */
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.slide-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Aectual-style Slider Controls (+ Buttons) */
.slider-nav-prev,
.slider-nav-next {
    position: absolute;
    top: 50%;
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 30;
    transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease;
    color: #fff;
    font-family: var(--font-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-nav-prev {
    left: 0;
    transform: translate(-50%, -50%);
}

.slider-nav-next {
    right: 0;
    transform: translate(50%, -50%);
}

.slider-nav-prev:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
    color: var(--accent-color);
}

.slider-nav-next:hover {
    transform: translate(50%, -50%) scale(1.1);
    background: #fff;
    color: var(--accent-color);
}

@media (max-width: 768px) {

    .slider-nav-prev,
    .slider-nav-next {
        width: 35px;
        height: 35px;
    }

    .slider-nav-prev {
        left: 0.5rem;
        transform: translate(0, -50%);
    }

    .slider-nav-next {
        right: 0.5rem;
        transform: translate(0, -50%);
    }

    .slider-nav-prev:hover {
        transform: translate(0, -50%) scale(1.1);
    }

    .slider-nav-next:hover {
        transform: translate(0, -50%) scale(1.1);
    }
}

.plus-icon {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    margin-top: -2px;
}

/* Mission Statement */
.mission-statement {
    padding: 10rem var(--page-margin);
    text-align: left;
    background: var(--bg-color);
}

.mission-content h2 {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.4;
    max-width: none;
    /* Allow full width to match Hero */
    width: 100%;
    margin-bottom: 0.5rem;
    /* Reduced from default */
    color: var(--text-color);
}

@media (min-width: 768px) {
    .mission-content h2 {
        font-size: 3rem;
    }
}

/* Systems */
.systems {
    padding: 5rem 0 8rem;
    background: #fff;
    overflow: hidden;
}

.section-header {
    padding: 0 var(--page-margin);
    margin-bottom: 3rem;
}

.section-header h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.systems-slider-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    padding-left: var(--page-margin);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide Scrollbar for Chrome/Safari/Opera */
.systems-slider-container::-webkit-scrollbar {
    display: none;
}

.systems-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding-right: var(--page-margin);
}

.system-card {
    width: 300px;
    flex-shrink: 0;
}

.gray-box {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: var(--placeholder-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.gray-box span {
    color: #999;
    font-weight: 600;
    border: 1px dashed #bbb;
    padding: 0.5rem;
    font-size: 0.8rem;
}

.system-card h4 {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Why Choose */
.why-choose {
    padding: 6rem var(--page-margin);
    background: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.why-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
    background: transparent;
    transition: border-color 0.3s;
}

.why-card:hover {
    border-color: var(--accent-color);
}

.why-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.why-card p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.8;
    line-height: 1.6;
}

/* Selected Works - Horizontal Slider */
.selected-works {
    padding: 6rem 0;
    overflow: hidden;
}

.works-slider-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    padding-left: var(--page-margin);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.works-slider-container::-webkit-scrollbar {
    display: none;
}

.works-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding-right: var(--page-margin);
}

.work-card {
    width: calc(100vw - var(--page-margin) * 2);
    max-width: none;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .work-card {
        /* On mobile, match the Hero Slider width (94%) which is approx 94vw */
        width: 94vw;
    }
}

.work-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background-color: var(--placeholder-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.work-placeholder span {
    color: #999;
    font-size: 1rem;
    font-weight: 600;
    border: 1px dashed #bbb;
    padding: 0.5rem 1rem;
}

.work-caption {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Final Quote */
.final-quote {
    padding: 8rem var(--page-margin);
    text-align: left;
    background: #fff;
}

.quote-content blockquote {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.3;
    max-width: none;
    /* Adaptive width similar to Mission */
    width: 100%;
    margin: 0;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .quote-content blockquote {
        font-size: 3.5rem;
    }
}

/* Footer (Dark) */
footer {
    padding: 6rem var(--page-margin) 2rem;
    background: #1a1a1a;
    color: #fff;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-left {
    flex: 1;
    max-width: 400px;
}

.footer-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #fff;
}

.footer-socials {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

.footer-socials a {
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-socials a:hover {
    color: var(--accent-color);
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
}

.newsletter-input {
    background: transparent;
    border: none;
    color: #fff;
    flex: 1;
    outline: none;
    font-family: var(--font-main);
    font-weight: 300;
}

.newsletter-btn {
    background: #fff;
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    flex: 1.5;
}

@media (min-width: 768px) {
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: 0.3s;
    font-weight: 300;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 300;
    opacity: 0.6;
}

/* CTA Link (Vision Section) */
.cta-link {
    display: inline-block;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    margin-top: 0;
    /* Reduced from 1.5rem */
    transition: color 0.3s ease;
}

.cta-link .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.cta-link:hover .arrow {
    transform: translateX(5px);
}

/* =========================================
   VISION PAGE STYLES
   ========================================= */
.vision-page {
    background-color: #fff;
    color: var(--text-color);
}

.vision-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8rem var(--page-margin) 6rem;
}

/* Header */
.vision-header {
    margin-bottom: 6rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #eee;
}

.vision-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.vision-subtext {
    font-size: 1.5rem;
    font-weight: 400;
    max-width: 800px;
    color: #444;
    line-height: 1.4;
}

/* Pillars */
.vision-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 8rem;
}

.pillar-item {
    border-left: 1px solid #ddd;
    padding-left: 2rem;
}

.pillar-number {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #aaa;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.pillar-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.pillar-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    font-weight: 300;
}

/* Footer Quote */
.vision-footer {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid #eee;
}

.vision-quote {
    font-size: 2rem;
    font-weight: 300;
    color: #222;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive Vision */
@media (min-width: 768px) {
    .vision-header h1 {
        font-size: 5rem;
    }

    .vision-pillars {
        grid-template-columns: 1fr 1fr;
        /* 2 columns on tablet */
    }

    .vision-quote {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .vision-pillars {
        grid-template-columns: repeat(2, 1fr);
        gap: 6rem;
    }
}