/* ============================================================
   Johann Strobl Consulting — styles.css
   Minimal, premium, Apple-inspired design system
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #0f1419;
  --graphite: #3a3a44;
  --muted: #5f5f6b;
  --faint: #86868f;
  --line: rgba(13, 13, 18, 0.08);
  --accent: #40bbbf;
  --accent-ink: #0a6a6e;
  --accent-soft: rgba(64, 187, 191, 0.1);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1140px;
  --nav-h: 64px;
  --shadow-card: 0 1px 2px rgba(13, 13, 18, 0.04), 0 12px 32px rgba(13, 13, 18, 0.06);
  --shadow-lift: 0 2px 4px rgba(13, 13, 18, 0.05), 0 20px 48px rgba(13, 13, 18, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

::selection {
  background: rgba(64, 187, 191, 0.24);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Typography helpers ---------- */

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

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 22ch;
}

.section-intro {
  margin-top: 1.35rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand span {
  font-weight: 400;
  color: var(--faint);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--graphite);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch a,
.lang-switch span {
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  color: var(--faint);
  transition: color 0.2s ease;
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch .is-active {
  background: var(--ink);
  color: #fff;
}

.nav-cta {
  display: none;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  opacity: 0.85;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle span {
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.5rem 1.75rem;
  display: grid;
  gap: 0.25rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  padding: 0.8rem 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-block;
  }

  .nav-toggle,
  .mobile-menu {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3.5rem) 0 5.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52rem 32rem at 80% 16%, rgba(64, 187, 191, 0.1), transparent 60%),
    radial-gradient(46rem 30rem at 12% 88%, rgba(122, 132, 138, 0.1), transparent 60%),
    var(--bg);
}

.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--ink);
  opacity: 0.55;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-photo {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  max-width: 420px;
  margin-inline: auto;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(3rem, 6vw, 5.5rem);
  }

  .hero-photo {
    justify-self: end;
    margin-inline: 0;
    max-width: 460px;
  }
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.15rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.06;
  max-width: 16ch;
}

.hero h1 .accent {
  background: linear-gradient(100deg, #0a6a6e, #40bbbf 55%, #8ba3a6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  margin: 1.6rem 0 0;
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.55;
}

.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--faint);
  font-size: 1.4rem;
  line-height: 1;
  animation: drift 2.4s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(13, 13, 18, 0.18);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-outline-light:hover {
  border-color: #fff;
  transform: translateY(-1px);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(5rem, 11vw, 8.5rem) 0;
  scroll-margin-top: var(--nav-h);
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Positioning ---------- */

.statement {
  font-size: clamp(1.35rem, 2.9vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.32;
  max-width: 30ch;
  color: var(--ink);
}

.statement .dim {
  color: var(--faint);
}

.tiles {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  gap: 1.1rem;
}

.tile {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent-ink);
  margin-bottom: 1.35rem;
}

.tile h3 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.55rem;
}

.tile p {
  font-size: 0.98rem;
  color: var(--muted);
}

@media (min-width: 760px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Business areas ---------- */

.areas {
  display: grid;
  gap: 1.2rem;
}

.area-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.area-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.area-index {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.08em;
}

.area-focus {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-ink);
  text-align: right;
}

.area-card h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.area-card p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.area-card--featured {
  grid-column: 1 / -1;
}

@media (min-width: 860px) {
  .area-card--featured .area-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .area-card--featured .area-body p {
    margin-bottom: 0;
  }
}

.area-link {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-ink);
  align-self: flex-start;
  transition: color 0.2s ease;
}

.area-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.chip-list li {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--graphite);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
}

.area-note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--faint);
}

@media (min-width: 860px) {
  .areas {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Approach (4 steps) ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.1rem;
}

.step {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.step-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
  margin-bottom: 1.2rem;
}

.step h3 {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.97rem;
  color: var(--muted);
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- About / Why ---------- */

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-photo figcaption {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.about-text > p {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: var(--graphite);
  max-width: 56ch;
}

.stats {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.3rem;
}

.stat-value {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.stat-value .plus {
  color: var(--accent);
}

.stat-label {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: clamp(3rem, 6vw, 5.5rem);
  }
}

/* ---------- Fit / audiences ---------- */

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.fit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.4rem;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.fit-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

@media (min-width: 860px) {
  .fit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Contact ---------- */

.contact {
  background: var(--ink);
  color: #fff;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(44rem 26rem at 82% 0%, rgba(64, 187, 191, 0.18), transparent 60%),
    radial-gradient(36rem 24rem at 8% 100%, rgba(255, 255, 255, 0.05), transparent 60%);
  pointer-events: none;
}

.contact .container {
  position: relative;
}

.contact .eyebrow {
  color: #7fd4d7;
}

.contact h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 24ch;
}

.contact-text {
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(255, 255, 255, 0.68);
  max-width: 58ch;
}

.contact-ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.contact-meta {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.contact-meta .meta-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.35rem;
}

.contact-meta a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: border-color 0.2s ease;
}

.contact-meta a:hover {
  border-bottom-color: #fff;
}

@media (min-width: 760px) {
  .contact-meta {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Footer ---------- */

.footer {
  padding: 2.5rem 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #fff;
}

/* ---------- Legal pages ---------- */

.legal-main {
  padding: calc(var(--nav-h) + 3.5rem) 0 5.5rem;
  min-height: 70svh;
}

.legal-main .container {
  width: min(760px, 100% - 3rem);
}

.nav-cta--always {
  display: inline-block;
}

.legal-main h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.legal-lead {
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.legal-main h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.7rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.legal-main p {
  color: var(--graphite);
  margin-bottom: 0.5rem;
  max-width: 62ch;
}

.legal-main a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-main a:hover {
  color: var(--ink);
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scroll {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
