/* ============================================
   CSS VARIABLES & RESET
============================================ */
:root {
    --primary: #1F5B99;
    --primary-light: #2d6bb3;
    --accent: #D93C3C;
    --accent-dark: #c32e2e;
    --accent-glow: rgba(217, 60, 60, 0.3);
    --secondary: #4a5568;
    --text: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-cream: #faf9f7;
    --white: #ffffff;
    --black: #0a0a0a;

    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-accent: 0 10px 40px rgba(217, 60, 60, 0.3);

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

/* ============================================
   UTILITY CLASSES
============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 0.02em;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.8;
}

.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;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   NAVIGATION
============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.nav.scrolled,
.nav.nav-solid {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--white);
    transition: var(--transition);
}

.nav.scrolled .logo-text,
.nav.nav-solid .logo-text {
    color: var(--primary);
}

.nav-links {
    display: none;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.nav.scrolled .nav-links a,
.nav.nav-solid .nav-links a {
    color: var(--text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-fast);
}

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

.nav-links a.active {
    color: var(--accent);
}

.nav.scrolled .nav-links a.active,
.nav.nav-solid .nav-links a.active {
    color: var(--accent);
}

.nav-cta {
    display: none;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 92% 100%, 0 100%);
}

.nav-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.site-search {
    position: relative;
    z-index: 3;
}

.site-search-desktop {
    display: none;
    flex: 0 1 220px;
    max-width: 240px;
}

.site-search-label {
    position: relative;
    display: flex;
    align-items: center;
}

.site-search-icon {
    position: absolute;
    left: 12px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.88);
    stroke-width: 2;
    pointer-events: none;
    transition: var(--transition-fast);
}

.site-search-input {
    width: 100%;
    height: 42px;
    padding: 0 42px 0 38px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    outline: none;
    transition: var(--transition-fast);
}

.site-search-input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.site-search-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(217, 60, 60, 0.18);
}

.site-search-input::-webkit-search-cancel-button {
    display: none;
}

.site-search-submit {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 3px;
    background: var(--accent);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.site-search-submit:hover,
.site-search-submit:focus-visible {
    background: var(--accent-dark);
}

.site-search-submit svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
}

.site-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    min-width: 340px;
    max-height: min(480px, calc(100vh - 140px));
    overflow-y: auto;
    background: var(--white);
    border: 1px solid rgba(31, 91, 153, 0.14);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: var(--transition-fast);
}

.site-search.open .site-search-results {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-search-result {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px 16px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(31, 91, 153, 0.08);
    transition: var(--transition-fast);
}

.site-search-result:last-child {
    border-bottom: 0;
}

.site-search-result:hover,
.site-search-result.active {
    background: var(--bg-light);
}

.site-search-result strong {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
    line-height: 1.25;
    margin-bottom: 4px;
}

.site-search-result small {
    display: block;
    color: var(--text-light);
    font-size: 0.8125rem;
    line-height: 1.35;
}

.site-search-result em {
    align-self: start;
    padding: 3px 8px;
    border-radius: 3px;
    background: rgba(217, 60, 60, 0.1);
    color: var(--accent);
    font-size: 0.6875rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-search-empty {
    padding: 16px;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.45;
}

.nav.scrolled .site-search-icon,
.nav.nav-solid .site-search-icon {
    stroke: var(--secondary);
}

.nav.scrolled .site-search-input,
.nav.nav-solid .site-search-input {
    border-color: rgba(31, 91, 153, 0.18);
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.nav.scrolled .site-search-input::placeholder,
.nav.nav-solid .site-search-input::placeholder {
    color: var(--text-light);
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.nav.scrolled .mobile-toggle span,
.nav.nav-solid .mobile-toggle span {
    background: var(--primary);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--primary);
    z-index: 1001;
    padding: 100px 40px 40px;
    transition: right 0.4s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-close svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-search-mobile {
    margin-bottom: 28px;
}

.site-search-mobile .site-search-input {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.site-search-mobile .site-search-results {
    position: static;
    min-width: 0;
    max-height: 46vh;
    margin-top: 10px;
}

.mobile-menu-links a {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
    text-decoration: none;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition-fast);
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    color: var(--accent);
    padding-left: 16px;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        gap: 28px;
    }
    .nav-cta {
        display: block;
    }
    .mobile-toggle {
        display: none;
    }
}

@media (min-width: 1180px) {
    .site-search-desktop {
        display: block;
    }
}

@media (min-width: 1320px) {
    .nav-links {
        gap: 40px;
    }

    .site-search-desktop {
        flex-basis: 260px;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        padding-left: 24px;
        padding-right: 24px;
    }

    .site-search-result {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .site-search-result em {
        justify-self: start;
    }
}

/* ============================================
   PAGE HEADER (for non-home pages)
============================================ */
.page-header {
    position: relative;
    padding: 180px 0 100px;
    background: var(--primary);
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 39, 68, 0.95) 0%, rgba(26, 54, 93, 0.85) 50%, rgba(15, 39, 68, 0.9) 100%),
        url('images/project2.jpg') center/cover no-repeat;
}

