/* =========================================================
   Sydney Financial Services — shared styles
   Palette derived from the logo:
   navy #0C2F4D · gold #A18039 · white #FFFFFF
   ========================================================= */

:root {
  --navy:        #0C2F4D;
  --navy-deep:   #081F34;
  --navy-panel:  #0F3559;
  --line:        #21486a;   /* hairline on navy */
  --gold:        #A18039;
  --gold-bright: #C9A24B;
  --cream:       #F3EFE6;
  --cream-2:     #E7E0D2;
  --ink:         #12324e;    /* dark text on cream */
  --white:       #FFFFFF;
  --mute:        #9db2c6;    /* muted text on navy */

  --emblem: url("assets/emblem-white.png");
  --maxw: 1200px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  letter-spacing: .01em;
}

/* ---------- shared utility type ---------- */
.eyebrow {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 1.1rem;
}
.eyebrow.dark { color: var(--gold); }

.lead { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--mute); font-weight: 300; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

section { position: relative; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: 84px; position: relative;
}
.brand img { height: 58px; width: auto; display: block; }
.nav-links {
  display: flex; align-items: center; gap: 2.2rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mute); position: relative; padding: .4rem 0;
  transition: color .25s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold);
}

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: "Montserrat", sans-serif; font-weight: 400;
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .85rem 1.6rem; border-radius: 2px;
  border: 1px solid var(--gold);
  color: var(--navy); background: var(--gold);
  cursor: pointer; transition: all .28s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--white); }
.btn.ghost:hover { background: rgba(201,162,75,.12); color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--white); margin: 5px 0; transition: .3s var(--ease); }

/* ---------- hero ---------- */
/* tall wrapper gives scroll room for the pinned "engulf" moment */
.hero-pin { position: relative; height: 260vh; }
.hero {
  position: sticky; top: 0;
  height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  padding: 5rem var(--pad) 3rem;
  overflow: hidden;
}
.hero-copy { transition: opacity .2s linear; will-change: opacity; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(201,162,75,.10), transparent 70%),
    radial-gradient(80% 60% at 50% 120%, rgba(8,31,52,.9), transparent 60%);
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }

/* holographic medallion */
.holo {
  position: relative;
  width: clamp(150px, 21vw, 220px);
  aspect-ratio: 1;
  margin: 0 auto 0.8rem;
  perspective: 1100px;
  will-change: opacity;
}
.holo-spin {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
  filter: drop-shadow(0 26px 34px rgba(0,0,0,.55)) drop-shadow(0 4px 10px rgba(0,0,0,.4));
}
/* soft ground shadow that gives the coin some depth */
.holo::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -6%; height: 14%;
  background: radial-gradient(closest-side, rgba(0,0,0,.5), transparent 75%);
  filter: blur(6px); z-index: -1; opacity: .7;
}
/* iridescent emblem — this layer carries the colour */
.holo-foil {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg,
    #6fd0ff, #7fffd4, #ffe9a3, #c9a24b, #ff9ec7, #b98bff, #6fd0ff);
  -webkit-mask: var(--emblem) center / contain no-repeat;
          mask: var(--emblem) center / contain no-repeat;
  filter: saturate(1.25) brightness(1.05);
  animation: holoHue 9s linear infinite;
}
/* pearly lift toward white, keeps colour underneath */
.holo-base {
  position: absolute; inset: 0;
  background: var(--emblem) center / contain no-repeat;
  opacity: .32;
}
/* light-catching sheen sweeping across the foil */
.holo-sheen {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.85) 50%, transparent 58%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-mask: var(--emblem) center / contain no-repeat;
          mask: var(--emblem) center / contain no-repeat;
  mix-blend-mode: screen;
  animation: sheen 5.5s var(--ease) infinite;
}
.holo-ring {
  position: absolute; inset: 15%; border-radius: 50%;
  box-shadow: 0 0 50px 6px rgba(201,162,75,.10) inset, 0 0 34px rgba(127,215,255,.07);
}
@keyframes holoHue { to { filter: saturate(1.15) brightness(1.1) hue-rotate(360deg); } }
@keyframes sheen { 0% { background-position: 100% 0; } 55%, 100% { background-position: -100% 0; } }

