/* ============================================
   Capital Solutions Pty Ltd — Shared Styles
   Fresh & clean: light base, aqua/teal accents
   ============================================ */

:root {
  --teal: #0db9b0;
  --teal-dark: #089890;
  --teal-deep: #056d67;
  --aqua: #35d0ff;
  --navy: #0e2a32;
  --ink: #16323b;
  --slate: #5b7680;
  --mist: #eef7f7;
  --white: #ffffff;
  --grad: linear-gradient(135deg, #0db9b0 0%, #35d0ff 100%);
  --shadow-sm: 0 2px 10px rgba(14, 42, 50, 0.06);
  --shadow-md: 0 10px 30px rgba(14, 42, 50, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 42, 50, 0.14);
  --radius: 18px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(13, 185, 176, 0.12);
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(13, 185, 176, 0.35);
}
.brand-name { font-weight: 800; font-size: 1.06rem; color: var(--navy); line-height: 1.15; }
.brand-name small { display: block; font-size: .68rem; font-weight: 600; color: var(--teal-dark); letter-spacing: .12em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-weight: 600; font-size: .95rem; color: var(--ink);
  position: relative; padding: 4px 0; transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 2.5px; border-radius: 2px;
  background: var(--grad); transition: width .3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; font-family: var(--font);
  border: none; cursor: pointer; transition: transform .25s, box-shadow .25s;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 22px rgba(13, 185, 176, 0.38);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13, 185, 176, 0.45); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--teal-deep);
  border: 2px solid rgba(13, 185, 176, 0.45);
}
.btn-ghost:hover { background: rgba(13, 185, 176, 0.08); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--teal-deep); box-shadow: var(--shadow-md); }
.btn-light:hover { transform: translateY(-3px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { width: 24px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: .3s; }

/* ---------- Hero (3D canvas host) ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  background: linear-gradient(165deg, #f4fbfb 0%, #e6f6f8 55%, #dbf2f5 100%);
  overflow: hidden; padding-top: 74px;
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: 70px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13, 185, 176, 0.12); color: var(--teal-deep);
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.08; font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em; margin-bottom: 22px;
}
.hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lead { font-size: 1.15rem; color: var(--slate); margin-bottom: 34px; max-width: 540px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badges { display: flex; gap: 26px; margin-top: 46px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.hero-badge svg { flex: 0 0 auto; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: 160px 0 90px;
  background: linear-gradient(165deg, #f4fbfb 0%, #e2f4f7 100%);
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 14px; }
.page-hero p { font-size: 1.12rem; color: var(--slate); max-width: 640px; }
.page-hero .blob {
  position: absolute; border-radius: 50%;
  background: var(--grad); opacity: .12; filter: blur(2px);
  animation: float 9s ease-in-out infinite;
}
.blob.b1 { width: 300px; height: 300px; top: -80px; right: -60px; }
.blob.b2 { width: 160px; height: 160px; bottom: -40px; right: 24%; animation-delay: -3s; }
.blob.b3 { width: 90px; height: 90px; top: 30%; right: 12%; animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-26px) scale(1.05); }
}

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 58px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { color: var(--slate); font-size: 1.06rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(13, 185, 176, 0.10);
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--mist); display: grid; place-items: center;
  margin-bottom: 20px; font-size: 1.6rem;
  transition: transform .35s;
}
.card:hover .card-icon { transform: scale(1.1) rotate(-6deg); }
.card h3 { font-size: 1.18rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .96rem; }
.card .link-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: .92rem; }
.card .link-more:hover { gap: 10px; }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--navy);
  border-radius: 26px; padding: 56px 40px;
  position: relative; overflow: hidden;
}
.stats-band::before {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 208, 255, 0.25), transparent 70%);
  top: -180px; right: -120px;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.stat { text-align: center; }
.stat .num { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; color: #fff; }
.stat .num span.accent { color: var(--aqua); }
.stat .label { color: rgba(255, 255, 255, 0.66); font-size: .92rem; font-weight: 600; margin-top: 4px; }

/* ---------- Service areas ---------- */
.areas { background: var(--mist); }
.area-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 820px; margin: 0 auto; }
.chip {
  background: #fff; padding: 11px 22px; border-radius: 999px;
  font-weight: 600; font-size: .93rem; color: var(--ink);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(13, 185, 176, 0.14);
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.chip::before { content: '📍'; font-size: .85rem; }

/* ---------- Steps / process ---------- */
.step { text-align: center; padding: 0 14px; }
.step-num {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.4rem;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(13, 185, 176, 0.35);
}
.step h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--slate); font-size: .94rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--grad); border-radius: 26px;
  padding: 64px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before, .cta-banner::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.cta-banner::before { width: 260px; height: 260px; top: -110px; left: -70px; }
