/* ============================================
   MRH Structural Engineers - Modern Design
   ============================================ */

:root {
    --color-bg: #0a0a0a;
    --color-bg-light: #111111;
    --color-bg-card: #1a1a1a;
    --color-bg-elevated: #222222;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --color-accent: #c9a227;
    --color-accent-light: #e6b82e;
    --color-accent-dark: #a68620;
    --color-grid: rgba(100, 149, 237, 0.08);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
[data-theme="light"] {
    --color-bg: #f5f5f7;
    --color-bg-light: #ffffff;
    --color-bg-card: #e8e8ed;
    --color-bg-elevated: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #666666;
    --color-accent: #2563eb;
    --color-accent-light: #3b82f6;
    --color-accent-dark: #1d4ed8;
    --color-grid: rgba(37, 99, 235, 0.1);
}

/* Theme transition */
body, body * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ============================================
   Typography
   ============================================ */

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

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

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 600px;
}

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

/* ============================================
   Custom Logo
   ============================================ */

.logo-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.logo-icon {
    width: 34px;
    height: 34px;
    color: var(--color-accent);
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Blueprint corner marks - rounded style */
.corner-mark {
    position: absolute;
    width: 10px;
    height: 10px;
    pointer-events: none;
    transition: all 0.3s ease;
    border-color: var(--color-accent);
    border-style: solid;
    border-width: 0;
}

.corner-mark.top-left {
    top: 0;
    left: 0;
    border-top-width: 2px;
    border-left-width: 2px;
    border-top-left-radius: 4px;
}

.corner-mark.top-right {
    top: 0;
    right: 0;
    border-top-width: 2px;
    border-right-width: 2px;
    border-top-right-radius: 4px;
}

.corner-mark.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom-width: 2px;
    border-left-width: 2px;
    border-bottom-left-radius: 4px;
}

.corner-mark.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom-width: 2px;
    border-right-width: 2px;
    border-bottom-right-radius: 4px;
}

/* Hover/Active animation - corners expand outward */
.logo-icon-wrapper:hover .corner-mark.top-left,
.logo-icon-wrapper:active .corner-mark.top-left {
    transform: translate(-3px, -3px);
}
.logo-icon-wrapper:hover .corner-mark.top-right,
.logo-icon-wrapper:active .corner-mark.top-right {
    transform: translate(3px, -3px);
}
.logo-icon-wrapper:hover .corner-mark.bottom-left,
.logo-icon-wrapper:active .corner-mark.bottom-left {
    transform: translate(-3px, 3px);
}
.logo-icon-wrapper:hover .corner-mark.bottom-right,
.logo-icon-wrapper:active .corner-mark.bottom-right {
    transform: translate(3px, 3px);
}

.logo-icon-wrapper:hover .logo-icon,
.logo-icon-wrapper:active .logo-icon {
    transform: scale(1.05);
}

.logo-icon-wrapper:hover .corner-mark,
.logo-icon-wrapper:active .corner-mark {
    border-color: var(--color-accent-light);
}

.nav-logo {
    position: relative;
}

.hero-icon {
    width: 80px;
    height: 80px;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

/* Animated draw effect for hero logo */
.hero-icon .draw-line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawLine 1.2s var(--transition) forwards;
}

.hero-icon .draw-line:nth-child(1) { animation-delay: 0s; }
.hero-icon .draw-line:nth-child(2) { animation-delay: 0.1s; }
.hero-icon .draw-line:nth-child(3) { animation-delay: 0.15s; }
.hero-icon .draw-line:nth-child(4) { animation-delay: 0.2s; }
.hero-icon .draw-line:nth-child(5) { animation-delay: 0.25s; }
.hero-icon .draw-line:nth-child(6) { animation-delay: 0.3s; }
.hero-icon .draw-line:nth-child(7) { animation-delay: 0.35s; }
.hero-icon .draw-line:nth-child(8) { animation-delay: 0.4s; }
.hero-icon .draw-line:nth-child(9) { animation-delay: 0.45s; }
.hero-icon .draw-line:nth-child(10) { animation-delay: 0.5s; }

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.nav-logo, .footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-mrh {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--color-text);
    letter-spacing: 0.1em;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s var(--transition);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--color-bg-card);
    border-radius: 50px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

