/* --- Google Fonts --- */

/* --- CSS Variables & Global Styles --- */
:root {
    --color-primary: #8C271E; /* Deep Red */
    --color-secondary: #ABA194; /* Muted Beige */
    --color-accent: #CFCBCA; /* Light Gray */
    --color-text: #333333;
    --color-bg: #FFFFFF;
    --color-dark-bg: #1a1a1a;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --container-width: 1200px;
    --spacing-unit: 1rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin-bottom: var(--spacing-unit); }
a { color: var(--color-primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-secondary); }
ul { list-style: none; }
img { width: 100%; height: 50%; display: block; }
section { padding: calc(var(--spacing-unit) * 6) 0; position: relative; overflow: hidden; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2);
}
.g-flex__ver
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.text-center { text-align: center; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg);
}
.btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-3px);
}
.btn-secondary {
    background-color: transparent;
    border-color: var(--color-secondary);
    color: var(--color-text);
}
.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-bg);
    transform: translateY(-3px);
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-unit) 0;
    transition: all 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
}
.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--color-primary);
}
.nav-list {
    display: flex;
    gap: calc(var(--spacing-unit) * 2.5);
}
.nav-list a {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--color-text);
    position: relative;
    padding-bottom: 5px;
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}
.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* --- Polygon Shapes & Separators --- */
.polygon-separator {
    position: absolute;
    width: 100%;
    height: 80px;
    left: 0;
}
.polygon-separator.top {
    top: 0;
    transform: translateY(-99%);
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    background-color: var(--color-accent);
}
.polygon-separator.bottom {
    bottom: 0;
    transform: translateY(99%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background-color: var(--color-bg);
}
.polygon-separator.top-cta {
    top: 0;
    height: 100px;
    transform: translateY(-99%);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

/* --- Section Specific Styles --- */

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-bg);
    padding: 0;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-bg.webp') no-repeat center center/cover;
    filter: brightness(0.6);
    z-index: -2;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.4);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    z-index: -1;
}
.hero-content { z-index: 1; }
.hero-title {
    color: var(--color-bg);
    margin-bottom: var(--spacing-unit);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto calc(var(--spacing-unit) * 2);
    font-weight: 500;
}
.hero-section .btn-primary {
    border-color: var(--color-bg);
}
.hero-section .btn-primary:hover {
    background-color: var(--color-bg);
    color: var(--color-primary);
}

/* Asymmetrical Grid System */
.asymmetrical-grid {
    display: grid;
    gap: calc(var(--spacing-unit) * 4);
    align-items: center;
}
.about-grid { grid-template-columns: 2fr 1.5fr; }
.portfolio-grid { grid-template-columns: 1.5fr 1fr;  margin-bottom: 30px;}
.philosophy-section {
    padding: 50px 0; /* Remove padding from the section wrapper */
}

.split-screen-grid-v3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh; /* Give the section some height */
}

.text-content-v3 {
    background-color: var(--color-secondary);
    color: var(--color-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--spacing-unit) * 1);
}

.text-content-v3 .section-title {
    color: var(--color-bg);
}

.shape-container-v3 {
    background-color: var(--color-accent);
    display: grid;
    place-items: center; /* Easiest way to center the polygon */
}

.decorative-polygon-v3 {
    width: 300px;
    height: 300px;
    background-color: var(--color-primary);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: rotate-polygon 20s linear infinite;
}

/* Responsive stacking for the split-screen */
@media (max-width: 992px) {
    .split-screen-grid-v3 {
        grid-template-columns: 1fr;
    }
    .shape-container-v3 {
        min-height: 400px; /* Give the shape some space on mobile */
    }
    .image-content
    {
        height: 400px;
    }
    .image-content img 
    {
        height: 100%;
        height: 400px ;
        object-fit: cover;
    }
    .image-content
    {
        height: 400px;
    }
    .portfolio-item img
    {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

}

.section-title { margin-bottom: 30px; }
.section-subtitle { max-width: 600px; margin: 0 auto calc(var(--spacing-unit) * 3); font-size: 1.1rem; }

/* About Section */
.about-section .image-content img {
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    border-radius: 5px;
}
.image-content
{
    width: 100%;
}

/* Services Section */
.services-section { background-color: var(--color-accent); }
.services-grid {
    display: grid;
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}
.service-card {
    background: var(--color-bg);
    padding: calc(var(--spacing-unit) * 2.5);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-accent);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.card-icon svg {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin-bottom: var(--spacing-unit);
}
.card-title { margin-bottom: var(--spacing-unit); }

/* --- Alternative Layout 3: Dynamic Overlay --- */
.service-method-section-v3 {
    position: relative;
    background-image: url('images/method.webp');
    background-size: cover;
    background-position: center;
    padding: calc(var(--spacing-unit) * 8) 0;
    color: var(--color-bg); /* Set default text color to light */
}

/* Gradient overlay */
.service-method-section-v3::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, 
        rgba(140, 39, 30, 0.85), /* var(--color-primary) */
        rgba(26, 26, 26, 0.9) 70% /* Dark color */
    );
    z-index: 1;
}

