/* ================================================
   HUMAN MADE — style.css
   ================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@700,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,500;1,7..72,400&display=swap');

/* ── Tokens ── */
:root {
  --bg:           oklch(97% 0.007 80);
  --surface:      oklch(94% 0.009 80);
  --ink:          oklch(18% 0.012 80);
  --muted:        oklch(48% 0.010 80);
  --accent:       oklch(57% 0.21  28);
  --accent-dark:  oklch(38% 0.18  28);
  --border:       oklch(88% 0.009 80);
  --white:        oklch(98% 0.012 80);

  --font-display: 'Cabinet Grotesk', system-ui, sans-serif;
  --font-body:    'Literata', Georgia, serif;

  --text-display: clamp(5rem, 13vw, 12rem);
  --text-h1:      clamp(2.75rem, 5.5vw, 5.5rem);
  --text-h2:      clamp(1.5rem, 2.5vw, 2.25rem);
  --text-lead:    clamp(1.05rem, 1.7vw, 1.3rem);
  --text-body:    1rem;
  --text-sm:      0.875rem;
  --text-label:   0.72rem;

  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  8rem;
  --sp-2xl: 12rem;

  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-fast: 200ms;
  --dur-mid:  400ms;
  --dur-slow: 600ms;

  --max-w: 1280px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  text-wrap: balance;
}

/* ── Utilities ── */
.label {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.accent { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.75rem;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-out-quart),
    color           var(--dur-fast) var(--ease-out-quart),
    border-color    var(--dur-fast) var(--ease-out-quart);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-white:hover,
.btn--outline-white:focus-visible {
  background: var(--white);
  color: var(--accent-dark);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity   var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo);
  transition-delay: var(--delay, 0ms);
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   NAV — fixed, hidden until past hero
   ================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1.25rem;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
  opacity: 0;
  transform: translateY(-100%);
  transition:
    opacity   300ms ease,
    transform 300ms var(--ease-out-quart);
  pointer-events: none;
}
.nav--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__heart {
  color: var(--accent);
  font-size: 0.85em;
  vertical-align: middle;
}

/* ================================================
   HERO
   ================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: var(--sp-lg) var(--pad-x);
  max-width: var(--max-w);
  margin-inline: auto;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-display);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin-top: auto;
  margin-bottom: var(--sp-lg);
  display: flex;
  flex-direction: column;
}

.hero__line2 {
  padding-left: 0;
}

.hero__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  max-width: 500px;
}

.hero__heart {
  color: var(--accent);
  width: 3rem;
  display: block;
}
.hero__heart svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero__body-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.hero__sub {
  font-size: var(--text-lead);
  color: var(--muted);
  line-height: 1.55;
}

@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: 3fr 2fr;
    min-height: 100svh;
    align-items: end;
    gap: var(--sp-lg);
    padding-block: var(--sp-xl);
  }
  .hero__headline {
    align-self: end;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: var(--sp-sm);
  }
  .hero__body {
    align-self: stretch;
    justify-content: space-between;
    max-width: none;
    padding-bottom: var(--sp-sm);
  }
  .hero__heart {
    width: 3.5rem;
  }
}

/* ================================================
   WHY
   ================================================ */
.why {
  background: var(--surface);
  padding-block: clamp(var(--sp-lg), 10vw, var(--sp-xl));
  padding-inline: var(--pad-x);
}
.why__inner {
  max-width: var(--max-w);
  margin-inline: auto;
}
.why__header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.why__header .label {
  display: block;
  margin-bottom: var(--sp-sm);
}
.why__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-h1);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.why__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
}
@media (min-width: 768px) {
  .why__grid { grid-template-columns: 1fr 1fr; }
}
.why__copy p {
  font-size: var(--text-lead);
  line-height: 1.65;
  color: var(--muted);
}
.why__copy p + p { margin-top: var(--sp-md); }
.why__lead {
  color: var(--ink) !important;
  font-weight: 500;
}
.why__visual {
  display: flex;
  align-items: center;
}
.why__quote {
  border-top: 2px solid var(--accent);
  padding-top: var(--sp-md);
}
.why__quote blockquote {
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}
.why__quote figcaption { font-size: var(--text-sm); }

/* ================================================
   SERVICES
   ================================================ */
