/* ============================================
   Elite Performance Exclusive LLC — Custom Styles
   Colors: Blue #0055FF | Orange #FF6B00 | Dark #0A0A0A | Grey #F5F5F7
   ============================================ */

:root {
    --pp-blue: #0055FF;
    --pp-blue-dark: #0044CC;
    --pp-blue-light: #3377FF;
    --pp-orange: #FF6B00;
    --pp-orange-dark: #E55F00;
    --pp-orange-light: #FF8533;
    --pp-dark: #0A0A0A;
    --pp-dark-light: #1A1A1A;
    --pp-grey: #F5F5F7;
    --pp-grey-dark: #E8E8EA;
    --pp-white: #FFFFFF;
    --pp-text: #333333;
    --pp-text-muted: #86868B;
}

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    color: var(--pp-text);
    background: var(--pp-white);
    overflow-x: hidden;
}

::selection {
    background: var(--pp-blue);
    color: var(--pp-white);
}

/* ---- Typography — Apple style ---- */
.pp-heading-hero {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.pp-heading-section {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.pp-heading-sub {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--pp-text-muted);
}

.pp-body-large {
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    line-height: 1.6;
    color: var(--pp-text-muted);
}

/* ---- Glass Morphism Buttons ---- */
.pp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.pp-btn-primary {
    background: var(--pp-blue);
    color: var(--pp-white);
    box-shadow: 0 4px 15px rgba(0, 85, 255, 0.3);
}

.pp-btn-primary:hover {
    background: var(--pp-blue-dark);
    box-shadow: 0 6px 25px rgba(0, 85, 255, 0.4);
    transform: translateY(-2px);
}

.pp-btn-secondary {
    background: var(--pp-orange);
    color: var(--pp-white);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.pp-btn-secondary:hover {
    background: var(--pp-orange-dark);
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.4);
    transform: translateY(-2px);
}

.pp-btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--pp-white);
}

.pp-btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Outline variant for WHITE-background sections — pp-btn-glass uses
   10% white on white and disappears. Use pp-btn-outline-dark anywhere
   the parent section bg is white/light. Hover fills to solid dark. */
.pp-btn-outline-dark {
    background: transparent;
    border: 1.5px solid var(--pp-dark);
    color: var(--pp-dark);
}

.pp-btn-outline-dark:hover {
    background: var(--pp-dark);
    color: var(--pp-white);
    transform: translateY(-2px);
}

/* ---- Hero Section ---- */
.pp-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--pp-dark);
    color: var(--pp-white);
    position: relative;
    overflow: hidden;
}

.pp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.pp-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 2rem;
}

/* Gradient orb */
.pp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.pp-orb-blue {
    width: 500px;
    height: 500px;
    background: var(--pp-blue);
    top: 20%;
    left: 10%;
    animation: pp-float 8s ease-in-out infinite;
}

.pp-orb-orange {
    width: 400px;
    height: 400px;
    background: var(--pp-orange);
    bottom: 10%;
    right: 10%;
    animation: pp-float 10s ease-in-out infinite reverse;
}

@keyframes pp-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---- Scroll Sections ---- */
.pp-section {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.pp-section-dark {
    background: var(--pp-dark);
    color: var(--pp-white);
}

.pp-section-light {
    background: var(--pp-grey);
}

.pp-section-white {
    background: var(--pp-white);
}

.pp-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ---- Reveal animations (GSAP classes) ---- */
.pp-reveal {
    opacity: 0;
    transform: translateY(60px);
}

.pp-reveal-left {
    opacity: 0;
    transform: translateX(-80px);
}

.pp-reveal-right {
    opacity: 0;
    transform: translateX(80px);
}

.pp-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
}

/* ---- Stats ---- */
.pp-stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--pp-blue);
    line-height: 1;
}

.pp-stat-label {
    font-size: 1rem;
    color: var(--pp-text-muted);
    margin-top: 0.5rem;
    font-weight: 400;
}

/* ---- Navigation ---- */
.pp-nav {
    position: fixed;
    top: 28px;  /* Below the traffic banner on desktop */
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .pp-nav {
        top: 28px; /* Banner is single line on mobile */
    }
}

@media (min-width: 768px) {
    .pp-nav {
        padding: 1rem 2rem;
    }
}

.pp-nav-scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 2rem;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pp-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pp-nav-logo svg {
    height: 40px;
    width: auto;
}

.pp-nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.pp-nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.pp-nav-links a:hover {
    color: var(--pp-white);
}

/* Mobile menu */
.pp-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.pp-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--pp-white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .pp-nav-toggle {
        display: block;
    }

    .pp-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1.5rem;
    }

    .pp-nav-links.active {
        display: flex;
    }

    .pp-hero-ctas {
        flex-direction: column;
        align-items: center;
    }
}

/* ---- Feature Cards ---- */
.pp-feature-card {
    background: var(--pp-white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.pp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ---- Divider Line ---- */
.pp-divider {
    width: 60px;
    height: 3px;
    background: var(--pp-blue);
    border-radius: 2px;
}

.pp-divider-orange {
    background: var(--pp-orange);
}

/* ---- Footer ---- */
.pp-footer {
    background: var(--pp-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 2rem 2rem;
}

.pp-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pp-footer a:hover {
    color: var(--pp-white);
}

.pp-footer-heading {
    color: var(--pp-white);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.pp-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8125rem;
}

/* ---- Loading State ---- */
.pp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.pp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 85, 255, 0.1);
    border-top-color: var(--pp-blue);
    border-radius: 50%;
    animation: pp-spin 0.8s linear infinite;
}

@keyframes pp-spin {
    to { transform: rotate(360deg); }
}

/* ---- Smooth image reveal ---- */
.pp-img-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.pp-img-reveal.revealed {
    clip-path: inset(0 0% 0 0);
}

/* ───────────────────────────────────────────────────────────────────
   iOS Safari mobile fixes (2026-06-08)
   ─────────────────────────────────────────────────────────────────── */

/* iOS Safari renders <input type="date"> with its own min-width that
   overflows the parent container on narrow widths. Strip the native
   styling so the input behaves like every other input on the page. */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 2.75rem;          /* matches text-sm + py-3 inputs */
    background-clip: padding-box;
    /* Reserve room on the right for the native calendar picker indicator —
       without this, on iOS Safari the indicator overlays the date text and
       looks like the field is overlapping itself. */
    padding-right: 2.5rem;
}

/* White-tint the calendar picker indicator so it's visible on our dark
   input backgrounds. The default is a dark glyph that disappears against
   bg-white/[0.04]. invert(1) flips black→white; opacity dims it so it
   reads as secondary chrome, not primary content. */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.55;
    cursor: pointer;
}

/* iOS Safari pads the inner date-and-time-value text by default; reset so
   it sits flush left like every other text input. */
input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
    min-height: 1.25em;
}

/* Prevent horizontal overflow on the body — iOS Safari can let absolutely-
   positioned elements push the body wider than the viewport, causing the
   characteristic "page is shifted right" mobile bug. */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Belt-and-braces: regardless of any Tailwind utility, force the hero +
   service sections to flow with their content on phones. The mobile-fold
   problem caused by min-h-screen + flex items-center is the dominant
   layout bug on iOS Safari and we override it here defensively. */
@media (max-width: 768px) {
    .tech-hero-mobile-auto,
    #svcWeb,
    #svcMobile,
    #svcEcom {
        min-height: auto !important;
    }
}
