/* HAVEN — style.css */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.5vw, 3rem);
  --text-3xl: clamp(2.75rem, 1.4rem + 5vw, 5rem);
  --text-hero: clamp(3rem, 1rem + 7vw, 7rem);
  --text-marquee: clamp(3.5rem, 2rem + 9vw, 8.75rem);

  /* Spacing */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Colors */
  --color-bg: #F4F4F4;
  --color-dark: #0D0D0D;
  --color-text: #0D0D0D;
  --color-text-muted: #6b6b6b;
  --color-accent: #5C2D91;
  --color-accent-hover: #4a2375;
  --color-white: #ffffff;
  --color-hairline: #d6d6d6;

  /* Fonts */
  --font-display: 'Clash Display', 'Arial Black', sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  --maxw: 1280px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

section {
  position: relative;
}

.section-pad {
  padding-block: clamp(4rem, 9vw, 9rem);
}

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-muted);
}

.section-label {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-8);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hairline {
  height: 1px;
  background: var(--color-dark);
  border: 0;
  width: 100%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.btn-ghost {
  border: 1.5px solid var(--color-dark);
  color: var(--color-dark);
  background: transparent;
  text-transform: uppercase;
}
.btn-ghost:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn-purple {
  background: var(--color-accent);
  color: var(--color-white);
  border: 1.5px solid var(--color-accent);
}
.btn-purple:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-purple-ghost {
  border: 1.5px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
}
.btn-purple-ghost:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

/* ---------- Floating pill nav ---------- */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 820px;
  background: var(--color-white);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.7rem 0.6rem 1.5rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--color-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--color-accent);
}

.nav-cta {
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: var(--space-16);
}
.hero-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  width: 100%;
}
.hero h1 {
  font-size: var(--text-hero);
  line-height: 0.98;
  margin: var(--space-6) 0;
}
.hero-body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 44ch;
  margin-bottom: var(--space-8);
}
.hero-carousel {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
  background: #ddd;
}
.hero-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-carousel img.active {
  opacity: 1;
}
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.3s, width 0.3s;
}
.carousel-dots span.active {
  background: #fff;
  width: 24px;
  border-radius: 999px;
}

/* ---------- Centered approach section ---------- */
.approach {
  text-align: center;
}
.approach .inner {
  max-width: 800px;
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.approach h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}
.approach p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-inline: auto;
  margin-bottom: var(--space-8);
  max-width: 60ch;
}

/* ---------- Trusted split ---------- */
.trusted-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.trusted-grid h2 {
  font-size: var(--text-3xl);
  line-height: 1;
}
.trusted-grid .sub {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-hairline);
  border: 1px solid var(--color-hairline);
}
.logo-grid div {
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.2rem, 2.5vw, 2rem) 0.75rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-dark);
  min-height: 90px;
}

/* ---------- Featured listings ---------- */
.work-pair {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.work-pair.left-large {
  grid-template-columns: 1.6fr 1fr;
}
.work-pair.right-large {
  grid-template-columns: 1fr 1.6fr;
}
.work-card {
  display: block;
  overflow: hidden;
}
.work-card .img-wrap {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 2;
}
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card:hover img {
  transform: scale(1.05);
}
.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--space-4);
  gap: 1rem;
  border-top: 1px solid var(--color-dark);
  padding-top: var(--space-3);
}
.work-meta .addr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}
.work-meta .type {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: right;
  white-space: nowrap;
}