.services {
  padding-block: clamp(var(--sp-lg), 10vw, var(--sp-xl));
  padding-inline: var(--pad-x);
}
.services__inner {
  max-width: var(--max-w);
  margin-inline: auto;
}
.services__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-h1);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.service {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--sp-md);
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}
.service:last-child { border-bottom: 1px solid var(--border); }
.service__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h2);
  color: var(--border);
  line-height: 1.1;
  padding-top: 0.05em;
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.service:hover .service__number { color: var(--accent); }

@media (max-width: 767px) {
  .service__number { color: var(--accent); }
}
.service__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-h2);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--sp-sm);
}
.service__desc {
  font-size: var(--text-lead);
  color: var(--muted);
  line-height: 1.65;
  max-width: 58ch;
}

/* ================================================
   TEAM SLIDER
   ================================================ */
.team {
  background: var(--surface);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(var(--sp-lg), 10vw, var(--sp-xl));
  padding-inline: var(--pad-x);
}
.team__inner { max-width: var(--max-w); margin-inline: auto; }
.team__header { margin-bottom: clamp(3rem, 6vw, 5rem); }
.team__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-h1);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-md);
}
.team__intro {
  font-size: var(--text-lead);
  color: var(--muted);
  max-width: 50ch;
}

/* Slider layout */
.team__slider {
  max-width: 580px;
  margin-inline: auto;
}
.slider-row {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.5rem);
}
.team-slides-wrapper {
  flex: 1;
  position: relative;
}

/* Cross-fade between slides */
.team-slide {
  width: 100%;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out-expo);
  pointer-events: none;
}
.team-slide:not(.slide--active) {
  position: absolute;
  top: 0;
  left: 0;
}
.team-slide.slide--active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* Arrow buttons */
.slider-btn {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition:
    background var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease;
}
.slider-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.slider-btn svg {
  display: block;
  flex-shrink: 0;
}

/* Dot indicators */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: var(--sp-md);
}
.slider-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition:
    background var(--dur-fast) ease,
    transform  var(--dur-fast) ease;
}
.slider-dot.dot--active {
  background: var(--accent);
  transform: scale(1.4);
}

/* Member card (shared by slider and fallback) */
.member { display: flex; flex-direction: column; }

.member__photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--border);
  border-radius: 2px;
}
.member__photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(18% 0.012 80 / 0.85) 0%,
    oklch(18% 0.012 80 / 0.0)  55%
  );
  z-index: 2;
  pointer-events: none;
}

.member__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
  transition: transform var(--dur-mid) var(--ease-out-quart);
}
.team-slide.slide--active .member:hover .member__photo { transform: scale(1.03); }

/* Name overlaid at photo bottom */
.member__name {
  position: absolute;
  bottom: 0.65rem;
  left: 0.8rem;
  right: 0.8rem;
  z-index: 4;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  line-height: 0.92;
  color: var(--white);
  user-select: none;
  pointer-events: none;
}

/* Fallback when no photo file */
.member__photo-wrap.member__photo--missing {
  background: repeating-linear-gradient(
    45deg,
    var(--surface),
    var(--surface)  14px,
    var(--border)   14px,
    var(--border)   28px
  );
}
.member__photo-wrap.member__photo--missing::after { opacity: 0; }
.member__photo-wrap.member__photo--missing .member__name { color: var(--accent); }

