/* =========================================================
   BSM Energy — Professional EC&I Consultancy Website
   Single-file stylesheet · Replit-ready
   ========================================================= */

:root {
    /* Brand */
    --navy: #0a2540;
    --navy-dark: #061a30;
    --navy-deep: #04122a;
    --orange: #e85a3c;
    --orange-dark: #c84a30;
    --steel: #4a6178;
    --slate: #6b7c8f;

    /* Surfaces */
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --bg-soft: #eef2f7;
    --line: #e4eaf1;
    --line-strong: #cfd8e3;

    /* Text */
    --text: #0d1f33;
    --text-soft: #45556a;
    --text-mute: #768395;
    --text-light: #a8b3c1;

    /* Layout */
    --max: 1240px;
    --pad: clamp(1rem, 4vw, 2rem);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 22px;

    /* Type */
    --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Manrope', 'IBM Plex Sans', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.05);
    --shadow: 0 8px 28px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.18);

    /* Easing */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--navy-dark);
    font-weight: 700;
}

/* ================== Layout ================== */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-head {
    max-width: 760px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.85rem, 3.6vw, 2.7rem);
    margin: 0.6rem 0 1rem;
}

.section-head .section-lead {
    color: var(--text-soft);
    font-size: 1.08rem;
    line-height: 1.7;
}

.section-head-light h2,
.section-head-light .section-lead {
    color: #fff;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
    padding: 0.4rem 0.9rem;
    background: rgba(232, 90, 60, 0.1);
    border-radius: 999px;
}

.eyebrow-light {
    background: rgba(255, 255, 255, 0.12);
    color: #ffd9b8;
}

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

/* ================== Buttons ================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.7rem;
    font-weight: 600;
    font-size: 0.98rem;
    border-radius: var(--radius-sm);
    transition: all 0.25s var(--ease);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 6px 20px rgba(232, 90, 60, 0.35);
}

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232, 90, 60, 0.5);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-block { width: 100%; }

/* ================== Top bar ================== */
.topbar {
    background: var(--navy-deep);
    color: #c5d0de;
    font-size: 0.82rem;
    padding: 0.55rem 0;
}

.topbar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    text-align: center;
}

.topbar-divider { color: var(--orange); opacity: 0.6; }
.topbar-item { letter-spacing: 0.04em; }

/* ================== Header ================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.3s var(--ease);
}

.header.scrolled { box-shadow: var(--shadow); }

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    gap: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-img {
    display: block;
    height: 56px;
    width: auto;
    object-fit: contain;
}

.logo-img-footer {
    height: 64px;
    background: #fff;
    padding: 6px 10px;
    border-radius: 8px;
}

@media (max-width: 640px) {
    .logo-img { height: 44px; }
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav a {
    padding: 0.55rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav a:hover { color: var(--orange); background: var(--bg-alt); }

.nav-cta {
    background: var(--navy);
    color: #fff !important;
    margin-left: 0.5rem;
    padding: 0.6rem 1.2rem !important;
}

.nav-cta:hover { background: var(--orange) !important; color: #fff !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--navy-dark);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================== Hero ================== */
.hero {
    position: relative;
    min-height: clamp(620px, 92vh, 880px);
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

@media (max-width: 640px) {
    .hero { min-height: auto; }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(4, 18, 42, 0.92) 0%, rgba(10, 37, 64, 0.78) 55%, rgba(10, 37, 64, 0.55) 100%),
        radial-gradient(circle at 80% 30%, rgba(232, 90, 60, 0.18), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 4rem;
    padding-bottom: 4rem;
    max-width: 940px;
    width: 100%;
}

@media (max-width: 640px) {
    .hero-content {
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }
    .hero-cta { margin-bottom: 2.2rem; }
}

.hero h1 {
    color: #fff;
    font-size: clamp(1.75rem, 6vw, 3.9rem);
    font-weight: 700;
    margin: 1.2rem 0 1.4rem;
    letter-spacing: -0.025em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.hero-lead {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.65;
    color: #d6dee8;
    max-width: 780px;
    margin-bottom: 2.2rem;
}

.hero-lead strong { color: #fff; font-weight: 600; }

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 800px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.7rem);
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 600;
    color: var(--orange);
    margin-left: 0.1rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #b6c1d0;
    margin-top: 0.4rem;
    letter-spacing: 0.02em;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero-scroll span {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scroll 1.8s infinite var(--ease);
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* ================== Strip ================== */
.strip {
    background: var(--navy);
    color: #fff;
    padding: 1.6rem 0;
}

.strip-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #95a4b6;
    text-align: center;
    margin-bottom: 1rem;
}

.strip-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2.4rem;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    color: #fff;
}

.strip-items span {
    position: relative;
    display: inline-block;
}

.strip-items span:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--orange);
}

/* ================== Services ================== */
.services {
    background: var(--bg-alt);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.services-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--line);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}

.service-card.featured {
    border-top: 3px solid var(--orange);
}

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

/* Desktop: 3 columns. Featured cards stay normal width. */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(232, 90, 60, 0.12), rgba(232, 90, 60, 0.04));
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
}

.card-icon svg { width: 28px; height: 28px; }

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
}

.service-card p {
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.card-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.card-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--orange);
    transform: rotate(45deg);
}

/* ================== Sectors ================== */
.sectors {
    background: #fff;
}

.sectors-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 1.8rem;
}

@media (min-width: 1000px) {
    .sectors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sector-small { grid-column: span 3; }
}

.sector-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    display: flex;
    flex-direction: column;
}

