/* ═══════════════════════════════════════════════════════════════
   CAYE CREATIVE — Design System & Styles
   Dark · Bold · Sharp · Modern
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* dark */
  --ink: #0B0E11;
  --carbon: #13171C;
  --slate: #222A31;
  --steel: #3A454E;
  /* light */
  --fog: #9AA7B0;
  --mist: #C9D3DA;
  --white: #F3F6F7;
  /* sunset accent */
  --gold: #FFB13C;
  --amber: #FF8A3D;
  --coral: #FF6A3C;
  --ember: #F0476A;
  --sunset: linear-gradient(90deg, var(--gold), var(--coral) 55%, var(--ember));
  /* spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  /* radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  /* transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
  /* layout */
  --nav-height: 72px;
  --max-width: 1200px;
}

/* ── Typography ────────────────────────────────────────────── */
body {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fog);
  background: var(--ink);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-stretch: expanded;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

p { max-width: 680px; }
.text-mist { color: var(--mist); }
.text-fog { color: var(--fog); }
.text-coral { color: var(--coral); }

.gradient-text {
  background: var(--sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--carbon { background: var(--carbon); }
.section--ink { background: var(--ink); }

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.nav.scrolled {
  background: rgba(11, 14, 17, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(34, 42, 49, 0.5);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-stretch: expanded;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__logo .logo-gradient {
  background: var(--sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--fog);
  transition: color var(--duration) var(--ease);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width var(--duration) var(--ease);
}

.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }
.nav__link.active { color: var(--white); }
.nav__link.active::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--coral);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
}

.nav__cta:hover {
  background: var(--amber);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 106, 60, 0.3);
}

.nav__cta svg { width: 18px; height: 18px; }

/* ── Mobile Nav ────────────────────────────────────────────── */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 14, 17, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-stretch: expanded;
  font-size: 1.8rem;
  color: var(--white);
  transition: color var(--duration) var(--ease);
}

.nav__mobile a:hover { color: var(--coral); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.btn--primary {
  padding: 0.9rem 2rem;
  background: var(--coral);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 106, 60, 0.3);
}

.btn--large {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
}

.btn--outline {
  padding: 0.9rem 2rem;
  border: 1.5px solid var(--steel);
  color: var(--mist);
}

.btn--outline:hover {
  border-color: var(--coral);
  color: var(--white);
  transform: translateY(-2px);
}

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* WhatsApp icon */
.whatsapp-icon {
  width: 22px;
  height: 22px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 106, 60, 0.1);
  border: 1px solid rgba(255, 106, 60, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--coral);
  margin-bottom: var(--space-md);
}

.hero__tag .dot {
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 { margin-bottom: var(--space-md); }

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--fog);
  max-width: 620px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Hero background decoration */
.hero__bg {
  position: absolute;
  top: 0;
  right: -10%;
  bottom: 0;
  width: 60%;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 106, 60, 0.08) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ── Gradient Line ─────────────────────────────────────────── */
.gradient-line {
  height: 3px;
  background: var(--sunset);
  border: none;
  border-radius: 2px;
}

.gradient-line--thin { height: 1.5px; }

/* ── Trust Bar ─────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.trust-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 106, 60, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  flex-shrink: 0;
}

.trust-item__icon svg { width: 20px; height: 20px; }

.trust-item__text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mist);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--carbon);
  border: 1px solid var(--slate);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--duration) var(--ease);
}

.card:hover {
  border-color: var(--steel);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 106, 60, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--coral);
}

.card__icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: var(--space-sm); }

.card p {
  font-size: 0.95rem;
  color: var(--fog);
  line-height: 1.6;
}

/* ── Result Cards (Work page) ──────────────────────────────── */
.result-card {
  background: var(--carbon);
  border: 1px solid var(--slate);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}

.result-card:hover {
  border-color: var(--steel);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.result-card__image {
  width: 100%;
  height: 220px;
  background: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  font-size: 0.85rem;
  font-weight: 500;
  overflow: hidden;
  position: relative;
}

.result-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--steel);
}

.result-card__placeholder svg { width: 32px; height: 32px; opacity: 0.5; }

.result-card__body {
  padding: var(--space-md) var(--space-lg);
}

