/* ============================================================
   My-O-Staff Pty Ltd — styles
   Palette: deep navy + gold accent, light theme
   ============================================================ */
:root {
  --navy: #0e2a47;
  --navy-dark: #0a1f36;
  --gold: #c9a227;
  --gold-soft: #f3ead0;
  --ink: #22303f;
  --muted: #5b6b7c;
  --tint: #f6f8fb;
  --tint-gold: #fbf7ec;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 42, 71, 0.10);
  --shadow-lg: 0 20px 50px rgba(14, 42, 71, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img, iframe { max-width: 100%; }
.container { width: min(1120px, 92%); margin: 0 auto; }
.center { text-align: center; margin-top: 2.5rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.eyebrow.light { color: var(--gold); }
.accent { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none !important;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); box-shadow: 0 6px 18px rgba(201, 162, 39, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201, 162, 39, 0.45); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-icon { width: 1.1em; height: 1.1em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(14, 42, 71, 0.10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none !important; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 10px;
}
.header-logo { height: 38px; width: auto; display: block; }
.brand-text { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.1; display: flex; flex-direction: column; }
.brand-sub { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 1.8rem; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 0.95rem; text-decoration: none !important; position: relative; }
.main-nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gold); transition: width 0.25s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--gold); color: var(--navy-dark) !important; padding: 0.55rem 1.3rem; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { box-shadow: 0 6px 16px rgba(201, 162, 39, 0.4); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); transition: transform 0.25s ease, opacity 0.25s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 110px;
  background: linear-gradient(160deg, var(--white) 55%, var(--gold-soft) 130%);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center; }
.hero .lead { font-size: 1.1rem; color: var(--muted); margin: 1.2rem 0 2rem; max-width: 34rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; }
.hero-wave svg { display: block; width: 100%; height: 60px; }

/* Placeholder images */
.img-placeholder {
  aspect-ratio: 4 / 3;
  border: 2px dashed #b9c6d4;
  border-radius: var(--radius);
  background: var(--tint);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.8rem; text-align: center; color: var(--muted);
  padding: 1.5rem;
}
.img-placeholder.green { background: var(--tint-gold); border-color: #d8c58a; }
.img-placeholder svg { width: 44px; height: 44px; color: var(--gold); }
.img-placeholder p { font-size: 0.9rem; }
.hero-media .img-placeholder { box-shadow: var(--shadow); background: var(--white); }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--tint); padding: 3rem 0 3.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-number { display: block; font-family: 'Sora', sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--navy); }
.stat-label { font-size: 0.9rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .section-intro { color: #c4d2e0; }
.section-navy a:not(.btn) { color: var(--gold); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-intro { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

/* ---------- Cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.cards-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-top-color: var(--gold); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gold-soft);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; color: var(--navy); }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.94rem; color: var(--muted); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy h2 { margin-bottom: 1rem; }
.split-copy p { color: var(--muted); margin-bottom: 1.4rem; }
.split-copy .btn { margin-top: 0.4rem; }

/* ---------- Video / embed frames ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-dark);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; display: block; }
.wellness-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; display: block; margin-top: 1.2rem; }
.full-video-link { margin-top: 0.9rem; font-size: 0.92rem; color: var(--muted); }
.full-video-link a { font-weight: 600; }
.fb-embed { display: flex; justify-content: center; }
.fb-embed iframe { border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 100%; }

/* ---------- Case study slideshow ---------- */
.slideshow {
  background: var(--tint-gold);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}
.slides { position: relative; min-height: 380px; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}
.slide.active { opacity: 1; visibility: visible; transform: translateX(0); position: relative; }
.slide-body h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.slide-body > p { color: var(--muted); max-width: 40rem; }
.results-list { list-style: none; }
.results-list li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed #e0d5b2;
  font-size: 1.05rem;
  color: var(--ink);
}
.results-list li span { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--navy); font-size: 1.25rem; }
.slide-note { margin-top: 1.2rem; font-size: 0.92rem; color: var(--muted); font-style: italic; }

/* Chat bubbles */
.chat { display: flex; flex-direction: column; gap: 0.6rem; max-width: 30rem; }
.bubble {
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.92rem;
  max-width: 85%;
  animation: bubbleIn 0.4s ease both;
}
.bubble.bot { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.bubble.user { align-self: flex-start; background: #e9edf2; color: var(--ink); border-bottom-left-radius: 4px; }
.chat .bubble:nth-child(2) { animation-delay: 0.08s; }
.chat .bubble:nth-child(3) { animation-delay: 0.16s; }
.chat .bubble:nth-child(4) { animation-delay: 0.24s; }
.chat .bubble:nth-child(5) { animation-delay: 0.32s; }
.chat .bubble:nth-child(6) { animation-delay: 0.40s; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Big stats slide */
.big-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.big-stat {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--navy);
  display: flex; flex-direction: column; line-height: 1;
}
.big-stat small { font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-top: 0.4rem; }

/* Slide controls */
.slide-controls { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 2rem; }
.slide-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.slide-btn:hover { background: var(--navy); color: var(--white); }
.slide-dots { display: flex; gap: 0.5rem; }
.slide-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: #cfd8e2;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.slide-dots button.active { background: var(--gold); transform: scale(1.3); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.contact-panel h3 { margin-bottom: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c6d4; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
.footer-logo { height: 46px; width: auto; display: block; }
.footer-col p { font-size: 0.92rem; margin-top: 1rem; max-width: 22rem; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 1rem; }
.footer-col a { display: block; color: #b9c6d4; font-size: 0.92rem; margin-bottom: 0.55rem; text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.3rem 0; }
.footer-bottom p { font-size: 0.85rem; text-align: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.cards-grid .card:nth-child(2) { transition-delay: 0.1s; }
.cards-grid .card:nth-child(3) { transition-delay: 0.2s; }
.cards-grid .card:nth-child(4) { transition-delay: 0.1s; }
.cards-grid .card:nth-child(5) { transition-delay: 0.2s; }
.cards-grid .card:nth-child(6) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse .split-copy { order: 0; }
  .cards-grid, .cards-grid.three { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .main-nav {
    position: fixed;
    top: 72px; right: 0;
    flex-direction: column;
    background: var(--white);
    width: min(300px, 85vw);
    height: calc(100vh - 72px);
    padding: 2rem;
    gap: 1.4rem;
    box-shadow: -8px 0 30px rgba(14, 42, 71, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    align-items: flex-start;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .cards-grid, .cards-grid.three { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .hero { padding: 120px 0 90px; }
  .slideshow { padding: 1.4rem; }
  .slides { min-height: 460px; }
  .big-stats { gap: 1.4rem; }
}

.hero-img, .env-img { width: 100%; display: block; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