.cta-banner::after { width: 200px; height: 200px; bottom: -90px; right: -50px; }
.cta-banner h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; margin-bottom: 14px; position: relative; }
.cta-banner p { color: rgba(255, 255, 255, 0.88); margin-bottom: 30px; font-size: 1.08rem; position: relative; }

/* ---------- Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; gap: 18px; }
.quote-card .stars { color: #ffb400; font-size: 1.05rem; letter-spacing: 2px; }
.quote-card blockquote { color: var(--ink); font-size: .98rem; font-style: italic; }
.quote-who { display: flex; align-items: center; gap: 12px; }
.quote-who .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: .95rem;
}
.quote-who .name { font-weight: 700; font-size: .93rem; color: var(--navy); }
.quote-who .loc { font-size: .82rem; color: var(--slate); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 44px; border: 1px solid rgba(13,185,176,.12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: .87rem; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font); font-size: .95rem; color: var(--ink);
  padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid rgba(13, 185, 176, 0.25); background: #fbfefe;
  transition: border-color .25s, box-shadow .25s; outline: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 4px rgba(13, 185, 176, 0.13);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--slate); margin-top: 14px; }

/* ---------- Contact info ---------- */
.info-tile { display: flex; gap: 16px; align-items: flex-start; }
.info-tile .ico {
  width: 50px; height: 50px; border-radius: 14px; flex: 0 0 auto;
  background: var(--mist); display: grid; place-items: center; font-size: 1.3rem;
}
.info-tile h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.info-tile p { color: var(--slate); font-size: .93rem; }

/* ---------- Checklist ---------- */
.check-list { list-style: none; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: .98rem; }
.check-list li::before {
  content: '✓'; flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(13, 185, 176, 0.14); color: var(--teal-deep);
  display: grid; place-items: center; font-weight: 800; font-size: .8rem;
  margin-top: 2px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy); color: rgba(255, 255, 255, 0.72);
  padding: 70px 0 30px; margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
footer h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 16px; letter-spacing: .04em; }
footer ul { list-style: none; display: grid; gap: 10px; }
footer a { color: rgba(255, 255, 255, 0.72); font-size: .92rem; transition: color .25s; }
footer a:hover { color: var(--aqua); }
footer p { font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .84rem; color: rgba(255, 255, 255, 0.5);
}

/* ---------- Scroll reveal (2D) ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }

/* ---------- Sparkles ---------- */
.sparkle { position: absolute; pointer-events: none; animation: sparkle 2.6s ease-in-out infinite; opacity: 0; }
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  50% { opacity: .9; transform: scale(1) rotate(90deg); }
}

/* ---------- Wave divider ---------- */
.wave { display: block; width: 100%; height: 70px; margin-bottom: -1px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed; top: 74px; right: 0; left: 0;
    background: #fff; flex-direction: column; gap: 0;
    padding: 10px 0; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px; }
  .nav-links a::after { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-content { padding: 60px 0; }
  .form-card { padding: 28px 22px; }
  section { padding: 64px 0; }
}