.overlay-content-v3 {
    position: relative;
    z-index: 2; /* Text sits above the gradient */
    max-width: 700px;
}

/* Invert text and title colors */
.overlay-content-v3 .section-title {
    color: var(--color-bg);
}
.overlay-content-v3 p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Portfolio Section */
.portfolio-section { padding-bottom: calc(var(--spacing-unit) * 8); }
.portfolio-item { position: relative; overflow: hidden; border-radius: 8px; }
.portfolio-item img {
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2);
    color: var(--color-bg);
    transform: translateY(50%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.portfolio-overlay h3 { color: var(--color-bg); }
.portfolio-link:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}
.portfolio-link:hover img {
    transform: scale(1.1);
}

/* Philosophy Section */
.philosophy-section { background-color: var(--color-secondary); color: var(--color-bg); }
.philosophy-section h2 { color: var(--color-bg); }
.image-content-decorative {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}
.decorative-polygon {
    width: 250px;
    height: 250px;
    background-color: var(--color-primary);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: rotate-polygon 20s linear infinite;
}
@keyframes rotate-polygon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Testimonials Section */
.testimonials-section { background-color: var(--color-bg); }
.testimonial-slider { text-align: center; max-width: 800px; margin: 0 auto; }
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing-unit);
    border: 3px solid var(--color-accent);
}
.testimonial-item blockquote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: var(--spacing-unit);
    color: var(--color-text);
}
.testimonial-item cite {
    font-weight: 700;
    color: var(--color-primary);
}
.slider-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-unit);
    margin-top: calc(var(--spacing-unit) * 2);
}
.slider-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    padding: 0;
}
.triangle-nav {
    width: 100%;
    height: 100%;
    fill: var(--color-secondary);
    transition: fill 0.3s ease;
}
.slider-btn:hover .triangle-nav {
    fill: var(--color-primary);
}
.slider-btn.prev .triangle-nav {
    transform: rotate(-360deg);
}
.slider-btn.next .triangle-nav {
    transform: rotate(0deg);
}

/* CTA Section */
.cta-section {
    background-color: var(--color-primary);
    color: var(--color-bg);
    padding: calc(var(--spacing-unit) * 8) 0;
}
.cta-title { color: var(--color-bg); }
.cta-text { font-size: 1.2rem; max-width: 600px; margin: 0 auto calc(var(--spacing-unit) * 2); }
.cta-section .btn-primary {
    background-color: var(--color-bg);
    color: var(--color-primary);
}
.cta-section .btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-bg);
    color: var(--color-bg);
}

/* --- Add this to the end of your existing style.css file --- */

/* Services Page Specific Styles */
.hero-services .hero-title {
    max-width: 800px; /* Give title a bit more room */
    margin-left: auto;
    margin-right: auto;
}

.detailed-service-section {
    background-color: var(--color-bg);
}

/* Alternate asymmetrical grid for variety */
.service-grid-reversed {
    grid-template-columns: 1.5fr 2fr;
}

.detailed-service-section:nth-of-type(odd) {
    background-color: var(--color-accent);
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin-top: calc(var(--spacing-unit) * 2);
    columns: 2; /* Creates two columns for the list on wider screens */
    column-gap: calc(var(--spacing-unit) * 2);
}

.feature-list li {
    padding-left: calc(var(--spacing-unit) * 2);
    position: relative;
    margin-bottom: var(--spacing-unit);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px; /* Vertically align the triangle */
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--color-primary); /* A triangle as a list-style */
}


/* Responsive adjustments for new elements */
@media (max-width: 992px) {
    .service-grid-reversed {
        grid-template-columns: 1fr;
    }
    .service-grid-reversed .image-content {
        order: -1; /* Image appears first on mobile */
    }
}

@media (max-width: 576px) {
    .feature-list {
        columns: 1; /* Single column on small screens */
    }
}

/* --- Add this to the end of your existing style.css file --- */

/* Portfolio Page Specific Styles */
.hero-portfolio .hero-subtitle {
    max-width: 650px;
}

.portfolio-philosophy-section {
    background-color: var(--color-bg);
}

