/* ============================================================
   DSE Design — Main Stylesheet
   ============================================================ */

/* --- Variables --- */
:root {
    --bg: #07101e;
    --bg-2: #0d1c32;
    --bg-card: rgba(255, 255, 255, 0.04);
    --accent: #38bdf8;
    --accent-dim: rgba(56, 189, 248, 0.15);
    --accent-glow: rgba(56, 189, 248, 0.25);
    --gold: #fbbf24;
    --gold-dim: rgba(251, 191, 36, 0.15);
    --text: #e8f0f8;
    --text-muted: #7a99bb;
    --border: rgba(56, 189, 248, 0.1);
    --border-solid: rgba(255, 255, 255, 0.07);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
    --transition: 0.3s ease;
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Clip horizontal overflow at the viewport level. overflow-x on <body>
       alone doesn't stop the page from scrolling sideways (it isn't
       propagated to the viewport when <html> is visible), which let
       decorative hero blobs widen the layout viewport — pushing the fixed
       navbar wider than the screen and clipping the mobile menu's close
       button off the right edge. */
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

input,
textarea,
select {
    font: inherit;
}

/* --- Container --- */
.container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-sub {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 1.05rem;
}

.label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

h2#about-heading {
    padding-bottom: 20px;
}

h2#why-heading {
    padding-bottom: 20px;
}

h2#contact-heading {
    padding-bottom: 20px;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
}

.body-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(7, 16, 30, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 0;
    box-shadow: 0 1px 0 var(--border-solid), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}

.nav-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo-fallback {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
}

.logo-fallback span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: inline-flex;
    justify-content: center;
    min-width: 74px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-card);
}

.nav-link.active {
    color: var(--accent);
}

.nav-cta {
    display: inline-flex;
    justify-content: center;
    min-width: 118px;
    padding: 9px 22px;
    background: var(--accent);
    color: #07101e;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: opacity var(--transition), box-shadow var(--transition), transform var(--transition);
}

.nav-cta:hover {
    opacity: 0.9;
    box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    position: relative;
    z-index: 1001;
    transition: background var(--transition);
}

.hamburger:hover {
    background: var(--bg-card);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 60% 40%, #0f2547 0%, var(--bg) 70%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.07;
    filter: blur(40px);
}

.s1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -120px;
    right: -80px;
    animation: morph1 18s ease-in-out infinite;
}

.s2 {
    width: 350px;
    height: 350px;
    background: #818cf8;
    bottom: -60px;
    left: -60px;
    animation: morph2 22s ease-in-out infinite;
    opacity: 0.06;
}

.s3 {
    width: 240px;
    height: 240px;
    background: var(--gold);
    top: 40%;
    left: 35%;
    animation: morph3 26s ease-in-out infinite;
    opacity: 0.05;
}

@keyframes morph1 {

    0%,
    100% {
        border-radius: 40% 60% 70% 30%/40% 50% 60% 50%;
        transform: rotate(0deg) scale(1);
    }

    33% {
        border-radius: 70% 30% 50% 50%/30% 60% 40% 70%;
        transform: rotate(120deg) scale(1.1);
    }

    66% {
        border-radius: 30% 70% 30% 70%/70% 30% 70% 30%;
        transform: rotate(240deg) scale(0.95);
    }
}

@keyframes morph2 {

    0%,
    100% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }

    50% {
        border-radius: 30% 70% 70% 30%/50% 40% 60% 50%;
        transform: rotate(180deg) scale(1.08);
    }
}

@keyframes morph3 {

    0%,
    100% {
        border-radius: 50% 50% 30% 70%/50% 30% 70% 50%;
        transform: scale(1);
    }

    50% {
        border-radius: 30% 70% 50% 50%/40% 60% 40% 60%;
        transform: scale(1.15);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 0 80px;
    max-width: 760px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.03em;
    margin-bottom: 28px;
}

.hero-company {
    font-family: var(--font-head);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gold);
    margin-bottom: 18px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 580px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #07101e;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 0 32px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-primary:disabled,
.btn-primary:disabled:hover {
    cursor: wait;
    opacity: 0.85;
    box-shadow: none;
    transform: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-solid);
}

.btn-ghost:hover {
    background: var(--bg-card);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1;
    animation: fade-bob 3s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes fade-bob {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(6px);
    }
}

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-bar {
    background: var(--bg-2);
    border-top: 1px solid var(--border-solid);
    border-bottom: 1px solid var(--border-solid);
    padding: 48px 0;
}

.stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.stat {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 16px 24px;
}

.stat-num {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 56px;
    background: var(--border-solid);
    flex-shrink: 0;
}

/* ============================================================
   About
   ============================================================ */
.about-section {
    background: var(--bg);
}

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

.about-visual {
    position: relative;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 26px;
    background: var(--bg-card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: var(--border);
    background: var(--bg-2);
}

.ac-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--accent-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.ac-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ac-title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.ac-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.about-content {
    padding-left: 20px;
}

.check-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.check-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0), 0 0 0 rgba(56, 189, 248, 0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--accent-dim);
}