/* Show moon in dark mode (to switch to light) */
[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme]) .theme-toggle .icon-moon {
    display: block;
}

/* Show sun in light mode (to switch to dark) */
[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

/* ============================================
   Page Header (for inner pages)
   ============================================ */

.page-header {
    padding: 12rem 0 4rem;
    background: var(--color-bg-light);
    border-bottom: 1px solid var(--color-bg-card);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    font-weight: 300;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px; /* Account for fixed nav */
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(10,10,10,0.97) 0%, rgba(10,10,10,0.85) 50%, rgba(10,10,10,0.97) 100%),
        url('images/projects-collage.png');
    background-size: cover;
    background-position: center;
    filter: grayscale(40%);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    /* Blueprint grid pattern */
    background-image: 
        linear-gradient(var(--color-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-grid) 1px, transparent 1px),
        linear-gradient(rgba(100, 149, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 149, 237, 0.04) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

/* Light theme hero adjustments */
[data-theme="light"] .hero-bg {
    background: 
        linear-gradient(135deg, rgba(245,245,247,0.95) 0%, rgba(245,245,247,0.85) 50%, rgba(245,245,247,0.95) 100%),
        url('images/projects-collage.png');
    background-size: cover;
    background-position: center;
    filter: none;
}

[data-theme="light"] .hero-bg::before,
[data-theme="light"] .hero-bg::after {
    border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .nav.scrolled {
    background: rgba(245, 245, 247, 0.98);
}

[data-theme="light"] .btn-primary {
    color: #ffffff;
}

[data-theme="light"] .slide-overlay,
[data-theme="light"] .project-overlay {
    background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0.5) 50%, transparent 100%);
}

[data-theme="light"] .slide-overlay h3,
[data-theme="light"] .project-overlay h3 {
    color: var(--color-text);
}

[data-theme="light"] .map-container iframe {
    filter: grayscale(50%) contrast(90%);
}

/* Grid pulse container */
.hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Traveling pulse - moves outward from origin */
.grid-pulse-line {
    position: absolute;
    pointer-events: none;
    background: linear-gradient(
        var(--direction, to right),
        rgba(100, 180, 255, 0.8) 0%,
        rgba(100, 149, 237, 0.4) 50%,
        transparent 100%
    );
    opacity: 0;
    animation: travelPulse 0.6s ease-out forwards;
}

/* Horizontal lines */
.grid-pulse-line.right {
    --direction: to right;
    height: 1px;
    width: 150px;
    transform-origin: left center;
}

.grid-pulse-line.left {
    --direction: to left;
    height: 1px;
    width: 150px;
    transform-origin: right center;
    transform: translateX(-100%);
}

/* Vertical lines */
.grid-pulse-line.down {
    --direction: to bottom;
    width: 1px;
    height: 150px;
    transform-origin: center top;
}

.grid-pulse-line.up {
    --direction: to top;
    width: 1px;
    height: 150px;
    transform-origin: center bottom;
    transform: translateY(-100%);
}

/* Small contact point */
.grid-pulse-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(100, 180, 255, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 4px rgba(100, 180, 255, 0.8);
    animation: dotFade 0.4s ease-out forwards;
}

@keyframes travelPulse {
    0% {
        opacity: 0.9;
        transform: var(--start-transform, none) scaleX(0);
    }
    30% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: var(--start-transform, none) scaleX(1);
    }
}

.grid-pulse-line.up,
.grid-pulse-line.down {
    animation-name: travelPulseV;
}

@keyframes travelPulseV {
    0% {
        opacity: 0.9;
        transform: var(--start-transform, none) scaleY(0);
    }
    30% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: var(--start-transform, none) scaleY(1);
    }
}

.grid-pulse-line.left {
    --start-transform: translateX(-100%);
}

.grid-pulse-line.up {
    --start-transform: translateY(-100%);
}

@keyframes dotFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

/* Blueprint corner marks */
.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: rgba(100, 149, 237, 0.3);
    border-style: solid;
    z-index: 1;
}

.hero-bg::before {
    top: 30px;
    left: 30px;
    border-width: 2px 0 0 2px;
}

.hero-bg::after {
    bottom: 30px;
    right: 30px;
    border-width: 0 2px 2px 0;
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 2rem;
    padding-top: 1rem;
    max-width: 900px;
}