/* Case Study Section */
.case-study-section {
    padding: calc(var(--spacing-unit) * 6) 0;
}
.case-study-section:nth-of-type(odd) {
    background-color: var(--color-accent);
}
.case-study-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto calc(var(--spacing-unit) * 4);
}
.case-study-category {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-unit);
    display: block;
}
.case-study-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-unit);
}
.case-study-intro {
    font-size: 1.1rem;
    line-height: 1.7;
}
.case-study-image {
    margin-bottom: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.case-study-details {
    max-width: 800px;
    margin: 0 auto;
}
.case-study-details h3 {
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-unit);
}
.case-study-details p {
    margin-bottom: var(--spacing-unit) * 1.5;
}

/* Project Showcase Section */
.project-showcase-section {
    background-color: var(--color-accent);
    padding-bottom: calc(var(--spacing-unit) * 8);
}
.project-showcase-grid {
    display: grid;
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 4);
}
/* Re-using .portfolio-item and .portfolio-overlay from previous styles */

/* Impact / Testimonial Section */
.impact-section {
    background-color: var(--color-secondary);
    color: var(--color-bg);
    padding: calc(var(--spacing-unit) * 6) 0;
}
.impact-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.impact-content blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.4;
    margin-bottom: var(--spacing-unit) * 2;
    font-weight: 700;
}
.impact-content cite {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-style: normal;
}

/* Responsive adjustments for portfolio */
@media (max-width: 768px) {
    .case-study-details {
        text-align: left;
    }
}

/* --- Add this to the end of your existing style.css file --- */

/* Careers Page Specific Styles */
.core-values-section {
    background-color: var(--color-accent);
}
.core-values-section .feature-list li {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}
.core-values-section .feature-list li strong {
    display: block;
    color: var(--color-primary);
}

/* Perks & Benefits Section */
.perks-benefits-section {
    background-color: var(--color-bg);
}
.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 4);
}
.perk-item {
    background-color: var(--color-bg);
    padding: calc(var(--spacing-unit) * 2);
    border-left: 4px solid var(--color-primary);
    transition: box-shadow 0.3s ease;
}
.perk-item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}
.perk-item h3 {
    margin-bottom: var(--spacing-unit);
}
.benefits-image {
    max-width: 800px;
    width: 100%;
    height: 400%;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Open Positions Section */
.open-positions-section {
    background-color: var(--color-accent);
}
.job-listings {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
    margin: 0 auto;
    margin-bottom: calc(var(--spacing-unit) * 4);
    margin-top: 10px;
}
.job-card {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-bg);
    padding: var(--spacing-unit) * 2;
    border-radius: 8px;
    margin-bottom: var(--spacing-unit) * 1.5;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.job-card h3 {
    margin-bottom: 5px;
}
.job-card span {
    color: var(--color-secondary);
    font-weight: 500;
}
.openings-visual {
    padding-top: var(--spacing-unit) * 2;
}
.openings-visual img {
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    margin: auto;
}

/* Studio Section */
.studio-section {
    padding-top: calc(var(--spacing-unit) * 8);
    padding-bottom: calc(var(--spacing-unit) * 8);
    background: var(--color-bg);
}

/* Responsive adjustments for careers page */
@media (max-width: 768px) {
    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-unit) * 1.5;
    }
    .job-card .btn {
        width: 100%;
        text-align: center;
    }
}

/* --- Add this to the end of your existing style.css file --- */

/* Process Page Specific Styles */
.process-step-section {
    padding: calc(var(--spacing-unit) * 6) 0;
}
.process-step-section:nth-of-type(even) {
    background-color: var(--color-accent);
}
/* This is a bit of a trick to remove the top polygon on the first step after the philosophy section */
.process-step-section#discovery .polygon-separator.top {
    display: none;
}
.process-step-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit) * 2;
    margin-bottom: var(--spacing-unit) * 1.5;
}
.process-step-number {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1;
    color: var(--color-accent); /* Light color to sit behind text */
    -webkit-text-stroke: 2px var(--color-primary);
    color: transparent;
    opacity: 0.5;
}
.process-step-header .section-title {
    margin-bottom: 0;
}

.cta-image-container {
    margin-bottom: calc(var(--spacing-unit) * 3);
}
.cta-image-container img {
    max-width: 400px;
    width: 100%;
    margin: auto;
    filter: grayscale(100%) contrast(100%) brightness(2); /* Makes logos white */
}

/* Responsive adjustments for process page */
@media (max-width: 768px) {
    .process-step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .process-step-number {
        margin-bottom: calc(var(--spacing-unit) * -1); /* Pull title up slightly */
    }
}

/* --- Add this to the end of your existing style.css file --- */

/* FAQ Page Specific Styles */
.faq-section {
    padding: calc(var(--spacing-unit) * 6) 0;
}
.faq-section:nth-of-type(even) {
    background-color: var(--color-accent);
}
.section-subtitle-left {
    font-size: 1.1rem;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.faq-accordion details {
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: var(--spacing-unit);
}
.faq-accordion details:last-of-type {
    border-bottom: none;
}
.faq-section:nth-of-type(even) .faq-accordion details {
    border-bottom-color: #ddd; /* A slightly darker border on light backgrounds */
}

.faq-accordion summary {
    list-style: none; /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-unit) 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}
