/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-white: #ffffff;
    --bg-light-gray: #f8fafc;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --text-light-gray: #94a3b8;

    --navy-main: #111111;
    --navy-hover: #000000;
    --navy-pale: rgba(17, 17, 17, 0.08);
    --navy-pale-border: rgba(17, 17, 17, 0.18);

    /* Brand accent — Electric Blue */
    --accent: #2563eb;
    --accent-hover: #3b82f6;
    --accent-soft: rgba(37, 99, 235, 0.08);
    --accent-glow: rgba(37, 99, 235, 0.18);

    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
    --radius: 16px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

    /* Legacy variable aliases for compatibility */
    --blue-900: #111111;
    --blue-800: #1a1a1a;
    --blue-700: #222222;
    --blue-600: #111111;
    --blue-500: #333333;
    --blue-400: rgba(17, 17, 17, 0.3);
    --amber-500: #111111;
    --amber-400: #111111;
    --amber-300: #333333;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #1e293b;
    --white: #ffffff;
}

/* Custom selection */
::selection {
    background: var(--navy-main);
    color: var(--bg-white);
}
::-moz-selection {
    background: var(--navy-main);
    color: var(--bg-white);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Montserrat",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    color: var(--text-gray);
    line-height: 1.6;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
    font-family: "Montserrat", sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
}
h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 300;
}
h1 strong,
h1 span {
    font-weight: 700;
    color: var(--navy-main);
}
h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 300;
}
h2 strong {
    font-weight: 700;
    color: var(--navy-main);
}
h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy-main);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}
.section-title strong {
    font-weight: 700;
    color: var(--navy-main);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-padding {
    padding: 100px 0;
}
.text-center {
    text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: "Montserrat", sans-serif;
    text-decoration: none;
    line-height: 1.2;
}
.btn:focus-visible {
    outline: 3px solid var(--navy-pale-border);
    outline-offset: 3px;
}

.btn-primary {
    background-color: var(--navy-pale);
    color: var(--navy-main);
    border: 1px solid var(--navy-pale-border);
}
.btn-primary::before {
    display: none;
}
.btn-primary:hover {
    background-color: var(--navy-main);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover svg {
    transform: translateX(3px);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-solid {
    background-color: var(--navy-main);
    color: var(--bg-white);
}
.btn-solid:hover {
    background-color: var(--navy-hover);
    transform: translateY(-2px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12),
        0 0 0 3px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--navy-main);
    border: 1px solid var(--navy-pale-border);
}
.btn-secondary:hover {
    background: var(--navy-main);
    color: var(--bg-white);
    border-color: var(--navy-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-secondary:hover svg {
    transform: translateX(3px);
}

.btn-outline-light {
    background: transparent;
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-hero {
    background: var(--navy-pale);
    color: var(--navy-main);
    border: 1px solid var(--navy-pale-border);
    padding: 14px 28px;
    font-size: 0.95rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-shadow: none;
}
.btn-hero:hover {
    background: var(--navy-main);
    color: var(--bg-white);
    border-color: var(--navy-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-shadow: none;
}
.btn-hero:hover svg {
    transform: translateX(2px);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* ===== HEADER / NAV ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #f1f5f9;
    transition: var(--transition);
}
.header.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: #e2e8f0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    transition: height 0.3s ease;
}
.header.scrolled .nav {
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 55px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--navy-main);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.nav-links a:not(.nav-cta):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.nav-links a:hover {
    color: var(--navy-main);
}
.nav-links a.active:not(.nav-cta) {
    color: var(--navy-main);
}
.nav-links a.active:not(.nav-cta)::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    padding: 11px 22px;
    background: var(--navy-main);
    color: var(--bg-white) !important;
    border-radius: 50px;
    font-weight: 600 !important;
    font-family: "Montserrat", sans-serif;
    transition: var(--transition);
}
.nav-cta:hover {
    background: var(--navy-hover);
    color: var(--bg-white) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.nav-cta::after {
    display: none !important;
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
    position: relative;
    cursor: pointer;
}
.nav-dropdown-trigger::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--navy-main);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.nav-dropdown:hover .nav-dropdown-trigger::after {
    transform: scaleX(1);
    transform-origin: left;
}
.nav-dropdown:hover .nav-dropdown-trigger {
    color: var(--navy-main);
}
.nav-dropdown-trigger .dropdown-arrow {
    width: 13px;
    height: 13px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-top: 1px;
}
.nav-dropdown:hover .nav-dropdown-trigger .dropdown-arrow {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--bg-white);
    border: 1px solid #f1f5f9;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    min-width: 290px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s;
    z-index: 200;
}
.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition:
        background 0.18s,
        color 0.18s;
}
.nav-dropdown-menu a::after {
    display: none !important;
}
.nav-dropdown-menu a:hover {
    background: var(--bg-light-gray);
    color: var(--navy-main);
}
.nav-dropdown-menu a.active {
    background: var(--bg-light-gray);
    color: var(--navy-main);
    font-weight: 600;
}

.nav-dropdown-trigger.active {
    color: var(--navy-main);
}
.nav-dropdown-trigger.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
    padding: 180px 0 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}
.hero.has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero.has-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.8);
    z-index: 0;
}
.hero-home.has-bg::after {
    background: rgba(248, 250, 252, 0.8);
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(var(--navy-pale-border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    z-index: 1;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 3;
}

.hero-content {
    position: relative;
    max-width: 780px;
    flex: 1;
}
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 550px;
    pointer-events: none;
    animation: heroFloat 6s ease-in-out infinite;
}
.energy-grid {
    width: 100%;
    height: auto;
    overflow: visible;
}
.energy-grid-outline {
    stroke: #ffffff;
    stroke-width: 1;
    opacity: 0.1;
}
.draw-path {
    fill: none;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: drawIn 3s ease-out forwards;
}
.energy-line-main {
    stroke: var(--accent);
    stroke-width: 1.5;
    opacity: 0.75;
}
.energy-line-branch {
    stroke: var(--accent);
    stroke-width: 1.5;
    opacity: 0.7;
}
.energy-line-branch.delay-1 {
    animation-delay: 0.5s;
}
.energy-line-branch.delay-2 {
    animation-delay: 0.7s;
}
.energy-line-branch.delay-3 {
    animation-delay: 0.9s;
}
.energy-node-entry {
    fill: var(--accent);
    opacity: 0.9;
}
.energy-node-main {
    fill: var(--accent);
}
.energy-node-ring {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1;
    opacity: 0.55;
}
.energy-node-branch {
    fill: #8a8a8a;
    opacity: 0.8;
}
.pulse-node {
    animation: energyPulse 3s infinite alternate ease-in-out;
    transform-box: fill-box;
    transform-origin: center;
}
.energy-flow-dot-main {
    fill: var(--accent-hover);
    opacity: 1;
}
.energy-flow-dot-branch {
    fill: #3a3a3a;
    opacity: 0.8;
}

.hero-brand-badge rect {
    fill: #ffffff;
    stroke: rgba(15, 30, 60, 0.18);
    stroke-width: 1.2;
    opacity: 0;
    animation: heroLabelFadeIn 0.7s ease-out 1s forwards;
}
.hero-brand-logo {
    opacity: 0;
    animation: heroLabelFadeIn 0.7s ease-out 1.1s forwards;
}
.hero-label-branch {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 24px;
    fill: var(--text-dark);
    letter-spacing: 0.3px;
    opacity: 0;
}
.hero-label-delay-1 {
    animation: heroLabelFadeIn 0.7s ease-out 2.6s forwards;
}
.hero-label-delay-2 {
    animation: heroLabelFadeIn 0.7s ease-out 2.9s forwards;
}
.hero-label-delay-3 {
    animation: heroLabelFadeIn 0.7s ease-out 3.2s forwards;
}
@keyframes heroLabelFadeIn {
    to {
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-brand-badge rect,
    .hero-brand-logo,
    .hero-label-branch {
        animation: none;
        opacity: 1;
    }
}

.hero h1 {
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 300;
    text-shadow: none;
}
.hero h1 span {
    color: var(--navy-main);
    font-weight: 700;
}
.hero h1 strong {
    color: var(--navy-main);
    font-weight: 700;
}

.hero-text {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--text-gray);
    margin-bottom: 40px;
    text-shadow: none;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.hero-stat-value {
    font-family: "Montserrat", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy-main);
    letter-spacing: -0.03em;
    text-shadow: none;
}
.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: 4px;
    text-shadow: none;
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
}

