/* ─────────────────────────────────────────────────────────────
   BUZZINTECH GLOBAL STYLE SYSTEM
   Visual Identity & Animation Source of Truth (Mockup v4)
   ───────────────────────────────────────────────────────────── */

:root {
    --blue: #8FA3F0;
    --pink: #F0AFC7;
    --violet: #8B6FE0;
    --purple: #9B1FE8;
    --primary: #7C3AED;
    --primary-dark: #5B21B6;
    --dark: #0B0B14;
    --dark-text: #F5F3FF;
    --dark-muted: #A1A1AA;
    --cream: #FAF9F6;
    --white: #FFFFFF;
    --ink: #18181B;
    --muted: #52525B;
    --border: #E4E4E7;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .wordmark, .mono-num {
    font-family: 'Bricolage Grotesque', sans-serif;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

.brand-gradient-text {
    background: linear-gradient(100deg, var(--blue) 0%, var(--pink) 32%, var(--violet) 62%, var(--purple) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientDrift 8s ease-in-out infinite;
}

@keyframes gradientDrift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s var(--ease);
}

/* ---------- ambient background system ---------- */
#meshCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    filter: blur(50px);
    opacity: 0.9;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: radial-gradient(rgba(24,24,27,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.45;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* angular drifting shapes */
.shard {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(135deg, var(--blue), var(--pink) 45%, var(--violet) 75%, var(--purple));
    opacity: 0.14;
    animation: driftRotate linear infinite;
}

@keyframes driftRotate {
    0% { transform: translate(0, 0) rotate(var(--r0, 0deg)); }
    50% { transform: translate(var(--dx, 24px), var(--dy, -18px)) rotate(var(--r1, 8deg)); }
    100% { transform: translate(0, 0) rotate(var(--r0, 0deg)); }
}

header, .hero, .stat-row, .why, .services, .flex-section, .cases, .final-cta, footer, .content-section {
    position: relative;
    z-index: 2;
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-stagger.in > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.38s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.44s; }

/* ---------- HEADER ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250,249,246,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ── Header logo image ── */
.wordmark {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo {
    height: 36px;
    width: auto;
    display: block;
    transition: opacity 0.3s var(--ease);
}

/* Show light-bg logo by default (light header) */
.nav-logo-dark  { display: none; }
.nav-logo-light { display: block; }

/* ── Desktop nav layout ── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta-mobile { display: none; }

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s var(--ease);
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s var(--ease);
}

nav a:hover  { color: var(--ink); }
nav a:hover::after, nav a.active::after { width: 100%; }
nav a.active { color: var(--ink); }

/* ── Hamburger button ── */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}

.mobile-nav-toggle:hover {
    background: rgba(124,58,237,0.06);
    border-color: var(--primary);
}

.mobile-nav-toggle .bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), width 0.25s var(--ease);
    margin: 3px 0;
}

/* X animation when open */
.mobile-nav-toggle.is-open .bar-1 {
    transform: translateY(8px) rotate(45deg);
}
.mobile-nav-toggle.is-open .bar-2 {
    opacity: 0;
    width: 0;
}
.mobile-nav-toggle.is-open .bar-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── Backdrop overlay when mobile nav is open ── */
body.nav-overlay-active::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(11,11,20,0.45);
    backdrop-filter: blur(2px);
    animation: fadeInOverlay 0.25s ease;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s var(--ease);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(124,58,237,0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}

.btn-secondary:hover {
    background: var(--ink);
    color: #fff;
    transform: translateY(-2px);
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* ---------- LIVE TICKER ---------- */
.live-ticker {
    max-width: 1200px;
    margin: 0 auto;
    padding: 9px 32px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22C55E;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #22C55E;
    opacity: 0.4;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% { transform: scale(0.6); opacity: 0.5; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ---------- HERO ---------- */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 52px 32px 56px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.eyebrow .line {
    width: 18px;
    height: 1.5px;
    background: var(--primary);
}

.hero h1 {
    font-size: 54px;
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}

.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotate(1deg);
    animation: wordIn 0.8s var(--ease) forwards;
}

@keyframes wordIn {
    to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

.hero p.sub {
    font-size: 17px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 480px;
    margin-bottom: 30px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}

.trust-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.trust-line span.d {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.hero-visual {
    position: relative;
    height: 430px;
}

.signature-block {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    transition: transform 0.3s var(--ease);
}

.signature-block .step {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(90deg, var(--blue), var(--pink));
    animation: stepGrow 1.1s var(--ease) 0.3s forwards;
}

@keyframes stepGrow {
    to { height: 38%; }
}

.signature-block .mark-cut {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 38%;
    background: linear-gradient(180deg, var(--pink) 0%, var(--violet) 45%, var(--purple) 100%);
    clip-path: polygon(0 0, 0% 0, 0% 100%, 0% 100%);
    animation: cutGrow 1s var(--ease) 0.7s forwards;
}

@keyframes cutGrow {
    to { clip-path: polygon(0 0, 62% 0, 62% 100%, 0% 100%); }
}

.signature-block .grain-label {
    position: absolute;
    bottom: 16px;
    right: 20px;
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeIn 0.6s ease 1.6s forwards;
}

.stat-float {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    padding: 15px 19px;
    border: 1px solid var(--border);
    box-shadow: 0 14px 32px -14px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    animation: floatIn 0.6s var(--ease) forwards;
    animation-delay: var(--d);
    transition: transform 0.3s var(--ease);
}

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

.stat-float:hover {
    transform: translateY(-4px) scale(1.02);
}

.stat-float .num {
    font-size: 23px;
    font-weight: 700;
    color: var(--primary);
}

.stat-float .lbl {
    font-size: 10.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.stat-1 { top: 20px; right: -14px; --d: 1.3s; }
.stat-2 { bottom: 114px; left: -14px; --d: 1.5s; }
.stat-3 { bottom: 20px; right: 24px; --d: 1.7s; }

.stat-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 60px;
    display: flex;
    gap: 64px;
    border-top: 1px solid var(--border);
    padding-top: 38px;
}

.stat-row .item .n {
    font-size: 30px;
    font-weight: 700;
}

.stat-row .item .l {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ---------- CLIENT LOGO BAR ---------- */
.logo-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 32px;
    position: relative;
    z-index: 2;
}

.logo-bar-label {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 24px;
}

.logo-bar-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.logo-bar-item {
    font-size: 19px;
    font-weight: 800;
    color: #b0a8b9;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s var(--ease);
    cursor: default;
    user-select: none;
}

.logo-bar-item:hover {
    color: var(--primary);
}

/* ---------- WHY SECTION ---------- */
.why {
    background: #F2EEE7;
    padding: 58px 32px;
}

.why-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.why h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.8px;
    max-width: 580px;
    margin-top: 10px;
}

.why p {
    font-size: 15px;
    color: var(--muted);
    max-width: 640px;
    margin-top: 16px;
    line-height: 1.65;
}

/* ---------- SERVICES GRID ---------- */
.services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 92px 32px;
}

.section-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 52px;
}

.section-head h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.section-head p {
    font-size: 15px;
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.6;
}

.grid8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    background: var(--white);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 18px 36px -18px rgba(124,58,237,0.28);
}

.icon-tile {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--blue), var(--purple));
    transition: transform 0.35s var(--ease);
}

