/* --- Global Architectural Variables --- */
:root {
    --primary-bg: #fdf3ef; 
    --accent-red: #d13e27;
    --text-main: #222222;
    --text-light: #555555;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --dark-charcoal: #1C1C1C;
    --primary-orange: #f0380a;
    --card-bg-grey: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a, button {
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- FIXED NAVBAR DESIGN ENGINE --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 1010; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 5%;
    background-color: var(--white);
    position: relative;
    z-index: 1015;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-icon {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.logo-vertical-line {
    width: 2px;
    height: 28px;
    background-color: #1C1C1C;
    margin: 0 10px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 20px;
    font-weight: 700;
    color: #1C1C1C;
    text-transform: lowercase;
}

.logo-sub {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-orange);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--primary-orange);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-charcoal);
}

/* --- MAIN CONTAINER SETUP --- */
.new-services-container {
    width: 100%;
    margin-top: 80px; 
}

/* SECTION 1: HERO INTRO */
.services-intro-hero {
    padding: 70px 5% 40px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-tagline {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-orange);
    margin-bottom: 12px;
}

.editorial-main-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 62px);
    font-weight: 700;
    color: var(--dark-charcoal);
    line-height: 1.15;
    margin-bottom: 50px;
}

.main-hero-showcase {
    width: 100%;
    overflow: hidden;
}

.hero-center-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

/* SECTION 2: EXPERTISE PILLARS GRID */
.expertise-pillars-section {
    padding: 60px 5% 100px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.pillars-three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.pillar-card {
    display: flex;
    flex-direction: column;
}

.pillar-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 25px;
}

.pillar-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-card:hover .pillar-img-box img {
    transform: scale(1.04);
}

.pillar-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--white);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-orange);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.pillar-content-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 700;
    color: var(--dark-charcoal);
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-icon {
    font-size: 16px;
    color: var(--primary-orange);
}

.pillar-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 400;
    text-align: justify;
    margin-bottom: 5px;
}

.pillar-link {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--dark-charcoal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, gap 0.3s, border-color 0.3s;
}

.pillar-link:hover {
    color: var(--primary-orange);
    gap: 14px;
    border-color: var(--primary-orange);
}

/* SECTION 3: EDITORIAL QUOTE CONTAINER */
.editorial-quote-container {
    background-color: var(--primary-bg);
    padding: 110px 10%;
    text-align: center;
}

.quote-inner-box {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.philosophy-quote {
    font-family: var(--font-heading);
    font-size: clamp(22px, 3.5vw, 38px);
    font-style: italic;
    color: var(--dark-charcoal);
    line-height: 1.4;
    font-weight: 400;
}

.quote-portfolio-link {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-orange);
    border-bottom: 2px solid var(--primary-orange);
    padding-bottom: 4px;
    transition: opacity 0.3s;
}

.quote-portfolio-link:hover {
    opacity: 0.7;
}

/* SECTION 4: CALL TO ACTION INTAKE SPLIT GRID */
.cta-intake-section {
    padding: 120px 5% 140px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.cta-split-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10%;
    align-items: center;
}

.cta-left-text-block {
    display: flex;
    flex-direction: column;
}

.cta-heading-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--dark-charcoal);
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-paragraph-detail {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 520px;
}

.cta-dual-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-solid-dark {
    background-color: #000000;
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 18px 32px;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.btn-solid-dark:hover {
    background-color: var(--primary-orange);
}

.btn-outline-clear {
    background-color: transparent;
    color: var(--dark-charcoal);
    border: 1px solid var(--dark-charcoal);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 18px 32px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-outline-clear:hover {
    background-color: var(--dark-charcoal);
    color: var(--white);
}

.cta-right-box-block {
    position: relative;
    padding: 10px;
}

.framed-contact-card {
    background-color: var(--card-bg-grey);
    padding: 40px;
    position: relative;
}

.cta-right-box-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--primary-orange);
    border-left: 2px solid var(--primary-orange);
}

.cta-right-box-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--primary-orange);
    border-right: 2px solid var(--primary-orange);
}

.card-accent-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.card-info-rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-row-icon {
    font-size: 15px;
    color: var(--primary-orange);
    width: 20px;
    text-align: center;
}

.card-row-value {
    font-size: 13.5px;
    color: var(--dark-charcoal);
    font-weight: 500;
}

/* =========================================================
   SCROLLABLE CAROUSEL MODAL SYSTEM INTERFACE OVERLAYS
   ========================================================= */
.service-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000;
    display: flex;
    align-items: flex-start; 
    justify-content: center;
    padding: 60px 20px;
    overflow-y: auto; 
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-modal-overlay.modal-visible {
    opacity: 1;
    pointer-events: all;
}

.modal-window-card {
    background-color: var(--white);
    width: 100%;
    max-width: 1100px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 40px; 
}

.service-modal-overlay.modal-visible .modal-window-card {
    transform: translateY(0);
}