.hero-logo {
    display: flex;
    justify-content: center;
}

.hero-title {
    font-family: var(--font-display);
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.hero-line {
    display: block;
    font-size: clamp(3.5rem, 14vw, 10rem);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s var(--transition) forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.3s; }
.hero-line:nth-child(2) { animation-delay: 0.5s; }
.hero-line:nth-child(3) { animation-delay: 0.7s; }

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

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

.hero-tagline {
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    color: var(--color-accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--transition) 0.9s forwards;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.8s var(--transition) 1s forwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--transition) 1.1s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--transition);
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    right: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--transition) 1.3s forwards;
}

.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Hero Stats */
.hero-stats {
    position: relative;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 4rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--transition) 1.5s forwards;
}

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

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-accent);
    display: block;
}

.hero-stat-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   Introduction Section
   ============================================ */

.intro-section {
    padding: 8rem 0;
    background: var(--color-bg);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.intro-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.intro-content p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.intro-content .btn {
    margin-top: 1rem;
}

.intro-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.intro-feature {
    padding: 2rem;
    background: var(--color-bg-light);
    border-radius: 4px;
    border: 1px solid var(--color-bg-card);
    transition: all 0.4s var(--transition);
}

.intro-feature:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    color: var(--color-accent);
}

.intro-feature h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.intro-feature p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ============================================
   Gallery Section
   ============================================ */

.gallery {
    padding: 6rem 0;
    background: var(--color-bg-light);
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 5%;
}

.gallery-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.gallery-track {
    display: flex;
    transition: transform 0.6s var(--transition);
}

.gallery-slide {
    min-width: 55%;
    padding: 0 0.75rem;
    position: relative;
}

@media (max-width: 768px) {
    .gallery-slide {
        min-width: 85%;
    }
}

.gallery-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.6s var(--transition);
}

.gallery-slide:hover img {
    transform: scale(1.02);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    border-radius: 0 0 4px 4px;
}

.slide-category {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.slide-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.slide-overlay p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0 5%;
    margin-bottom: 2rem;
}

.gallery-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-btn svg {
    width: 20px;
    height: 20px;
}

.gallery-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(201, 162, 39, 0.1);
}

.gallery-progress {
    width: 180px;
    height: 2px;
    background: var(--color-bg-card);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--color-accent);
    width: 16.67%;
    transition: width 0.4s var(--transition);
}

.gallery-cta {
    text-align: center;
}

/* ============================================
   Services Section (Home Preview)
   ============================================ */

.services-preview {
    padding: 6rem 0;
}

.services-preview .section-label,
.services-preview .section-title,
.services-preview .section-subtitle {
    text-align: center;
}

.services-preview .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

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

.service-card {
    background: var(--color-bg-light);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--transition);
    border: 1px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: rgba(255,255,255,0.08);
    margin-bottom: 1rem;
    transition: all 0.4s;
    line-height: 1;
}

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

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.services-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   Services Page (Full)
   ============================================ */

.services-full {
    padding: 5rem 0;
}

.services-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

@media (max-width: 768px) {
    .services-grid-full {
        grid-template-columns: 1fr;
    }
}

.service-card-full {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--color-bg-card);
}

.service-card-full .service-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.service-card-full h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-bg-card);
}

.service-card-full ul {
    list-style: none;
}

.service-card-full li {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: color 0.3s;
}

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

.service-card-full li:hover {
    color: var(--color-text);
}

.service-desc {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Services Intro */
.services-intro {
    padding: 4rem 0 2rem;
}

.services-intro-content p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    max-width: 800px;
}

/* Process Section */
.process-section {
    padding: 6rem 0;
    background: var(--color-bg-light);
}

.process-header {
    text-align: center;
    margin-bottom: 4rem;
}

.process-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.process-step {
    text-align: center;
    padding: 2rem;
    background: var(--color-bg);
    border-radius: 4px;
    border: 1px solid var(--color-bg-card);
    transition: all 0.4s var(--transition);
}

.process-step:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.process-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 1rem;
    line-height: 1;
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================
   Projects Page
   ============================================ */

.projects-section {
    padding: 5rem 0;
}

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

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

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

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/3;
}

.project-card.large {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

@media (max-width: 600px) {
    .project-card.large {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }
}

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s;
}

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