/* Specializations */
.specializations {
    background: var(--bg-light-gray);
    padding: 100px 0;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.spec-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.spec-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    border-color: #e2e8f0;
}

.spec-card-visual {
    background: var(--bg-white);
    padding: 40px 30px 0;
    display: flex;
    flex-direction: column;
}
.spec-card-visual::before {
    display: none;
}

.spec-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
    transition: var(--transition);
}
.spec-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
}
.spec-card:hover .spec-icon {
    background: var(--accent-glow);
}

.spec-card-visual h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.spec-card-visual .spec-subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.spec-card-body {
    padding: 0 30px 40px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.spec-card-body p {
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.spec-features {
    list-style: none;
    margin-bottom: 30px;
}
.spec-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}
.spec-features li svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.spec-audience {
    font-size: 0.8125rem;
    color: var(--text-gray);
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 24px;
}
.spec-audience strong {
    color: var(--text-dark);
}

.spec-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--navy-pale);
    color: var(--navy-main);
    border: 1px solid var(--navy-pale-border);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    font-family: "Montserrat", sans-serif;
    transition: var(--transition);
    align-self: flex-start;
    width: 100%;
    justify-content: center;
}
.spec-cta:hover {
    background: var(--navy-main);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.spec-cta:hover svg {
    transform: translateX(4px);
}
.spec-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

/* Why Us */
.why-us {
    background: var(--bg-white);
    padding: 100px 0;
}

.why-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.why-stat {
    position: relative;
    text-align: center;
    padding: 40px 28px 32px;
    background: var(--bg-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    transition: var(--transition);
    overflow: hidden;
}
.why-stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--navy-main));
    opacity: 0.9;
}
.why-stat:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
    border-color: rgba(15, 23, 42, 0.14);
}

