/* ================================================================
   Copious IT — Marine / Yacht Services Page
   ================================================================
   Shared stylesheet for:
     marine-it-services-vancouver.html
     marine-it-services-vancouver/index.html

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

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

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

   BRAND (cyan)  #00b7e3/#1abbe6   scrollbar, gradients
   ACCENT (teal) rgba(20,184,166,…)   card hover/glow, icon rings

   BORDERS       rgba(51,65,85,.5)   nav/form 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/komokwa-full.jpeg') center center / cover no-repeat;
    opacity: 0.15;
    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 + teal glow
------------------------------------------------------------------- */
.service-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(20, 184, 166, 0.3);          /* teal */
    box-shadow: 0 20px 60px -15px rgba(20, 184, 166, 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%;
}

/* ------------------------------------------------------------------
   COUNTER NUMBER — cyan gradient-filled numerals
------------------------------------------------------------------- */
.counter-num {
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #00b7e3, #1abbe6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ------------------------------------------------------------------
   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;
}

/* ------------------------------------------------------------------
   ANIMATIONS — floating icon, compass spin, pulse ring
------------------------------------------------------------------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
.float-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.spin-slow {
    animation: spin-slow 20s linear infinite;
}

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4); }
    70%  { box-shadow: 0 0 0 15px rgba(20, 184, 166, 0); }
    100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

/* ------------------------------------------------------------------
   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(20,184,166,0.15), rgba(20,184,166,0.05));
    border: 1px solid rgba(20,184,166,0.2);
    flex-shrink: 0;
}

/* ------------------------------------------------------------------
   MARINE CONTACT FORM — dark rounded fields, cyan focus ring
------------------------------------------------------------------- */
.marine-form input,
.marine-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;
}
.marine-form input:focus,
.marine-form textarea:focus {
    border-color: #00b7e3;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.marine-form input::placeholder,
.marine-form textarea::placeholder {
    color: #64748b;                          /* --muted */
}

/* ------------------------------------------------------------------
   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; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }
