/* ====================
   CONSTRUCTION HUB — Black & White Professional Theme
   ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--black);
    color: var(--white);
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====================
   Preloader
   ==================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-inner { text-align: center; }
.preloader-logo {
    width: 80px;
    height: auto;
    margin-bottom: 24px;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}
@keyframes preloaderPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}
.preloader-bar {
    width: 200px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    overflow: hidden;
}
.preloader-progress {
    height: 100%;
    width: 0;
    background: var(--white);
    animation: preloaderBar 1.8s ease-in-out forwards;
}
@keyframes preloaderBar { to { width: 100%; } }

/* ====================
   Header & Navigation
   ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(0px);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
}
.header.scrolled .nav-link { color: var(--gray-700); }
.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active { color: var(--black); }
.header.scrolled .hamburger span { background: var(--black); }
.header.scrolled .logo-img { filter: none; }

.navbar {
    padding: 1.25rem 0;
    transition: var(--transition);
}
.header.scrolled .navbar { padding: 0.75rem 0; }

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 10;
}
.logo-img {
    height: 72px;
    width: auto;
    transition: var(--transition);
}
.header.scrolled .logo-img {
    height: 62px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-link {
    display: inline-block;
    padding: 8px 20px;
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 20px;
    right: 20px;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}
.nav-link:hover,
.nav-link.active { color: var(--white); }

.nav-link.cta-link {
    margin-left: 12px;
    padding: 10px 28px;
    background: var(--white);
    color: var(--black) !important;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: var(--transition);
}
.nav-link.cta-link::after { display: none; }
.nav-link.cta-link:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}
.header.scrolled .nav-link.cta-link {
    background: var(--black);
    color: var(--white) !important;
}
.header.scrolled .nav-link.cta-link:hover {
    background: var(--gray-800);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 10;
    padding: 4px;
}
.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ====================
   Buttons
   ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}
.btn:hover i { transform: translateX(4px); }
.btn-primary {
    background: var(--black);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 20px 48px; font-size: 0.9rem; }

/* ====================
   Section Common Styles
   ==================== */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.15;
    margin-bottom: 16px;
}
.text-accent { font-style: italic; }
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header .section-title { margin-bottom: 20px; }
.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ====================
   Hero Section
   ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--black);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.06;
}
.hero-grid-overlay {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 40px;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 28px;
}
.title-outline {
    -webkit-text-stroke: 2px rgba(255,255,255,0.5);
    color: transparent;
    display: inline-block;
}
.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    max-width: 560px;
    margin-bottom: 48px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}
.hero-stat span {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
}
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
}
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}
.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollLineAnim 2s ease-in-out infinite;
}
@keyframes scrollLineAnim {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-scroll-indicator span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    writing-mode: vertical-rl;
}

/* ====================
   About Section
   ==================== */
.about {
    padding: 120px 0;
    background: var(--white);
}
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
    align-items: start;
}
.about-left .section-title { font-size: 2.75rem; }
.about-right .about-lead {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.9;
    margin-bottom: 20px;
}
.about-right p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.85;
    margin-bottom: 16px;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--gray-200);
}
.stat-card {
    padding: 40px 32px;
    text-align: center;
    border-right: 1px solid var(--gray-200);
    transition: var(--transition);
}
.stat-card:last-child { border-right: none; }
.stat-card:hover { background: var(--black); }
.stat-card:hover .stat-number,
.stat-card:hover .stat-label { color: var(--white); }
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
    transition: var(--transition);
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-400);
    transition: var(--transition);
}

/* ====================
   Mission & Vision
   ==================== */
.mission-vision {
    padding: 100px 0;
    background: var(--gray-50);
}
.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.mv-card {
    padding: 48px 40px;
    border-right: 1px solid var(--gray-200);
    transition: var(--transition);
}
.mv-card:last-child { border-right: none; }
.mv-card:hover { background: var(--black); }
.mv-card:hover .mv-number { color: rgba(255,255,255,0.3); }
.mv-card:hover .mv-content h3,
.mv-card:hover .mv-content p { color: var(--white); }
.mv-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--gray-200);
    line-height: 1;
    margin-bottom: 24px;
    transition: var(--transition);
}
.mv-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    transition: var(--transition);
}
.mv-content p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.8;
    transition: var(--transition);
}

