/* ==========================================================
   StarLink International – main stylesheet
   1. Theme  2. Base  3. Header/nav  4. Components
   5. Sections  6. Forms  7. Footer  8. Utilities/motion
   ========================================================== */

/* 1. THEME ------------------------------------------------ */
:root {
  --navy: #1C1B2E;
  --midnight: #16213F;
  --gold: #EBC07D;
  --bronze: #8A6E52;
  --cream: #FAF8F4;
  --white: #FFFFFF;
  --ink: #2b2a3d;
  --muted: #6a6878;
  --gradient: linear-gradient(135deg, #16213F 0%, #4A4250 35%, #EBC07D 60%, #4A3A35 80%, #1C1B2E 100%);
  --gold-gradient: linear-gradient(135deg, #EBC07D 0%, #c9995a 55%, #8A6E52 100%);
  --font-head: 'Outfit', 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(28, 27, 46, .08);
  --shadow-lg: 0 20px 50px rgba(28, 27, 46, .14);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 84px;
}

/* 2. BASE ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream);
  line-height: 1.65; overflow-x: hidden;
  animation: pageIn .7s var(--ease) both; /* smooth page fade-in */
}
body.menu-open { overflow: hidden; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(235, 192, 125, .7); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.container.narrow, .narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip-link:focus { top: 12px; }

.eyebrow { font-family: var(--font-head); font-size: .78rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--bronze); margin-bottom: 1rem; }
.gold-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 660px; }
.divider { display: block; width: 64px; height: 3px; border-radius: 3px; background: var(--gold-gradient); margin: 1rem auto 0; }

/* 3. HEADER / NAV ----------------------------------------- */
.glass {
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 18px rgba(28, 27, 46, .08);
}
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: height .4s var(--ease), background .4s, box-shadow .4s; }
.site-header.scrolled {
  height: 64px; background: rgba(250, 248, 244, .55);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(28, 27, 46, .06), 0 8px 30px rgba(28, 27, 46, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 46px; width: auto; transition: height .4s var(--ease); }
.site-header.scrolled .brand img { height: 36px; }

.nav { position: relative; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(28, 27, 46, .05); }
.nav-link { position: relative; z-index: 1; padding: 9px 20px; border-radius: 999px; text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--navy); transition: color .3s; }
.nav-link.active { color: var(--navy); font-weight: 600; }
/* Sliding liquid-glass pill */
.nav-indicator {
  position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); width: 0; border-radius: 999px; opacity: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(235, 192, 125, .32));
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9), inset 0 -6px 12px rgba(235, 192, 125, .25), 0 6px 16px rgba(138, 110, 82, .22);
  transition: transform .55s cubic-bezier(.34, 1.4, .5, 1), width .55s cubic-bezier(.34, 1.4, .5, 1), opacity .3s;
}

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; position: relative; padding: 0; color: var(--navy); background: rgba(28, 27, 46, .06); }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(250, 248, 244, .9);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: clamp(4px, 1.6vh, 10px); }
.mobile-menu a {
  font-family: var(--font-head); font-size: clamp(1.05rem, 4.2vw, 1.3rem); font-weight: 500; text-decoration: none; color: var(--navy);
  padding: clamp(7px, 1.4vh, 10px) clamp(22px, 7vw, 30px); border-radius: 999px; border: 1px solid transparent;
  opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.menu-open .mobile-menu a { opacity: 1; transform: none; transition-delay: calc(.08s * var(--i) + .12s); }
.mobile-menu a.active { background: rgba(255, 255, 255, .5); border-color: rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(138, 110, 82, .2); }

/* 4. COMPONENTS ------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 30px; border-radius: 999px; border: 1px solid transparent; font-family: var(--font-head); font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s, background .35s, color .35s; }
.btn:hover { transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 3px)); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(28, 27, 46, .25); }
.btn-primary:hover { background: var(--gold-gradient); color: var(--navy); box-shadow: 0 12px 28px rgba(235, 192, 125, .5); }
.btn-ghost { background: rgba(255, 255, 255, .5); border-color: rgba(28, 27, 46, .18); color: var(--navy); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-ghost:hover { border-color: var(--gold); box-shadow: 0 10px 26px rgba(235, 192, 125, .35); }
.btn-gold { background: var(--gold-gradient); color: var(--navy); box-shadow: 0 10px 26px rgba(235, 192, 125, .4); }
.btn-gold:hover { box-shadow: 0 14px 34px rgba(235, 192, 125, .65); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.center-row { justify-content: center; }
.center { text-align: center; margin-top: 3rem; }

.card-grid { display: grid; gap: 24px; }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid rgba(28, 27, 46, .06); box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.card:hover { transform: perspective(900px) translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); box-shadow: var(--shadow-lg); border-color: rgba(235, 192, 125, .8); }
.card.glow:hover { box-shadow: 0 0 0 1px var(--gold), 0 18px 46px rgba(235, 192, 125, .4); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card a { color: var(--navy); font-weight: 500; }
.card .break { word-break: break-all; }
.icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 20px; color: var(--navy); background: linear-gradient(135deg, rgba(235, 192, 125, .3), rgba(235, 192, 125, .08)); transition: transform .45s var(--ease), background .45s, color .45s; }
.icon svg { width: 28px; height: 28px; }
.card:hover .icon { transform: scale(1.08) rotate(-4deg); background: var(--gold-gradient); }
.card.big { padding: 44px 38px; }
.value-num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 8px; }

/* 5. SECTIONS --------------------------------------------- */
.section { padding: clamp(60px, 7.5vw, 100px) 0; }
.section.tight { padding-top: clamp(30px, 4vw, 50px); }
.section-alt { background: linear-gradient(180deg, #fff, var(--cream)); }
.section-head { text-align: center; margin-bottom: 3.2rem; }
.two-col { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.prose { font-size: 1.12rem; color: var(--ink); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }
.hero h1 { max-width: 860px; }
.hero-glow { position: absolute; width: 70vmax; height: 70vmax; right: -25vmax; top: -20vmax; border-radius: 50%; background: radial-gradient(circle, rgba(235, 192, 125, .5), rgba(235, 192, 125, 0) 65%); animation: glowDrift 14s ease-in-out infinite alternate; }
.float-star { position: absolute; z-index: 1; pointer-events: none; opacity: .08; animation: floaty 9s ease-in-out infinite; }
.float-star.s1 { width: 260px; right: 8%; top: 22%; }
.float-star.s2 { width: 120px; right: 34%; bottom: 10%; animation-delay: -3s; opacity: .06; }
.float-star.s3 { width: 80px; left: 4%; bottom: 14%; animation-delay: -6s; opacity: .07; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-26px) rotate(6deg); } }
@keyframes glowDrift { to { transform: translate(-6vmax, 6vmax) scale(1.1); } }

.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 70px) 0 40px; text-align: center; }
.page-hero .lead { margin-inline: auto; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero.notfound { min-height: 80vh; display: flex; align-items: center; }
.page-hero.notfound .container { position: relative; z-index: 2; }

/* Stats */
.stats { background: var(--navy); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(235, 192, 125, .18), transparent 55%); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: clamp(2.8rem, 6vw, 4rem); font-weight: 600; background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-label { margin-top: 10px; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .75); font-family: var(--font-head); }

/* CTA banner */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 7vw, 84px) 24px; border-radius: 32px; color: #fff; background: linear-gradient(135deg, var(--navy), var(--midnight)); box-shadow: var(--shadow-lg); }
.cta::before { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(235, 192, 125, .4), transparent 65%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .8); max-width: 520px; margin: 0 auto 1.8rem; }
.cta-star { position: absolute !important; width: 200px; left: 4%; bottom: -40px; opacity: .08; filter: invert(1); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold), var(--bronze), transparent); }
.timeline-item { position: relative; display: flex; gap: 24px; padding-bottom: 34px; }
.timeline-dot { flex: none; z-index: 1; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--font-head); font-weight: 600; box-shadow: 0 0 0 6px var(--cream), 0 8px 20px rgba(28, 27, 46, .25); }
.timeline-body { flex: 1; background: #fff; border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); border: 1px solid rgba(28, 27, 46, .06); }
.timeline-body p { margin: 0; color: var(--muted); }

/* 6. CONTACT FORM + MAP ----------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: start; }
.form { background: #fff; padding: clamp(26px, 4vw, 44px); border-radius: 28px; box-shadow: var(--shadow-lg); border: 1px solid rgba(28, 27, 46, .06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 6px; color: var(--navy); }
input, select, textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--ink); background: var(--cream);
  border: 1.5px solid rgba(28, 27, 46, .12); border-radius: 14px; transition: border-color .3s, box-shadow .3s, background .3s;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(235, 192, 125, .3); background: #fff; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.err { display: block; min-height: 0; color: #b03021; font-size: .8rem; margin-top: 4px; }
.form-status { margin-top: 18px; padding: 0 18px; border-radius: 14px; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(10px); transition: all .5s var(--ease); font-weight: 500; }
.form-status.show { max-height: 140px; opacity: 1; transform: none; padding: 14px 18px; }
.form-status.success { background: #e9f6ee; color: #1f6b3d; border: 1px solid #b9e2c8; }
.form-status.error { background: #fdeceb; color: #a02a1f; border: 1px solid #f2c0bb; }
.map { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); min-height: 420px; height: 100%; border: 1px solid rgba(28, 27, 46, .06); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* 7. FOOTER ----------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { width: 130px; background: #fff; padding: 10px 14px; border-radius: 16px; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; font-size: .95rem; }
.footer-title { color: var(--gold); font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-list a { text-decoration: none; transition: color .3s; word-break: break-word; }
.footer-list a:hover { color: var(--gold); }
.footer-bottom { margin-top: 50px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; text-align: center; }
.footer-bottom p { margin: 0; }

/* Scroll-to-top */
.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--gold); background: var(--navy); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.scroll-top.visible { opacity: .25; visibility: visible; transform: none; }
.scroll-top.visible:hover, .scroll-top.visible:focus-visible { opacity: 1; }