.faq-accordion summary:hover {
    color: var(--color-primary);
}
.faq-accordion summary::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 8px solid var(--color-primary);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    transition: transform 0.3s ease;
    transform-origin: center;
}
.faq-accordion details[open] > summary::after {
    transform: rotate(180deg);
}
.faq-content {
    padding-bottom: calc(var(--spacing-unit) * 2);
    line-height: 1.8;
}

/* --- Definitive Smooth Accordion Styles --- */
.faq-accordion details {
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: var(--spacing-unit);
    overflow: hidden; /* Important for containing the animation */
}
.faq-section:nth-of-type(even) .faq-accordion details {
    border-bottom-color: #ddd;
}

.faq-accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-unit) 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    list-style: none; /* Remove default marker */
}
.faq-accordion summary::-webkit-details-marker {
    display: none; /* Remove default marker for Chrome/Safari */
}
.faq-accordion summary:hover {
    color: var(--color-primary);
}
.faq-accordion summary::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 8px solid var(--color-primary);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
}
.faq-accordion details[open] > summary::after {
    transform: rotate(180deg);
}

.faq-accordion .faq-content {
    /* --- The Core Animation Properties --- */
    max-height: 0;
    opacity: 0;
    transform: translateY(-1rem); /* Start slightly "above" */
    transition:
        max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1), /* Fast out, slow in */
        opacity 0.3s ease-in-out 0.1s, /* Fade in with a slight delay */
        transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-accordion details[open] > .faq-content {
    opacity: 1;
    transform: translateY(0);
    padding-bottom: calc(var(--spacing-unit) * 2);
}
/* Polygon Difference Section */
.polygon-difference-section {
    background: var(--color-secondary);
    color: var(--color-bg);
    padding: calc(var(--spacing-unit) * 8) 0;
}
.polygon-difference-section h2, .polygon-difference-section p {
    color: var(--color-bg);
}
.polygon-difference-section .image-content img {
    clip-path: polygon(0 25%, 100% 0, 100% 75%, 0 100%);
}

/* CTA Section Image */
.cta-image-round {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: calc(var(--spacing-unit) * 2);
    border: 5px solid var(--color-bg);
}


/* --- Add this to the end of your existing style.css file --- */

/* Contact Page Specific Styles */
.contact-form-section {
    background-color: var(--color-accent);
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}
.contact-form label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-secondary);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--color-bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(140, 39, 30, 0.2);
}
.contact-form textarea {
    resize: vertical;
}
.contact-form .btn {
    width: 100%;
}

/* Other Inquiries Section */
.other-inquiries-section {
    background: var(--color-bg);
    padding: calc(var(--spacing-unit) * 8) 0;
}
.inquiry-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    max-width: 800px;
    margin: calc(var(--spacing-unit) * 4) auto 0;
}
.channel-card {
    text-align: center;
}
.channel-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: var(--spacing-unit);
    border: 3px solid var(--color-accent);
}
.channel-card h3 {
    margin-bottom: var(--spacing-unit);
}
.inquiry-link {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
}

/* Visit Studio Section */
.visit-studio-section {
    background-color: var(--color-accent);
}
.map-content iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
}
.address-info h4 {
    margin-top: calc(var(--spacing-unit) * 1.5);
    margin-bottom: 5px;
}
.address-info p {
    margin-bottom: var(--spacing-unit);
}

/* Social CTA */
#social-cta .social-links {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 3);
    margin-top: var(--spacing-unit);
}
#social-cta .social-links a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-bg);
    position: relative;
    padding-bottom: 5px;
}
#social-cta .social-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-bg);
    transition: width 0.3s ease;
}
#social-cta .social-links a:hover::after {
    width: 100%;
}
/* Footer */
.main-footer {
    background-color: var(--color-dark-bg);
    color: var(--color-accent);
    padding: calc(var(--spacing-unit) * 4) 0 calc(var(--spacing-unit) * 2);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 3);
}
.footer-column h4 {
    color: var(--color-bg);
    margin-bottom: var(--spacing-unit);
}
.footer-column .logo {
    color: var(--color-bg);
    font-size: 1.5rem;
}
.footer-column ul li a {
    color: var(--color-accent);
    padding: 5px 0;
    display: inline-block;
}
.footer-column ul li a:hover {
    color: var(--color-bg);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: calc(var(--spacing-unit) * 2);
    font-size: 0.9rem;
}