.page-header-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.page-header-diagonal {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.page-header-content {
    position: relative;
    z-index: 10;
}

.page-header-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(237, 137, 54, 0.15);
    border: 1px solid rgba(237, 137, 54, 0.3);
    padding: 8px 20px;
    margin-bottom: 24px;
}

.page-header-label span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

.page-header-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: 0.02em;
    color: var(--white);
    line-height: 1;
    margin-bottom: 16px;
}

.page-header-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 39, 68, 0.95) 0%, rgba(26, 54, 93, 0.85) 50%, rgba(15, 39, 68, 0.9) 100%),
        url('images/project2.jpg') center/cover no-repeat;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-diagonal {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 150px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 120px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    letter-spacing: 0.02em;
    color: var(--white);
    line-height: 0.95;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-tagline {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-description {
    max-width: 560px;
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 94% 100%, 0 100%);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-secondary-dark {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary-dark:hover {
    background: var(--primary);
    color: var(--white);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.btn:hover svg {
    transform: translateX(4px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.hero-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

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

/* ============================================
   ABOUT SECTION
============================================ */
.about {
    background: var(--white);
    position: relative;
}

.about-grid {
    display: grid;
    gap: 60px;
}

.about-content {
    max-width: 640px;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--text);
    margin-bottom: 24px;
}

.about-highlight {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%);
    padding: 32px;
    border-left: 4px solid var(--accent);
    margin: 40px 0;
}

.about-highlight p {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    font-style: italic;
    line-height: 1.7;
}

.industries {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.industry-tag {
    padding: 10px 20px;
    background: var(--bg-light);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--secondary);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.industry-tag:hover {
    background: var(--accent);
    color: var(--white);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-image-overlay {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 80% 100%, 0 100%);
}

.about-image-overlay span:first-child {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--white);
    line-height: 1;
}

.about-image-overlay span:last-child {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 80px;
    }
}

/* ============================================
   SERVICES SECTION
============================================ */
.services {
    background: var(--bg-light);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
}

.services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.services-header .section-label {
    justify-content: center;
}

.services-header .section-label::before {
    display: none;
}

.services-grid {
    display: grid;
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(237, 137, 54, 0.2);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.02em;
    color: var(--primary);
    margin-bottom: 16px;
}

.service-description {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    margin-bottom: 28px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--text);
    border-bottom: 1px solid var(--bg-light);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.service-card-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--accent);
}

.service-card-action svg {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

.service-card-action:hover {
    color: var(--accent-dark);
}

.service-card-action:hover svg {
    transform: translateX(4px);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .service-card {
        padding: 36px;
    }
}

/* Services page - 2 column layout */
.services-grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

.services-grid-3col {
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .services-grid-3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .services-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* Service detail pages */
.service-detail {
    background: var(--white);
}

.detail-back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 36px;
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.detail-back-link::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--accent);
    margin-right: 12px;
}

.service-detail-intro {
    display: grid;
    gap: 32px;
    margin-bottom: 56px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.service-detail-summary {
    max-width: 680px;
}

.service-detail-summary p {
    font-size: 1.0625rem;
    color: var(--text);
    margin-bottom: 20px;
}

.service-detail-summary p:last-child {
    margin-bottom: 0;
}

.service-detail-photo {
    margin: -12px 0 56px;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: var(--bg-light);
}

.service-detail-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.service-capability-grid {
    display: grid;
    gap: 24px;
}

.service-capability-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%);
    border: 1px solid rgba(31, 91, 153, 0.12);
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.service-capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
}