.card:hover .icon-tile {
    transform: rotate(-6deg) scale(1.06);
}

.icon-tile svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

.card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 14px;
}

.card .link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card .link .arr {
    display: inline-block;
    transition: transform 0.3s var(--ease);
}

.card:hover .link .arr {
    transform: translateX(3px);
}

/* ---------- FLEX SECTION ---------- */
.flex-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 32px 96px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.flex-visual {
    height: 340px;
    border-radius: 20px;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.flex-visual .band {
    position: absolute;
    left: 0;
    right: 0;
    height: 0%;
}

.flex-visual .b1 { top: 0; background: linear-gradient(90deg, var(--blue), var(--pink)); opacity: 0.85; }
.flex-visual .b2 { top: 25%; background: linear-gradient(90deg, var(--pink), var(--violet)); opacity: 0.7; }
.flex-visual .b3 { top: 50%; background: linear-gradient(90deg, var(--violet), var(--purple)); opacity: 0.55; }
.flex-visual .b4 { top: 75%; background: var(--dark); }

.flex-visual.in .band {
    height: 25%;
    transition: height 0.7s var(--ease);
}

.flex-visual.in .b1 { transition-delay: 0s; }
.flex-visual.in .b2 { transition-delay: 0.08s; }
.flex-visual.in .b3 { transition-delay: 0.16s; }
.flex-visual.in .b4 { transition-delay: 0.24s; }

.flex-visual .caption {
    position: absolute;
    bottom: 18px;
    left: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    opacity: 0;
}

.flex-visual.in .caption {
    animation: fadeIn 0.6s ease 0.9s forwards;
}

.flex-content h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
}

.flex-content p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 440px;
}

/* ---------- CASES ---------- */
.cases {
    background: #F2EEE7;
    padding: 92px 32px;
}

.cases-inner {
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.2);
}