/* --- Animations on Scroll --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in {
    opacity: 0;
}
.slide-up {
    transform: translateY(50px);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll {
    transition-delay: var(--delay, 0s);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .asymmetrical-grid {
        grid-template-columns: 1fr;
    }
    .philosophy-grid .image-content-decorative { order: -1; }
    .about-section .image-content img { clip-path: none; }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .primary-navigation {
        position: fixed;
        height: 100vh;
        inset: 0 0 0 30%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: var(--color-bg);
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
    }
    .primary-navigation[data-visible="true"] {
        transform: translateX(0);
    }
    .nav-list {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }
    .nav-toggle { display: block; }
    .hamburger {
        display: block;
        position: relative;
        width: 25px;
        height: 2px;
        background: var(--color-primary);
        transition: transform 0.3s ease;
    }
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 2px;
        background: var(--color-primary);
        left: 0;
        transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

    .nav-toggle[aria-expanded="true"] .hamburger {
        transform: rotate(45deg);
    }
    .nav-toggle[aria-expanded="true"] .hamburger::before {
        top: 0;
        transform: rotate(90deg);
    }
    .nav-toggle[aria-expanded="true"] .hamburger::after {
        display: none;
    }

    .hero-title { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    section { padding: calc(var(--spacing-unit) * 4) 0; }
    
    .footer-grid { text-align: center; }
}

/* --- Add this to the end of your existing style.css file --- */

/* --- Privacy Policy Page Styles --- */
.policy-section {
    padding: calc(var(--spacing-unit) * 6) 0;
    background-color: var(--color-bg);
}

.policy-content {
    max-width: 800px; /* Optimal width for reading text */
    margin: 0 auto;
}

.policy-content h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    text-align: center;
    margin-bottom: var(--spacing-unit);
}

.policy-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--color-secondary);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.policy-content section {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.policy-content h2 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-unit);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
}

.policy-content p {
    line-height: 1.8;
    margin-bottom: var(--spacing-unit);
}

.policy-content ul {
    list-style: none;
    padding-left: 0;
}

.policy-content ul li {
    padding-left: calc(var(--spacing-unit) * 2.5);
    position: relative;
    margin-bottom: var(--spacing-unit);
    line-height: 1.8;
}

.policy-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px; /* Vertically align with text */
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    transform: rotate(45deg); /* Creates a diamond shape */
}

.contact-link-wrapper {
    margin-top: calc(var(--spacing-unit) * 2);
}

/* --- Add this to the end of your existing style.css file --- */

/* --- Thank You Page Styles --- */
#thank-you-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--color-accent);
    padding: calc(var(--spacing-unit) * 4) 0;
}

