/* ═══════════════════════════════════════════════════════════════════
   JPHASE PTY LTD  –  Site Stylesheet
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

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

:root {
  --ink:       #0f0f0f;
  --ink-mid:   #2a2a2a;
  --ink-soft:  #5a5a5a;
  --paper:     #f7f6f3;
  --white:     #ffffff;
  --navy:      #0d1b2a;
  --navy-mid:  #132336;
  --teal:      #0a9396;
  --teal-dk:   #087f80;
  --teal-lt:   #94d2bd;
  --amber:     #e9c46a;
  --rule:      #e2e0db;
  --card:      #ffffff;
  --fs-xs:     0.75rem;
  --fs-sm:     0.875rem;
  --fs-base:   1rem;
  --fs-lg:     1.125rem;
  --fs-xl:     1.375rem;
  --fs-2xl:    1.75rem;
  --fs-3xl:    2.25rem;
  --r:         4px;
  --r-lg:      10px;
  --shadow:    0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --max:       1100px;
}

html  { scroll-behavior: smooth; }
body  {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img   { display: block; max-width: 100%; }
a     { color: inherit; }

/* ── Nav ────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 64px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 32px; width: auto; display: block; }
.footer .nav-logo img { height: 28px; opacity: .75; transition: opacity .2s; }
.footer .nav-logo:hover img { opacity: 1; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: var(--fs-sm); color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s; letter-spacing: .02em; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; border-bottom: 2px solid var(--teal); padding-bottom: 2px; }
.nav-cta {
  background: transparent; color: var(--teal);
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: var(--fs-sm);
  border: 1.5px solid var(--teal); padding: .5rem 1.2rem; border-radius: var(--r);
  cursor: pointer; text-decoration: none; letter-spacing: .04em;
  transition: background .2s, color .2s, box-shadow .2s;
}
.nav-cta:hover { background: var(--teal); color: #fff; box-shadow: 0 2px 12px rgba(10,147,150,.35); }

/* ── Section wrapper ────────────────────────────────────────────── */
.section { padding: 5rem 2.5rem; }
.section-inner { max-width: var(--max); margin: 0 auto; }

.section-label {
  font-family: 'Syne', sans-serif; font-size: var(--fs-xs); font-weight: 600;
  color: var(--teal); letter-spacing: .12em; text-transform: uppercase;
  display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem;
}
.section-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--teal); }
.section-label.lt { color: var(--teal-lt); }
.section-label.lt::before { background: var(--teal-lt); }

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 1rem;
}
.section-title em { font-style: normal; color: var(--teal); }
.section-intro { color: var(--ink-soft); font-weight: 300; font-size: var(--fs-lg); line-height: 1.7; max-width: 640px; }

/* ── Hero (shared) ──────────────────────────────────────────────── */
.hero {
  background: var(--navy); padding: 6rem 2.5rem 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(10,147,150,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(10,147,150,.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Syne', sans-serif; font-size: var(--fs-xs); font-weight: 600;
  color: var(--teal); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--teal); }
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800; line-height: 1.1; color: var(--white);
  letter-spacing: -.02em; margin-bottom: 1.5rem; max-width: 720px;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-sub { font-size: var(--fs-lg); color: rgba(255,255,255,.65); max-width: 560px; line-height: 1.7; font-weight: 300; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: var(--fs-sm);
  letter-spacing: .02em; padding: .8rem 1.75rem; border-radius: var(--r);
  text-decoration: none; transition: all .2s; border: none; cursor: pointer;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 2px 12px rgba(10,147,150,.3); }
.btn-primary:hover { background: var(--teal-dk); box-shadow: 0 4px 20px rgba(10,147,150,.4); transform: translateY(-1px); }
.btn-outline-light { background: transparent; border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.8); }
.btn-outline-dark { background: transparent; border: 1.5px solid var(--ink-mid); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }
.btn-white { background: #fff; color: var(--teal); }
.btn-white:hover { box-shadow: 0 6px 24px rgba(0,0,0,.18); transform: translateY(-2px); }

/* ── CTA band ───────────────────────────────────────────────────── */
.cta-band { background: var(--teal); padding: 4.5rem 2.5rem; text-align: center; }
.cta-band h2 { font-family: 'Syne', sans-serif; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.8); font-weight: 300; font-size: var(--fs-lg); margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: #fff; font-family: 'Syne', sans-serif; font-weight: 600; font-size: var(--fs-sm); padding: .8rem 1.75rem; border-radius: var(--r); text-decoration: none; transition: all .2s; letter-spacing: .02em; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.9); }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: var(--navy); padding: 3.5rem 2.5rem 2rem;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand p { font-size: var(--fs-sm); color: rgba(255,255,255,.4); font-weight: 300; line-height: 1.7; margin-top: .75rem; max-width: 280px; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: var(--fs-xs); font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { font-size: var(--fs-sm); color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-col ul li { font-size: var(--fs-sm); color: rgba(255,255,255,.45); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; flex-wrap: wrap; gap: .75rem; }
.footer-bottom p { font-size: var(--fs-xs); color: rgba(255,255,255,.25); }
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color .2s, background .2s; }
.footer-socials a:hover { border-color: var(--teal); background: rgba(10,147,150,.15); }
.footer-socials svg { width: 14px; height: 14px; fill: rgba(255,255,255,.5); }
.footer-socials a:hover svg { fill: var(--teal); }

/* ── Dark section ────────────────────────────────────────────────── */
.dark { background: var(--navy); }
.dark .section-title { color: var(--white); }
.dark .section-intro { color: rgba(255,255,255,.5); }

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-inner > * { animation: fadeUp .6s ease both; }
.hero-inner > *:nth-child(1) { animation-delay: .05s; }
.hero-inner > *:nth-child(2) { animation-delay: .15s; }
.hero-inner > *:nth-child(3) { animation-delay: .25s; }
.hero-inner > *:nth-child(4) { animation-delay: .35s; }
.hero-inner > *:nth-child(5) { animation-delay: .45s; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .section { padding: 3.5rem 1.25rem; }
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .cta-band { padding: 3rem 1.25rem; }
}