.case-img {
    height: 150px;
    background: linear-gradient(135deg, #EDEBF9, #F6E4EC);
    position: relative;
    overflow: hidden;
}

.browser-chrome {
    position: absolute;
    inset: 10px 10px auto 10px;
    height: calc(100% - 20px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 24px -10px rgba(0,0,0,0.15);
    overflow: hidden;
}

.chrome-bar {
    height: 18px;
    background: #F4F4F5;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    border-bottom: 1px solid var(--border);
}

.chrome-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #D4D4D8;
}

.chrome-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chrome-line {
    height: 6px;
    border-radius: 3px;
    background: #EDEBF9;
}

.chrome-line.w60 { width: 60%; }
.chrome-line.w40 { width: 40%; }
.chrome-line.w80 { width: 80%; }

.chrome-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 30px;
    margin-top: 4px;
}

.chrome-bars div {
    flex: 1;
    border-radius: 2px 2px 0 0;
}

.case-body {
    padding: 20px;
}

.case-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.case-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.case-body p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}

/* ---------- FINAL CTA ---------- */
.final-cta {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 32px;
    text-align: center;
}

.final-cta h2 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.8px;
    max-width: 600px;
    margin: 0 auto 16px;
}

.final-cta p {
    font-size: 15px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* ---------- FORM CONTROLS (GLASS STYLE) ---------- */
.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    transition: all 0.3s var(--ease);
}

.form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124,58,237,0.15);
    outline: none;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2318181b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 48px;
}

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

/* Rich text editor (blog content) */
[contenteditable].form-control:empty:before {
    content: attr(data-placeholder);
    color: var(--muted);
}

.editor-toolbar .admin-btn-sm {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--ink);
}

.editor-toolbar .admin-btn-sm:hover {
    background: rgba(124,58,237,0.08);
    border-color: var(--primary);
    color: var(--primary);
}

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 32px 92px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
}

.contact-info h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 24px;
}

.contact-info p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 40px;
}

.faq-section {
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.faq-item {
    margin-bottom: 28px;
}

.faq-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 24px 64px -24px rgba(0,0,0,0.1);
}

.form-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-card p.desc {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 32px;
}

.form-status {
    padding: 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 24px;
    display: none;
}

.form-status.success {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.3);
    color: #15803d;
}

.form-status.error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.3);
    color: #b91c1c;
}

/* ---------- SERVICE DETAIL PAGE ---------- */
.service-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 92px 32px 56px;
    text-align: center;
}

.service-hero h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.service-hero p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto 36px;
}

.service-grid-split {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 32px 92px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.service-gap-block h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 20px;
}

.service-gap-block p {
    font-size: 15.5px;
    color: var(--muted);
    line-height: 1.7;
}

.service-stack-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.service-stack-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-stack-item .label {
    font-weight: 600;
    font-size: 14px;
}

.service-stack-item .tech {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--primary);
    background: rgba(124,58,237,0.06);
    padding: 4px 10px;
    border-radius: 6px;
}

/* ---------- BLOG GRID ---------- */
.blog-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 32px 92px;
}

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

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

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.1);
}

.blog-img {
    height: 200px;
    background: linear-gradient(135deg, #EDEBF9, #F6E4EC);
    position: relative;
    overflow: hidden;
}

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

.blog-card-body {
    padding: 24px;
}

.blog-meta {
    font-size: 11px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 12px;
}

.blog-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
}

.blog-card-body p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-body .read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

/* ---------- BLOG DETAIL ---------- */
.article-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 92px 32px 40px;
    text-align: center;
}

.article-header h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 13px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
}

.article-banner {
    max-width: 1000px;
    margin: 0 auto 56px;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #EDEBF9, #F6E4EC);
}

.article-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    max-width: 720px;
    margin: 0 auto 92px;
    padding: 0 32px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink);
}

.article-body p {
    margin-bottom: 28px;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 48px 0 20px;
    letter-spacing: -0.5px;
}

/* ---------- REUSABLE CONTACT MODAL POPUP ---------- */
.planner-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(11, 11, 20, 0.45);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
    padding: 24px;
}

