/* ═══════════════════════════════════════════════
   WithWeb — Service Pages Shared CSS
   Matches homepage design: Plus Jakarta Sans + DM Sans
   Brand: #365B6D primary, #43c6ac highlight
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    --primary: #365B6D;
    --primary-light: #4a7a90;
    --primary-dark: #243e4c;
    --accent: #e8f4f8;
    --accent2: #c5e3ef;
    --text: #1a2530;
    --text-muted: #6b8090;
    --surface: #ffffff;
    --surface2: #f4f8fa;
    --border: #dde8ed;
    --highlight: #43c6ac;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── SHARED NAV (matches index.ejs) ─── */
.ww-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.3s;
}
.ww-nav.scrolled { box-shadow: 0 4px 24px rgba(54,91,109,0.10); }
.ww-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.ww-logo img { height: 40px; border-radius: 6px; }
.ww-logo span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem; font-weight: 700;
    color: var(--primary); letter-spacing: -0.3px;
}
.ww-nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.ww-nav-links a {
    text-decoration: none; color: var(--text-muted);
    font-size: 0.92rem; font-weight: 500;
    padding: 0.5rem 0.9rem; border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.ww-nav-links a:hover { color: var(--primary); background: var(--accent); }
.ww-nav-links .dropdown { position: relative; }
.ww-nav-links .dropdown > a::after { content: ' ↓'; font-size: 0.7rem; }
.dropdown-menu {
    display: none; position: absolute;
    top: calc(100% + 8px); left: 0;
    background: white; border: 1px solid var(--border);
    border-radius: 12px; box-shadow: 0 16px 40px rgba(54,91,109,0.14);
    min-width: 240px; padding: 0.5rem; z-index: 100;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 0.9rem; border-radius: 8px;
    font-size: 0.88rem; color: var(--text);
}
.dropdown-menu a .dm-icon { color: var(--primary); font-size: 0.85rem; width: 16px; text-align: center; flex-shrink: 0; }
.dropdown-menu a:hover { background: var(--surface2); color: var(--primary); }
.nav-cta {
    background: var(--primary) !important; color: white !important;
    padding: 0.55rem 1.2rem !important; border-radius: 8px !important;
    font-weight: 600 !important; font-size: 0.88rem !important;
    transition: background 0.2s, transform 0.2s !important;
    margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }
.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 4px;
}
.mobile-menu-btn span {
    display: block; width: 24px; height: 2px;
    background: var(--primary); border-radius: 2px; transition: all 0.3s;
}

/* ─── SERVICE HERO ─── */
.sp-hero {
    padding: 7rem 2rem 5rem;
    background: linear-gradient(145deg, #f0f7fa 0%, #ffffff 55%, #e8f4f8 100%);
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}
.sp-hero-dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, #365b6d18 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.sp-hero-blob {
    position: absolute; border-radius: 50%;
    filter: blur(70px); opacity: 0.3; pointer-events: none;
}
.sp-blob-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #c5e3ef, transparent);
    top: -100px; right: -80px;
    animation: blobFloat 8s ease-in-out infinite;
}
.sp-blob-2 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, #43c6ac33, transparent);
    bottom: -50px; left: -60px;
    animation: blobFloat 10s ease-in-out infinite reverse;
}
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -20px) scale(1.04); }
}
.sp-hero-inner {
    max-width: 900px; margin: 0 auto;
    text-align: center; position: relative; z-index: 1;
}
.sp-breadcrumb {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.82rem; color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.sp-breadcrumb a { color: var(--primary); text-decoration: none; }
.sp-breadcrumb a:hover { text-decoration: underline; }
.sp-breadcrumb span { color: var(--text-muted); }
.sp-hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--accent); border: 1px solid var(--accent2);
    color: var(--primary); font-size: 0.8rem; font-weight: 600;
    padding: 0.35rem 0.9rem; border-radius: 100px;
    margin-bottom: 1.5rem; letter-spacing: 0.02em;
    animation: fadeUp 0.5s ease both;
}
.sp-hero-badge-dot {
    width: 7px; height: 7px; background: var(--highlight);
    border-radius: 50%; animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.4); }
}
.sp-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 700; line-height: 1.15;
    color: var(--text); letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.5s 0.1s ease both;
}
.sp-hero h1 em {
    font-style: normal; color: var(--primary);
    position: relative;
}
.sp-hero h1 em::after {
    content: ''; position: absolute;
    left: 0; bottom: 2px; right: 0;
    height: 3px; background: var(--highlight);
    border-radius: 2px; opacity: 0.5;
}
.sp-hero p {
    font-size: 1.05rem; color: var(--text-muted);
    line-height: 1.75; max-width: 640px;
    margin: 0 auto 2.5rem;
    animation: fadeUp 0.5s 0.2s ease both;
}
.sp-hero-chips {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
    justify-content: center; margin-bottom: 2.5rem;
    animation: fadeUp 0.5s 0.3s ease both;
}
.sp-chip {
    display: flex; align-items: center; gap: 0.4rem;
    background: white; border: 1px solid var(--border);
    color: var(--primary); font-size: 0.82rem; font-weight: 500;
    padding: 0.4rem 0.9rem; border-radius: 100px;
    box-shadow: 0 2px 8px rgba(54,91,109,0.06);
}
.sp-chip i { font-size: 0.75rem; color: var(--highlight); }
.sp-hero-actions {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    animation: fadeUp 0.5s 0.4s ease both;
}
.btn-sp-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--primary); color: white; text-decoration: none;
    padding: 0.85rem 1.8rem; border-radius: 10px;
    font-size: 0.95rem; font-weight: 600;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 16px rgba(54,91,109,0.25);
}
.btn-sp-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(54,91,109,0.3); }
.btn-sp-secondary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: white; color: var(--primary); text-decoration: none;
    padding: 0.85rem 1.8rem; border-radius: 10px;
    font-size: 0.95rem; font-weight: 600;
    border: 1.5px solid var(--border);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn-sp-secondary:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(54,91,109,0.1); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── SECTION LABELS ─── */