.project-category {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.project-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.project-overlay p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.project-categories {
    padding: 5rem 0;
    background: var(--color-bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.category-item {
    padding: 2rem;
    background: var(--color-bg);
    border: 1px solid var(--color-bg-card);
    border-radius: 4px;
    transition: all 0.3s;
}

.category-item:hover {
    border-color: var(--color-accent);
}

.category-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.category-item h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

/* ============================================
   About Page - Hero
   ============================================ */

.about-hero {
    padding: 14rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
}

.about-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(201, 162, 39, 0.05) 100%);
}

.about-hero-content {
    position: relative;
    max-width: 700px;
}

.about-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.about-hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    font-weight: 300;
}

/* Principal Section */
.principal-section {
    padding: 6rem 0;
    background: var(--color-bg);
}

.principal-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .principal-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.principal-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    /* Elegant gradient background for transparent portrait */
    background: linear-gradient(
        160deg, 
        #e8f4fc 0%, 
        #d4e9f7 30%,
        #bdd9ed 60%,
        #a8c9e0 100%
    );
}

[data-theme="dark"] .image-frame {
    background: linear-gradient(
        160deg, 
        #1a2a3a 0%, 
        #243444 30%,
        #1e3040 60%,
        #152535 100%
    );
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at 30% 20%,
        rgba(255,255,255,0.4) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.image-accent {
    display: none;
}

.credentials {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.credential {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.credential-label {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-accent);
}

.credential-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.principal-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.principal-title {
    font-size: 1rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.principal-bio p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.principal-highlights {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-bg-card);
}

.highlight {
    text-align: center;
}

.highlight-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-accent);
    display: block;
    line-height: 1;
}

.highlight-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    display: block;
}

/* Company Story */
.company-story {
    padding: 6rem 0;
    background: var(--color-bg-light);
}

.story-header {
    text-align: center;
    margin-bottom: 4rem;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.story-card {
    padding: 2.5rem;
    background: var(--color-bg);
    border-radius: 4px;
    border: 1px solid var(--color-bg-card);
    transition: all 0.4s var(--transition);
}

.story-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.story-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.story-icon svg {
    width: 100%;
    height: 100%;
    color: var(--color-accent);
}

.story-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.story-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* About Stats */
.about-stats {
    padding: 6rem 0;
    background: var(--color-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.stat-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--color-bg-light);
    border-radius: 4px;
    border: 1px solid var(--color-bg-card);
}

.stat-card .stat-number {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--color-accent);
    line-height: 1;
    display: inline;
}

.stat-card .stat-plus {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-accent);
}

.stat-card .stat-number-small {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-accent);
}

.stat-card .stat-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-card .stat-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Expertise Section */
.expertise-full {
    padding: 6rem 0;
    background: var(--color-bg-light);
}

.expertise-header {
    text-align: center;
    margin-bottom: 4rem;
}

.expertise-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.expertise-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

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

.expertise-col h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-bg-card);
}

.expertise-col ul {
    list-style: none;
}

.expertise-col li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.expertise-col li:hover {
    color: var(--color-text);
}

/* Memberships */
.memberships-full {
    padding: 6rem 0;
    background: var(--color-bg);
}

.memberships-header {
    text-align: center;
    margin-bottom: 3rem;
}

.memberships-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

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

.membership-card {
    padding: 2rem;
    background: var(--color-bg-light);
    border-radius: 4px;
    border: 1px solid var(--color-bg-card);
    text-align: center;
    transition: all 0.3s;
}

.membership-card:hover {
    border-color: var(--color-accent);
}

.membership-abbr {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.membership-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.committees-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-bg-card);
    text-align: center;
}

.committees-section h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.committees-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.committees-list span {
    padding: 0.75rem 1.5rem;
    background: var(--color-bg-light);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* About CTA */
.about-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
    text-align: center;
}

.about-cta .cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.about-cta .cta-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Contact Page
   ============================================ */

.contact-hero {
    padding: 12rem 0 4rem;
    background: var(--color-bg-light);
    text-align: center;
}

.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.contact-intro {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    color: var(--color-accent);
}

.contact-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.25rem;
}

.contact-item span,
.contact-item a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.contact-form {
    background: var(--color-bg-light);
    padding: 3rem;
    border-radius: 4px;
    border: 1px solid var(--color-bg-card);
}

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.form-intro {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-bg-card);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-text-muted);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Map Section */
.map-section {
    background: var(--color-bg-light);
}