.planner-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.planner-modal-container {
    background: var(--cream);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 600px;
    border-radius: 24px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px -24px rgba(0,0,0,0.3);
    opacity: 0;
    transform: scale(0.96) translateY(20px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.planner-modal-overlay.active .planner-modal-container {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.planner-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s var(--ease);
}

.planner-modal-close:hover {
    background: var(--ink);
    color: #fff;
    transform: rotate(90deg);
}

.planner-modal-body {
    padding: 48px;
}

/* ---------- ADMIN LAYOUT ---------- */
.admin-login-body {
    background: #F4F4F5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.admin-login-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    padding: 38px;
    box-shadow: 0 10px 32px -10px rgba(0,0,0,0.1);
}

.admin-login-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.admin-dashboard {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--dark);
    color: var(--dark-text);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
}

.admin-sidebar .wordmark {
    color: var(--dark-text);
    margin-bottom: 48px;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-menu-link {
    display: flex;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-muted);
    transition: all 0.25s var(--ease);
}

.admin-menu-link:hover, .admin-menu-link.active {
    color: var(--dark-text);
    background: rgba(255,255,255,0.06);
}

.admin-main {
    padding: 48px;
    background: #f8fafc;
    max-height: 100vh;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 38px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.admin-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 38px;
}

.admin-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.admin-stat-card .val {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.admin-stat-card .lbl {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th, .admin-table td {
    padding: 16px 20px;
    text-align: left;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: #f1f5f9;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--muted);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.admin-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.admin-btn-danger {
    background: #ef4444;
    color: #fff;
}
.admin-btn-danger:hover {
    background: #dc2626;
}

.admin-btn-edit {
    background: #e2e8f0;
    color: var(--ink);
}
.admin-btn-edit:hover {
    background: #cbd5e1;
}

/* ---------- TEXT UTILITIES ---------- */
.privacy-terms-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 92px 32px 92px;
}

.privacy-terms-body h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    text-align: center;
}

.privacy-terms-body p.updated {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 56px;
    font-family: 'JetBrains Mono', monospace;
}

.privacy-terms-content {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink);
}

.privacy-terms-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 40px 0 16px;
}

.privacy-terms-content p {
    margin-bottom: 20px;
}

.privacy-terms-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style: disc;
}

.privacy-terms-content li {
    margin-bottom: 8px;
}

/* ─────────────────────────────────────────────────────────────
   ADMIN PANEL LAYOUT
   ───────────────────────────────────────────────────────────── */

.admin-login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--cream);
}

.admin-login-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}

.admin-login-card h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--ink);
}

.admin-dashboard {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--dark);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.07);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .wordmark {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-sidebar .wordmark .mark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-block;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-menu-link {
    display: block;
    color: var(--dark-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.admin-menu-link:hover,
.admin-menu-link.active {
    background: rgba(124, 58, 237, 0.15);
    color: #c4b5fd;
}

.admin-main {
    padding: 40px 48px;
    overflow-y: auto;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.admin-header h1 {
    font-size: 28px;
    font-weight: 800;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.admin-stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    transition: box-shadow 0.2s;
}

.admin-stat-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.admin-stat-card .val {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.admin-stat-card .lbl {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.admin-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 14px;
    border-bottom: 1px solid #f4f4f5;
    vertical-align: top;
    color: var(--ink);
    line-height: 1.5;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover td {
    background: #fafafb;
}

.admin-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-btn-sm {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.admin-btn-edit {
    background: rgba(124,58,237,0.08);
    color: var(--primary);
}

.admin-btn-edit:hover { background: rgba(124,58,237,0.18); }

.admin-btn-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.admin-btn-danger:hover { background: rgba(239, 68, 68, 0.18); }

/* Admin Form Card */
.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.form-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-card .desc {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 24px;
}

/* ─────────────────────────────────────────────────────────────
   BLOG PAGE LAYOUT
   ───────────────────────────────────────────────────────────── */

.blog-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

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

.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.09);
}

.blog-img {
    height: 200px;
    background: linear-gradient(135deg, #c4b5fd 0%, #818cf8 100%);
    overflow: hidden;
}

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

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 12px;
}

.blog-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--ink);
}

.blog-card-body p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 20px;
}

.read-more {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────
   ARTICLE DETAIL LAYOUT
   ───────────────────────────────────────────────────────────── */

article {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px;
}

.article-header {
    padding: 64px 0 40px;
    text-align: center;
}

.article-header h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.article-banner {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 48px;
    height: 420px;
}

.article-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--ink);
    padding-bottom: 80px;
}

.article-body p { margin-bottom: 24px; }
.article-body h2 { font-size: 26px; font-weight: 700; margin: 48px 0 16px; }
.article-body h3 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 24px; }
.article-body li { margin-bottom: 10px; }

/* ─────────────────────────────────────────────────────────────
   SERVICE SUB-PAGES
   ───────────────────────────────────────────────────────────── */

.service-stack-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
}

.service-stack-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: background 0.2s;
}