.service-capability-label {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.service-capability-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 18px;
}

.service-capability-card h4 {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary);
    margin: 28px 0 12px;
}

.service-capability-card p {
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 18px;
}

.service-capability-card p:last-child {
    margin-bottom: 0;
}

.service-capability-card ul {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.service-capability-card li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text);
}

.service-capability-card li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    flex-shrink: 0;
    margin-top: 10px;
}

@media (min-width: 900px) {
    .service-detail-intro {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: start;
    }

    .service-capability-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-capability-card-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .service-detail-photo {
        margin: -8px 0 40px;
        aspect-ratio: 4 / 3;
    }
}

/* ============================================
   WHY CHOOSE US SECTION
============================================ */
.why-us {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.why-us-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(45deg, var(--white) 25%, transparent 25%),
        linear-gradient(-45deg, var(--white) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--white) 75%),
        linear-gradient(-45deg, transparent 75%, var(--white) 75%);
    background-size: 60px 60px;
}

.why-us-content {
    position: relative;
    z-index: 1;
}

.why-us .section-title {
    color: var(--white);
}

.why-us .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 60px;
}

.why-us-grid {
    display: grid;
    gap: 24px;
}

.why-us-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.why-us-item-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.why-us-item-link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.why-us-item-link:visited {
    color: inherit;
}

.why-us-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateX(8px);
}

.why-us-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.why-us-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
}

.why-us-text h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    letter-spacing: 0.02em;
    color: var(--white);
    margin-bottom: 8px;
}

.why-us-text p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.why-us-quote {
    margin-top: 60px;
    padding: 40px;
    background: rgba(237, 137, 54, 0.1);
    border-left: 4px solid var(--accent);
}

.why-us-quote p {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--white);
    font-style: italic;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .why-us-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   PROCESS SECTION
============================================ */
.process {
    background: var(--white);
}

.process-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.process-header .section-label {
    justify-content: center;
}

.process-header .section-label::before {
    display: none;
}

.process-timeline {
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: calc(100% - 80px);
    background: var(--bg-light);
}

.process-step {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step:nth-child(even) .process-content {
    text-align: right;
}

.process-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
    position: relative;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.process-content {
    flex: 1;
    padding-top: 16px;
}

.process-content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.02em;
    color: var(--primary);
    margin-bottom: 12px;
}

.process-content p {
    color: var(--text-light);
    line-height: 1.7;
    max-width: 400px;
}

.process-step:nth-child(even) .process-content p {
    margin-left: auto;
}

/* Mobile process */
@media (max-width: 767px) {
    .process-timeline::before {
        left: 40px;
    }

    .process-step,
    .process-step:nth-child(even) {
        flex-direction: row;
    }

    .process-step:nth-child(even) .process-content {
        text-align: left;
    }

    .process-step:nth-child(even) .process-content p {
        margin-left: 0;
    }
}

/* ============================================
   SAFETY SECTION
============================================ */
.safety {
    background: var(--bg-cream);
    position: relative;
}

.safety-grid {
    display: grid;
    gap: 60px;
    align-items: center;
}

