/* ==========================================================================
   NS.Sam Service — Professional Stylesheet
   ========================================================================== */

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-darker: #1e3a8a;
    --primary-light: #dbeafe;
    --primary-lighter: #eff6ff;
    --accent: #f59e0b;
    --accent-light: #fef3c7;

    /* Neutrals */
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748b;
    --gray-500: #94a3b8;
    --gray-400: #cbd5e1;
    --gray-300: #e2e8f0;
    --gray-200: #f1f5f9;
    --gray-100: #f8fafc;
    --white: #ffffff;

    /* Spacing */
    --section-py: clamp(80px, 10vw, 120px);
    --container-px: clamp(20px, 4vw, 32px);

    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 16px 50px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.14);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.3s;
    --duration-slow: 0.5s;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* Selection */
::selection {
    background: var(--primary-light);
    color: var(--primary-darker);
}

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10000;
    transition: top var(--duration) var(--ease);
}
.skip-link:focus {
    top: 16px;
}

/* Focus visible */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration) var(--ease);
}

img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-px);
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--dark);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
}
h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
}
h3 {
    font-size: 1.15rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}
h4 {
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.highlight { color: var(--primary); }
.highlight-gold { color: var(--accent); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.btn svg {
    transition: transform var(--duration) var(--ease);
    flex-shrink: 0;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,99,235,0.35);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.btn-ghost {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.35);
    color: var(--white);
    transform: translateY(-2px);
}

/* Nav CTA Button */
.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--duration) var(--ease);
}
.btn-nav::after { display: none !important; }
.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.navbar.scrolled .btn-nav {
    background: var(--primary);
    color: var(--white) !important;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: all var(--duration) var(--ease);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), var(--shadow-sm);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    transition: color var(--duration) var(--ease);
    letter-spacing: -0.02em;
}

.navbar.scrolled .logo { color: var(--dark); }
.logo-ns { color: var(--accent); }
.logo-sam { color: rgba(255,255,255,0.85); }
.navbar.scrolled .logo-sam { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: color var(--duration) var(--ease);
    position: relative;
    padding: 8px 16px;
    border-radius: 50px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--duration) var(--ease);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--white); }
.nav-link.active::after { transform: scaleX(1); }

.navbar.scrolled .nav-link { color: var(--gray-600); }
.navbar.scrolled .nav-link:hover { color: var(--primary); }
.navbar.scrolled .nav-link.active { color: var(--primary); }

/* Mobile Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    gap: 0;
    transition: all var(--duration) var(--ease);
}

.navbar.scrolled .nav-toggle {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.nav-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
    transform-origin: center;
}

.nav-toggle .bar:nth-child(1) { margin-bottom: 5px; }
.nav-toggle .bar:nth-child(3) { margin-top: 5px; }

.navbar.scrolled .nav-toggle .bar { background: var(--dark); }

/* Hamburger → X animation */
.nav-toggle.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease);
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0f1f 0%, #0f1d3a 30%, #1a3a6b 60%, var(--primary) 100%);
    z-index: 0;
}

/* Grain texture */
.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    z-index: 1;
    pointer-events: none;
}

/* Floating shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    top: -180px;
    right: -120px;
    background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
    animation: float-slow 20s ease-in-out infinite;
}

.hero-shape-2 {
    width: 350px;
    height: 350px;
    bottom: -100px;
    left: -80px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    animation: float-slow 25s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 15%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    animation: float-slow 15s ease-in-out infinite;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(37,99,235,0.12) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.03); }
    66% { transform: translate(-15px, 15px) scale(0.97); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 140px var(--container-px) 80px;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255,255,255,0.6);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 32px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    max-width: 520px;
    margin: 0 auto;
}

.hero-stat {
    flex: 1;
    text-align: center;
    padding: 4px 16px;
}

.hero-stat strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.hero-stat span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: rgba(255,255,255,0.4);
    animation: bounce-gentle 2s ease-in-out infinite;
    transition: all var(--duration) var(--ease);
}

.hero-scroll a:hover {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
}

@keyframes bounce-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ===== Sections ===== */
.section {
    padding: var(--section-py) 0;
}

.section-alt {
    background: var(--gray-100);
}

.section-dark {
    background: var(--dark);
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 6vw, 72px);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-header-light h2 { color: var(--white); }

.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-tag-light {
    background: rgba(255,255,255,0.08);
    color: var(--accent);
    border: 1px solid rgba(255,255,255,0.08);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-top: 12px;
    line-height: 1.7;
}

.section-desc-light {
    color: rgba(255,255,255,0.45);
}

/* ===== About Section ===== */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text-inner {
    position: sticky;
    top: 100px;
}

.about-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-text p {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--gray-600);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
}

.about-feature svg {
    color: var(--primary);
    flex-shrink: 0;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
    transition: all var(--duration) var(--ease);
}

.about-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.about-card-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lighter);
    color: var(--primary);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
}

.about-card:hover .about-card-icon {
    background: var(--primary);
    color: var(--white);
}

.about-card h4 { margin-bottom: 4px; color: var(--dark); }
.about-card p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 36px 28px 32px;
    border-radius: var(--radius-lg);
    transition: all var(--duration-slow) var(--ease);
    overflow: hidden;
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.06) 0%, rgba(245,158,11,0.04) 100%);
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease);
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.12);
    letter-spacing: 2px;
    z-index: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37,99,235,0.12);
    color: var(--primary-light);
    border-radius: var(--radius);
    margin-bottom: 20px;
    transition: all var(--duration) var(--ease);
}

.service-card:hover .service-icon {
    background: rgba(37,99,235,0.2);
    color: var(--white);
    transform: scale(1.05);
}

.service-card h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.3);
    transition: all var(--duration) var(--ease);
}

.service-card:hover .service-arrow {
    background: rgba(245,158,11,0.15);
    color: var(--accent);
    transform: translate(3px, -3px);
}

/* ===== Process / Method Section ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 24px 20px;
    position: relative;
}

.process-number {
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lighter);
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: all var(--duration) var(--ease);
}

.process-number span {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.process-step:hover .process-number {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(37,99,235,0.15);
    border-color: var(--primary);
}

.process-line {
    width: calc(100% - 64px);
    height: 2px;
    background: var(--gray-300);
    position: absolute;
    top: 56px;
    left: calc(50% + 32px);
    z-index: 1;
}

.process-step:last-child .process-line { display: none; }

.process-step h4 {
    margin: 16px 0 8px;
    color: var(--dark);
}

.process-step p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
    border-radius: var(--radius-xl);
    padding: clamp(40px, 6vw, 64px) clamp(32px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 8px;
}

.cta-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    max-width: 480px;
}

.btn-cta {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.btn-cta:hover {
    background: var(--accent-light);
    color: var(--primary-darker);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

.btn-cta svg { stroke: currentColor; }

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    color: inherit;
}

a.contact-card { cursor: pointer; }

a.contact-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lighter);
    color: var(--primary);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
}

a.contact-card:hover .contact-icon {
    background: var(--primary);
    color: var(--white);
}

.contact-card-body { flex: 1; min-width: 0; }
.contact-card-body h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--dark);
}
.contact-card-body p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.contact-card-arrow {
    color: var(--gray-400);
    flex-shrink: 0;
    transition: all var(--duration) var(--ease);
}

a.contact-card:hover .contact-card-arrow {
    color: var(--primary);
    transform: translate(2px, -2px);
}

.contact-map {
    min-height: 420px;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-md);
    position: relative;
}

.contact-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    padding: 72px 0 0;
    color: rgba(255,255,255,0.5);
}

.footer-top {
    display: flex;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
    max-width: 300px;
    flex-shrink: 0;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--white);
    font-size: 1.3rem;
}
.footer-logo .logo-sam { color: var(--primary-light); }

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.4);
}

.footer-columns {
    display: flex;
    flex: 1;
    gap: 48px;
}

.footer-col h4 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col li,
.footer-col a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.4);
    transition: color var(--duration) var(--ease);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.footer-legal {
    color: rgba(255,255,255,0.25);
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--duration) var(--ease);
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== Scroll Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger > .fade-up:nth-child(1) { transition-delay: 0.05s; }
.stagger > .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger > .fade-up:nth-child(3) { transition-delay: 0.15s; }
.stagger > .fade-up:nth-child(4) { transition-delay: 0.2s; }
.stagger > .fade-up:nth-child(5) { transition-delay: 0.25s; }
.stagger > .fade-up:nth-child(6) { transition-delay: 0.3s; }

/* ===== Responsive ===== */

/* Tablet landscape */
@media (max-width: 1024px) {
    .about-layout { gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .process-line { display: none; }
    .footer-columns { gap: 32px; }
    .cta-banner { flex-direction: column; text-align: center; }
    .cta-content p { margin: 0 auto; }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        background: var(--dark);
        flex-direction: column;
        padding: 88px 28px 40px;
        gap: 6px;
        transition: right var(--duration-slow) var(--ease);
        box-shadow: -20px 0 60px rgba(0,0,0,0.3);
        z-index: 1001;
        align-items: stretch;
    }

    .nav-links.open { right: 0; }

    .nav-link {
        color: rgba(255,255,255,0.7) !important;
        font-size: 1rem;
        padding: 14px 16px;
        border-radius: var(--radius-sm);
        transition: all var(--duration) var(--ease);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--white) !important;
        background: rgba(255,255,255,0.06);
    }

    .nav-link::after { display: none; }

    .btn-nav {
        margin-top: 12px;
        text-align: center;
        justify-content: center;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text-inner { position: static; }
    .about-features { grid-template-columns: 1fr; }

    .services-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; gap: 20px; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-map { min-height: 300px; }

    .hero-stats {
        flex-direction: column;
        gap: 0;
        max-width: 280px;
    }

    .hero-stat { padding: 12px 16px; }

    .hero-stat-divider {
        width: 60%;
        height: 1px;
    }

    .footer-top { flex-direction: column; gap: 40px; }
    .footer-columns { flex-direction: column; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-content { padding-top: 120px; }

    .footer-columns { gap: 28px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .fade-up { opacity: 1; transform: none; }
}