.sp-section-label {
    display: inline-block; background: var(--accent);
    color: var(--primary); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.35rem 0.9rem; border-radius: 100px; margin-bottom: 1rem;
}
.sp-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 700; color: var(--text);
    letter-spacing: -0.3px; line-height: 1.2;
    margin-bottom: 0.75rem;
}
.sp-section-sub {
    color: var(--text-muted); font-size: 0.98rem;
    line-height: 1.7; max-width: 560px;
}
.sp-section-header { margin-bottom: 3rem; }
.sp-section-header.center { text-align: center; }
.sp-section-header.center .sp-section-sub { margin: 0 auto; }

/* ─── WHAT WE OFFER — feature cards ─── */
.sp-features {
    padding: 5.5rem 2rem;
    background: var(--surface);
}
.sp-features-inner { max-width: 1100px; margin: 0 auto; }
.sp-features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.sp-feature-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px; padding: 2rem;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative; overflow: hidden;
}
.sp-feature-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s; border-radius: 16px;
}
.sp-feature-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(54,91,109,0.11); border-color: var(--primary-light); }
.sp-feature-card:hover::before { opacity: 1; }
.sp-feature-icon {
    width: 48px; height: 48px; background: var(--surface2);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--primary);
    margin-bottom: 1.25rem; transition: background 0.25s, color 0.25s;
}
.sp-feature-card:hover .sp-feature-icon { background: var(--primary); color: white; }
.sp-feature-card h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem;
}
.sp-feature-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ─── PROCESS STEPS ─── */
.sp-process {
    padding: 5.5rem 2rem;
    background: var(--surface2);
}
.sp-process-inner { max-width: 1100px; margin: 0 auto; }
.sp-steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin-top: 0.5rem; position: relative;
}
.sp-steps-grid::before {
    content: ''; position: absolute;
    top: 26px; left: 10%; right: 10%; height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
    z-index: 0;
}
.sp-step {
    text-align: center; position: relative; z-index: 1;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}
.sp-step.visible { opacity: 1; transform: none; }
.sp-step-num {
    width: 52px; height: 52px; background: white;
    border: 2px solid var(--border); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700; font-size: 1rem; color: var(--primary);
    transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.sp-step:hover .sp-step-num { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 4px 16px rgba(54,91,109,0.25); }
.sp-step h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.98rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.sp-step p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ─── TECH STACK ─── */
.sp-tech {
    padding: 4rem 2rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.sp-tech-inner { max-width: 1100px; margin: 0 auto; }
.sp-tech-grid {
    display: flex; flex-wrap: wrap; gap: 1rem;
    margin-top: 0.5rem;
}
.sp-tech-item {
    display: flex; align-items: center; gap: 0.6rem;
    background: var(--surface2); border: 1.5px solid var(--border);
    border-radius: 10px; padding: 0.6rem 1.1rem;
    font-size: 0.88rem; font-weight: 500; color: var(--text);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.sp-tech-item:hover { border-color: var(--primary); background: var(--accent); transform: translateY(-2px); }
.sp-tech-item i { color: var(--primary); font-size: 1rem; }

/* ─── HIGHLIGHT BAND ─── */
.sp-highlight {
    padding: 4rem 2rem;
    background: var(--primary);
}
.sp-highlight-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem; text-align: center;
}
.sp-highlight-item h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.4rem; font-weight: 700;
    color: white; margin-bottom: 0.4rem; line-height: 1;
}
.sp-highlight-item h3 span { color: var(--highlight); }
.sp-highlight-item p { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* ─── CTA SECTION ─── */
.sp-cta {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    text-align: center; position: relative; overflow: hidden;
}
.sp-cta::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
}
.sp-cta-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.sp-cta h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700; color: white; letter-spacing: -0.3px; margin-bottom: 1rem;
}
.sp-cta p { color: rgba(255,255,255,0.75); font-size: 1.02rem; margin-bottom: 2.5rem; line-height: 1.7; }
.sp-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-cta-white {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: white; color: var(--primary); text-decoration: none;
    padding: 0.9rem 2rem; border-radius: 10px;
    font-size: 0.95rem; font-weight: 700;
    transition: transform 0.25s, box-shadow 0.25s;
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-cta-outline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent; color: white; text-decoration: none;
    padding: 0.9rem 2rem; border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.4);
    font-size: 0.95rem; font-weight: 600;
    transition: border-color 0.25s, background 0.25s;
}
.btn-cta-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }

/* ─── SCROLL REVEAL ─── */
.scroll-reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}
.scroll-reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .sp-features-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-steps-grid::before { display: none; }
    .sp-highlight-inner { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .sp-hero { padding: 6rem 1.5rem 3.5rem; min-height: auto; }
    .sp-hero h1 { font-size: 2.1rem; }
    .sp-features-grid { grid-template-columns: 1fr; }
    .sp-steps-grid { grid-template-columns: 1fr; }
    .sp-highlight-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .ww-nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .sp-hero-actions { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
    .sp-tech-grid { gap: 0.75rem; }
}
