/* ==============================================================
   MEET CRANE SERVICE — GLOBAL STYLES
   60% Black (#111111) / 30% Off-white (#F5F5F5) / 10% Crane Yellow (#F5B400)
   ============================================================== */

:root {
    /* 60% - Primary */
    --primary: #111111;
    --primary-dark: #080808;
    --primary-light: #222222;

    /* 30% - Background */
    --background: #F5F5F5;
    --surface: #FFFFFF;
    --surface-light: #FAFAFA;

    /* 10% - Accent */
    --accent: #F5B400;
    --accent-hover: #D99D00;
    --accent-light: #FFD45A;

    /* Text */
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-light: #FFFFFF;
    --text-muted: #777777;

    /* Borders */
    --border: #E2E2E2;
    --border-dark: #333333;

    /* Status */
    --success: #198754;
    --danger: #DC3545;
    --warning: #F5B400;

    /* Effects */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.18);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Transition */
    --transition: all 0.3s ease;
}

html {
    overflow-x: hidden;
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    overflow-x: hidden;
}

.font-display {
    font-family: 'Archivo', 'Inter', sans-serif;
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------
   HEADER
   --------------------------------------------------------------- */
#site-header {
    transition: var(--transition);
    background: rgba(17, 17, 17, 0.0);
}
#site-header.scrolled {
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md);
}
#site-header.at-top { background: rgba(8, 8, 8, 0.65); backdrop-filter: blur(6px); }

/* ---------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}
.btn-accent {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(245, 180, 0, 0.28);
}
.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 180, 0, 0.38);
}
.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.04);
}
.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(245, 180, 0, 0.08);
    transform: translateY(-2px);
}
.btn-dark {
    background: var(--primary);
    color: var(--text-light);
}
.btn-dark:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ---------------------------------------------------------------
   GLASS / METALLIC EFFECTS
   --------------------------------------------------------------- */
.glass-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.metallic-line {
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    height: 2px;
}
.accent-underline {
    position: relative;
    display: inline-block;
}
.accent-underline::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 46px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ---------------------------------------------------------------
   HERO
   --------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: var(--primary);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05) contrast(1.05);
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(8,8,8,0.75) 0%, rgba(8,8,8,0.55) 40%, rgba(8,8,8,0.92) 100%),
        linear-gradient(90deg, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0.35) 55%, rgba(8,8,8,0.65) 100%);
}
.glow-particle {
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(245,180,0,0.55) 0%, rgba(245,180,0,0) 70%);
    filter: blur(2px);
    animation: floatGlow 8s ease-in-out infinite;
}
@keyframes floatGlow {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.5; }
    50% { transform: translateY(-30px) translateX(15px); opacity: 1; }
}

/* ---------------------------------------------------------------
   REVEAL ANIMATIONS (driven by IntersectionObserver in main.js)
   --------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
}
[data-reveal="fade-up"] { transform: translateY(28px); }
[data-reveal="fade-up"].is-visible { opacity: 1; transform: translateY(0); }

[data-reveal="scale-in"] { transform: scale(0.94); }
[data-reveal="scale-in"].is-visible { opacity: 1; transform: scale(1); }

[data-reveal="slide-right"] { transform: translateX(-28px); }
[data-reveal="slide-right"].is-visible { opacity: 1; transform: translateX(0); }

[data-reveal="slide-left"] { transform: translateX(28px); }
[data-reveal="slide-left"].is-visible { opacity: 1; transform: translateX(0); }

/* stagger helper */
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }
[data-reveal-delay="6"] { transition-delay: 0.48s; }

/* ---------------------------------------------------------------
   CARDS
   --------------------------------------------------------------- */
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: "";
    position: absolute; left: 0; top: 0;
    width: 4px; height: 0%;
    background: var(--accent);
    transition: height 0.35s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(245, 180, 0, 0.35);
}
.service-card:hover::before { height: 100%; }
.service-card-image {
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.service-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.service-card:hover .service-card-image img { transform: scale(1.06); }
.service-icon-wrap {
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.service-card:hover .service-icon-wrap {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.08) rotate(-4deg);
}

.stat-card {
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.stat-card:hover { border-color: rgba(245,180,0,0.4); transform: translateY(-4px); }

.why-card { transition: var(--transition); }
.why-card:hover { transform: translateY(-4px); }
.why-card:hover .why-icon { background: var(--accent); color: var(--primary); }
.why-icon { transition: var(--transition); }

/* Image zoom on hover */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 0.6s ease; }
.img-zoom:hover img { transform: scale(1.08); }

/* ---------------------------------------------------------------
   HOW IT WORKS — connecting line
   --------------------------------------------------------------- */
.step-num {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 24px rgba(245,180,0,0.35);
}
.step-line {
    position: absolute;
    top: 32px; left: 0; right: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.25) 0 10px, transparent 10px 18px);
    z-index: 1;
}

/* ---------------------------------------------------------------
   FLOATING ACTION BUTTONS
   --------------------------------------------------------------- */
.fab-stack {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.fab {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}
.fab:hover { transform: scale(1.08); }
.fab-call { background: var(--primary); color: var(--accent); }
.fab-whatsapp { background: #25D366; color: #fff; }
.fab-tooltip {
    position: absolute;
    right: 68px;
    top: 50%; transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.fab:hover .fab-tooltip { opacity: 1; }
.fab-ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: fabPulse 2.2s ease-out infinite;
}
@keyframes fabPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ---------------------------------------------------------------
   FORM
   --------------------------------------------------------------- */
.form-input {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    transition: var(--transition);
    color: var(--text-primary);
}
.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(245,180,0,0.15);
}
.form-input.field-error { border-color: var(--danger); }
.field-error-msg { color: var(--danger); font-size: 0.8rem; margin-top: 0.25rem; }

/* ---------------------------------------------------------------
   MOBILE MENU
   --------------------------------------------------------------- */
#mobile-menu {
    transition: transform 0.35s cubic-bezier(.2,.7,.3,1), opacity 0.3s ease;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
}
#mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ---------------------------------------------------------------
   MISC
   --------------------------------------------------------------- */
.section-eyebrow {
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
}
.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245,180,0,0.5); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(245,180,0,0); }
}
.feature-badge {
    border: 1px solid rgba(245,180,0,0.35);
    background: rgba(245,180,0,0.08);
    color: var(--accent-light);
}
::selection { background: var(--accent); color: var(--primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 8px; }


/* ---------------------------------------------------------------
   MOBILE MENU
   --------------------------------------------------------------- */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(.2,.7,.3,1), opacity 0.3s ease, transform 0.35s cubic-bezier(.2,.7,.3,1);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
}
#mobile-menu.open {
    max-height: calc(100svh - 4rem);
    overflow-y: auto;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#site-header {
    position: fixed; /* already set via Tailwind classes, this is just for the containing-block guarantee */
    transition: var(--transition);
    background: rgba(17, 17, 17, 0.0);
}