.thank-you-box {
    background-color: var(--color-bg);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
    animation: fadeInUp 0.8s 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.thank-you-box h1 {
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
}

.thank-you-box p {
    max-width: 450px;
    margin: 0 auto calc(var(--spacing-unit) * 3);
    color: var(--color-text);
    line-height: 1.7;
}

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

/* --- SVG Checkmark Animation --- */
.checkmark-container {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.checkmark-svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: var(--color-primary);
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--color-primary);
    animation: scale .3s ease-in-out .9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: var(--color-primary);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

#services-bg
{
    background-image: url('images/services-bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
}

#portfolio-bg
{
    background-image: url('images/portfolio-bg.webp');

}
#process-bg
{
    background-color: #8C271E;
}

/* --- Add this to the end of your existing style.css file --- */

/* --- Tab Component Styles --- */
.tabs-layout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Asymmetrical grid */
    gap: calc(var(--spacing-unit) * 5);
    align-items: flex-start; /* Align to top */
}

.tabs-component .section-title {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* Tab Buttons List */
.tab-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 2);
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.tab-button {
    /* Reset button styles */
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
    padding: 0 0 calc(var(--spacing-unit) * 1.5);
    position: relative;
    transition: color 0.3s ease;
}
.tab-button:hover {
    color: var(--color-primary);
}

/* Active indicator line */
.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Sits on top of the border */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.tab-button.is-active {
    color: var(--color-primary);
}
.tab-button.is-active::after {
    transform: scaleX(1);
}

/* Tab Content Panels */
.tab-panel {
    display: none; /* Hide panels by default */
    animation: fadeIn 0.5s ease forwards;
}
.tab-panel.is-active {
    display: block; /* Show the active one */
}
.tab-panel p {
    line-height: 1.8;
}

.tab-image-content img {
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    height: 400px;
    object-fit: cover;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive stacking for tabs */
@media (max-width: 992px) {
    .tabs-layout-grid {
        grid-template-columns: 1fr;
    }
    .tab-image-content {
        margin-top: calc(var(--spacing-unit) * 3);
    }
}

/* --- Vertical Tab Component Styles --- */
.vertical-tabs-component {
    max-width: 800px;
    margin: 0 auto;
}

.vertical-tabs-grid {
    display: grid;
    grid-template-columns: 1fr 3fr; /* Asymmetrical columns for tab list and content */
    gap: calc(var(--spacing-unit) * 3);
}

/* Tab Buttons (Left Column) */
.v-tab-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: var(--spacing-unit);
}

.v-tab-button {
    /* Reset button styles */
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-unit) * 1.5;
    text-align: left;
    
    /* Typography and Colors */
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
    
    /* Active State Indicator */
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.v-tab-button:hover {
    color: var(--color-primary);
    background-color: rgba(140, 39, 30, 0.05); /* Faint primary color background */
}

.v-tab-button.is-active {
    color: var(--color-primary);
    background-color: transparent;
    border-left-color: var(--color-primary);
}

/* Tab Content Panels (Right Column) */
.v-tab-panel {
    display: none; /* Hide panels by default */
}

.v-tab-panel.is-active {
    display: block;
    animation: vTabFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.v-tab-panel h3 {
    margin-bottom: var(--spacing-unit);
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-unit);
}

.v-tab-panel p {
    line-height: 1.8;
}

@keyframes vTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Design for Vertical Tabs --- */
@media (max-width: 768px) {
    .vertical-tabs-grid {
        grid-template-columns: 1fr; /* Stack the columns */
    }
    .v-tab-list {
        flex-direction: row; /* Change to horizontal buttons on small screens */
        border-bottom: 2px solid var(--color-accent);
        gap: var(--spacing-unit) * 2;
    }
    .v-tab-button {
        border-left: none; /* Remove side border */
        border-bottom: 4px solid transparent; /* Use bottom border for active state */
        padding: var(--spacing-unit);
        text-align: center;
    }
    .v-tab-button.is-active {
        border-bottom-color: var(--color-primary);
    }
}

/* --- Content Slider Component Styles --- */
.content-slider-component {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.cs-track-container {
    overflow: hidden;
}

.cs-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cs-slide {
    flex: 0 0 100%; /* Each slide takes the full width of the container */
    width: 100%;
    padding: 0 var(--spacing-unit) * 2; /* Add some padding so text isn't edge-to-edge */
    opacity: 0.5; /* Fade out non-active slides for focus */
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cs-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.cs-slide h3 {
    margin-bottom: var(--spacing-unit);
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-unit);
}

.cs-slide p {
    line-height: 1.8;
}

/* Navigation and Pagination */
.cs-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 3);
}

.cs-button {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0;
}

.cs-button .triangle-nav {
    fill: var(--color-secondary);
    transition: fill 0.3s ease;
}
.cs-button:hover:not(:disabled) .triangle-nav {
    fill: var(--color-primary);
}
.cs-button:disabled {
    cursor: not-allowed;
}
.cs-button:disabled .triangle-nav {
    fill: var(--color-accent);
}

.cs-button--prev .triangle-nav {
    transform: rotate(0deg);
}

/* Pagination Dots */
.cs-pagination {
    display: flex;
    gap: 12px;
}

.cs-pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-accent);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cs-pagination-dot:hover {
    background-color: var(--color-secondary);
}

.cs-pagination-dot.is-active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

/* --- Process Tabs Component Styles --- */
.process-tabs-section {
    padding: calc(var(--spacing-unit) * 6) 0;
    background-color: var(--color-accent);
}

/* Tab Buttons */
.process-tab-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-unit);
    border-bottom: 2px solid var(--color-secondary);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.process-tab-button {
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: var(--spacing-unit) * 2;
    position: relative;
    border-bottom: 4px solid transparent;
    transition: background-color 0.3s ease;
}

.process-tab-button:hover {
    background-color: rgba(0,0,0,0.03);
}

.process-tab-number {
    display: block;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.process-tab-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-text);
}

.process-tab-button.is-active {
    border-bottom-color: var(--color-primary);
}
.process-tab-button.is-active .process-tab-number {
    color: var(--color-primary);
}

/* Tab Panels */
.process-tab-panel {
    display: none;
}

.process-tab-panel.is-active {
    display: block;
    animation: processTabFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Re-using existing grid styles from style.css inside the panels */
.process-tab-panel .asymmetrical-grid {
    align-items: center; /* Ensure vertical alignment */
}
.process-tab-panel p {
    line-height: 1.8;
}

@keyframes processTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .process-tab-list {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on tablets */
    }
}

@media (max-width: 768px) {
    .process-tab-list {
        grid-template-columns: 1fr; /* Stack buttons on mobile */
    }
    .process-tab-button {
        padding: var(--spacing-unit) * 1.5;
    }
}

/* --- Find and replace the old .perks-grid styles with this --- */

/* --- Bento Grid Layout for Perks & Benefits --- */
.bento-grid {
    display: grid;
    /* Create a 2-column grid for the main layout */
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: 20px;
}