.service-stack-item:hover { background: #f1f0ff; }

.service-stack-item .label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.service-stack-item .tech {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(124,58,237,0.08);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Form status messages */
.form-status {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.form-status.success {
    background: rgba(34,197,94,0.1);
    color: #16a34a;
    border: 1px solid rgba(34,197,94,0.2);
}

.form-status.error {
    background: rgba(239,68,68,0.1);
    color: #dc2626;
    border: 1px solid rgba(239,68,68,0.2);
}

/* ─────────────────────────────────────────────────────────────
   GLOBAL FOOTER STYLES (Mockup v4)
   ───────────────────────────────────────────────────────────── */
footer {
    background: var(--dark);
    color: var(--dark-text);
    padding: 64px 32px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ── Footer logo image ── */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo-wrap {
    display: inline-block;
    margin-bottom: 4px;
}

.footer-logo {
    height: 44px;
    width: auto;
    display: block;
}

.footer-top p {
    font-size: 13px;
    color: var(--dark-muted);
    margin-top: 14px;
    line-height: 1.6;
    max-width: 220px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--dark-text);
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--dark-muted);
    margin-bottom: 10px;
    transition: color 0.2s ease;
    text-decoration: none;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 12px;
    color: var(--dark-muted);
}

.footer-bottom a {
    color: var(--dark-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ---------- RESPONSIVENESS (Must be last in cascade) ---------- */
@media (max-width: 1024px) {
    .grid8 { grid-template-columns: repeat(2, 1fr); }
    .hero { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero p.sub { margin: 0 auto 30px; }
    .hero-ctas { justify-content: center; }
    .trust-line { justify-content: center; }
    .hero-visual { height: 360px; max-width: 500px; margin: 0 auto; }

    /* Tablet: collapse nav into hamburger drawer */
    .mobile-nav-toggle { display: flex; }
    .nav-cta-desktop   { display: none; }
    .nav-cta-mobile    { display: block !important; }

    #mainNav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(80vw, 340px);
        z-index: 99;
        background: var(--white);
        border-left: 1px solid var(--border);
        box-shadow: -12px 0 48px rgba(11,11,20,0.18);
        padding: 80px 36px 40px;
        transform: translateX(100%);
        transition: transform 0.38s cubic-bezier(0.16,1,0.3,1);
        overflow-y: auto;
    }

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

    #mainNav ul {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    #mainNav ul li {
        width: 100%;
    }

    #mainNav ul li a {
        display: block;
        font-size: 17px;
        font-weight: 600;
        color: var(--ink);
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    #mainNav ul li:last-child a {
        border-bottom: none;
    }

    .nav-cta-mobile .btn {
        margin-top: 24px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .admin-dashboard { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-main { padding: 24px 20px; }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* ── Mobile nav drawer ── */
    .mobile-nav-toggle { display: flex; }
    .nav-cta-desktop  { display: none; }
    .nav-cta-mobile   { display: block !important; }

    #mainNav {
        /* Hidden state */
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(80vw, 320px);
        z-index: 99;
        background: var(--white);
        border-left: 1px solid var(--border);
        box-shadow: -12px 0 48px rgba(11,11,20,0.18);
        padding: 80px 32px 40px;
        transform: translateX(100%);
        transition: transform 0.38s cubic-bezier(0.16,1,0.3,1);
        overflow-y: auto;
    }

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

    #mainNav ul {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    #mainNav ul li {
        width: 100%;
    }

    #mainNav ul li a {
        display: block;
        font-size: 17px;
        font-weight: 600;
        color: var(--ink);
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    #mainNav ul li:last-child a {
        border-bottom: none;
    }

    /* CTA button inside mobile drawer */
    .nav-cta-mobile .btn {
        margin-top: 24px;
        width: 100%;
        justify-content: center;
    }

    /* Underline animation hidden on mobile list items */
    #mainNav nav a::after { display: none; }

    /* Layout fixes */
    .contact-grid, .service-grid-split, .flex-section { grid-template-columns: 1fr; gap: 40px; }
    .blog-grid, .case-grid { grid-template-columns: 1fr; }
    .stat-row { flex-direction: column; gap: 24px; text-align: center; }
    .why-inner { grid-template-columns: 1fr; text-align: center; }
    .why-inner .btn { margin-top: 16px; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .service-hero h1 { font-size: 38px; }
    .hero h1 { font-size: 38px; }
    .nav-wrap { padding: 14px 20px; }
}

@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
    .admin-stats-grid { grid-template-columns: 1fr 1fr; }
    .article-header h1 { font-size: 30px; }
}




/* Floating WhatsApp click-to-chat button */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 900;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

@media (max-width: 600px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }
}
