/* ============================================
   PHRANK SOLUTIONS — Master Stylesheet
   Dark editorial · Orange #D8631E accent
   ============================================ */

/* ── Fonts ── */
.font-bebas    { font-family: 'Bebas Neue', sans-serif; }
.font-barlow   { font-family: 'Barlow', sans-serif; }
.font-barlow-c { font-family: 'Barlow Condensed', sans-serif; }

/* ── CSS Reset helpers ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Smooth Scroll ── */
html { scroll-behavior: smooth; }

/* ── Grain Texture Overlay ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
    opacity: 0.45;
}

/* ── Ticker Animation ── */
@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.36s; }
.reveal.delay-4 { transition-delay: 0.48s; }
.reveal.delay-5 { transition-delay: 0.60s; }

/* ── Fade-in from left ── */
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

/* ── Fade-in from right ── */
.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* ── Nav Links ── */
.nav-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D8631E;
    transition: width 0.3s;
}
.nav-link:hover { color: #D8631E; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #D8631E; }
.nav-link.active::after { width: 100%; }

/* ── Mobile Nav Links ── */
.mobile-nav-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(216, 99, 30, 0.12);
    transition: color 0.2s;
}
.mobile-nav-link:hover { color: #D8631E; }

/* ── Footer Links ── */
.footer-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover { color: #D8631E; }

/* ── Footer Social Buttons ── */
.footer-social-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(216, 99, 30, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(216, 99, 30, 0.5);
    text-decoration: none;
    transition: all 0.2s;
}
.footer-social-btn:hover {
    border-color: #D8631E;
    color: #D8631E;
    background: rgba(216, 99, 30, 0.08);
}

/* ── Grid Background Lines ── */
.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(216, 99, 30, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 99, 30, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* ── Section Eyebrow ── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
}
.eyebrow-line {
    width: 28px;
    height: 1px;
    background: #D8631E;
}
.eyebrow span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #D8631E;
}

/* ── Scroll Line Indicator ── */
@keyframes pulse-line {
    0%, 100% { opacity: 0.6; transform: scaleY(1); }
    50%       { opacity: 0.2; transform: scaleY(0.5); }
}
.scroll-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, #D8631E, transparent);
    animation: pulse-line 2s ease-in-out infinite;
}

/* ── Service Card Top Border Sweep ── */
.svc-card-sweep::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D8631E, transparent);
    transform: scaleX(0);
    transition: transform 0.4s;
}
.svc-card-sweep:hover::before { transform: scaleX(1); }

/* ── Gallery Item Overlay ── */
.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
    background: linear-gradient(to top, rgba(6,8,16,0.82) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── Background Slide Transition ── */
.bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: none;
}
.bg-slide.active { opacity: 0.28; }

/* ── Hero counter animate ── */
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.stat-num { animation: count-up 0.6s ease forwards; }

/* ── Floating particles ── */
@keyframes float-up {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
    50%  { transform: translateY(-40px) translateX(10px) scale(1.1); opacity: 0.3; }
    100% { transform: translateY(-80px) translateX(-5px) scale(0.8); opacity: 0; }
}
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #D8631E;
    animation: float-up 4s ease-in-out infinite;
    pointer-events: none;
}

/* ── Orange glow pulse ── */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(216,99,30,0.3); }
    50%       { box-shadow: 0 0 45px rgba(216,99,30,0.6); }
}
.glow-orange { animation: glow-pulse 3s ease-in-out infinite; }

/* ── Page transition line at top ── */
.page-line {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D8631E, transparent);
    z-index: 9999;
    width: 0%;
    transition: width 0.4s ease;
}

/* ── Testimonial card ── */
.testimonial-card {
    background: rgba(13,18,32,0.85);
    border: 1px solid rgba(216,99,30,0.12);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}
.testimonial-card:hover {
    border-color: rgba(216,99,30,0.4);
    transform: translateY(-4px);
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 120px;
    font-family: 'Bebas Neue', sans-serif;
    color: rgba(216,99,30,0.06);
    line-height: 1;
    pointer-events: none;
}

/* ── Why-choose icon box ── */
.why-icon-box {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(216,99,30,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D8631E;
    transition: background 0.3s, border-color 0.3s;
    flex-shrink: 0;
}
.why-icon-box:hover,
.why-row:hover .why-icon-box {
    background: rgba(216,99,30,0.1);
    border-color: #D8631E;
}

/* ── CTA section background animation ── */
@keyframes cta-bg-pan {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.cta-animated-bg {
    background: linear-gradient(135deg, #0D1220, #1a0a04, #090E1C, #0D1220);
    background-size: 300% 300%;
    animation: cta-bg-pan 8s ease infinite;
}

/* ── Input focus ring ── */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #D8631E !important;
}

/* ── Progress bar ── */
.progress-bar {
    height: 2px;
    background: #D8631E;
    transition: width 0.3s ease;
}

/* ── Slide counter dots ── */
.slide-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}
.slide-dot.active {
    background: #D8631E;
    transform: scale(1.4);
}

/* ── Hamburger open state ── */
.hamburger-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.hamburger-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── About page image frame ── */
.img-frame {
    position: relative;
}
.img-frame::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(216,99,30,0.3);
    pointer-events: none;
    z-index: -1;
}

/* ── Number counter animation ── */
@keyframes count-in {
    from { opacity:0; transform: scale(0.7); }
    to   { opacity:1; transform: scale(1); }
}
.counter-val { animation: count-in 0.5s ease forwards; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #060810; }
::-webkit-scrollbar-thumb { background: #D8631E; border-radius: 2px; }