.sc-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.sc-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.sc-title {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
}

.sc-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 28px;
}

.sc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap var(--transition), opacity var(--transition);
}

.sc-link:hover {
    gap: 10px;
    opacity: 0.8;
}

.service-answers {
    margin-top: 88px;
}

.service-answers-header {
    margin-bottom: 40px;
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.answer-card {
    background: rgba(7, 16, 30, 0.38);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius);
    padding: 28px 30px;
}

.answer-card h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 12px;
}

.answer-card p {
    font-size: 0.94rem;
    line-height: 1.75;
    color: var(--text-muted);
}

/* ============================================================
   Why Us
   ============================================================ */
.why-section {
    background: var(--bg);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 80px;
    align-items: center;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 36px;
}

.feature {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.feat-icon {
    font-size: 1.4rem;
    width: 48px;
    height: 48px;
    background: var(--bg-2);
    border: 1px solid var(--border-solid);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feat-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feat-body strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.feat-body span {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* WOB Circle */
.why-visual {
    display: flex;
    justify-content: center;
    width: 100%;
}

.wob-circle {
    --wob-size: 340px;
    --wob-inner-size: 200px;
    position: relative;
    width: min(100%, var(--wob-size));
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wob-ring {
    position: absolute;
    border: 1px solid rgba(251, 191, 36, 0.10);
    border-radius: 50%;
}

/* Brighten one segment of each ring so the rotation is actually visible —
   a uniform-color circle looks identical at every angle, hiding the spin. */
.r1 {
    width: 100%;
    height: 100%;
    animation: spin-ring 20s linear infinite;
    border-top-color: rgba(251, 191, 36, 0.55);
    border-right-color: rgba(251, 191, 36, 0.30);
}

.r2 {
    width: 75%;
    height: 75%;
    animation: spin-ring 15s linear infinite reverse;
    border-color: rgba(251, 191, 36, 0.16);
    border-top-color: rgba(251, 191, 36, 0.65);
    border-left-color: rgba(251, 191, 36, 0.35);
}

.r3 {
    width: 52%;
    height: 52%;
    animation: spin-ring 10s linear infinite;
    border-color: rgba(251, 191, 36, 0.22);
    border-top-color: rgba(251, 191, 36, 0.80);
    border-right-color: rgba(251, 191, 36, 0.45);
}

@keyframes spin-ring {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.wob-inner-circle {
    position: relative;
    z-index: 1;
    width: min(100%, var(--wob-inner-size));
    aspect-ratio: 1;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.3);
    padding: 20px;
}

.wob-star {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.wob-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.wob-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.wob-divider {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 auto 10px;
}

.wob-years {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
}

.wob-excellence {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
    background: var(--bg-2);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item:hover {
    border-color: rgba(56, 189, 248, 0.2);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    text-align: left;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text);
    transition: color var(--transition);
}

.faq-q:hover {
    color: var(--accent);
}

.faq-icon {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform var(--transition);
    line-height: 1;
}

.faq-q[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-a.open {
    max-height: 300px;
}

.faq-a p {
    padding: 0 28px 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-section {
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 36px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-2);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius);
    transition: border-color var(--transition), transform var(--transition);
}

a.contact-detail-item:hover {
    border-color: rgba(56, 189, 248, 0.2);
    transform: translateX(4px);
}

.cd-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cd-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.cd-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cd-body strong {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cd-body span,
.cd-body a {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

/* Form */
.contact-form-wrap {
    background: var(--bg-2);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 44px;
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-solid);
    border-radius: 10px;
    padding: 13px 16px;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a99bb' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select option {
    background: #0d1c32;
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(122, 153, 187, 0.5);
}

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

.form-honeypot {
    position: absolute;
    left: -100vw;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #f87171;
}

.form-status {
    display: none;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.form-status.visible {
    display: block;
}

.form-status.success {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34d399;
}

.form-status.error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.spinner {
    display: block;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(7, 16, 30, 0.3);
    border-top-color: #07101e;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-spinner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 1em;
    line-height: 1;
}

.btn.is-loading .btn-label {
    display: none;
}

.btn.is-loading .btn-spinner {
    display: inline-flex;
}

html.nav-open,
body.nav-open {
    overflow: hidden;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border-solid);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding: 72px 0 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 1.4rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 260px;
}

.footer-col h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a,
.footer-col ul li {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-solid);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================================
   Scroll Animations
   ============================================================ */
[data-animate] {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate="fade-up"] {
    transform: translateY(32px);
}

[data-animate="fade-right"] {
    transform: translateX(-32px);
}

[data-animate="fade-left"] {
    transform: translateX(32px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-visual {
        justify-content: center;
        margin-top: 40px;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
    }

    .footer-brand p {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    /* Nav mobile */
    .hamburger {
        display: flex;
    }

    body.nav-open .navbar {
        height: 100vh;
        height: 100dvh;
        padding: 20px 0;
        background: rgba(7, 16, 30, 0.97);
        box-shadow: none;
    }

    .nav-links {
        position: absolute;
        inset: 0;
        min-height: 100vh;
        min-height: 100dvh;
        background: rgba(7, 16, 30, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 18px;
        overflow-y: auto;
        padding: 120px 24px 48px;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity var(--transition), visibility var(--transition);
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.3rem;
        padding: 10px 24px;
    }

    .nav-cta {
        font-size: 1.15rem;
        padding: 14px 36px;
    }

    /* Space before the "Get a Quote" CTA — applied to the flex item (the li),
       since margin-top on the inner anchor collapses and has no effect. */
    .nav-links li:last-child {
        margin-top: 24px;
    }

    /* Hero */
    .hero-content {
        padding: 88px 0 52px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

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

    /* Stats */
    .stats-inner {
        flex-direction: column;
        gap: 0;
    }

    .stat-divider {
        width: 80%;
        height: 1px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-content {
        padding-left: 0;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-answers {
        margin-top: 64px;
    }

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

    .answer-card {
        padding: 24px 22px;
    }

    .service-card {
        padding: 32px 28px;
    }

    /* Form */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrap {
        padding: 32px 24px;
    }

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

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-brand {
        flex-direction: column;
        gap: 16px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 80px 0 48px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 18px;
    }

    .hero-sub {
        line-height: 1.6;
        margin-bottom: 28px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .wob-circle {
        --wob-size: 280px;
        --wob-inner-size: 168px;
    }

    .wob-inner-circle {
        padding: 16px;
    }

    .wob-star {
        font-size: 1.35rem;
        margin-bottom: 4px;
    }

    .wob-title {
        font-size: 0.82rem;
    }

    .wob-subtitle {
        font-size: 0.74rem;
        margin-bottom: 7px;
    }

    .wob-divider {
        margin-bottom: 7px;
    }

    .wob-years {
        font-size: 1rem;
    }

    .wob-excellence {
        font-size: 0.66rem;
    }

    .contact-form-wrap {
        padding: 24px 16px;
    }

    .faq-q {
        padding: 18px 20px;
        font-size: 0.92rem;
    }

    .faq-a p {
        padding: 0 20px 20px;
    }
}

@media (max-width: 360px) {
    .wob-circle {
        --wob-size: 260px;
        --wob-inner-size: 158px;
    }

    .wob-inner-circle {
        padding: 14px;
    }

    .wob-star {
        font-size: 1.25rem;
    }

    .wob-title {
        font-size: 0.78rem;
    }

    .wob-subtitle {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }

    .wob-divider {
        margin-bottom: 6px;
    }

    .wob-years {
        font-size: 0.95rem;
    }

    .wob-excellence {
        font-size: 0.62rem;
    }
}

/* ============================================================
   Accessibility
   ============================================================ */

/* Skip-to-content link — visible only when keyboard-focused */
.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 12px 20px;
    background: var(--accent);
    color: #04111f;
    font-weight: 600;
    border-radius: 8px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

/* Visible keyboard focus indicator for all interactive elements.
   :focus-visible keeps it from showing on mouse clicks. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.faq-q:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Respect users who prefer reduced motion: drop the decorative loops,
   reveal content immediately, and disable smooth scroll. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
    }

    .wob-ring {
        animation: none !important;
        box-shadow: 0 0 26px rgba(251, 191, 36, 0.06);
    }

    .r1 {
        border-color: rgba(251, 191, 36, 0.16);
        border-top-color: rgba(251, 191, 36, 0.48);
        border-right-color: rgba(251, 191, 36, 0.26);
        transform: rotate(12deg) !important;
    }

    .r2 {
        border-color: rgba(251, 191, 36, 0.14);
        border-bottom-color: rgba(251, 191, 36, 0.46);
        border-left-color: rgba(251, 191, 36, 0.24);
        transform: rotate(-18deg) !important;
    }

    .r3 {
        border-color: rgba(251, 191, 36, 0.18);
        border-top-color: rgba(251, 191, 36, 0.58);
        border-left-color: rgba(251, 191, 36, 0.28);
        transform: rotate(24deg) !important;
    }

    .wob-inner-circle {
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 0 42px rgba(124, 58, 237, 0.22), 0 16px 44px rgba(0, 0, 0, 0.22);
    }
}

/* Service detail pages (was inline per-page; moved here for CSP) */
.service-hero { position: relative; overflow: hidden; padding: 150px 0 60px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--border); }
.service-hero > .container { position: relative; z-index: 1; }
.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text); }
.service-hero h1 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; margin: 0 0 1rem; }
.service-hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-muted); max-width: 60ch; }
.prose { padding: 56px 0; max-width: 72ch; }
.prose h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.5rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text); line-height: 1.75; margin: 0 0 1.1rem; }
.prose strong { color: var(--text); }
.service-cta { background: var(--bg-2); border-top: 1px solid var(--border); padding: 64px 0; text-align: center; }
.service-cta h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 1rem; }
.service-cta p { color: var(--text-muted); max-width: 52ch; margin: 0 auto 1.75rem; }
.related { padding: 56px 0; border-top: 1px solid var(--border); }
.related > .container > h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1.75rem; }
