@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&family=Montserrat:wght@700;900&display=swap');

/* ========== VARIJABLE - Industrial Premium Style (Massive & Clean) ========== */
:root {
    /* Colors from Screenshot */
    --color-deep-teal: #0F3D3E;
    --color-cream: #F2F0E9;
    --color-gold: #C8A476;
    --color-gold-hover: #b08d5f;

    --text-dark: #0A2525;
    --text-light: #F2F0E9;
    --text-muted: #5C6B6B;

    /* Overlays */
    --overlay-teal: rgba(15, 61, 62, 0.9);
    --overlay-dark: rgba(0, 0, 0, 0.3);

    /* Layout */
    --angle-split: 105deg;
    /* Angle for the diagonal split */

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Montserrat', sans-serif;

    /* UI Elements */
    --radius-sm: 2px;
    /* Sharper industrial corners */
    --radius-md: 4px;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
    /* Increased Base Font Size */
}

body {
    font-family: var(--font-main);
    color: var(--color-deep-teal);
    background-color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* ========== TYPOGRAPHY (MASSIVE) ========== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(1.5rem, 7vw, 3.5rem);
    /* Smaller min for 320px, capped max for ultra-wide */
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.15rem, 4vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 65ch;
    margin-bottom: 1.5rem;
}

.text-light {
    color: var(--text-light);
}

.text-gold {
    color: var(--color-gold);
}

/* ========== LAYOUT (SPACIOUS) ========== */
.container {
    width: 100%;
    max-width: 1440px;
    /* More standard wide max-width */
    margin: 0 auto;
    padding: 0 4rem;
}

.section {
    padding: 0;
    position: relative;
}

/* ========== BUTTONS (LARGER) ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    /* Larger buttons */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    /* Larger text */
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-deep-teal);
}

.btn-primary:hover {
    background: var(--color-gold-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
}

.btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-deep-teal);
}

/* ========== NAVIGATION ========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    /* Reduced padding for fixed nav */
    z-index: 1000;
    background-color: var(--color-deep-teal);
    /* Dark background for readability */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--color-gold);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-height: 90px;
}

.nav-logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 0.9;
}

.nav-logo-subtext {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 0.2rem;
}

.nav-logo img {
    height: auto;
    max-height: 81px;
    width: auto;
    display: block;
    filter: grayscale(100%);
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    opacity: 0.9;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-gold);
    opacity: 1;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    font-size: 1.75rem;
    color: var(--color-gold);
    /* Gold for high contrast */
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
    z-index: 2000;
    /* Higher than any overlay */
    position: relative;
    flex-shrink: 0;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-trigger i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-deep-teal);
    min-width: 220px;
    padding: 1rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-top: 3px solid var(--color-gold);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-light);
    text-transform: none;
    /* Keep natural case for list items if preferred, or leave uppercase */
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(200, 164, 118, 0.1);
    color: var(--color-gold);
}

/* Adjustment for content because nav is fixed */
body {
    padding-top: 80px;
    /* Space for the fixed nav */
}

/* ========== UNIVERSAL SPLIT SECTION (INDUSTRIAL STYLE) ========== */
.split-section {
    min-height: 80vh;
    display: flex;
    position: relative;
    overflow: hidden;
    background: var(--color-cream);
}

.split-section-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 4rem 6rem 10%;
    position: relative;
    z-index: 2;
}

.split-section-left.dark {
    background: var(--color-deep-teal);
    color: var(--text-light);
}

.split-section-left.dark h1,
.split-section-left.dark h2,
.split-section-left.dark p {
    color: var(--text-light) !important;
}

.split-section-right {
    flex: 1.2;
    position: relative;
    background-color: var(--color-deep-teal);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    margin-left: -5%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 10% 6rem 15%;
    /* More space for teal side content */
    color: var(--text-light);
}

/* No-slant override for specific pages */
.no-slant .split-section-right,
.no-slant.split-section-right {
    clip-path: none !important;
    margin-left: 0 !important;
    padding-left: 10% !important;
    /* Standardized padding */
}

.no-slant .split-section-right::before {
    display: none !important;
    /* Remove overlay */
}

