/*
 * javired.com — Base Styles v3 PREMIUM
 */

/* ─── Reset & Base ────────────────────────────────────── */
body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.nav-open { overflow: hidden; }

/* Global dark mode background — atmospheric dot grid */
[data-theme="dark"] body,
:root body {
    background-image:
        radial-gradient(circle at 20% 10%, rgba(139,92,246,0.09) 0%, transparent 45%),
        radial-gradient(circle at 80% 90%, rgba(168,85,247,0.06) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(109,40,217,0.04) 0%, transparent 60%);
}

/* Light mode — clean white, no background noise */
[data-theme="light"] body {
    background-image: none;
    background-color: var(--bg-primary);
}

/* ─── Typography ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

h1 { font-size: var(--fs-hero);  font-weight: var(--fw-black); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: var(--fw-extrabold); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.375rem); }
h4 { font-size: var(--fs-lg); }

p {
    color: var(--text-secondary);
    line-height: var(--lh-body);
    max-width: 68ch;
}

a {
    color: var(--accent-primary);
    transition: color var(--t-fast);
    text-decoration: none;
}
a:hover { color: var(--accent-secondary); }

strong { font-weight: var(--fw-semibold); color: var(--text-primary); }

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

/* ─── Utility ─────────────────────────────────────────── */
.text-gradient {
    background: var(--gradient-hero-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient-shift 5s ease infinite alternate;
}

@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.text-sm   { font-size: var(--fs-sm); }
.text-xs   { font-size: var(--fs-xs); color: var(--text-muted); }
.text-muted { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════
   SECTIONS — Structure with clear visual separation
   ═══════════════════════════════════════════════════════ */
.section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

/* Dark mode: alternating subtle bg for section separation */
[data-theme="dark"] .section:nth-child(even) {
    background-color: var(--bg-secondary);
}

/* ─── LIGHT MODE: Section-specific backgrounds ──────── */

/* Services — soft lavender */
[data-theme="light"] .section.services {
    background: linear-gradient(180deg, #f6f4fd 0%, #f0ecfb 50%, #f6f4fd 100%);
}

/* Portfolio — white (contrast against lavender) */
[data-theme="light"] .section.portfolio {
    background: #ffffff;
}

/* Pricing — gradient lavender with subtle purple tint */
[data-theme="light"] .section.pricing {
    background: linear-gradient(
        180deg,
        #f6f4fd 0%,
        #eee8fc 40%,
        #f0ecfb 70%,
        #f6f4fd 100%
    );
}

/* Testimonials — soft lavender */
[data-theme="light"] .section.testimonials {
    background: #f6f4fd;
}

/* FAQ — white */
[data-theme="light"] .section.faq {
    background: #ffffff;
}

/* Contact — gradient lavender */
[data-theme="light"] .section.contact {
    background: linear-gradient(180deg, #f6f4fd 0%, #f0ecfb 50%, #f6f4fd 100%);
}

/* ─── Gradient separator lines between sections (light) ── */
[data-theme="light"] .section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(109, 40, 217, 0.10) 20%,
        rgba(139, 92, 246, 0.15) 50%,
        rgba(109, 40, 217, 0.10) 80%,
        transparent 100%
    );
    pointer-events: none;
}

/* No separator on last section before footer */
[data-theme="light"] .section.contact::after {
    display: none;
}

/* ─── Light mode body — subtle lavender radial hint ────── */
[data-theme="light"] body {
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(109, 40, 217, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.02) 0%, transparent 50%);
}

/* ─── Section Header ──────────────────────────────────── */
.section__header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    max-width: 760px;
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.section__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--accent-primary);
    background: var(--accent-dim);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--accent-dim-strong);
}

/* Light mode badge — more visible */
[data-theme="light"] .section__badge {
    background: rgba(109, 40, 217, 0.08);
    border-color: rgba(109, 40, 217, 0.15);
}

.section__title {
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.section__subtitle {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    max-width: 580px;
    margin-inline: auto;
    line-height: var(--lh-relaxed);
    max-width: 100%;
}

/* ─── Divider line ────────────────────────────────────── */
hr, .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}
