/* ============================================
   WEB POLISH - Public site overrides
   Loaded AFTER claymorphism.css on public web
   pages only. Admin pages do NOT load this file,
   so the admin UI keeps its original palette.
   ============================================ */

:root {
    /* Neutral zinc surfaces (was purple-tinted clay) */
    --clay-bg: #f4f4f5;
    --clay-bg-dark: #e4e4e7;
    --clay-bg-light: #fafafa;
    --clay-card: #ffffff;

    /* Single considered accent: indigo. The pink accent is gone. */
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --primary-glow: rgba(79, 70, 229, 0.16);

    /* Secondary is now a deep slate, not a neon indigo */
    --secondary: #1e293b;
    --secondary-light: #334155;
    --secondary-glow: rgba(30, 41, 59, 0.14);

    /* One accent for the whole page */
    --accent: #4f46e5;
    --accent-light: #818cf8;
    --accent-glow: rgba(79, 70, 229, 0.16);

    /* Text: one zinc gray family */
    --text-primary: #18181b;
    --text-secondary: #3f3f46;
    --text-muted: #71717a;
    --text-light: #a1a1aa;

    /* Neutral clay shadows (was purple-tinted) */
    --clay-shadow: 4px 4px 12px rgba(24, 24, 27, 0.08), -4px -4px 12px rgba(255, 255, 255, 0.9);
    --clay-shadow-sm: 2px 2px 6px rgba(24, 24, 27, 0.07), -2px -2px 6px rgba(255, 255, 255, 0.9);
    --clay-shadow-lg: 8px 8px 24px rgba(24, 24, 27, 0.1), -6px -6px 18px rgba(255, 255, 255, 0.95);
    --clay-shadow-inset: inset 2px 2px 4px rgba(24, 24, 27, 0.06), inset -2px -2px 4px rgba(255, 255, 255, 0.8);
    --clay-shadow-pressed: inset 3px 3px 6px rgba(24, 24, 27, 0.1), inset -3px -3px 6px rgba(255, 255, 255, 0.9);
}

/* ---------- Typography: Geist, more presence ---------- */
html {
    scroll-padding-top: 84px;
}

body {
    font-family: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(160deg, #fafafa 0%, #f4f4f5 55%, #e8e8ec 100%);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Geist', 'Segoe UI', system-ui, sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
    color: var(--text-primary);
}

p {
    text-wrap: pretty;
}

.counter-value,
.stat-value {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.clay-footer p {
    max-width: 36ch;
}

.clay-hero p {
    max-width: 52ch;
}

::selection {
    background: var(--primary);
    color: #ffffff;
}

/* ---------- Gradient de-slop: indigo to slate, no purple/pink ---------- */
.clay-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 45%, #1e293b 100%);
    padding: 72px 0 64px;
}

.clay-hero::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
}

.clay-cta {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 55%, #1e293b 100%);
}

.clay-gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.clay-avatar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.clay-card::before,
.admin-stat-card::after {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.service-card::before {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.service-icon,
.clay-icon-box-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: var(--clay-shadow-sm);
}

.clay-icon-box-secondary {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
}

.clay-icon-box-accent {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.clay-btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #0f172a 100%);
}

.clay-btn-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.clay-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.clay-btn-primary:hover {
    box-shadow: var(--clay-shadow-lg);
    transform: translateY(-1px);
}

.clay-btn-ghost {
    background: var(--clay-card);
    border: 1px solid var(--clay-bg-dark);
    box-shadow: var(--clay-shadow-sm);
}

.clay-btn-ghost:hover {
    background: var(--clay-bg-light);
    box-shadow: var(--clay-shadow);
}

.clay-progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: none;
}

.clay-page-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: var(--clay-shadow-sm);
}

.clay-navbar .nav-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: var(--clay-shadow-sm);
}