.why-number {
    font-family: monospace;
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--navy-main);
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.why-stat h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: var(--navy-main);
    line-height: 1.35;
}

.why-stat p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.65;
}

.why-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 28px;
}

.why-feature {
    position: relative;
    padding: 36px 32px;
    background: var(--bg-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    transition: var(--transition);
}
.why-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.14);
}

.why-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 18px;
}
.why-feature-icon svg {
    width: 26px;
    height: 26px;
}

.why-feature h3 {
    font-size: 1.2rem;
    margin-bottom: 14px;
    color: var(--navy-main);
    line-height: 1.35;
}

.why-feature p {
    font-size: 0.92rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 12px;
}
.why-feature p:last-of-type {
    margin-bottom: 0;
}

.why-feature-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.why-feature-list li {
    position: relative;
    padding-left: 26px;
    font-size: 0.9rem;
    color: var(--navy-main);
    line-height: 1.5;
}
.why-feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Projects */
.projects {
    background: var(--bg-light-gray);
}

.projects-intro {
    color: var(--text-gray);
    max-width: 680px;
    margin-top: 16px;
    margin-bottom: 48px;
}

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

.project-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
}

.project-img {
    height: 200px;
    background: var(--bg-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.project-img::before {
    content: "";
    /* position: absolute; */
    inset: 0;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.project-img svg {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    color: var(--text-light-gray);
}

.project-body {
    padding: 24px;
}
.project-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy-main);
    background: var(--navy-pale);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.project-body h3 {
    font-size: 1.0625rem;
    margin-bottom: 12px;
}
.project-body p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.projects-cta {
    text-align: center;
    margin-top: 40px;
}

/* Area */
.area {
    background: var(--bg-white);
}

.area-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 48px;
}

.area-map {
    border-radius: var(--border-radius);
    height: 360px;
    position: relative;
    overflow: hidden;
}
.area-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.area-text p {
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.7;
}

.cities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.city-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-light-gray);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}
.city-tag:hover {
    background: var(--navy-main);
    color: var(--bg-white);
}