.sector-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.sector-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.sector-card:hover .sector-img img {
    transform: scale(1.06);
}

.sector-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 37, 64, 0.55));
}

.sector-body {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sector-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.5rem;
}

.sector-tag-light {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 0.5rem;
}

.sector-card h3 {
    font-size: 1.55rem;
    margin-bottom: 0.7rem;
}

.sector-card p {
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.sector-body ul {
    margin-bottom: 1.2rem;
}

.sector-body ul li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--text-soft);
    font-size: 0.94rem;
    margin-bottom: 0.45rem;
}

.sector-body ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
}

.sector-link {
    margin-top: auto;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s var(--ease);
}

.sector-card:hover .sector-link {
    color: var(--orange);
}

.sector-small {
    background: var(--bg-alt);
    border: 1px dashed var(--line-strong);
}

.sector-small .sector-body {
    padding: 1.6rem 1.8rem;
}

.sector-small h3 {
    font-size: 1.3rem;
    color: var(--steel);
}

.sector-small p {
    color: var(--text-mute);
    font-size: 0.96rem;
    margin-bottom: 0;
}

/* ================== Capabilities ================== */
.capabilities {
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.capabilities::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 90, 60, 0.18), transparent 70%);
    pointer-events: none;
}

.capabilities .section-head { position: relative; }

.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 1.5rem;
    position: relative;
}

.cap-block {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cap-block:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(232, 90, 60, 0.3);
}

.cap-block h4 {
    color: var(--orange);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cap-block ul li {
    color: #c8d3e0;
    font-size: 0.92rem;
    line-height: 1.6;
    padding: 0.35rem 0;
    position: relative;
    padding-left: 1.1rem;
}

.cap-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--orange);
}

/* ================== Projects ================== */
.projects { background: var(--bg-alt); }

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
    gap: 1.6rem;
}

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

.project-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.project-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--orange);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tag-muted { background: var(--steel); }

.project-body {
    padding: 1.5rem;
}

.project-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.project-meta {
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.7rem !important;
}

.project-body p {
    color: var(--text-soft);
    font-size: 0.94rem;
}

.projects-cta {
    margin-top: 3rem;
    text-align: center;
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.projects-cta p {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--navy-dark);
    font-weight: 600;
    margin-bottom: 1.2rem;
}

/* ================== About ================== */
.about { background: #fff; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}

.about-text h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    margin: 0.6rem 0 1.2rem;
}

.about-text p {
    color: var(--text-soft);
    font-size: 1.04rem;
    margin-bottom: 1.1rem;
    line-height: 1.75;
}

.about-pillars {
    margin-top: 2rem;
    display: grid;
    gap: 1.2rem;
}

.pillar {
    padding: 1.2rem 1.4rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.pillar strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy-dark);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.pillar span {
    font-size: 0.94rem;
    color: var(--text-soft);
}

.about-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--orange);
    color: #fff;
    padding: 1rem 1.3rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(232, 90, 60, 0.4);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.about-badge-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
}

.about-badge-text {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
    opacity: 0.92;
}

/* ================== Standards ================== */
.standards {
    background: var(--bg-soft);
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.standards-label {
    text-align: center;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-mute);
    margin-bottom: 1.2rem;
}

.standards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}

.standards-grid span {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--navy-dark);
    transition: all 0.2s var(--ease);
}

.standards-grid span:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
}

/* ================== CTA / Contact ================== */
.cta {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 90, 60, 0.18), transparent 70%);
    pointer-events: none;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
}

@media (min-width: 900px) {
    .cta-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}

.cta-text h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: #fff;
    margin: 0.7rem 0 1.2rem;
}

.cta-text p {
    color: #b8c4d4;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-contact {
    display: grid;
    gap: 1.3rem;
}

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

.cta-icon {
    width: 44px;
    height: 44px;
    background: rgba(232, 90, 60, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    flex-shrink: 0;
}

.cta-icon svg { width: 22px; height: 22px; }

.cta-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

.cta-contact-item a {
    color: #fff;
    font-weight: 600;
    transition: color 0.2s var(--ease);
}

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

.cta-text-static { color: #fff; font-weight: 600; }

/* Form */
.cta-form {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}

.cta-form h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-alt);
}

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

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

.cta-form label {
    display: block;
    margin-bottom: 1rem;
}

.cta-form label > span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232, 90, 60, 0.15);
}

.cta-form textarea { resize: vertical; min-height: 110px; }

.form-note {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-mute);
    text-align: center;
}

/* ================== Footer ================== */
.footer {
    background: var(--navy-deep);
    color: #b8c4d4;
    padding-top: 4rem;
}

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

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

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

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

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.94rem;
    line-height: 1.7;
    color: #94a3b8;
}

.footer-links h5 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.7rem;
}

.footer-links ul a {
    color: #b8c4d4;
    font-size: 0.95rem;
    transition: color 0.2s var(--ease);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-tag {
    color: var(--orange);
    font-family: var(--font-display);
    font-weight: 600;
}

/* ================== Responsive nav ================== */
@media (max-width: 980px) {
    .nav {
        position: fixed;
        top: 71px;
        right: 0;
        bottom: 0;
        width: 80%;
        max-width: 320px;
        background: #fff;
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 0.3rem;
        box-shadow: -8px 0 28px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.35s var(--ease);
        align-items: stretch;
    }

    .nav.open { transform: translateX(0); }

    .nav a {
        padding: 0.85rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }

    .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
    .topbar-divider { display: none; }
    .topbar-inner { flex-direction: column; gap: 0.2rem; }
}

/* ================== Animations ================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