/* Elevated Circular Close Buttons Applied Uniformly */
.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    color: var(--dark-charcoal);
    background-color: rgba(255, 255, 255, 0.9);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.close-modal-btn:hover {
    background-color: var(--primary-orange);
    color: var(--white);
    transform: scale(1.05);
}

.modal-split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    width: 100%;
}

.modal-carousel-panel {
    width: 100%;
    background-color: #f7f7f7;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- THE MISSING PIECE --- */
/* This forces each slide to be exactly the width of the container and stops them from squishing */
.carousel-slide {
    min-width: 100%; 
    flex: 0 0 100%;  
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ------------------------- */

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-charcoal);
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: background-color 0.3s, color 0.3s;
    z-index: 5;
}
.carousel-nav-btn:hover {
    background-color: var(--primary-orange);
    color: var(--white);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Modal Content Panel Details & Action Buttons */
.modal-info-panel {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-orange);
    margin-bottom: 12px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: var(--dark-charcoal);
    line-height: 1.25;
    margin-bottom: 25px;
}

.modal-info-panel p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.modal-info-panel p:last-of-type {
    margin-bottom: 35px;
    text-align: justify;
}

/* Modal Consultation CTA Styling Rules */
.modal-action-btn {
    align-self: flex-start;
    background-color: var(--dark-charcoal);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 16px 28px;
    border-radius: 2px;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

.modal-action-btn:hover {
    background-color: var(--primary-orange);
}

/* --- GLOBAL FOOTER PARAMS --- */
.footer {
    background-color: var(--primary-bg);
    padding: 80px 20px 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.logo-text-red {
    font-family: var(--font-heading);
    color: var(--accent-red);
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.9rem;
    max-width: 250px;
}

.footer-links {
    display: flex;
    gap: 100px;
}

.link-group h4 {
    font-size: 0.85rem;
    color: var(--accent-red);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.link-group ul {
    list-style: none;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.link-group a:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* --- MEDIA BREAKPOINT RESPONSIVENESS ENGINE --- */
@media screen and (max-width: 992px) {
    .pillars-three-grid,
    .cta-split-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .modal-split-layout {
        grid-template-columns: 1fr;
    }

    .carousel-container {
        min-height: 380px;
    }

    .modal-info-panel {
        padding: 45px 30px;
    }

    .close-modal-btn {
        top: 15px;
        right: 15px;
        background-color: var(--white);
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block !important;
        font-size: 24px; 
        cursor: pointer;
        color: var(--dark-charcoal);
        background: transparent;
        border: none;
        padding: 0;
    }

    .nav-links {
        position: fixed;
        top: -100vh; 
        left: 0;
        width: 100%; 
        height: auto;
        min-height: 60vh;
        padding: 60px 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center; 
        gap: 30px;
        
        background: rgba(255, 255, 255, 0.82); 
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
        
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        transform: translateY(0);
    }
    
    .nav-links.slide-active {
        top: 79px; 
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 18px; 
        display: inline-block;
        color: var(--dark-charcoal);
    }
    
    .nav-links a.active {
        color: var(--primary-orange);
    }

    .nav-links a::after {
        display: none !important;
    }

    /* Bold Display formatting on mobile frames */
    .hero-center-img {
        aspect-ratio: 4 / 3 !important;
        min-height: 300px;
        object-position: center;
    }

    .services-intro-hero {
        padding-top: 40px;
    }
    
    .editorial-main-title {
        margin-bottom: 30px;
    }

    .editorial-quote-container {
        padding: 70px 5%;
    }

    .cta-intake-section {
        padding: 60px 5% 80px 5%;
    }

    .footer-content, 
    .footer-links {
        flex-direction: column;
        gap: 40px;
    }
    
    .service-modal-overlay {
        padding: 20px 10px;
    }

    .modal-action-btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .cta-dual-buttons {
        flex-direction: column;
    }
    
    .btn-solid-dark, 
    .btn-outline-clear {
        width: 100%;
        text-align: center;
    }

    .framed-contact-card {
        padding: 25px;
    }
}


/* =========================================================
   LEGAL PAGES (TERMS OF SERVICE & PRIVACY POLICY)
   ========================================================= */

.legal-page-container {
    max-width: 900px;
    margin: 120px auto 80px;
    padding: 0 5%;
}

.legal-header-box {
    text-align: center;
    margin-bottom: 60px;
}

.legal-header-box .editorial-main-title {
    margin-bottom: 20px;
}

.legal-last-updated {
    color: var(--text-light);
    font-size: 14px;
}

.legal-text-body {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

.legal-text-body h2 {
    font-family: var(--font-heading);
    color: var(--dark-charcoal);
    font-size: 24px;
    margin: 40px 0 15px;
}

.legal-text-body p {
    margin-bottom: 20px;
}

.legal-text-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-text-body li {
    margin-bottom: 10px;
}