/* ====================
   Expertise Section
   ==================== */
.expertise {
    padding: 120px 0;
    background: var(--white);
}
.expertise .section-header {
    text-align: left;
    margin-bottom: 4rem;
}
.expertise .section-title { font-size: 3.5rem; }
.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.expertise-card {
    padding: 48px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.expertise-card:hover {
    border-color: var(--black);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.expertise-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.expertise-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--black);
    color: var(--white);
    padding: 6px 16px;
}
.expertise-icon-bg {
    font-size: 2.5rem;
    color: var(--gray-200);
    transition: var(--transition);
}
.expertise-card:hover .expertise-icon-bg {
    color: var(--gray-300);
    transform: scale(1.1);
}
.expertise-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}
.expertise-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 28px;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black);
    transition: var(--transition);
}
.card-link i { font-size: 0.7rem; transition: transform 0.3s ease; }
.card-link:hover { gap: 14px; }
.card-link:hover i { transform: translateX(4px); }

/* ====================
   Services Section
   ==================== */
.services {
    padding: 120px 0;
    background: var(--gray-50);
}
.service-category { margin-bottom: 60px; }
.service-category:last-child { margin-bottom: 0; }
.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}
.category-number {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-300);
}
.category-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--black);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.service-card {
    background: var(--white);
    padding: 36px 32px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--black);
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card:hover::before { width: 100%; }
.service-card:hover {
    border-color: var(--black);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    margin-bottom: 24px;
    font-size: 1.2rem;
    color: var(--black);
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--black);
    color: var(--white);
}
.service-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}
.service-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.75;
}

/* Mini Service Cards */
.services-grid.four-col {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
}
.service-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.service-mini:hover {
    border-color: var(--black);
    background: var(--black);
}
.service-mini i {
    font-size: 1.1rem;
    color: var(--gray-400);
    transition: var(--transition);
}
.service-mini:hover i { color: var(--white); }
.service-mini span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: var(--transition);
}
.service-mini:hover span { color: var(--white); }

/* ====================
   Approach Section
   ==================== */
.approach {
    padding: 120px 0;
    background: var(--black);
}
.approach .section-label { color: var(--gray-500); }
.approach .section-title { color: var(--white); }
.approach .section-desc { color: rgba(255,255,255,0.45); }
.approach-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 2rem;
}
.approach-step {
    padding: 0 24px;
    position: relative;
}
.step-marker {
    position: relative;
    margin-bottom: 28px;
}
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1.5px solid rgba(255,255,255,0.2);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}
.approach-step:hover .step-num {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}
.step-line {
    position: absolute;
    top: 28px;
    left: 56px;
    right: -24px;
    height: 1px;
    background: rgba(255,255,255,0.12);
}
.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.step-content p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
}

/* ====================
   Values Section
   ==================== */
.values {
    padding: 120px 0;
    background: var(--white);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--gray-200);
}
.value-card {
    padding: 40px 32px;
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}
.value-card:nth-child(4n) { border-right: none; }
.value-card:nth-child(n+5) { border-bottom: none; }
.value-card:hover { background: var(--black); }
.value-card:hover .value-icon,
.value-card:hover h3,
.value-card:hover p { color: var(--white); }
.value-card:hover .value-icon {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
.value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 20px;
    transition: var(--transition);
}
.value-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
    transition: var(--transition);
}
.value-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.7;
    transition: var(--transition);
}

/* ====================
   CTA Banner
   ==================== */
.cta-banner {
    padding: 100px 0;
    background: var(--gray-50);
}
.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
    line-height: 1.2;
}
.cta-content p {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: 36px;
    line-height: 1.8;
}

/* ====================
   Contact Section
   ==================== */
