/* ================================================================
   Copious IT — Managed IT Services Page
   ================================================================
   Shared stylesheet for:
     managed-it-services-vancouver.html
     managed-it-services-vancouver/index.html

   Extracted from 2 identical inline <style> blocks. Load order (head):
   Tailwind CDN → css/managed-it.css.

   ------------------------------------------------------------------
   CHEAT SHEET — COLORS & FONTS (Managed IT page)
   ------------------------------------------------------------------
   BACKGROUNDS
     --ink        #020617   page background (near-black navy)
     --ink-2      #0f172a   scrollbar track / scrolled nav / quiz fill
     --panel-dim  rgba(15,23,42,.8)   form + quiz field fill

   TEXT
     --text       #ffffff   headings / emphasis
     --muted      #64748b   placeholders

   BRAND (cyan)
     --brand      #00b7e3   scrollbar, focus ring, quiz highlights
     --brand-2    #1abbe6   gradient light

   SUCCESS / DANGER (quiz answers)
     --correct    #22c55e   green
     --wrong      #ef4444   red

   BORDERS       rgba(51,65,85,.5)   nav/form/quiz borders

   FONTS         'Inter' (Google Fonts), fallback sans-serif
   ================================================================ */

/* ------------------------------------------------------------------
   RESET — clear default margins/padding, sane box-sizing
------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #020617;        /* --ink    */
    color: #fff;                /* --text   */
    overflow-x: hidden;
}

/* ------------------------------------------------------------------
   SCROLLBAR — slim cyan thumb on dark track (WebKit)
------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;        /* --ink-2  */
}
::-webkit-scrollbar-thumb {
    background: #00b7e3;        /* --brand  */
    border-radius: 4px;
}

/* Smooth anchor scrolling */
html {
    scroll-behavior: smooth;
}

/* ------------------------------------------------------------------
   HERO — animated diagonal gradient background
------------------------------------------------------------------- */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #020617 0%,    /* --ink    */
        #0f172a 40%,   /* --ink-2  */
        #00262f 70%,   /* deep navy */
        #020617 100%   /* --ink    */
    );
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}

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

/* Hero photo — dark, masked overlay behind the headline */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('images/msp_hero.png') center center / cover no-repeat;
    opacity: 0.12;
    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,0.6) 0%,
        rgba(0,0,0,0.3) 60%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,0.6) 0%,
        rgba(0,0,0,0.3) 60%,
        transparent 100%
    );
}

/* ------------------------------------------------------------------
   SECTION LINE — cyan gradient hairline between sections
------------------------------------------------------------------- */
.section-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #00b7e3, transparent);
    max-width: 80%;
    margin: 0 auto;
}

/* ------------------------------------------------------------------
   SCROLL-REVEAL — elements fade/slide in on scroll (.visible by JS)
------------------------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------------
   SERVICE CARD — hover lift + cyan glow
------------------------------------------------------------------- */
.service-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 183, 227, 0.3);
    box-shadow: 0 20px 60px -15px rgba(0, 183, 227, 0.15);
}

/* ------------------------------------------------------------------
   BUTTON SHINE — swept light sheen on hover
------------------------------------------------------------------- */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}
.btn-shine:hover::after {
    left: 125%;
}

/* ------------------------------------------------------------------
   NAV — transition to solid blurred bar once JS adds .scrolled
------------------------------------------------------------------- */
.nav-glass {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-glass.scrolled {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

/* ------------------------------------------------------------------
   MOBILE MENU — right-side slide-in drawer
------------------------------------------------------------------- */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open {
    transform: translateX(0);
}

/* ------------------------------------------------------------------
   CONTACT OVERLAY — modal dialog (dim backdrop + centered card)
------------------------------------------------------------------- */
.contact-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.contact-overlay.active {
    opacity: 1;
    visibility: visible;
}
.contact-modal {
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-overlay.active .contact-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ------------------------------------------------------------------
   ICON RING — square tinted container behind service icons
------------------------------------------------------------------- */
.icon-ring {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,183,227,0.15), rgba(0,183,227,0.05));
    border: 1px solid rgba(0,183,227,0.2);
    flex-shrink: 0;
}
.icon-ring img {
    filter: brightness(0) invert(1);        /* render dark glyphs white */
}

/* ------------------------------------------------------------------
   QUIZ — interactive knowledge-check boxes
------------------------------------------------------------------- */
.quiz-box {
    background: rgba(15, 23, 42, 0.8);      /* --panel-dim */
    border: 1px solid rgba(51, 65, 85, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
}
.quiz-option {
    padding: 14px 18px;
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #cbd5e1;
    font-size: 0.95rem;
}
.quiz-option:hover {
    border-color: #00b7e3;                  /* --brand */
    background: rgba(0, 183, 227, 0.08);
    color: #fff;
}
.quiz-option.correct {
    border-color: #22c55e;                  /* --correct */
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}
.quiz-option.incorrect {
    border-color: #ef4444;                  /* --wrong */
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.quiz-progress-bar {
    height: 4px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 2px;
    overflow: hidden;
}
.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b7e3, #1abbe6);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------------
   MANAGED-IT CONTACT FORM — dark rounded fields, cyan focus ring
------------------------------------------------------------------- */
.managed-form input,
.managed-form textarea {
    background: rgba(15, 23, 42, 0.8);      /* --panel-dim */
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}
.managed-form input:focus,
.managed-form textarea:focus {
    border-color: #00b7e3;                  /* --brand */
    box-shadow: 0 0 0 3px rgba(0, 183, 227, 0.1);
}
.managed-form input::placeholder,
.managed-form textarea::placeholder {
    color: #64748b;                          /* --muted */
}

/* ------------------------------------------------------------------
   TESTIMONIAL CARD — hover lift + cyan border
------------------------------------------------------------------- */
.testimonial-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 183, 227, 0.3);
}

/* ------------------------------------------------------------------
   STAGGER — incremental transition-delay for card reveal
------------------------------------------------------------------- */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