/* ========== HEADER ENHANCEMENTS (BADGE & BREADCRUMBS) ========== */
.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.badge-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(200, 164, 118, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 1.4rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.badge-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge-text {
    font-family: var(--font-display);
    font-size: 0.55rem;
    /* Reduced by ~30% from 0.8rem or 0.7rem */
    font-weight: 900;
    /* Extra bold */
    text-transform: uppercase;
    letter-spacing: 0.25em;
    /* Even wider for readability at small size */
    color: var(--color-gold);
    line-height: 1;
}

.breadcrumb {
    font-family: var(--font-display);
    font-size: 0.55rem;
    /* Reduced for consistency */
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 900;
    /* Extra bold */
    line-height: 1;
}

.breadcrumb a {
    color: var(--color-gold);
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb .separator {
    margin: 0 0.4rem;
    opacity: 0.4;
}

/* ========== OTHER SERVICES SECTION ========== */
.other-services-section {
    background: var(--color-deep-teal);
    padding: 6rem 0;
    text-align: center;
}

.other-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.other-service-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-service-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-gold);
    transform: translateY(-5px);
    color: var(--color-gold);
}

.split-section-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-teal);
    mix-blend-mode: multiply;
    opacity: 0.9;
    z-index: 0;
}

.split-section-right img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    mix-blend-mode: luminosity;
    z-index: -1;
}

/* For headers, replicate split-hero min-height */
header.split-section {
    min-height: 100vh;
}

/* Ensure list items inside teal side are light */
.split-section-right h3,
.split-section-right p,
.split-section-right li {
    color: var(--text-light);
}

.split-section-right .service-list-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.split-section-right .service-list-item:hover {
    transform: translateX(10px);
}

.split-section-right .service-icon {
    color: var(--color-gold);
}

/* Backwards compatibility / Hero specialized style */
.split-hero {
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
    background: var(--color-cream);
}

.split-hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 4rem 6rem 10%;
    position: relative;
    z-index: 2;
}

.split-hero-right {
    flex: 1.2;
    /* Slightly wider image side */
    position: relative;
    background-color: var(--color-deep-teal);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    margin-left: -5%;
    /* Pull closer to text for the split look */
    z-index: 1;
}

.split-hero-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-teal);
    mix-blend-mode: multiply;
    opacity: 0.9;
    z-index: 2;
}

.split-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    mix-blend-mode: luminosity;
}

/* ========== SERVICES SECTION (MORE SPACE) ========== */
.services-section {
    padding: 10rem 0;
    /* Increased Padding */
    background: var(--color-cream);
}

.services-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    /* Significant Gap Increase */
    align-items: start;
}

.service-list-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    /* More spacing per item */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-list-item:hover {
    transform: translateX(10px);
}

.service-list-item:last-child {
    border-bottom: none;
}

.service-icon {
    font-size: 2.5rem;
    /* Larger Icons */
    color: var(--color-gold);
    min-width: 4rem;
}

/* ========== DARK SECTION WITH DIAGONAL (HUGE PADDING) ========== */
.dark-diagonal-section {
    position: relative;
    background: var(--color-deep-teal);
    color: var(--text-light);
    padding: 12rem 0;
    /* Massive Padding */
    clip-path: polygon(0 0, 100% 10vw, 100% 100%, 0 100%);
    margin-top: -10vw;
    padding-top: 20vw;
    z-index: 10;
}

.dark-diagonal-section p {
    color: rgba(255, 255, 255, 0.7);
}

/* ========== GALLERY GRID ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.gallery-item {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-description {
    color: white;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.4;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-description {
    transform: translateY(0);
}

/* ========== INTERNAL PAGE HEADER (MASSIVE) ========== */
.page-header {
    background-color: var(--color-deep-teal);
    padding: 10rem 0 10rem;
    position: relative;
    color: var(--text-light);
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
    z-index: 10;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-teal);
    mix-blend-mode: multiply;
    z-index: 1;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
    mix-blend-mode: luminosity;
}

.page-container {
    max-width: 1200px;
    /* Wider content container */
    position: relative;
    z-index: 2;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-section {
    padding: 10rem 0;
    /* More padding for content */
    background: var(--color-cream);
}

/* ========== DETAILED SERVICE LAYOUT (FROM SCREENSHOT) ========== */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 4rem;
}