.map-header {
    padding: 4rem 0 2rem;
    text-align: center;
}

.map-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.map-header p {
    color: var(--color-text-muted);
}

.map-container {
    position: relative;
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

.map-overlay-card {
    position: absolute;
    bottom: 2rem;
    left: 5%;
    background: var(--color-bg);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--color-bg-card);
    max-width: 300px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.map-overlay-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.map-overlay-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.map-overlay-card .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
}

/* ============================================
   CTA Section
   ============================================ */

.home-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(201, 162, 39, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.home-cta .cta-content {
    position: relative;
}

.home-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.home-cta p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-section {
    padding: 5rem 0;
    background: var(--color-bg-light);
    text-align: center;
    border-top: 1px solid var(--color-bg-card);
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.cta-section p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* ============================================
   Clients Section
   ============================================ */

.clients {
    padding: 4rem 0;
    border-top: 1px solid var(--color-bg-card);
    border-bottom: 1px solid var(--color-bg-card);
    overflow: hidden;
}

.clients .section-label {
    text-align: center;
    display: block;
}

.clients-title {
    text-align: center;
    margin-bottom: 2rem;
}

.clients-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 2.5rem;
    animation: marquee 40s linear infinite;
    white-space: nowrap;
}

.marquee-track span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.marquee-track .dot {
    color: var(--color-accent);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 4rem 0 2rem;
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-bg-card);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

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

.footer-brand .logo-icon {
    width: 32px;
    height: 32px;
}

.footer-brand .logo-mrh {
    font-size: 1.5rem;
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

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

.footer-contact p,
.footer-contact a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-bg-card);
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* ============================================
   Animations
   ============================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.intro-features .intro-feature:nth-child(1) { transition-delay: 0s; }
.intro-features .intro-feature:nth-child(2) { transition-delay: 0.1s; }
.intro-features .intro-feature:nth-child(3) { transition-delay: 0.2s; }
.intro-features .intro-feature:nth-child(4) { transition-delay: 0.3s; }

.services-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.2s; }

.story-grid .story-card:nth-child(1) { transition-delay: 0s; }
.story-grid .story-card:nth-child(2) { transition-delay: 0.1s; }
.story-grid .story-card:nth-child(3) { transition-delay: 0.2s; }

.stats-grid .stat-card:nth-child(1) { transition-delay: 0s; }
.stats-grid .stat-card:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .stat-card:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .stat-card:nth-child(4) { transition-delay: 0.3s; }

.memberships-grid .membership-card:nth-child(1) { transition-delay: 0s; }
.memberships-grid .membership-card:nth-child(2) { transition-delay: 0.05s; }
.memberships-grid .membership-card:nth-child(3) { transition-delay: 0.1s; }
.memberships-grid .membership-card:nth-child(4) { transition-delay: 0.15s; }
.memberships-grid .membership-card:nth-child(5) { transition-delay: 0.2s; }
.memberships-grid .membership-card:nth-child(6) { transition-delay: 0.25s; }

/* ============================================
   Mobile Responsive
   ============================================ */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--color-bg-card);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .theme-toggle {
        padding: 0.3rem 0.5rem;
        font-size: 0;
    }

    .hero {
        min-height: auto;
        padding: 10rem 0 4rem;
    }

    .hero-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .hero-line {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .hero-tagline {
        font-size: 0.75rem;
        letter-spacing: 0.15em;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
        margin-top: 2.5rem;
    }

    .hero-stat {
        flex: 0 0 auto;
    }

    .hero-stat-number {
        font-size: 2rem;
    }

    .hero-scroll {
        display: none;
    }

    .principal-highlights {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .map-overlay-card {
        position: relative;
        left: auto;
        bottom: auto;
        max-width: none;
        margin: 0 5%;
        transform: translateY(-50%);
    }

    .intro-grid {
        gap: 3rem;
    }

    .gallery-slide img {
        height: 300px;
    }

    .services-grid,
    .story-grid {
        gap: 1rem;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-desc {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-number {
        font-size: 1.75rem;
    }

    .hero-stat-label {
        font-size: 0.6rem;
    }

    .container {
        padding: 0 4%;
    }
}