/* CTA / Contact */
.contact {
    padding: 100px 0;
    background: var(--bg-light-gray);
    position: relative;
}
.contact::before {
    display: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
}
.contact-info > p {
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-feature {
    display: flex;
    gap: 15px;
    align-items: center;
}
.contact-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}
.contact-feature-text h4 {
    color: var(--navy-main);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.contact-feature-text p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.contact-form-wrapper {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: var(--bg-light-gray);
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px var(--accent-glow);
    transform: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light-gray);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

.file-upload {
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.file-upload:hover {
    border-color: var(--navy-pale-border);
    background: var(--bg-light-gray);
}
.file-upload svg {
    width: 28px;
    height: 28px;
    color: var(--text-light-gray);
    margin: 0 auto 8px;
}
.file-upload p {
    font-size: 0.875rem;
    color: var(--text-gray);
}
.file-upload input {
    display: none;
}

.form-submit {
    width: 100%;
    margin-top: 16px;
    padding: 16px;
    font-size: 1rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: none;
}
.form-submit:hover {
    box-shadow: var(--shadow-md);
}
.form-submit:active {
    transform: scale(0.98);
}

/* Form success screen */
.form-success {
    text-align: center;
    padding: 48px 24px;
}
.form-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    margin-bottom: 24px;
}
.form-success h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.form-success p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 28px;
}
.form-success-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.0625rem;
    padding: 18px 36px;
    text-decoration: none;
}

/* Form error message */
.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* Button spinner */
.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
    vertical-align: middle;
}
@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== STEP FORM ===== */
.form-header {
    margin-bottom: 24px;
}
.form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.form-header p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.form-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 2px solid #e2e8f0;
}
.form-tab {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light-gray);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: center;
}
.form-tab.active {
    color: var(--navy-main);
    border-bottom-color: var(--navy-main);
}
.form-tab .tab-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--text-gray);
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 8px;
    transition: var(--transition);
}
.form-tab.active .tab-number {
    background: var(--navy-main);
    color: #fff;
}

.form-panel {
    display: none;
}
.form-panel.active {
    display: block;
}

.form-step {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}
.form-step:last-child {
    border-bottom: none;
}

.step-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-dark);
    display: block;
    margin-bottom: 10px;
}

.form-step input[type="text"],
.form-step input[type="tel"],
.form-step input[type="email"],
.form-step textarea,
.form-step select {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-light-gray);
    transition: var(--transition);
}
.form-step input[type="text"]:focus,
.form-step input[type="tel"]:focus,
.form-step input[type="email"]:focus,
.form-step textarea:focus,
.form-step select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.form-step input::placeholder,
.form-step textarea::placeholder {
    color: var(--text-light-gray);
}
.form-step textarea {
    resize: vertical;
    min-height: 120px;
}

.form-contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}
.form-contact-row .form-field-full {
    grid-column: 1 / -1;
}
.form-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.radio-group {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.radio-group label {
    cursor: pointer;
    padding: 8px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-gray);
    transition: var(--transition);
    user-select: none;
}
.radio-group label:hover {
    border-color: var(--navy-pale-border);
    color: var(--navy-main);
}
.radio-group input[type="radio"] {
    display: none;
}
.radio-group label:has(input:checked) {
    background: var(--navy-pale);
    border-color: var(--navy-main);
    color: var(--navy-main);
    font-weight: 600;
}