.clay-toggle.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.stat-counter .counter-value {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

::-webkit-scrollbar-track {
    background: var(--clay-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
    border-color: var(--clay-bg);
}

/* ---------- Surfaces: calm shadows, breathing room ---------- */
.container {
    max-width: 1280px;
}

.clay-card,
.service-card,
.testimonial-card,
.contact-info-card,
.product-card,
.stat-counter {
    border-radius: var(--radius-lg);
}

.service-card {
    padding: 26px 24px;
}

.testimonial-card {
    padding: 26px 28px;
}

.clay-card-lg {
    padding: 28px;
}

.clay-grid-3,
.clay-grid-2,
.clay-grid-4 {
    gap: 20px;
}

.clay-navbar {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 0 rgba(24, 24, 27, 0.04), 0 8px 24px rgba(24, 24, 27, 0.06);
}

.clay-footer {
    background: linear-gradient(180deg, #18181b 0%, #0f0f11 100%);
    padding: 48px 0 24px;
}

.clay-footer h4 {
    letter-spacing: -0.01em;
}

.clay-footer a {
    line-height: 1.8;
}

/* ---------- Focus & interaction polish ---------- */
a:focus-visible,
button:focus-visible,
.clay-btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.clay-btn {
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Mobile spacing ---------- */
@media (max-width: 768px) {
    .clay-hero {
        padding: 40px 0 32px;
    }

    .service-card,
    .testimonial-card {
        padding: 22px 20px;
    }
}

/* ============================================
   REDESIGN v2 - layout & components
   ============================================ */

:root {
    --border: #e4e4e7;
    --border-strong: #d4d4d8;
}

/* ---------- Section system ---------- */
.section {
    padding: 72px 0;
}

.section-sm {
    padding: 48px 0;
}

.section-head {
    max-width: 640px;
    margin-bottom: 40px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

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

/* ---------- Page hero (light, subpages) ---------- */
.page-hero {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 56px 0 48px;
}

.page-hero .page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

.page-hero .page-hero-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
    margin: 0 0 18px;
    border-radius: 16px;
}

.page-hero .page-eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}

.page-hero h1 {
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 64ch;
    margin-top: 12px;
}

/* ---------- Home hero split ---------- */
.hero-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    padding: 72px 0 84px;
}

.hero-split .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
}

.hero-split .hero-eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.6);
}

.hero-split h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: #ffffff;
}

.hero-split p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 52ch;
    margin-top: 18px;
}

.hero-split .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-visual {
    position: relative;
}

.hero-panel {
    position: relative;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    overflow: hidden;
    min-height: 380px;
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
}

.hero-panel::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.45) 0%, transparent 65%);
}

.hero-kpi {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    color: #18181b;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
    padding: 18px 22px;
    z-index: 2;
}

.hero-kpi .kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.hero-kpi .kpi-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #71717a;
    margin-top: 6px;
}

.hero-kpi.top {
    top: 28px;
    right: 28px;
}

.hero-kpi.bottom {
    bottom: 28px;
    left: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-kpi .kpi-check {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    flex-shrink: 0;
}

/* ---------- Stats band ---------- */
.stats-band {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.stats-band .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stats-band .stat-item {
    padding: 26px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stats-band .stat-item:last-child {
    border-right: none;
}

.stats-band .stat-item .counter-value {
    font-size: 2rem;
}

/* ---------- Editorial service list ---------- */
.service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
}

.service-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 30px 20px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.service-row:nth-child(odd) {
    border-right: 1px solid var(--border);
    padding-left: 0;
}

.service-row:hover {
    background: #fafafa;
}

.service-row .service-num {
    font-variant-numeric: tabular-nums;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.6;
    flex-shrink: 0;
    padding-top: 2px;
}

.service-row .service-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    flex-shrink: 0;
    font-size: 18px;
}

.service-row h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.service-row p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-top: 6px;
    text-wrap: pretty;
}

.service-row .row-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

/* ---------- Testimonial refinements ---------- */
.testimonial-card::before {
    display: none;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.testimonial-card > p {
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: normal;
}

/* ---------- Navbar redesign ---------- */
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-brand .brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.clay-navbar .nav-link {
    font-size: 13px;
    padding: 7px 14px;
}

.clay-navbar .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.mobile-menu {
    padding-bottom: 18px;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.mobile-menu .nav-link {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--text-primary);
}

/* ---------- Footer redesign ---------- */
.footer-grid {
    display: grid;
    grid-template-columns: 5fr 3fr 4fr;
    gap: 48px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 34ch;
    margin-top: 14px;
}

.footer-contact li,
.footer-links li {
    list-style: none;
    margin-bottom: 12px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.clay-footer .footer-social .clay-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
    color: #fff;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.clay-footer .footer-social .clay-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--primary-glow);
}

.clay-footer .newsletter-form {
    margin-top: 24px;
}

.clay-footer .newsletter-form input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.clay-footer .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.clay-footer .newsletter-form input:focus {
    border-color: rgba(255, 255, 255, 0.4);
}

.clay-footer .newsletter-form .btn-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ---------- Responsive redesign ---------- */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

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

    .section-sm {
        padding: 36px 0;
    }

    .page-hero {
        padding: 40px 0 32px;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 0 72px;
    }

    .hero-panel {
        min-height: 280px;
    }

    .stats-band .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-band .stat-item {
        border-bottom: 1px solid var(--border);
    }

    .stats-band .stat-item:nth-child(2) {
        border-right: none;
    }

    .stats-band .stat-item:nth-child(3),
    .stats-band .stat-item:nth-child(4) {
        border-bottom: none;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .service-row:nth-child(odd) {
        border-right: none;
        padding-left: 0;
    }
}
