/* ============================================================
   Cloud Collective — Liquid Glass UI
   Custom styles to complement Tailwind CSS
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --navy:      #002e5b;
  --slate:     #34495e;
  --gold:      #f8c300;
  --green:     #84c225;
  --blue:      #6c98e1;
  --white:     #ffffff;
  --dark:      #222222;

  --glass-bg:       rgba(255, 255, 255, 0.07);
  --glass-border:   rgba(255, 255, 255, 0.15);
  --glass-blur:     blur(22px);

  --glass-bg-light: rgba(255, 255, 255, 0.12);
  --glass-border-light: rgba(255, 255, 255, 0.25);

  --shadow-glow:    0 8px 40px rgba(108, 152, 225, 0.18);
  --shadow-card:    0 4px 32px rgba(0, 46, 91, 0.22);
  --shadow-hover:   0 12px 48px rgba(108, 152, 225, 0.32);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---------- Background Scene ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 15%,  rgba(108, 152, 225, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%,  rgba(132, 194, 37, 0.12)  0%, transparent 55%),
    radial-gradient(ellipse 70% 70% at 50% 50%,  rgba(0, 46, 91, 1)        0%, #001830       100%);
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: floatOrb linear infinite;
  will-change: transform;
}

.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(108,152,225,0.7), transparent 70%);
  top: -180px; left: -120px;
  animation-duration: 22s;
  animation-delay: 0s;
}
.orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(132,194,37,0.6), transparent 70%);
  bottom: 5%; right: -80px;
  animation-duration: 18s;
  animation-delay: -6s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(248,195,0,0.45), transparent 70%);
  top: 42%; left: 55%;
  animation-duration: 26s;
  animation-delay: -12s;
}
.orb-4 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(108,152,225,0.55), transparent 70%);
  top: 70%; left: 20%;
  animation-duration: 20s;
  animation-delay: -4s;
}

@keyframes floatOrb {
  0%   { transform: translate(0, 0)       scale(1); }
  25%  { transform: translate(30px, -40px) scale(1.06); }
  50%  { transform: translate(60px, 20px)  scale(0.95); }
  75%  { transform: translate(20px, 50px)  scale(1.04); }
  100% { transform: translate(0, 0)        scale(1); }
}

/* ---------- Layout Wrapper ---------- */
.content {
  position: relative;
  z-index: 1;
}

/* ---------- Navigation ---------- */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 20, 45, 0.65);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease;
}

.nav-bar.scrolled {
  background: rgba(0, 20, 45, 0.88);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.5px;
  color: #fff;
  box-shadow: 0 2px 12px rgba(108,152,225,0.4);
}

.nav-logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

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

.nav-links a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

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

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-weight: 700 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(248,195,0,0.45);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(0, 20, 45, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 1.2rem;
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255,255,255,0.28);
}

.glass-card-light {
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card-light:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ---------- Sections ---------- */
section {
  position: relative;
  padding: 6rem 1.5rem;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Hero Section ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(108,152,225,0.15);
  border: 1px solid rgba(108,152,225,0.3);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.hero-title .brand {
  background: linear-gradient(135deg, var(--white) 30%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .tagline-accent {
  background: linear-gradient(135deg, var(--gold), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin: 0 auto 2.6rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(248,195,0,0.35);
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(248,195,0,0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,255,255,0.1);
}

/* ---------- Section Headers ---------- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: 1.7;
}

.text-center .section-desc {
  margin: 0 auto;
}

/* ---------- What You Get ---------- */
#what-you-get {
  background: transparent;
}

.wyg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
  margin-top: 3.5rem;
}

.wyg-card {
  padding: 2.4rem 2rem;
}

.wyg-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  font-size: 1.6rem;
}

.wyg-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.wyg-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

.wyg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.01em;
}

/* ---------- Services Section ---------- */
#services {
  background: rgba(0,0,0,0.12);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-top: 3.5rem;
}

.service-card {
  padding: 2.2rem 1.8rem;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover::before {
  opacity: 1;
}

.sc-blue::before   { background: linear-gradient(90deg, var(--blue), var(--green)); }
.sc-gold::before   { background: linear-gradient(90deg, var(--gold), #f97316); }
.sc-green::before  { background: linear-gradient(90deg, var(--green), var(--blue)); }
.sc-purple::before { background: linear-gradient(90deg, #a78bfa, var(--blue)); }
.sc-red::before { background: linear-gradient(90deg, #ef4444, #f59e0b); }
.sc-teal::before { background: linear-gradient(90deg, #14b8a6, #6c98e1); }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  letter-spacing: -0.02em;
}

.service-card ul {
  list-style: none;
  margin-top: 1rem;
}

.service-card ul li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}

.service-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- Why Vancouver Trusts Us ---------- */
#trust {
  background: transparent;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}

.trust-stat {
  text-align: center;
  padding: 1.8rem 1.2rem;
}

.trust-stat .number {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--gold), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.trust-stat .label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- Contact Section ---------- */
#contact {
  background: rgba(0,0,0,0.1);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3.5rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.contact-info p {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.contact-detail-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text a,
.contact-detail-text span {
  display: block;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-detail-text a:hover {
  color: var(--gold);
}

.contact-detail-text .detail-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  margin-bottom: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Form ---------- */
.contact-form-card {
  padding: 2.4rem;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.28);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(108,152,225,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1rem;
  padding: 1rem;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.visible {
  display: block;
}

/* ---------- Footer ---------- */
footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 3rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1.8rem;
}

.footer-brand .footer-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer-brand p {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.footer-contact a {
  display: block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

/* ---------- Scroll Animations ---------- */
/* Fallback: show content if JS hasn't loaded after 3s */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  animation: reveal-fallback 0s 3s forwards;
}

@keyframes reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Divider ---------- */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green));
  border-radius: 2px;
  margin: 1.2rem 0 1.6rem;
}

.text-center .section-divider {
  margin: 1.2rem auto 1.6rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  section {
    padding: 4rem 1.2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .wyg-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form-card {
    padding: 1.6rem 1.2rem;
  }
}

/* ---------- Scrollbar (WebKit) ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb {
  background: rgba(108,152,225,0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(108,152,225,0.65);
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(248,195,0,0.3);
  color: var(--white);
}

/* ---------- Footer Directory ---------- */
.footer-directory {
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-dir-section {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0;
}

.footer-dir-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.75rem;
  white-space: nowrap;
}

.footer-dir-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0;
}

.footer-dir-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.footer-dir-links a::after {
  content: "\00b7";
  margin: 0 0.45rem;
  color: rgba(255,255,255,0.15);
}

.footer-dir-links a:last-child::after {
  display: none;
}

.footer-dir-links a:hover {
  color: #f8c300;
}

@media (max-width: 768px) {
  .footer-directory {
    gap: 1.2rem;
  }
  .footer-dir-section {
    flex-direction: column;
    gap: 0.4rem;
  }
  .footer-dir-links {
    gap: 0.1rem 0;
  }
}