.conditional-content {
    margin-top: 12px;
}
.conditional-content.hidden {
    display: none;
}

.info-message {
    background: var(--bg-light-gray);
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.file-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

.calendar-embed-container {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
}
.calendar-embed-container iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
}

.form-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.form-nav .btn-next {
    flex: 1;
    padding: 14px;
    font-size: 0.95rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--navy-main);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.form-nav .btn-next:hover {
    background: var(--navy-hover);
    box-shadow: var(--shadow-md);
}
.form-nav .btn-back {
    padding: 14px 24px;
    font-size: 0.9375rem;
    font-family: inherit;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
    color: var(--text-gray);
}
.form-nav .btn-back:hover {
    border-color: var(--navy-pale-border);
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .address-grid {
        grid-template-columns: 1fr;
    }
    .radio-group {
        flex-direction: column;
        gap: 8px;
    }
    .calendar-embed-container iframe {
        height: 500px;
    }
    .form-contact-row {
        grid-template-columns: 1fr;
    }
    .form-tabs {
        gap: 0;
    }
    .form-tab {
        font-size: 0.8125rem;
        padding: 10px 8px;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: #111111;
    color: var(--text-light-gray);
    padding: 80px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-light-gray);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 20px;
    max-width: 300px;
}

.footer h4 {
    color: var(--bg-white);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 12px;
}
.footer ul a {
    color: var(--text-light-gray);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}
.footer ul a:hover {
    color: var(--bg-white);
}

