/* 
   Styled By Q - Magnolia-Inspired Services CSS
   Design Aesthetic: Warm organic neutrals, elegant serifs, clean geometric details, editorial layouts.
*/

/* Google Fonts Imports */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Brand Design Variables */
:root {
    --bg-primary: #FAF8F5; /* Warm linen / alabaster */
    --bg-secondary: #F3EFE9; /* Soft sand / cream */
    --text-primary: #2C2A29; /* Deep warm charcoal */
    --text-muted: #5E5D59; /* Soft slate grey */
    --border-color: #E4DED5; /* Delicate sand border */
    --accent-green: #4D5647; /* Muted olive green */
    --accent-green-light: #EBECE8; /* Soft green tint */
    --white: #FFFFFF;
    
    /* Typography tokens */
    --font-serif: 'Lora', Georgia, serif;
    --font-geometric: 'Montserrat', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    /* Animation tokens */
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s ease;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    overflow-x: hidden;
}

/* Global Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--text-primary);
    font-weight: 500;
}

p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.uppercase-tag {
    font-family: var(--font-geometric);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-green);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.editorial-divider {
    width: 60px;
    height: 1px;
    background-color: var(--border-color);
    margin: 1.5rem auto;
}

/* Base Interactive Elements */
.btn-primary {
    display: inline-block;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    font-family: var(--font-geometric);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1.1rem 2.2rem;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--accent-green);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-geometric);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 0px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(44, 42, 41, 0.03);
}

/* Header & Sticky Navigation */
header {
    background-color: var(--text-primary); /* Dark warm charcoal */
    border-bottom: 1px solid rgba(250, 248, 245, 0.1); /* Subtle light border */
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 0.75rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition-smooth);
}

header.scrolled .header-container {
    height: 70px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--bg-primary); /* Linen white logo */
    text-transform: uppercase;
}

.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

header.scrolled .logo-img {
    height: 54px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-geometric);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(250, 248, 245, 0.7); /* Muted linen white */
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--white);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.cta-nav {
    display: block;
}

.header-container .btn-outline {
    border-color: rgba(250, 248, 245, 0.3) !important;
    color: var(--bg-primary) !important;
}

.header-container .btn-outline:hover {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--bg-primary) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--bg-primary); /* Linen white mobile menu button */
    cursor: pointer;
}

.menu-toggle svg {
    display: block;
    width: 24px;
    height: 24px;
    stroke: var(--bg-primary) !important;
}

/* Hero Section (Asymmetric Editorial Split) */
.hero {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: calc(85vh - 90px);
    align-items: center;
}

.hero-content {
    padding: 4rem 6rem 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-family: var(--font-geometric);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.hero-image-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
    min-height: 500px;
    border-left: 1px solid var(--border-color);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Category Intro Section */
.category-intro {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.category-intro h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.category-intro p {
    max-width: 650px;
    margin: 0 auto;
}

/* Services Main Catalog (The Magnolia Grid) */
.services-catalog {
    background-color: var(--bg-primary);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
}

/* Service Card Design */
.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.service-card:hover {
    box-shadow: 0 15px 40px rgba(44, 42, 41, 0.04);
    transform: translateY(-4px);
    border-color: var(--text-primary);
}

.card-image-box {
    width: 100%;
    height: 380px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.15, 0.75, 0.5, 1);
}

.service-card:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header {
    margin-bottom: 1.25rem;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.card-price {
    font-family: var(--font-geometric);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.card-desc {
    margin-bottom: 2rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.card-footer .btn-primary {
    width: 100%;
}

/* Sub-Services Staging/Refresh Grid Tiers */
.sub-services-grid {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 3px solid var(--accent-green);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sub-service-tier {
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1rem;
}

.sub-service-tier:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tier-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.tier-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tier-price {
    font-family: var(--font-geometric);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-green);
}

.tier-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.tier-bullets {
    margin-top: 0.5rem;
    padding-left: 1.2rem;
    list-style-type: circle;
}

.tier-bullets li {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

/* About Section (High-End Asymmetric Split) */
.about {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.about-image-box {
    border: 1px solid var(--border-color);
    padding: 1rem;
    background-color: var(--white);
    box-shadow: 0 20px 50px rgba(44, 42, 41, 0.03);
}

.about-image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.05);
    transition: var(--transition-smooth);
}

.about-image:hover {
    filter: grayscale(0%) contrast(1);
}

.about-image-name {
    display: block;
    width: 100%;
    font-family: var(--font-geometric);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    padding-left: 0.2em; /* Offsets the letter-spacing on the last character for absolute centering */
    text-transform: uppercase;
    color: var(--text-primary);
    text-align: center !important;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.about-content {
    padding: 2rem 0;
}

.about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.about-signature {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-style: italic;
    margin-top: 2rem;
    color: var(--accent-green);
}

/* Testimonials Carousel Section */
.testimonials {
    background-color: var(--bg-primary);
    text-align: center;
}

.testimonials-title-wrapper {
    margin-bottom: 4rem;
}

.testimonials-title-wrapper h2 {
    font-size: 2.2rem;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 250px;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-quote::before {
    content: '“';
    font-size: 4rem;
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(77, 86, 71, 0.08);
    font-family: var(--font-serif);
}

.testimonial-author {
    font-family: var(--font-geometric);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-green);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.slider-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.slider-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.slider-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
}

/* Call To Action Banner */
.cta-banner {
    background-color: var(--accent-green);
    color: var(--white);
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-banner h2 {
    color: var(--white);
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
}

.cta-banner p {
    color: rgba(250, 248, 245, 0.85);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.05rem;
}

.cta-banner .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-banner .btn-outline:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--bg-primary);
}

/* Shopify Cart-Drawer Style Slide-out Modal */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(44, 42, 41, 0.4);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 200;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.drawer-overlay.open .drawer-container {
    transform: translateX(0);
}

.drawer-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    font-size: 1.45rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-serif);
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
    line-height: 1;
}

.drawer-close:hover {
    color: var(--text-primary);
}

.drawer-body {
    padding: 2.5rem 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-family: var(--font-geometric);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: 0px;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--text-primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    width: 100%;
    margin-top: 1rem;
}

.success-message {
    text-align: center;
    padding: 3rem 1rem;
    display: none;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-green-light);
    color: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.success-message h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

/* Footer Section */
footer {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-top {
    padding: 5rem 0;
    border-bottom: 1px solid rgba(228, 222, 213, 0.15);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
}

.footer-brand h3 {
    color: var(--bg-primary);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.footer-brand p {
    color: rgba(250, 248, 245, 0.7);
    margin-bottom: 2rem;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(250, 248, 245, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(250, 248, 245, 0.7);
    transition: var(--transition-fast);
}

.social-icon:hover {
    color: var(--bg-primary);
    border-color: var(--bg-primary);
    background-color: rgba(250, 248, 245, 0.05);
}

.footer-nav-col h4 {
    color: var(--bg-primary);
    font-family: var(--font-geometric);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-links a {
    color: rgba(250, 248, 245, 0.7);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--bg-primary);
}

.footer-newsletter h4 {
    color: var(--bg-primary);
    font-family: var(--font-geometric);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-newsletter p {
    color: rgba(250, 248, 245, 0.7);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-input {
    flex-grow: 1;
    background-color: rgba(250, 248, 245, 0.05);
    border: 1px solid rgba(250, 248, 245, 0.2);
    color: var(--white);
    padding: 0.9rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    border-radius: 0px;
    border-right: none;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--bg-primary);
    background-color: rgba(250, 248, 245, 0.1);
}

.newsletter-btn {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-geometric);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.newsletter-btn:hover {
    background-color: var(--accent-green-light);
}

.footer-bottom {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(228, 222, 213, 0.08);
}

.footer-bottom p {
    color: rgba(250, 248, 245, 0.4);
    font-size: 0.75rem;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: 4rem 2rem;
    }
    
    .hero-image-wrapper {
        min-height: 400px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-box {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.6rem;
    }
    
    .header-container {
        height: 70px;
    }
    
    .logo {
        font-size: 1.2rem;
        gap: 0.4rem;
    }
    
    .logo-img {
        height: 54px !important;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--text-primary); /* Dark charcoal matching header */
        border-bottom: 1px solid rgba(250, 248, 245, 0.1);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-links a {
        padding: 1rem 2rem;
        width: 100%;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .cta-nav {
        display: none;
    }
    
    .card-image-box {
        height: 280px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .about-content h2 {
        font-size: 2.2rem;
    }
    
    .drawer-container {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   Premium Before & After Portfolio Styling
   ========================================================================== */

/* Featured Room Reveal Sliders Grid */
.portfolio-sliders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
    margin-top: 2rem;
}

.portfolio-slider-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.portfolio-slider-card:hover {
    box-shadow: 0 15px 40px rgba(44, 42, 41, 0.04);
    border-color: var(--text-primary);
}

/* Drag-to-Reveal Slider Control */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    user-select: none;
    -webkit-user-select: none;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.before-img {
    z-index: 1;
}

.reveal-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    clip-path: polygon(0 0, var(--exposure, 50%) 0, var(--exposure, 50%) 100%, 0 100%);
    transition: clip-path 0.05s linear; /* extremely responsive */
}

.after-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Range input overlay that captures drags */
.slider-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
    margin: 0;
    padding: 0;
}

/* Slider Bar & Handle Styles */
.slider-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--exposure, 50%);
    width: 2px;
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    z-index: 3;
    pointer-events: none;
    transform: translateX(-50%);
    transition: left 0.05s linear;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: var(--exposure, 50%);
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(44, 42, 41, 0.15);
    z-index: 4;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: left 0.05s linear, background-color var(--transition-fast), transform var(--transition-fast);
}

.slider-wrapper:hover .slider-button {
    transform: translate(-50%, -50%) scale(1.05);
    background-color: var(--bg-primary);
}

.slider-button svg {
    width: 12px;
    height: 12px;
    color: var(--text-primary);
}

/* Slide Labels */
.slider-label {
    position: absolute;
    bottom: 1.5rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-geometric);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    background-color: rgba(44, 42, 41, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.label-before {
    left: 1.5rem;
}

.label-after {
    right: 1.5rem;
}

.slider-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.slider-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

/* Editorial Cards Grid (Toggle Cards) */
.portfolio-grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
    margin-top: 2rem;
}

.portfolio-toggle-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.portfolio-toggle-card:hover {
    box-shadow: 0 15px 40px rgba(44, 42, 41, 0.04);
    border-color: var(--text-primary);
}

.card-toggle-box {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.view-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.view-panel.active {
    opacity: 1;
    visibility: visible;
}

.toggle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toggle-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-geometric);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    z-index: 4;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(44, 42, 41, 0.05);
}

.card-toggle-box:hover .toggle-badge {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.card-details {
    padding: 2rem;
}

.card-details h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

/* Responsive Overrides for Portfolio elements */
@media (max-width: 1024px) {
    .portfolio-sliders-grid,
    .portfolio-grid-cards {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .slider-wrapper {
        height: 300px;
    }
    .card-toggle-box {
        height: 280px;
    }
    .slider-info,
    .card-details {
        padding: 1.5rem;
    }
    .slider-info h3,
    .card-details h3 {
        font-size: 1.4rem;
    }
}