.bento-item {
    background-color: var(--color-bg);
    padding: calc(var(--spacing-unit) * 2.5);
    border-radius: 12px;
    border: 1px solid var(--color-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.bento-item h3 {
    margin-bottom: var(--spacing-unit);
}

/* Style for the main highlighted item */
.bento-item--highlight {
    background-color: var(--color-secondary);
    color: var(--color-bg);
}

.bento-item--highlight h3 {
    color: var(--color-bg);
}

/* Style for the wide item that creates the asymmetry */
.bento-item--wide {
    /* This is the key to the bento layout */
    grid-column: span 2;
}

/* --- Responsive Behavior --- */
/* On small devices, switch to a single column as requested */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    /* On mobile, remove the column span so all items are the same width */
    .bento-item--wide {
        grid-column: span 1;
    }
}



/* --- FAQ Gallery Component Styles --- */
.faq-gallery-section {
    padding: calc(var(--spacing-unit) * 9) 0;
    background-color: var(--color-bg);
}

.faq-gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Asymmetrical grid */
    gap: calc(var(--spacing-unit) * 6);
    align-items: flex-start;
}

/* --- Left Column: Tabs & Accordions --- */
.faq-tab-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.faq-tab-button {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    padding: 20px 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-tab-button:hover {
    border-color: var(--color-secondary);
    background-color: rgba(0,0,0,0.02);
}

.faq-tab-button.is-active {
    border-color: var(--color-primary);
    background-color: var(--color-bg);
    color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(140, 39, 30, 0.1);
    transform: translateX(10px);
}

.faq-tab-panel {
    display: none;
}
.faq-tab-panel.is-active {
    display: block;
    animation: faqPanelFadeIn 0.5s ease forwards;
}

@keyframes faqPanelFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Right Column: Image Gallery --- */
.faq-image-gallery {
    position: sticky; /* Makes the gallery stick on scroll */
    top: 120px; /* Adjust based on header height */
    height: 500px; /* Define a fixed height */
    border-radius: 12px;
    overflow: hidden;
}

.gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-image.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .faq-gallery-grid {
        grid-template-columns: 1fr;
    }
    .faq-image-gallery {
        position: relative;
        top: 0;
        height: 350px; /* Adjust height for mobile */
        margin-bottom: calc(var(--spacing-unit) * 3);
        order: -1; /* Move image to the top on mobile */
    }
    .faq-tab-button.is-active {
        transform: none; /* Disable horizontal shift on mobile */
    }
}

/* --- Bento Grid Contact Page Styles (No Form Layout) --- */
.bento-contact-section {
    padding: calc(var(--spacing-unit) * 9) 0;
    background-color: var(--color-accent);
}

.bento-grid-contact {
    display: grid;
    gap: calc(var(--spacing-unit) * 2);
    /* Define the new 3-column grid structure */
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "title title title"
        "conversation conversation prepare"
        "careers press social";
}

/* Assign each item to its new named area */
#bento-title { grid-area: title; }
#bento-conversation { grid-area: conversation; }
#bento-prepare { grid-area: prepare; }
#bento-careers { grid-area: careers; }
#bento-press { grid-area: press; }
#bento-social { grid-area: social; }

.bento-item {
    background-color: var(--color-bg);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.bento-item h1, .bento-item h2, .bento-item h3 {
    margin-bottom: var(--spacing-unit);
}
.bento-item p {
    line-height: 1.7;
}

/* Specific Item Styles (Largely unchanged) */
#bento-title {
    background-color: var(--color-primary);
    color: var(--color-bg);
    justify-content: center;
    text-align: center;
}
#bento-title h1 { color: var(--color-bg); }
#bento-title p { max-width: 600px; margin-left: auto; margin-right: auto; }

.bento-image-header {
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: var(--spacing-unit) * 2;
}

.bento-item-icon {
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.bento-content
{
    display: flex;
    flex-direction: column;
    align-items: center;
}


.bento-icon img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.bento-item-icon h3 { margin-bottom: 4px;  text-align: center; font-size: 40px;}
.inquiry-link { font-weight: 700; color: var(--color-primary);  text-align: center;}

#bento-social {
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--color-bg);
    justify-content: flex-end; /* Push content to bottom */
}
.bento-content-overlay {
    position: relative;
    z-index: 2;
}
#bento-social::before { /* Gradient overlay */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(to top, rgba(26,26,26,0.8), transparent 60%);
    z-index: 1;
}
#bento-social h2 { color: var(--color-bg); }
.social-links { display: flex; gap: var(--spacing-unit) * 2; margin-top: var(--spacing-unit); }
.social-links a { color: var(--color-bg); font-weight: 700; }