.footer-logo {
    color: var(--bg-white);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light-gray);
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}
.mobile-nav.open {
    display: block;
}
.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid #f1f5f9;
}
.mobile-nav a:last-child {
    border-bottom: none;
}
.mobile-nav-dropdown {
    border-bottom: 1px solid #f1f5f9;
}
.mobile-nav-uslugi-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
}
.mobile-nav-uslugi-btn .dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.mobile-nav-uslugi-btn.open .dropdown-arrow {
    transform: rotate(180deg);
}
.mobile-nav-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.mobile-nav-sub.open {
    max-height: 200px;
}
.mobile-nav-sub a {
    display: block;
    padding: 10px 0 10px 12px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-gray);
    border-bottom: 1px solid #f1f5f9;
}
.mobile-nav-uslugi-btn.active {
    color: var(--navy-main);
}
.mobile-nav-sub a.active {
    color: var(--navy-main);
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-layout {
        gap: 24px;
    }
    .hero-visual {
        max-width: 440px;
    }
    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .why-features {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }

    .hero {
        padding: 140px 0 80px 0;
        min-height: auto;
    }
    .hero-layout {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero.has-bg[data-mobile-bg] {
        background-image: var(--hero-mobile-bg) !important;
    }
    .hero.has-bg::after {
        background: rgba(255, 255, 255, 0.85);
    }

    .logo img {
        height: 42px;
    }

    .hero h1 {
        font-size: 1.9rem;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        text-wrap: balance;
    }
    .hero-text {
        font-size: 0.9375rem;
        line-height: 1.65;
        margin-bottom: 28px;
    }
    .hero-visual {
        width: 100%;
        max-width: 100%;
        margin-top: 16px;
        justify-content: center;
    }
    /* Home hero: SVG staje się subtelnym tłem całej sekcji */
    .hero-home .container {
        position: static;
    }
    .hero-home .hero-content {
        position: relative;
        z-index: 2;
    }
    .hero-home .hero-visual {
        position: absolute;
        inset: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        z-index: 1;
        opacity: 0.4;
        pointer-events: none;
        animation: none;
        display: flex;
        align-items: baseline;
        justify-content: center;
        top: 22%;
    }
    .hero-home .hero-visual .energy-grid {
        width: 100%;
        height: auto;
        max-height: 100%;
    }
    .hero-home .hero-visual .hero-brand-badge,
    .hero-home .hero-visual .hero-label-branch {
        display: none;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .btn-hero {
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.875rem;
    }
    .hero-stats {
        gap: 0;
        margin-top: 36px;
        padding-top: 24px;
    }
    .hero-stat {
        flex: 1;
        min-width: 0;
        text-align: center;
    }
    .hero-stat-value {
        font-size: 1.5rem;
    }
    .hero-stat-label {
        font-size: 0.75rem;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }
    .spec-card-visual {
        padding: 28px 24px 0;
    }
    .spec-card-visual h3 {
        font-size: 1.125rem;
    }
    .spec-card-visual .spec-subtitle {
        font-size: 0.875rem;
    }
    .spec-card-body {
        padding: 0 24px 28px;
    }
    .spec-card-body p {
        font-size: 0.875rem;
        margin-bottom: 20px;
    }
    .spec-features li {
        font-size: 0.875rem;
        padding: 6px 0;
    }
    .spec-cta {
        padding: 14px 24px;
        font-size: 0.875rem;
    }

    .why-us {
        padding: 70px 0;
    }
    .why-stats,
    .why-features {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .why-stat {
        padding: 32px 24px 26px;
    }
    .why-number {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    .why-stat h3 {
        font-size: 1rem;
    }
    .why-feature {
        padding: 28px 22px;
    }
    .why-feature-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 14px;
    }
    .why-feature-icon svg {
        width: 22px;
        height: 22px;
    }
    .why-feature h3 {
        font-size: 1.1rem;
    }
    .why-feature p {
        font-size: 0.9rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .area-content {
        grid-template-columns: 1fr;
    }
    .area-map {
        height: 220px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper {
        padding: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    section {
        padding: 64px 0;
    }
    .specializations {
        padding: 72px 0;
    }
    .signature-numbers {
        gap: 32px;
    }
    .signature-value {
        font-size: clamp(3rem, 12vw, 4rem);
    }
    .pre-footer-cta {
        padding: 72px 0;
    }
}

/* ===== SIGNATURE MOMENT ===== */
.signature {
    padding: 100px 0;
    background: var(--bg-light-gray);
    position: relative;
    overflow: hidden;
}
.signature::before {
    display: none;
}
.signature-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.signature-numbers {
    display: flex;
    justify-content: center;
    gap: 80px;
}
.signature-item {
    text-align: center;
}
.signature-value {
    font-family: monospace;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 700;
    color: var(--navy-pale-border);
    line-height: 1;
    letter-spacing: -0.04em;
}
.signature-label {
    font-size: 1rem;
    color: var(--text-gray);
    margin-top: 12px;
    letter-spacing: 0.02em;
}

/* ===== PRE-FOOTER CTA ===== */
.pre-footer-cta {
    padding: 100px 0;
    background: var(--bg-light-gray);
    text-align: center;
}
.pre-footer-cta h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 24px;
    font-weight: 300;
}
.pre-footer-cta h2 strong {
    font-weight: 700;
}
.pre-footer-cta p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children .fade-in:nth-child(1) {
    transition-delay: 0ms;
}
.stagger-children .fade-in:nth-child(2) {
    transition-delay: 80ms;
}
.stagger-children .fade-in:nth-child(3) {
    transition-delay: 160ms;
}
.stagger-children .fade-in:nth-child(4) {
    transition-delay: 240ms;
}
.stagger-children .fade-in:nth-child(5) {
    transition-delay: 320ms;
}

.hero-content > * {
    opacity: 0;
    transform: translateY(24px);
    animation: heroReveal 0.8s var(--ease-out-expo) forwards;
}
.hero-content > *:nth-child(1) {
    animation-delay: 0.1s;
}
.hero-content > *:nth-child(2) {
    animation-delay: 0.25s;
}
.hero-content > *:nth-child(3) {
    animation-delay: 0.4s;
}
.hero-content > *:nth-child(4) {
    animation-delay: 0.6s;
}

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

@keyframes heroFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

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

@keyframes energyPulse {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes counterPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}
.signature-value.animated {
    animation: counterPulse 0.6s var(--ease-out-expo);
}