.detail-main-content h2 {
    color: var(--color-deep-teal);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.detail-main-cfooter h4 {
    color: var(--color-gold);
    font-size: 0.6rem;
    /* Reduced by 30% from 0.9rem */
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.detail-main-content .intro-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 90%;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-styled-item {
    background: #F4F1E9;
    /* Light cream/gray from screenshot */
    padding: 1.25rem 2rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s ease, background 0.2s ease;
    cursor: default;
}

.detail-styled-item:hover {
    background: #EBE8DE;
    transform: translateX(5px);
}

.detail-styled-item .item-icon {
    width: 24px;
    height: 24px;
    background: #E7E2D5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.detail-styled-item span {
    font-family: var(--font-main);
    font-weight: 500;
    color: var(--color-deep-teal);
    font-size: 1rem;
}

/* Sidebar Cards */
.sidebar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card-dark {
    background: #0D2D2D;
    /* Very dark teal */
    color: white;
    padding: 3rem;
    border-radius: var(--radius-sm);
}

.sidebar-card-dark h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-card-dark ul {
    list-style: none;
    padding: 0;
}

.sidebar-card-dark li {
    margin-bottom: 1.2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.sidebar-card-dark li i {
    color: var(--color-gold);
    margin-top: 0.2rem;
    font-size: 0.9rem;
}

.sidebar-card-light {
    background: #F2F0E9;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem;
    border-radius: var(--radius-sm);
}

.sidebar-card-light h3 {
    color: var(--color-deep-teal);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.sidebar-card-light p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.sidebar-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-gold);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.sidebar-cta-btn:hover {
    background: var(--color-gold-hover);
}

@media (max-width: 992px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
}

.grid-feature,
.stack-feature {
    display: grid;
    gap: 2rem;
}

.grid-feature {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 6rem;
}

.stack-feature {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-gold);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: white;
}

.feature-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* ========== DARK STANDARD SECTION (NO DIAGONAL) ========== */
.dark-standard-section {
    background: var(--color-deep-teal);
    color: var(--text-light);
    padding: 10rem 0;
}

.process-steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* ========== CONTACT SPLIT (NO DIAGONAL) ========== */
.contact-split {
    display: flex;
    min-height: 80vh;
    background: var(--color-cream);
}

.contact-form-side {
    flex: 1;
    padding: 8rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-image-side {
    flex: 1.2;
    background-color: var(--color-deep-teal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-image-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-teal);
    mix-blend-mode: multiply;
    opacity: 0.9;
    z-index: 2;
}

.contact-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    mix-blend-mode: luminosity;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    font-family: var(--font-main);
    font-size: 1rem;
}

input:focus,
textarea:focus {
    border-color: var(--color-deep-teal);
    outline: none;
    background: white;
}

label {
    display: block;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

/* Timeline */
.step-item h4 {
    color: var(--color-gold);
    font-size: 1.5rem;
}

.step-item span {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Form Layout Classes */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-of-type {
    margin-bottom: 2rem;
}

.contact-form-minimal label {
    display: block;
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-form-minimal input,
.contact-form-minimal textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form-minimal input:focus,
.contact-form-minimal textarea:focus {
    border-color: var(--color-gold);
    outline: none;
    background: white;
}

/* Footer */
footer a:hover {
    color: var(--color-gold) !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    h1 {
        font-size: 4rem;
    }

    .container {
        padding: 0 2rem;
    }

    .split-hero-left {
        padding: 8rem 4rem 6rem;
    }
}

/* ========== GALLERY SPLIT LAYOUT ========== */
.gallery-split-layout {
    display: flex;
    min-height: 100vh;
}

.gallery-split-left {
    flex: 0 0 450px;
    background: var(--color-deep-teal);
    /* Restore solid teal for non-diagonal */
    padding: 120px 4rem 6rem 10%;
    color: white;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.gallery-split-right {
    flex: 1;
    background: var(--color-cream);
    padding: 120px 4rem 6rem;
    z-index: 1;
}

.gallery-split-left h1 {
    color: white;
    margin-bottom: 2rem;
}

.gallery-split-left p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

.gallery-filter-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-filter-vertical .filter-btn {
    width: 100%;
    text-align: left;
    padding: 1rem 2rem;
    border: 1px solid rgba(15, 61, 62, 0.1);
    background: white;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-filter-vertical .filter-btn::after {
    content: '\2192';
    opacity: 0;
    transition: 0.3s;
}

.gallery-filter-vertical .filter-btn:hover,
.gallery-filter-vertical .filter-btn.active {
    background: var(--color-deep-teal);
    color: white;
    border-color: var(--color-deep-teal);
    padding-left: 2.5rem;
}

.gallery-filter-vertical .filter-btn:hover::after,
.gallery-filter-vertical .filter-btn.active::after {
    opacity: 1;
}

@media (max-width: 400px) {
    .container {
        padding: 0 0.75rem;
        /* Even tighter for 320px */
    }

    h1 {
        font-size: 1.75rem !important;
        /* Force smaller size for ultra-narrow */
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 2000px) {
    html {
        font-size: 20px;
        /* Scale up everything slightly for ultra-wide */
    }

    .container {
        max-width: 1800px;
        /* Allow a bit more width for 4K/wide screens */
    }
}

@media (max-width: 1024px) {
    body {
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    .container {
        padding: 0 1rem;
        width: 100%;
    }

    .split-hero,
    .split-section {
        flex-direction: column;
    }

    .split-hero-left,
    .split-section-left {
        width: 100%;
        padding: 5rem 1.5rem 3rem;
        text-align: center;
        align-items: center;
    }

    .split-hero-left::after,
    .split-hero-right,
    .split-section-right {
        display: block;
        width: 100%;
        height: 40vh;
        margin-left: 0;
        clip-path: none !important;
    }

    .split-hero-right {
        order: -1;
        width: 100%;
        height: 40vh;
    }

    .gallery-split-layout {
        flex-direction: column;
    }

    .gallery-split-left {
        flex: none;
        width: 100%;
        height: auto;
        position: static;
        padding: 3rem 1rem;
        text-align: center;
        align-items: center;
    }

    .gallery-split-right {
        padding: 2rem 1rem;
    }

    .gallery-filter-vertical {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .gallery-filter-vertical .filter-btn {
        width: auto;
        padding: 0.75rem 1.5rem;
    }

    .services-grid-layout,
    .contact-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-side,
    .contact-image-side {
        padding: 4rem 2rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .contact-info-grid div {
        grid-column: span 1 !important;
    }

    .dark-diagonal-section {
        clip-path: none;
        margin-top: 0;
        padding: 6rem 1.5rem;
    }

    .page-header {
        padding: 6rem 1.5rem 4rem;
        clip-path: none;
    }

    .content-section {
        padding: 6rem 0;
    }
}

@media (max-width: 768px) {
    .nav-logo {
        gap: 0.875rem;
    }

    .nav-logo-text {
        font-size: 1.26rem;
    }

    .nav-logo img {
        max-height: 56px;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 44px;
        /* Target size for touch */
        min-height: 44px;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--color-deep-teal);
        flex-direction: column;
        padding: 0;
        /* Remove internal padding for button effect */
        gap: 0;
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 999;
        overflow-y: auto;
        max-height: calc(100vh - 80px);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 1.25rem 2rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: var(--text-light);
        transition: background 0.3s ease;
    }

    .nav-menu a:active,
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--color-gold);
    }

    /* Sub Item Logic */
    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        background: rgba(0, 0, 0, 0.15);
        margin-top: 0;
        width: 100%;
        box-shadow: none;
        padding: 0;
        border-top: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dropdown.dropdown-active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        /* Safe large enough value */
    }

    .dropdown-menu li:last-child a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu a {
        padding: 1rem 2rem 1rem 3.5rem;
        /* Significant indentation */
        font-size: 0.9rem;
        text-transform: none;
        opacity: 0.8;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .dropdown-trigger {
        position: relative;
    }

    .dropdown-trigger i {
        transition: transform 0.4s ease;
        font-size: 0.8rem;
        opacity: 0.5;
    }

    .dropdown.dropdown-active .dropdown-trigger i {
        transform: rotate(180deg);
        opacity: 1;
        color: var(--color-gold);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    /* Mobile Form Adjustments */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    input,
    textarea,
    .contact-form-minimal input,
    .contact-form-minimal textarea {
        font-size: 0.9rem !important;
        padding: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    .contact-form-box,
    .contact-form-side {
        padding: 2rem 1rem !important;
    }

    .contact-form-box h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    nav {
        border-bottom: none;
    }

    /* Additional Mobile Refinements */
    .container {
        padding: 0 1.25rem;
    }

    .section,
    .services-section,
    .dark-standard-section,
    .content-section {
        padding: 4rem 1.25rem;
    }

    .services-grid-layout {
        gap: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }

    .mission-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    .footer-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        width: 100%;
    }

    /* Infinite Scroll Mobile */
    .logo-track {
        gap: 3rem;
    }

    .logo-item {
        width: 140px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .logo-item {
        width: 120px;
        height: 60px;
    }
}

/* ========== LOGO INFINITE SCROLL ========== */
.logo-scroll-section {
    background-color: var(--color-cream);
    padding: 4rem 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-track {
    display: flex;
    width: max-content;
    gap: 6rem;
    animation: scroll 30s linear infinite;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 100px;
    flex-shrink: 0;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover for better UX */
.logo-track:hover {
    animation-play-state: paused;
}

/* Footer Helper Classes */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}