/* ---------- Accordion ---------- */
.acc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: var(--space-12);
}
.acc-header h2 {
  font-size: var(--text-2xl);
  max-width: 14ch;
}
.acc-header a {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1.5px solid var(--color-dark);
  padding-bottom: 3px;
}
.accordion {
  border-top: 1px solid var(--color-dark);
}
.acc-item {
  border-bottom: 1px solid var(--color-dark);
}
.acc-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  text-align: left;
}
.acc-trigger .num {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  width: 3ch;
  flex-shrink: 0;
}
.acc-trigger .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  letter-spacing: -0.01em;
  flex: 1;
}
.acc-trigger .icon {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--color-accent);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.acc-item.open .acc-trigger .icon {
  transform: rotate(45deg);
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.acc-body p {
  padding: 0 0 var(--space-6) calc(3ch + 1rem);
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  max-width: 60ch;
}
.acc-item.open .acc-body {
  max-height: 200px;
}

/* ---------- Big text marquee ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--color-hairline);
  border-bottom: 1px solid var(--color-hairline);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: scroll-x 34s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-marquee);
  letter-spacing: -0.02em;
  padding-right: 0.4em;
  color: var(--color-dark);
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-3xl);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .label {
  margin-top: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* ---------- Dark section ---------- */
.dark {
  background: var(--color-dark);
  color: var(--color-white);
}
.dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.dark .eyebrow {
  color: #9a9a9a;
}
.dark h2 {
  font-size: var(--text-2xl);
  margin: var(--space-6) 0;
  color: #fff;
}
.dark p {
  color: #b8b8b8;
  font-size: var(--text-lg);
  max-width: 46ch;
  margin-bottom: var(--space-10);
}
/* laptop mockup */
.laptop {
  width: 100%;
  position: relative;
}
.laptop-screen {
  background: #1c1c1c;
  border: 2px solid #2e2e2e;
  border-radius: 16px 16px 0 0;
  padding: 14px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.laptop-ui {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.laptop-base {
  height: 14px;
  background: #2e2e2e;
  border-radius: 0 0 14px 14px;
  width: 112%;
  margin-left: -6%;
}
.ui-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.ui-bar i {
  width: 9px; height: 9px; border-radius: 50%; background: #e0e0e0; display: block;
}
.ui-listing {
  flex: 1;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ui-photo {
  background: linear-gradient(135deg, #5C2D91, #8b5cc4);
  flex: 1.4;
  position: relative;
}
.ui-photo .price {
  position: absolute;
  bottom: 10px; left: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}
.ui-info {
  flex: 1;
  padding: 12px 14px;
  color: #0D0D0D;
}
.ui-info .ui-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.ui-info .ui-sub {
  font-size: 0.75rem;
  color: #888;
  margin-top: 3px;
}
.ui-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.ui-tags span {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(92,45,145,0.1);
  color: #5C2D91;
  font-weight: 600;
}

/* ---------- Testimonials ---------- */
.t-head {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-12);
  max-width: 16ch;
}
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.t-card {
  background: #fff;
  border-radius: 16px;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.t-card img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-6);
}
.t-card .quote {
  font-size: var(--text-lg);
  line-height: 1.4;
  flex: 1;
}
.t-card .who {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
}
.t-card .who span {
  display: block;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ---------- Blog ---------- */
.blog-head {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-12);
  max-width: 16ch;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.blog-card .img-wrap {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  margin-bottom: var(--space-4);
}
.blog-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.blog-card:hover img { transform: scale(1.05); }
.blog-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.blog-card .excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.blog-card .cta {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

/* ---------- Team ---------- */
.team-head {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-12);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.team-card {
  text-align: center;
}
.team-card img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-4);
}
.team-card .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}
.team-card .role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- Client marquee (text) ---------- */
.client-marquee {
  text-align: center;
}
.client-marquee .label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
}
.cm-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll-x 28s linear infinite;
}
.cm-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.02em;
  padding-right: 1.5em;
  color: var(--color-dark);
}
.cm-track span.dot { color: var(--color-accent); }

/* ---------- Pre-footer CTA ---------- */
.prefooter {
  text-align: center;
}
.prefooter h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-10);
  max-width: 18ch;
  margin-inline: auto;
}
.prefooter .ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--color-hairline);
  padding-block: var(--space-20) var(--space-12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: var(--space-16);
}
.footer .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.03em;
}
.footer h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.footer ul { list-style: none; }
.footer li { margin-bottom: var(--space-2); font-size: var(--text-base); }
.footer a:hover { color: var(--color-accent); }
.footer-bottom {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-hairline);
  padding-top: var(--space-6);
}

/* ---------- Floating contact pill ---------- */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 1rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(92,45,145,0.4);
  transition: transform 0.25s, background 0.25s;
}
.float-cta:hover {
  transform: translateY(-3px);
  background: var(--color-accent-hover);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .trusted-grid,
  .dark-grid {
    grid-template-columns: 1fr;
  }
  .work-pair.left-large,
  .work-pair.right-large {
    grid-template-columns: 1fr;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .t-grid, .blog-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .nav {
    width: calc(100% - 24px);
    padding: 0.6rem 0.7rem 0.6rem 1.25rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-radius: 20px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 0.5rem 0; }
  .nav-burger { display: flex; }
  .hero { padding-top: 110px; }
}

@media (max-width: 560px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .float-cta { bottom: 16px; right: 16px; padding: 0.85rem 1.2rem; }
  .acc-trigger .num { display: none; }
  .acc-body p { padding-left: 0; }
}