.hero .eyebrow { margin-bottom: .7rem; }
.hero h1 {
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  margin-bottom: .7rem;
}
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero p { margin: 0 auto 1rem; max-width: 540px; font-size: clamp(.95rem, 1.5vw, 1.05rem); }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mute);
  display: flex; flex-direction: column; align-items: center; gap: .6rem; z-index: 2;
}
@media (max-height: 810px) { .scroll-hint { display: none; } }
.scroll-hint span { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: drop 2s ease-in-out infinite; }
@keyframes drop { 0%,100% { opacity: .3; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- generic section blocks ---------- */
.band { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.band.deep { background: var(--navy-deep); }
.band.cream { background: var(--cream); color: var(--ink); }
.band.cream .eyebrow { color: var(--gold); }
.band.cream h2, .band.cream h3 { color: var(--ink); }
.band.cream .lead, .band.cream p { color: #37546e; }

.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin-bottom: 1rem; }
.center { text-align: center; margin-inline: auto; }

.rule { width: 56px; height: 2px; background: var(--gold); margin: 1.5rem 0; }
.center .rule { margin-inline: auto; }

/* intro / statement */
.statement {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.3; font-weight: 400; max-width: 900px;
}
.statement b { color: var(--gold-bright); font-weight: 500; }

/* ---------- services grid ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 3rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--navy);
  padding: 2.4rem 2rem;
  transition: background .35s var(--ease), transform .35s var(--ease);
  position: relative;
}
.band.deep .card { background: var(--navy-deep); }
.card:hover { background: var(--navy-panel); }
.card .num {
  font-family: "Montserrat", sans-serif; font-weight: 300;
  font-size: .78rem; letter-spacing: .2em; color: var(--gold); margin-bottom: 1.4rem;
}
.card h3 { font-size: 1.7rem; margin-bottom: .6rem; }
.card p { color: var(--mute); font-size: .95rem; margin: 0; }
.card .arrow { margin-top: 1.4rem; color: var(--gold); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: .35s var(--ease); }
.card:hover .arrow { opacity: 1; transform: translateY(0); }

/* ---------- feature / split ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split .media {
  aspect-ratio: 1; border: 1px solid var(--line); position: relative; overflow: hidden;
  display: grid; place-items: center; background: var(--navy-deep);
}
.split .media img { width: 68%; opacity: .95; }
.split .media::after { content:""; position:absolute; inset:0; background: radial-gradient(60% 60% at 50% 40%, rgba(201,162,75,.12), transparent 70%); }

.stats { display: flex; gap: clamp(1.5rem,5vw,3.5rem); flex-wrap: wrap; margin-top: 2.5rem; }
.stat .n { font-family: "Cormorant Garamond", serif; font-size: 2.8rem; color: var(--gold-bright); line-height: 1; }
.stat .l { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-top: .5rem; }

/* list of ticks */
.ticks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.ticks li { display: flex; gap: .9rem; align-items: flex-start; font-size: .98rem; }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55rem; background: var(--gold); transform: rotate(45deg); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: clamp(4.5rem,9vw,7.5rem) 0; background: linear-gradient(180deg, var(--navy-deep), var(--navy)); }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.2rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,5rem); }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin-bottom: .55rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--navy-deep); border: 1px solid var(--line);
  color: var(--white); font-family: inherit; font-size: .98rem; font-weight: 300;
  padding: .9rem 1rem; border-radius: 2px; transition: border-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }

.contact-detail { display: grid; gap: 1.8rem; margin-top: 2.5rem; }
.contact-detail a { display: block; }
.contact-detail .k { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.contact-detail .v { font-family: "Cormorant Garamond", serif; font-size: 1.7rem; color: var(--white); }
.contact-detail a:hover .v { color: var(--gold-bright); }

.form-note { font-size: .8rem; color: var(--mute); margin-top: 1rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--line); padding: 4rem 0 2rem; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.foot-top img { height: 54px; margin-bottom: 1.2rem; }
.foot-col h4 { font-family: "Montserrat", sans-serif; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 1.2rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.foot-col a, .foot-col li { color: var(--mute); font-size: .92rem; }
.foot-col a:hover { color: var(--white); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--mute); }

/* reveal on scroll — content is visible by default; only hidden pre-reveal when JS runs */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .split .media { order: -1; max-width: 360px; }
}
@media (max-width: 640px) {
  .brand img { height: 44px; }
  .nav-links, .nav > .btn { display: none; }
  .nav-toggle { display: block; }
  .mobile-open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--navy-deep);
    border-top: 1px solid var(--line);
    box-shadow: 0 24px 44px rgba(0,0,0,.5);
    padding: .25rem var(--pad) 1.1rem; z-index: 70;
  }
  .mobile-open .nav-links li { width: 100%; }
  .mobile-open .nav-links a {
    display: block; width: 100%; padding: 1.15rem 0; font-size: .82rem;
    letter-spacing: .2em; color: var(--white);
    border-bottom: 1px solid rgba(33,72,106,.6);
  }
  .mobile-open .nav-links li:last-child a { border-bottom: none; }
  .mobile-open .nav-links a[aria-current="page"] { color: var(--gold-bright); }
  .mobile-open .nav-links a[aria-current="page"]::after { display: none; }
  .mobile-open .nav-links + .btn { display: inline-flex; margin-top: 1rem; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .hero { padding-top: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .holo-spin { transform: none !important; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-pin { height: auto !important; }
  .hero { position: static !important; height: auto !important; min-height: 100svh; }
  .hero-copy, .holo { opacity: 1 !important; }
}
