/* ===== Flying Monkey – Stylesheet =====
   Dark, ocean-toned one-pager: deep navy base, turquoise accents, sand for
   emphasis. "Liquid glass" surfaces: translucent, blurred, softly lit from
   the top edge, floating on long diffuse shadows. */

:root {
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --deep: #050e18;        /* page bottom – almost black navy */
  --navy: #071624;        /* page base                        */
  --navy-2: #0b2238;      /* raised sections                  */
  --ocean: #0f3a5a;       /* mid blue for gradients           */
  --teal: #1b9aaa;        /* deep turquoise                   */
  --turquoise: #2ec4b6;   /* bright accent                    */
  --foam: #8fe3d9;        /* light turquoise for hover/text   */
  --sand: #e8d5b5;        /* sand – headlines, primary button */
  --sand-2: #c9b48f;      /* dimmer sand – labels             */
  --ink: #e6eef2;         /* body text                        */
  --muted: #9fb3bf;       /* secondary text                   */

  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-strong: rgba(255, 255, 255, 0.09);
  --glass-line: rgba(255, 255, 255, 0.12);
  --glass-hi: rgba(255, 255, 255, 0.22);
  --shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7), 0 12px 24px -16px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 16px 32px -20px rgba(0, 0, 0, 0.65);
  --glow: 0 0 0 1px rgba(46, 196, 182, 0.25), 0 20px 50px -20px rgba(46, 196, 182, 0.35);

  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

/* ===== Typography ===== */
h1, h2, h3 {
  margin: 0 0 0.5em;
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.015em;
}
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 400; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
p { margin: 0 0 1.1em; }
a { color: var(--foam); text-underline-offset: 3px; text-decoration-color: rgba(143, 227, 217, 0.5); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.measure { max-width: 720px; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.12rem; color: var(--muted); font-weight: 300; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
[id] { scroll-margin-top: 84px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--turquoise);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow.center::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.center > .eyebrow, .eyebrow.center { justify-content: center; }
.eyebrow.small { margin-top: 28px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  padding: 8px 14px; background: var(--sand); color: var(--navy); border-radius: 8px;
}
.skip:focus { left: 8px; }

/* ===== Glass ===== */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.8rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 12px 24px; }
.btn--sand {
  background: var(--sand);
  color: var(--navy);
  box-shadow: 0 14px 30px -14px rgba(232, 213, 181, 0.55);
}
.btn--sand:hover { background: #f3e6cd; color: var(--navy); box-shadow: 0 18px 36px -14px rgba(232, 213, 181, 0.7); }
.btn--glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), var(--shadow-sm);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 48px);
  transition: padding 0.4s var(--ease);
}
/* The scrolled glass lives on ::before, not on the header itself:
   backdrop-filter on the header would turn it into the containing block
   for the fixed mobile nav. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 22, 36, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.site-header.scrolled::before { opacity: 1; }
.site-header.scrolled { padding-top: 12px; padding-bottom: 12px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s var(--ease);
}
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent 45%),
    linear-gradient(135deg, var(--turquoise), var(--ocean));
  box-shadow: 0 8px 20px -8px rgba(46, 196, 182, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.4s var(--ease);
}
.site-header.scrolled .brand__mark { transform: scale(0.85); }
.brand__name {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.brand__name span { font-weight: 600; color: var(--sand); }
.site-header.scrolled .brand { text-shadow: none; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  opacity: 0.92;
  transition: opacity 0.2s, color 0.2s;
}
.nav a:hover { opacity: 1; color: var(--foam); }
.site-header.scrolled .nav a { text-shadow: none; }
.nav .lang {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: var(--sand);
}
.nav .lang:hover { background: rgba(255, 255, 255, 0.1); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 61; }
.nav-toggle span {
  display: block; width: 26px; height: 2px; margin: 5px 0;
  background: #fff; border-radius: 2px; transition: 0.3s;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 140px clamp(24px, 7vw, 120px) 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 40%; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 22, 36, 0.55) 0%, rgba(7, 22, 36, 0.15) 35%, rgba(7, 22, 36, 0.35) 65%, var(--navy) 100%),
    radial-gradient(ellipse at center 55%, rgba(5, 14, 24, 0.35), transparent 60%);
}
.hero__inner { max-width: 640px; text-align: left; }
.hero__eyebrow {
  margin: 0 0 28px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--foam);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.hero__title {
  margin: 0;
  font-size: clamp(3rem, 10vw, 6.6rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.hero__sub {
  margin: 26px 0 0;
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.hero__lead {
  max-width: 560px;
  margin: 28px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%;
  width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 14px;
  opacity: 0.75;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
  background: #fff; border-radius: 2px;
  animation: scroll-hint 1.8s infinite var(--ease);
}
@keyframes scroll-hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ===== Sections ===== */
.section { position: relative; padding: clamp(80px, 11vw, 130px) 0; }
#about {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(27, 154, 170, 0.14), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy-2));
}
.section--practices {
  background:
    radial-gradient(900px 600px at 85% 10%, rgba(46, 196, 182, 0.1), transparent 60%),
    linear-gradient(180deg, var(--navy-2), var(--navy) 50%, var(--navy-2));
}
.section--contact {
  background:
    linear-gradient(180deg, rgba(7, 22, 36, 0.6), rgba(5, 14, 24, 0.92)),
    url("images/deep.webp") center/cover no-repeat;
  background-attachment: fixed;
}
@media (hover: none) { .section--contact { background-attachment: scroll; } }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) 3fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.glass-frame {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: rotate(-1.5deg);
}
.glass-frame img { border-radius: calc(var(--radius) - 8px); aspect-ratio: 3 / 4; object-fit: cover; }
.about__text h2 { margin-bottom: 0.7em; }
.mission {
  margin: 1.6em 0;
  padding: 22px 26px;
  border-left: 2px solid var(--turquoise);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(90deg, rgba(46, 196, 182, 0.1), transparent);
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--sand);
  line-height: 1.65;
}
.pillars__title { display: flex; margin-top: clamp(56px, 8vw, 90px); }
.pillars {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.pillars li {
  padding: 22px 20px;
  border-radius: var(--radius-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
}
.pillars li:hover { transform: translateY(-4px); background: var(--glass-bg-strong); box-shadow: var(--glow), var(--shadow); }
.pillars strong { display: block; margin-bottom: 6px; color: var(--sand); font-weight: 600; letter-spacing: 0.04em; }
.pillars span { font-size: 0.92rem; color: var(--muted); line-height: 1.55; }
.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: 48px;
  padding: 24px 28px;
}
.status p { margin: 0; flex: 1 1 420px; color: var(--ink); }

/* ===== Practices ===== */
.practices { display: grid; gap: clamp(48px, 7vw, 96px); margin-top: clamp(40px, 6vw, 72px); }
.practice {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 0;
}
.practice__media {
  grid-column: 1 / span 1;
  grid-row: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}
.practice__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.practice:hover .practice__media img { transform: scale(1.04); }
.practice__card {
  grid-column: 2 / span 1;
  grid-row: 1;
  margin-left: -72px;
  padding: clamp(26px, 3.4vw, 44px);
  z-index: 1;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.practice:hover .practice__card { transform: translateY(-4px); }
.practice--flip .practice__media { grid-column: 2; }
.practice--flip .practice__card { grid-column: 1; margin-left: 0; margin-right: -72px; }
.practice__card h3 { margin-bottom: 0.6em; }
.practice__card p { color: var(--ink); font-size: 0.98rem; }
.tagline {
  margin: 0 0 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--turquoise);
}
.facts {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.facts li {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(232, 213, 181, 0.3);
  background: rgba(232, 213, 181, 0.07);
  color: var(--sand);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em;
}

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__mail { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.contact__mail a { color: var(--sand); font-weight: 500; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink); text-decoration: none;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-hi);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.socials a:hover { transform: translateY(-3px); background: var(--glass-bg-strong); color: #fff; }
.socials svg { width: 20px; height: 20px; color: var(--turquoise); }

.contact__form { padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 16px; }
.contact__form label { display: grid; gap: 6px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand-2); }
.contact__form input, .contact__form textarea {
  width: 100%;
  padding: 13px 16px;
  font: 400 1rem/1.5 var(--sans);
  color: #fff;
  background: rgba(5, 14, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.contact__form input:focus, .contact__form textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.22);
}
.contact__form textarea { resize: vertical; min-height: 140px; }
.contact__form .btn { justify-self: start; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 0; font-size: 0.8rem; color: var(--muted); }
.form-status { margin: 0; font-size: 0.95rem; display: none; }
.form-status.ok { display: block; color: var(--foam); }
.form-status.err { display: block; color: #f2a6a0; }

/* ===== Footer ===== */
.site-footer {
  padding: 56px 0 40px;
  text-align: center;
  background: var(--deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer .brand--footer { justify-content: center; margin-bottom: 10px; text-shadow: none; }
.site-footer p { margin: 0 0 8px; }
.footer-links a { color: var(--muted); text-decoration: none; margin: 0 4px; }
.footer-links a:hover { color: var(--foam); }

/* ===== Legal pages ===== */
.site-header--solid::before { opacity: 1; }
.legal-back { color: var(--sand); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.legal-main { padding: 140px 0 80px; max-width: 760px; margin: 0 auto; }
.legal-main h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 400; margin-bottom: 1em; }
.legal-main h2 { font-size: 1.25rem; font-weight: 500; margin: 2em 0 0.5em; }
.legal-main h3 { font-size: 1.05rem; margin: 1.4em 0 0.4em; }
.legal-main address { font-style: normal; margin-bottom: 1.2em; }
.legal-main .updated { margin-top: 3em; color: var(--muted); font-size: 0.85rem; }
.legal-main ul { padding-left: 1.2em; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillars li:nth-child(4) { grid-column: 1 / span 1; }
  .practice__card { margin-left: -40px; }
  .practice--flip .practice__card { margin-right: -40px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 90px 36px 40px;
    background: rgba(7, 22, 36, 0.82);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.8);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 60;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1rem; text-shadow: none; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 380px; margin: 0 auto; }
  .practice, .practice--flip { grid-template-columns: 1fr; }
  .practice__media, .practice--flip .practice__media { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 10; }
  .practice__card, .practice--flip .practice__card {
    grid-column: 1; grid-row: 2;
    margin: -48px 16px 0;
  }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars li:nth-child(5) { grid-column: 1 / -1; }
  .practice__card, .practice--flip .practice__card { margin: -32px 8px 0; }
  .hero { padding: 120px 20px 100px; justify-content: center; text-align: center; }
  .hero__inner { text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__cta .btn { width: 100%; }
  .hero__bg img { object-position: 50% 40%; }
  .hero__sub { letter-spacing: 0.14em; }
  .status { padding: 22px; }
}