/* --- Responsive Behavior: Single Column on Small Devices --- */
@media (max-width: 992px) {
    .bento-grid-contact {
       display: flex;
       flex-direction: column;
       gap: 20px;
    }
    .bento-item
    {
            padding: calc(var(--spacing-unit) * 1);
    }
    .inquiry-link
    {
        font-size: 13px;
    }

}

/* --- Alternative 1: Split-Screen Hero --- */
.hero-split-screen {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: 90vh;
    padding: 0; /* Override default section padding */
}

.split-text-panel {
    background-color: var(--color-primary);
    color: var(--color-bg);
    display: grid;
    place-items: center;
    padding: calc(var(--spacing-unit) * 6);
}
.split-text-panel .hero-title,
.split-text-panel .hero-subtitle {
    color: var(--color-bg);
    text-align: left;
}

.split-image-panel {
    background-size: cover;
    background-position: center;
    /* Diagonal clip-path for a dynamic "polygon" feel */
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Text Reveal Animation */
.hero-title .animate-line, .hero-subtitle.animate-line {
    display: block;
    overflow: hidden;
}
.hero-title .animate-line span, .hero-subtitle.animate-line {
    display: block;
    transform: translateY(110%);
    animation: revealText 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Staggered animation delays */
.hero-title .animate-line:nth-child(1) span { animation-delay: 0.3s; }
.hero-title .animate-line:nth-child(2) span { animation-delay: 0.5s; }
.hero-subtitle.animate-line { animation-delay: 0.7s; }

@keyframes revealText {
    to {
        transform: translateY(0);
    }
}

/* Responsive stacking */
@media (max-width: 992px) {
    .hero-split-screen {
        grid-template-columns: 1fr;
    }
    .split-image-panel {
        min-height: 300px;
        clip-path: none;
    }
    .split-text-panel {
        order: -1; /* Text appears first on mobile */
    }
}

/* --- Alternative 1: Framed Showcase Hero --- */
.hero-framed {
    background-color: var(--color-accent);
    padding: calc(var(--spacing-unit) * 8) 0;
    min-height: auto;
}

.hero-framed-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Asymmetrical columns */
    align-items: center;
    gap: calc(var(--spacing-unit) * 4);
}

.frame-text-panel .hero-title,
.frame-text-panel .hero-subtitle {
    text-align: left;
}

.frame-image-panel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    aspect-ratio: 4 / 3; /* Maintain a consistent shape */
}

.image-showcase {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Slow, elegant zoom effect */
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.frame-image-panel:hover .image-showcase {
    transform: scale(1.1);
}

/* Responsive stacking */
@media (max-width: 992px) {
    .hero-framed-container {
        grid-template-columns: 1fr;
    }
}

.process-philosophy-section
{
    padding: 90px 0;
}


/* --- Gallery Slider Component Styles --- */
.gallery-section {
    padding: calc(var(--spacing-unit) * 6) 0;
    background-color: var(--color-bg);
}

.gallery-slider-component {
    max-width: 1100px;
    margin: 0 auto;
}

/* Main Image Stage */
.gallery-stage {
    position: relative;
    aspect-ratio: 16 / 9; /* Maintain a consistent widescreen shape */
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.gallery-slides {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1; /* Ensure active slide is on top */
}
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Caption Overlay */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 3);
    background: linear-gradient(to top, rgba(26,26,26,0.8), transparent);
    color: var(--color-bg);
    transition: opacity 0.5s ease;
}
.gallery-caption.is-updating {
    opacity: 0;
}
.gallery-caption h3 {
    font-size: 1.8rem;
    color: var(--color-bg);
}

/* Thumbnail Navigation Bar */
.gallery-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit) * 2;
    margin-top: calc(var(--spacing-unit) * 2);
}

.gallery-button {
    flex-shrink: 0;
    background: none; border: none; cursor: pointer;
    width: 40px; height: 40px; padding: 0;
}
.gallery-button .triangle-nav {
    fill: var(--color-secondary); transition: fill 0.3s ease;
}
.gallery-button:hover:not(:disabled) .triangle-nav {
    fill: var(--color-primary);
}
.gallery-button:disabled .triangle-nav {
    fill: var(--color-accent); cursor: not-allowed;
}
.gallery-button.prev .triangle-nav {
    transform: rotate(180deg);
}

/* Thumbnail Scroller */
.gallery-thumbnails {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.gallery-thumbnails::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.thumbnail-list {
    display: flex;
    list-style: none;
    padding: 0; margin: 0;
    gap: var(--spacing-unit);
}
.thumbnail-item {
    flex-shrink: 0;
    width: 150px;
    height: 94px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    padding: 0;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.thumbnail-item:hover {
    transform: scale(1.05);
}
.thumbnail-item.is-active {
    border-color: var(--color-primary);
}
.thumbnail-item img {
    width: 100%; height: 100%; object-fit: cover;
}