/* 8. SCROLL REVEAL + MOTION ------------------------------- */
/* Reveal uses keyframes (backwards fill) so hover transforms still work once the entrance has finished */
.js .reveal:not(.in-view) { opacity: 0; transform: translateY(34px) scale(.98); filter: blur(5px); }
.js .reveal.from-left:not(.in-view) { transform: translateX(-44px); }
.js .reveal.from-right:not(.in-view) { transform: translateX(44px); }
.js .reveal.in-view { animation: revealUp 1s var(--ease) var(--d, 0ms) backwards; }
.js .reveal.from-left.in-view { animation-name: revealLeft; }
.js .reveal.from-right.in-view { animation-name: revealRight; }
@keyframes revealUp { from { opacity: 0; transform: translateY(34px) scale(.98); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes revealLeft { from { opacity: 0; transform: translateX(-44px); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes revealRight { from { opacity: 0; transform: translateX(44px); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --header-h: 72px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 38px; }
  .btn-row .btn { flex: 1 1 100%; }
  .timeline-item { gap: 16px; }
  .timeline::before { left: 25px; }
  .scroll-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 9. SUSTAINABILITY PAGE ---------------------------------- */
.section-head .sub { color: var(--muted); max-width: 620px; margin: 0 auto; }
.split { display: grid; gap: 40px; align-items: center; }
.split h2 { margin-bottom: .6em; }
.split p { color: var(--ink); }
.split-media {
  aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(145deg, #fff, rgba(235, 192, 125, .28)); display: grid; place-items: center;
  border: 1px solid rgba(28, 27, 46, .06);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .ph-star { width: 42%; height: auto; object-fit: contain; opacity: .18; } /* placeholder until real photo */
.split-media .ph-logo { width: 62%; height: auto; max-height: 82%; object-fit: contain; }  /* full-colour stacked logo */
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.flip .split-media { order: -1; }
}

.directors .section-head { margin-bottom: 56px; }
.director { display: grid; gap: 28px; align-items: center; margin-bottom: 64px; }
.director:last-child { margin-bottom: 0; }
.director-photo {
  order: -1; width: min(100%, 360px); margin-inline: auto; aspect-ratio: 5 / 6; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #fff, rgba(235, 192, 125, .35)); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(28, 27, 46, .06); display: grid; place-items: end center;
}
.director-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.director-photo svg { width: 78%; fill: var(--navy); opacity: .22; }
.director-text h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 4px; }
.director-text .role { color: var(--bronze); font-weight: 600; margin-bottom: 16px; font-family: var(--font-head); letter-spacing: .04em; }
@media (min-width: 900px) {
  .director { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .director-photo { order: 0; width: 100%; max-width: 380px; margin: 0 0 0 auto; }   /* photo on the right */
  .director.photo-left { grid-template-columns: .85fr 1.15fr; }
  .director.photo-left .director-photo { order: -1; margin: 0 auto 0 0; }           /* photo on the left */
}
.btn-ghost-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .22); }
.cta .btn-row { justify-content: center; margin-top: 0; }

/* Avoid a double-padding gap when a plain section follows a tinted one (the tint fades into the page colour) */
.section-alt + .section:not(.section-alt) { padding-top: 0; }
.section-alt { background: linear-gradient(180deg, #fff, rgba(250, 248, 244, 0) 100%); }

/* 10. HOME: PROCESS STEPS --------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); counter-reset: s; }
.step {
  position: relative; text-align: center; padding: 28px 20px; background: #fff; border-radius: var(--radius);
  border: 1px solid rgba(28, 27, 46, .06); box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.step:hover { transform: perspective(900px) translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); box-shadow: var(--shadow-lg); border-color: rgba(235, 192, 125, .8); }
.step h3 { font-size: 1rem; margin: 0; }
.step-num { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--font-head); font-weight: 600; box-shadow: 0 0 0 5px rgba(235, 192, 125, .22); }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step:not(:last-child)::after { content: ''; position: absolute; top: 50px; left: calc(100% - 2px); width: 22px; height: 2px; background: var(--gold-gradient); }
}

/* 11. HOME: FAQ ACCORDION --------------------------------- */
.faq { display: grid; gap: 14px; }
.faq-item { background: #fff; border-radius: 18px; border: 1px solid rgba(28, 27, 46, .07); box-shadow: var(--shadow); transition: border-color .35s, box-shadow .35s; }
.faq-item[open] { border-color: rgba(235, 192, 125, .9); box-shadow: 0 12px 32px rgba(235, 192, 125, .22); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: var(--navy); border-radius: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(235, 192, 125, .25); transition: background .35s, transform .4s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--navy); border-radius: 2px; transition: transform .4s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--gold-gradient); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-body { padding: 0 24px 22px; animation: faqIn .45s var(--ease); }
.faq-body p { margin: 0; color: var(--muted); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 12. FLUID MOTION ---------------------------------------- */
/* Scroll progress bar (width driven by JS) */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: var(--gold-gradient); pointer-events: none; will-change: transform; }

/* Gold text: slow shimmer across the gradient */
.gold-text { background-size: 220% 100%; animation: shimmer 9s ease-in-out infinite alternate; }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Buttons: light sheen sweeping across on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: translateX(-120%); background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%); transition: transform .8s var(--ease); }
.btn:hover::after { transform: translateX(120%); }

/* Cards and steps: smooth tilt transition (angles set by JS) */
.card, .step { transform-style: preserve-3d; will-change: transform; }

/* Dividers draw in when their heading reveals */
.js .section-head .divider { transform: scaleX(0); transition: transform 1.1s var(--ease) .4s; }
.js .section-head.in-view .divider { transform: none; }

/* Timeline line fills as you scroll (--p set by JS) */
.timeline::before { transform-origin: top; transform: scaleY(var(--p, 1)); }

/* Logo / star placeholders float gently */
.split-media .ph-logo, .cta-star { animation: floatSoft 8s ease-in-out infinite; }
@keyframes floatSoft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* FAQ icon + stat numbers feel springier */
.stat-num { transition: transform .5s var(--ease); }
.stat:hover .stat-num { transform: scale(1.06); }

/* Page leave (navigating between pages) */
body.leaving { animation: pageOut .28s ease forwards; pointer-events: none; }
@keyframes pageOut { to { opacity: 0; transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal:not(.in-view) { opacity: 1; transform: none; filter: none; animation: none; }
  .js .section-head .divider { transform: none; }
  .gold-text, .split-media .ph-logo, .cta-star { animation: none; }
  .scroll-progress { display: none; }
}

/* 13. FOOTER ADMIN BUTTON --------------------------------- */
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.admin-link { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .7); font-size: .75rem; letter-spacing: .08em; text-decoration: none; transition: color .3s, border-color .3s, background .3s; }
.admin-link:hover, .admin-link:focus-visible { color: var(--gold); border-color: var(--gold); background: rgba(235, 192, 125, .1); }
@media (max-width: 600px) { .footer-bottom { justify-content: center; text-align: center; } }
@media (max-width: 1280px) and (min-width: 601px) { .footer-bottom { padding-right: 72px; } } /* keep clear of the floating scroll-to-top button */
