/* Layered UI — tokens live in shared-styles.css */

:root {
    --gradient-secondary: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.14);
}

/* Cards — subtle depth, minimal scale */
.service-card,
.feature-item,
.industry-card,
.value-card,
.benefit-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before,
.feature-item::before,
.industry-card::before,
.value-card::before,
.benefit-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.04) 0%, rgba(194, 65, 12, 0.03) 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 0;
    pointer-events: none;
}

.service-card:hover::before,
.feature-item:hover::before,
.industry-card:hover::before,
.value-card:hover::before,
.benefit-item:hover::before {
    opacity: 1;
}

.service-card > *,
.feature-item > *,
.industry-card > *,
.value-card > *,
.benefit-item > * {
    position: relative;
    z-index: 1;
}

.service-card:hover,
.feature-item:hover,
.industry-card:hover,
.value-card:hover,
.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Hero — subtle grid + depth (no second background wash) */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.45;
    mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    font-family: var(--font-family-base);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1rem;
}

.hero-trust {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
    font-family: var(--font-family-base);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.88);
}

.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-trust .fa-check-circle {
    color: rgba(251, 191, 36, 0.95);
    font-size: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-figure {
    margin: 0;
    max-width: 100%;
}

.hero-visual-panel {
    position: absolute;
    inset: -8%;
    border-radius: 20px;
    background: radial-gradient(80% 70% at 30% 30%, rgba(234, 88, 12, 0.2) 0%, transparent 60%),
        linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid var(--glass-border);
    z-index: 0;
    pointer-events: none;
}

.hero-figure {
    position: relative;
    z-index: 1;
}

.hero-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.45),
        0 0 0 1px var(--glass-border);
    object-fit: cover;
    aspect-ratio: 5 / 4;
    background-color: #1e293b;
}

.hero-caption {
    margin-top: 1rem;
    font-family: var(--font-family-base);
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    max-width: 36ch;
}

/* Mid-page imagery */
.media-showcase {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    background: linear-gradient(180deg, #f8fafc 0%, var(--background-light) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.media-showcase-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 max(1.25rem, env(safe-area-inset-left)) 0 max(1.25rem, env(safe-area-inset-right));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.media-showcase-copy {
    min-width: 0;
}

.media-showcase-copy h2 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
    text-wrap: balance;
}

.media-showcase-copy p {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.75;
    max-width: 52ch;
    letter-spacing: 0.01em;
}

.media-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    min-width: 0;
}

.media-showcase-grid img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    filter: saturate(1.05) contrast(1.02);
}

@media (max-width: 900px) {
    .media-showcase-inner {
        grid-template-columns: 1fr;
    }

    .media-showcase-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .media-showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* Section titles — solid type, understated rule */
.section-header {
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header h2 {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--text-dark);
    font-weight: 700;
}

/* Icons — no infinite pulse */
.service-icon,
.feature-icon,
.industry-icon,
.value-icon,
.benefit-icon {
    background: var(--gradient-primary);
    box-shadow: 0 6px 14px rgba(180, 83, 9, 0.22);
}

.service-icon::after,
.feature-icon::after,
.industry-icon::after,
.value-icon::after,
.benefit-icon::after {
    display: none;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.nav-link::before {
    background: var(--gradient-primary);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

/* Inner pages — hero bands */
.contact-hero,
.about-hero {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.contact-hero::before,
.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(180, 83, 9, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(30, 41, 59, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

.contact-hero .container,
.about-hero .container {
    position: relative;
    z-index: 1;
}

.about-hero-content h1,
.contact-hero-content h1 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* About page — logo beside Company overview (light section) */
.about-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.about-logo-frame--section {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.about-logo-img {
    display: block;
    height: clamp(130px, 16vw, 200px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.about-logo-tagline {
    margin-top: 0.85rem;
    font-family: var(--font-family-base);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* About — photography frames */
.about-image .about-photo,
.vision-visual .vision-photo {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.about-image .image-placeholder,
.vision-visual .vision-icon {
    display: none;
}

.about-image .about-photo-wrap,
.vision-visual .vision-photo-wrap {
    position: relative;
}

/* Contact — visual panel */
.contact-visual .contact-photo {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-image {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    margin-bottom: 1.5rem;
}

.contact-image i {
    display: none;
}

.requirements-hero {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.leader-card {
    background: var(--white);
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.requirements-form {
    border-radius: 14px;
}

.form-section:hover {
    border-color: var(--border-color);
    box-shadow: none;
}

.step-number {
    background: var(--gradient-primary);
    box-shadow: 0 6px 14px rgba(180, 83, 9, 0.2);
}

@media (max-width: 768px) {
    .hero-caption {
        max-width: none;
        text-align: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-figure img {
        aspect-ratio: 16 / 11;
    }
}

/* Homepage: recent projects strip (after industries) */
.recent-projects-section.services {
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
}

.recent-projects-section .recent-projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1180px;
    margin: 0 auto;
    gap: 1.75rem;
}

@media (max-width: 1100px) {
    .recent-projects-section .recent-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .recent-projects-section .recent-projects-grid {
        grid-template-columns: 1fr;
    }
}

.recent-projects-section h3 .project-kind {
    display: block;
    margin-top: 0.4rem;
    font-family: var(--font-family-base);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.3;
}

.capability-audience {
    margin-bottom: 0.85rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-light);
}

.capability-audience strong {
    color: var(--text-dark);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .service-card:hover,
    .feature-item:hover,
    .industry-card:hover,
    .value-card:hover,
    .benefit-item:hover {
        transform: none;
    }
}