.member__info {
  padding-top: 0.875rem;
  padding-inline: 0.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.member__quote-text {
  font-size: var(--text-lead);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.member--placeholder .member__quote-text {
  font-style: normal;
  color: var(--muted);
}

/* ================================================
   TRUSTED BY
   ================================================ */
.trusted {
  background: var(--surface);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  padding-inline: var(--pad-x);
}
.trusted__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.trusted__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.trusted__logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
}
.trusted__inner > .label { font-size: 1rem; }
.trusted__logo-img {
  height: 64px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: saturate(0) opacity(0.55);
  transition: filter var(--dur-mid) var(--ease-out-quart);
  display: block;
}
.trusted__logo-item:hover .trusted__logo-img { filter: saturate(1) opacity(0.9); }
.trusted__logo-text {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo--missing .trusted__logo-img { display: none; }
.logo--missing .trusted__logo-text { display: block; }
@media (max-width: 767px) {
  .trusted__logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    width: 100%;
  }
  .trusted__logo-img {
    height: 48px;
    max-width: 140px;
  }
}

/* ================================================
   OUR WORK
   ================================================ */
.work {
  overflow: hidden;
  position: relative;
  height: clamp(360px, 48vh, 500px);
  padding-top: clamp(2rem, 3vw, 3rem);
  padding-inline: var(--pad-x);
}
.work__header {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin-inline: auto;
}
.work__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-h1);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-sm);
}
.work__sub {
  font-size: var(--text-lead);
  color: var(--muted);
  max-width: 24ch;
  line-height: 1.5;
}
.work__gallery {
  position: absolute;
  top: 20%;
  right: -8%;
  width: clamp(560px, 58vw, 820px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  transform: rotate(10deg);
  transform-origin: top right;
  z-index: 1;
}
.work-card {
  background: var(--white);
  padding: 0.5rem 0.5rem 1.5rem;
  box-shadow:
    0 4px 20px oklch(18% 0.012 80 / 0.12),
    0 0 0 1px oklch(85% 0.009 80);
  transition: box-shadow var(--dur-mid) var(--ease-out-quart);
}
.work-card:hover {
  box-shadow: 0 14px 40px oklch(18% 0.012 80 / 0.2), 0 0 0 1px oklch(85% 0.009 80);
}
.work-card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--border);
}
.work-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-card[data-missing] .work-card__img-wrap {
  background: repeating-linear-gradient(
    45deg,
    var(--bg),
    var(--bg) 10px,
    var(--border) 10px,
    var(--border) 20px
  );
}
@media (max-width: 767px) {
  .work {
    height: clamp(480px, 80vw, 640px);
    padding-bottom: 0;
  }
  .work__gallery {
    top: 42%;
    right: auto;
    left: -8%;
    width: 116%;
    grid-template-columns: repeat(3, 1fr);
    transform: rotate(10deg);
    transform-origin: top left;
  }
}

/* ================================================
   CTA
   ================================================ */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  padding-block: clamp(var(--sp-xl), 14vw, var(--sp-2xl));
  padding-inline: var(--pad-x);
  text-align: center;
}
.cta__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}
/* Large decorative heart, bottom-right */
.cta__bg-heart {
  position: absolute;
  bottom: -8%;
  right: -4%;
  width: clamp(18rem, 44vw, 34rem);
  color: oklch(51% 0.21 28);
  z-index: 1;
  user-select: none;
  pointer-events: none;
}
.cta__bg-heart svg {
  width: 100%;
  height: auto;
  display: block;
}
.cta__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-h1);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--white);
}
.cta__sub {
  font-size: var(--text-lead);
  color: oklch(90% 0.008 28);
  max-width: 46ch;
  line-height: 1.55;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--ink);
  padding-block: var(--sp-lg);
  padding-inline: var(--pad-x);
}
.footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid oklch(28% 0.008 80);
  margin-bottom: var(--sp-md);
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--white);
}
.footer__links {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.footer__links a,
.footer__link-btn {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: oklch(62% 0.007 80);
  transition: color var(--dur-fast) ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-weight: 400;
}
.footer__links a:hover,
.footer__link-btn:hover { color: var(--white); }
.footer__legal {
  font-size: var(--text-sm);
  color: oklch(45% 0.006 80);
  max-width: var(--max-w);
  margin-inline: auto;
}

/* ================================================
   BOOKING MODAL
   ================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: oklch(18% 0.012 80 / 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: var(--sp-md);
}
.modal-overlay.modal--open { display: flex; }

.modal-box {
  position: relative;
  width: 100%;
  max-width: 840px;
  height: min(88svh, 740px);
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px oklch(18% 0.012 80 / 0.4);
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: var(--surface);
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) ease;
}
.modal-close:hover { background: var(--border); }
.modal-calendly-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}
.modal-calendly-wrap .calendly-inline-widget {
  height: 100% !important;
  min-width: 0 !important;
}
.modal-fallback {
  padding: 0.75rem var(--sp-md);
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--muted);
  flex-shrink: 0;
}
.modal-fallback a {
  color: var(--accent);
  text-decoration: underline;
}

/* ================================================
   REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  html { scroll-behavior: auto; }
}