.result-card__body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.result-card__body p {
  font-size: 0.9rem;
  color: var(--fog);
  line-height: 1.6;
}

.result-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--coral);
  transition: gap var(--duration) var(--ease);
}

.result-card__link:hover { gap: 0.7rem; }

.result-card__link svg { width: 14px; height: 14px; }

/* ── Client Result Highlights (Home) ───────────────────────── */
.result-highlight {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: baseline;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
}

.result-highlight + .result-highlight {
  border-top: 1px solid var(--slate);
}

.result-highlight__name {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-stretch: expanded;
  font-size: 0.95rem;
  color: var(--white);
  white-space: nowrap;
}

.result-highlight__text {
  font-size: 0.95rem;
  color: var(--fog);
  line-height: 1.6;
}

/* ── Module Grid (Jordy OS) ────────────────────────────────── */
.module-card {
  background: var(--carbon);
  border: 1px solid var(--slate);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sunset);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.module-card:hover {
  border-color: var(--steel);
  transform: translateY(-2px);
}

.module-card:hover::before { opacity: 1; }

.module-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 106, 60, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

.module-card h4 { margin-bottom: 0.4rem; }

.module-card p {
  font-size: 0.85rem;
  color: var(--fog);
}

/* ── Section Headers ───────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-header .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--space-sm);
}

.section-header p {
  margin-top: var(--space-sm);
  font-size: 1.05rem;
  color: var(--fog);
  max-width: 600px;
}

/* ── About Page ────────────────────────────────────────────── */
.about-story {
  display: grid;
  gap: var(--space-xl);
}

.about-beat {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.about-beat__number {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-stretch: expanded;
  font-size: 3rem;
  background: var(--sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
  min-width: 64px;
}

.about-beat p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--mist);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.team-card {
  background: var(--carbon);
  border: 1px solid var(--slate);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.team-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--slate);
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-stretch: expanded;
  font-size: 1.5rem;
  color: var(--white);
}

.team-card__avatar--gradient {
  background: var(--sunset);
}

.team-card h4 { margin-bottom: 0.25rem; }

.team-card p {
  font-size: 0.9rem;
  color: var(--fog);
  margin: 0 auto;
}

/* ── Contact Page ──────────────────────────────────────────── */
.contact-block {
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
}

.contact-block h1 { margin-bottom: var(--space-md); }

.contact-block > p {
  margin: 0 auto var(--space-xl);
  font-size: 1.1rem;
  color: var(--fog);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.contact-email {
  font-size: 1rem;
  color: var(--fog);
  transition: color var(--duration) var(--ease);
}

.contact-email:hover { color: var(--coral); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--carbon);
  border-top: 1px solid var(--slate);
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-stretch: expanded;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--fog);
}

.footer__links {
  display: flex;
  gap: var(--space-xl);
}

.footer__col h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--mist);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--fog);
  padding: 0.2rem 0;
  transition: color var(--duration) var(--ease);
}

.footer__col a:hover { color: var(--coral); }

.footer__bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--slate);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--steel);
}

/* Coastline SVG in footer */
.footer__coastline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  opacity: 0.03;
  pointer-events: none;
}

/* ── Animations ────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ── Separator ─────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.cta-section h2 { margin-bottom: var(--space-sm); }

.cta-section p {
  margin: 0 auto var(--space-lg);
  font-size: 1.05rem;
  color: var(--fog);
}

/* ── Closing Statement ─────────────────────────────────────── */
.closing-line {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--mist);
  font-style: italic;
  padding: var(--space-lg) 0;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
    --space-2xl: 4rem;
  }

  .nav__links { display: none; }
  .nav__cta.desktop-only { display: none; }
  .nav__toggle { display: flex; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .hero { min-height: auto; padding-top: calc(var(--nav-height) + var(--space-xl)); padding-bottom: var(--space-xl); }
  .hero__content { max-width: 100%; }

  .trust-bar { gap: var(--space-md); }

  .result-highlight {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .result-highlight__name { white-space: normal; }

  .about-beat {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .about-beat__number {
    font-size: 2rem;
    min-width: auto;
  }

  .footer__inner { flex-direction: column; }
  .footer__links { flex-direction: column; gap: var(--space-md); }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .contact-methods .btn { width: 100%; justify-content: center; }
}