.contact {
    padding: 120px 0;
    background: var(--white);
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}
.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
    margin-bottom: 16px;
}
.contact-intro {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 40px;
}
.info-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.info-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    font-size: 0.95rem;
    color: var(--black);
    flex-shrink: 0;
    transition: var(--transition);
}
.info-item:hover .info-icon {
    background: var(--black);
    color: var(--white);
}
.info-text span {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 2px;
}
.info-text strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
}
.contact-socials {
    display: flex;
    gap: 12px;
}
.contact-socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 0.95rem;
    transition: var(--transition);
}
.contact-socials a:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

/* Contact Form */
.contact-form-wrapper {
    padding: 48px;
    border: 1px solid var(--gray-200);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--black);
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 1px var(--black);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; color: var(--gray-400); }
.form-group select:valid { color: var(--black); }

/* ====================
   Footer
   ==================== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 0;
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 20px;
}
.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.8;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
}
.footer-col ul li a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li i {
    margin-right: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.25);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}
.footer-tagline {
    font-style: italic;
    font-family: var(--font-heading);
}

/* ====================
   Back to Top
   ==================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--black);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 100;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--gray-300);
    transform: translateY(-4px);
}

/* ====================
   Animations
   ==================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
}
.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====================
   Responsive
   ==================== */
@media (max-width: 1024px) {
    .logo-img { height: 64px; }
    .header.scrolled .logo-img { height: 56px; }

    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--black);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    .nav-menu.active { opacity: 1; visibility: visible; }
    .nav-list {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .nav-link {
        font-size: 1.5rem;
        color: rgba(255,255,255,0.6) !important;
        text-transform: none;
        letter-spacing: 0;
        font-family: var(--font-heading);
        font-weight: 600;
        padding: 12px 24px;
    }
    .nav-link:hover,
    .nav-link.active { color: var(--white) !important; }
    .nav-link::after { display: none; }
    .nav-link.cta-link {
        margin-left: 0;
        margin-top: 16px;
        background: var(--white);
        color: var(--black) !important;
        font-family: var(--font-body);
        font-size: 0.85rem;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }
    .header.scrolled .hamburger span { background: var(--black); }
    .hamburger.active span { background: var(--white) !important; }

    .hero-title { font-size: clamp(2.8rem, 6vw, 5rem); }
    .about-layout { grid-template-columns: 1fr; gap: 40px; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .stat-card:nth-child(2) { border-right: none; }
    .stat-card:nth-child(1),
    .stat-card:nth-child(2) { border-bottom: 1px solid var(--gray-200); }
    .mv-grid { grid-template-columns: 1fr; }
    .mv-card { border-right: none; border-bottom: 1px solid var(--gray-200); }
    .mv-card:last-child { border-bottom: none; }
    .expertise-grid { grid-template-columns: 1fr; }
    .approach-timeline { grid-template-columns: 1fr; gap: 32px; }
    .step-line { display: none; }
    .approach-step { display: flex; align-items: flex-start; gap: 24px; }
    .step-marker { margin-bottom: 0; flex-shrink: 0; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .value-card:nth-child(4n) { border-right: 1px solid var(--gray-200); }
    .value-card:nth-child(2n) { border-right: none; }
    .value-card:nth-child(n+5) { border-bottom: 1px solid var(--gray-200); }
    .value-card:nth-child(n+7) { border-bottom: none; }
    .contact-layout { grid-template-columns: 1fr; gap: 48px; }
    .footer-top { grid-template-columns: 1fr; gap: 48px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .hero-scroll-indicator { display: none; }
}

@media (max-width: 640px) {
    .logo-img { height: 58px; }
    .header.scrolled .logo-img { height: 50px; }

    .section-title { font-size: 2.25rem; }
    .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
    .hero-actions { flex-direction: column; }
    .hero-stats { flex-direction: column; align-items: flex-start; gap: 20px; }
    .hero-stat-divider { width: 40px; height: 1px; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .services-grid.four-col { grid-template-columns: 1fr 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .value-card { border-right: none !important; border-bottom: 1px solid var(--gray-200) !important; }
    .value-card:last-child { border-bottom: none !important; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 32px 24px; }
    .footer-links { grid-template-columns: 1fr; gap: 32px; }
    .expertise .section-title { font-size: 2.5rem; }
    .cta-content h2 { font-size: 2rem; }
}
