/* ============================================================
   Haen — IT Consultancy & Interim Management
   Design system deduced from the brand marks:
     navy  #1b2333   orange #e87d18
     cream #f5f1ea   taupe  #9a927f
   ============================================================ */

:root {
  --navy: #1b2333;
  --navy-700: #232d42;
  --navy-600: #2c3852;
  --orange: #e87d18;
  --orange-600: #d06d10;
  --cream: #f5f1ea;
  --cream-200: #ece5d9;
  --taupe: #9a927f;
  --ink: #1b2333;
  --muted: #6b7280;
  --white: #ffffff;

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(27, 35, 51, 0.06), 0 4px 16px rgba(27, 35, 51, 0.06);
  --shadow-md: 0 8px 30px rgba(27, 35, 51, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-serif: Georgia, 'Times New Roman', 'Iowan Old Style', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

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

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

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(232, 125, 24, 0.32);
}
.btn--primary:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232, 125, 24, 0.42);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(27, 35, 51, 0.25);
}
.btn--ghost:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* ---------------- Nav ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    padding 0.35s var(--ease);
  padding: 18px 0;
}
.nav.is-scrolled {
  background: rgba(245, 241, 234, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 rgba(27, 35, 51, 0.08);
  padding: 10px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav__logo {
  display: block;
  height: 115px;
  width: auto;
  transition: height 0.4s var(--ease), transform 0.4s var(--ease);
}
.nav.is-scrolled .nav__logo {
  height: 57px;
}
.nav__brand:hover .nav__logo {
  transform: translateY(-1px);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 500;
  font-size: 0.96rem;
}
.nav__links a {
  color: var(--navy);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.28s var(--ease);
}
.nav__links a:hover::after,
.nav__links a.is-active::after {
  width: 100%;
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 80% 10%, #fbf8f2 0%, var(--cream) 45%, var(--cream-200) 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__watermark {
  position: absolute;
  right: -6%;
  top: 50%;
  width: min(58vw, 680px);
  transform: translateY(-50%);
  opacity: 0.06;
  filter: saturate(0.6);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 820px;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange-600);
  margin: 0 0 22px;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.hero__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #3b4457;
  max-width: 620px;
  margin: 0 0 38px;
}
.hero__lead strong {
  color: var(--navy);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(27, 35, 51, 0.3);
  border-radius: 14px;
  z-index: 2;
}
.hero__scroll-dot {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--orange);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------------- Section scaffolding ---------------- */
.section {
  padding: clamp(72px, 11vw, 130px) 0;
  position: relative;
}
.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--orange-600);
  margin-bottom: 16px;
}
.kicker--light {
  color: var(--orange);
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: var(--navy);
  letter-spacing: -0.02em;
}
.section__title--light {
  color: var(--cream);
}
.section__head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section__sub {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 16px;
}
.section--dark .section__sub {
  color: rgba(245, 241, 234, 0.72);
}
.muted {
  color: var(--muted);
}

/* ---------------- Dark section shell ---------------- */
.section--dark {
  background: var(--navy);
  color: var(--cream);
}
.section--dark .section__title {
  color: var(--cream);
}

/* ---------------- About ---------------- */
.section--about {
  background: linear-gradient(180deg, var(--cream) 0%, #fbf8f2 100%);
}
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about__intro .section__title {
  margin-top: 6px;
}
.about__body p {
  margin: 0 0 22px;
  font-size: 1.12rem;
  color: #384154;
}
.about__body p:last-child {
  margin-bottom: 0;
}
.about__body strong {
  color: var(--navy);
}

/* ---------------- Interim (light section) ---------------- */
.section--interim {
  background: linear-gradient(180deg, #fbf8f2 0%, var(--cream) 100%);
}

/* ---------------- Offers grid ---------------- */
.offers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.offer {
  position: relative;
  padding: 26px 28px 26px 30px;
  border-radius: var(--radius);
  background: var(--navy-700);
  border: 1px solid rgba(245, 241, 234, 0.08);
  border-left: 3px solid var(--orange);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    background 0.4s var(--ease);
}
.offer:hover {
  transform: translateY(-5px);
  background: var(--navy-600);
}
.offer h3 {
  font-size: 1.14rem;
  color: var(--cream);
  margin-bottom: 8px;
}
.offer p {
  margin: 0;
  color: rgba(245, 241, 234, 0.72);
  font-size: 0.99rem;
  line-height: 1.55;
}
/* Light variant for the Interim (cream) section */
.offer--light {
  background: var(--white);
  border-color: var(--cream-200);
  border-left-color: var(--orange);
  box-shadow: var(--shadow-sm);
}
.offer--light:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.offer--light h3 {
  color: var(--navy);
}
.offer--light p {
  color: #4a5266;
}

/* ---------------- Contact ---------------- */
.section--contact {
  padding-bottom: clamp(80px, 12vw, 140px);
}
.contact__inner {
  max-width: 720px;
}
.contact__details {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.contact__details li {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px solid rgba(245, 241, 234, 0.12);
}
.contact__details li:last-child {
  border-bottom: 0;
}
.contact__label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--taupe);
  margin-bottom: 5px;
}
.contact__details a,
.contact__details span:not(.contact__label) {
  font-size: 1.18rem;
  color: var(--cream);
  transition: color 0.2s var(--ease);
  width: fit-content;
}
.contact__details a:hover {
  color: var(--orange);
}

/* ---------------- Footer ---------------- */
.footer {
  background: #141a27;
  color: var(--cream);
  padding: 44px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
}
.footer__logo {
  display: block;
  height: 90px;
  width: auto;
}
.footer__meta {
  color: rgba(245, 241, 234, 0.5);
  font-size: 0.86rem;
  margin: 14px 0 0;
}

/* ============================================================
   Reveal-on-scroll animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .offers {
    grid-template-columns: repeat(2, 1fr);
  }
  .about__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .nav__links {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    flex-direction: column;
    gap: 8px;
    background: rgba(245, 241, 234, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 92px 24px 28px;
    transform: translateY(-105%);
    transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow-md);
    align-items: stretch;
  }
  .nav.is-open .nav__links {
    transform: translateY(0);
  }
  .nav__links a {
    padding: 12px 4px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(27, 35, 51, 0.08);
  }
  .nav__toggle {
    display: flex;
    z-index: 101;
  }
  .offers {
    grid-template-columns: 1fr;
  }
  .hero__inner {
    padding-top: 130px;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
  .hero__scroll-dot {
    animation: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