.safety-content {
    max-width: 560px;
}

.safety-list {
    list-style: none;
    margin-top: 40px;
}

.safety-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.safety-list li:last-child {
    border-bottom: none;
}

.safety-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.safety-check svg {
    width: 16px;
    height: 16px;
    stroke: var(--white);
    fill: none;
    stroke-width: 3;
}

.safety-list li span {
    font-size: 1.0625rem;
    color: var(--text);
    padding-top: 2px;
}

.safety-image {
    position: relative;
}

.safety-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.safety-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--accent);
    color: var(--white);
    padding: 16px 24px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (min-width: 1024px) {
    .safety-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   PROJECTS SECTION
============================================ */
.projects {
    background: var(--white);
}

.projects-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 60px;
}

.projects-intro {
    max-width: 760px;
    margin-top: 18px;
}

.project-feature {
    display: grid;
    gap: 36px;
    margin-bottom: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--bg-light);
}

.project-feature-image {
    min-height: 320px;
    overflow: hidden;
    background: var(--bg-light);
}

.project-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-feature-content h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: 0.02em;
    color: var(--primary);
    margin: 12px 0 8px;
}

.project-meta {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.875rem;
    margin-bottom: 22px;
}

.project-feature-content p {
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 18px;
}

.project-feature-content .project-feature-closing {
    font-weight: 700;
    color: var(--primary);
    margin-top: 24px;
    margin-bottom: 0;
}

.projects-grid {
    display: grid;
    gap: 24px;
}

.project-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-light);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 39, 68, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 8px;
}

.project-overlay p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.project-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%);
    border: 2px dashed var(--secondary);
}

.project-placeholder svg {
    width: 48px;
    height: 48px;
    stroke: var(--secondary);
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 16px;
}

.project-placeholder span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .project-feature {
        grid-template-columns: 0.95fr 1.05fr;
        align-items: start;
    }

    .project-feature-image {
        position: sticky;
        top: 110px;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   CONTACT SECTION
============================================ */
.contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
}

.contact-grid {
    display: grid;
    gap: 60px;
}

.contact-info {
    color: var(--white);
}

.contact-info .section-title {
    color: var(--white);
}

.contact-info .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-details li:last-child {
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
}

.contact-text h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 4px;
}

.contact-text p,
.contact-text a {
    font-size: 1.0625rem;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-text a:hover {
    color: var(--accent);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.contact-form-title {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.02em;
    color: var(--primary);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-light);
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-row {
    display: grid;
    gap: 24px;
}

.form-submit {
    width: 100%;
    padding: 20px 40px;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 97% 100%, 0 100%);
}

.form-submit:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

/* Contact page full width form */
.contact-page-form {
    background: var(--white);
    padding: 60px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   QUOTE SECTION (dedicated page)
============================================ */
.quote-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.quote-grid {
    display: grid;
    gap: 60px;
}

.quote-info h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.quote-info p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.quote-benefits {
    list-style: none;
    margin-top: 32px;
}

.quote-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text);
}

.quote-benefits li svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .quote-grid {
        grid-template-columns: 1fr 1.5fr;
        align-items: start;
    }
}

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
    background: var(--primary);
    padding: 80px 0;
    text-align: center;
}

.cta-section .section-title {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--black);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.footer-logo-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1.375rem;
    letter-spacing: 0.05em;
    color: var(--white);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
}

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

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

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ============================================
   SCROLL TO TOP
============================================ */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
    border: none;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent-dark);
    transform: translateY(-4px);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
}

/* ============================================
   HOME PAGE PREVIEW SECTIONS
============================================ */
.preview-section {
    padding: 80px 0;
}

.preview-section.alt-bg {
    background: var(--bg-light);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 24px;
}

.preview-header .section-subtitle {
    margin-top: 16px;
}

.preview-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.preview-link:hover {
    gap: 12px;
}

.preview-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
