/* ═══════════════════════════════════════════════════════════
   TideSites — Modern Business Site Demo Styles
   Dark warm + cream paper palette
   ═══════════════════════════════════════════════════════════ */

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

/* ── Tokens ── */
:root {
  --ink:        #1a1614;
  --ink-soft:   #2d2823;
  --paper:      #f5f1ea;
  --paper-soft: #ebe5db;
  --accent:     #c9a87c;
  --text:       #1a1614;
  --text-muted: rgba(26, 22, 20, 0.6);
  --text-light: rgba(245, 241, 234, 0.9);
  --text-light-muted: rgba(245, 241, 234, 0.55);

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  --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-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.25s ease;
}

/* ── Typography ── */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.eyebrow--light { color: var(--text-light-muted); }

.h2-split {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}
.h2-split--light { color: var(--paper); }

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.text--light { color: var(--text-light); }

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

.section--dark  { background: var(--ink); color: var(--paper); }
.section--cream { background: var(--paper); color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: #b8955f; transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--text); border: 1px solid rgba(26,22,20,0.2); }
.btn--secondary:hover { border-color: var(--text); }
.btn--outline-light { background: transparent; color: var(--paper); border: 1px solid rgba(245,241,234,0.25); }
.btn--outline-light:hover { border-color: var(--paper); }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero__card {
  position: relative;
  background: var(--ink);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  height: 92vh;
  min-height: 640px;
  max-height: 1000px;
}
.hero__image-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Nav pill */
.nav-pill {
  position: absolute;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(26,22,20,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 100px;
  z-index: 100;
  transition: var(--transition);
}
.nav-pill.is-scrolled {
  position: fixed;
  top: var(--space-sm);
  background: rgba(26,22,20,0.92);
}
.nav-pill__brand {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--paper);
  padding-right: var(--space-sm);
  border-right: 1px solid rgba(245,241,234,0.15);
  margin-right: var(--space-xs);
}
.nav-pill__links { display: flex; gap: var(--space-xs); }
.nav-pill__link {
  font-size: 0.8125rem;
  color: rgba(245,241,234,0.7);
  padding: 0.375rem 0.625rem;
  border-radius: 100px;
  transition: var(--transition-fast);
}
.nav-pill__link:hover { color: var(--paper); }
.nav-pill__cta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-left: var(--space-xs);
  transition: var(--transition-fast);
}
.nav-pill__cta:hover { background: #b8955f; }
.nav-pill__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  margin-left: var(--space-xs);
}
.nav-pill__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: var(--transition-fast);
}
.nav-pill__burger.is-open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.nav-pill__burger.is-open span:nth-child(2) { opacity: 0; }
.nav-pill__burger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(26,22,20,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.mobile-menu.is-open { opacity: 1; pointer-events: all; }
.mobile-menu__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-lg); }
.mobile-menu__link { font-family: var(--font-serif); font-size: 2rem; color: var(--paper); }
.mobile-menu__cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--accent);
  padding: 0.75rem 2rem;
  border-radius: 100px;
  margin-top: var(--space-md);
}

/* Hero gradient overlay */
.hero__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,22,20,0.88) 0%, rgba(26,22,20,0.5) 35%, rgba(26,22,20,0.15) 60%, transparent 80%);
  pointer-events: none;
  z-index: 3;
}

/* Hero copy */
.hero-copy {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 4rem 3.5rem;
  max-width: 900px;
  z-index: 4;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: var(--space-lg);
}
.hero-title .block { display: block; }
.hero-title .reveal-word { margin-right: 0.25em; }
.hero-divider {
  width: 60px;
  height: 1px;
  background: rgba(245,241,234,0.4);
  margin: 2rem 0;
}
.hero-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(245,241,234,0.85);
  max-width: 520px;
  margin-bottom: var(--space-lg);
}

/* Hero method */
.hero__method { background: var(--paper); padding: var(--space-3xl) 0; }
.hero__method-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}
.approach-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: 420px;
}
.hero__method-buttons { display: flex; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.sonar-pulse {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--paper-soft);
  color: var(--accent);
  animation: sonar 2s infinite;
}
@keyframes sonar {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,124,0.3); }
  50% { box-shadow: 0 0 0 12px rgba(201,168,124,0); }
}
.method-body { font-size: 1.0625rem; line-height: 1.8; color: var(--text-muted); margin-bottom: var(--space-xl); }
.method-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.method-card { border-radius: var(--radius-md); overflow: hidden; background: var(--paper-soft); }
.method-card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.method-card__label { padding: var(--space-sm); font-size: 0.8125rem; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════ */
.services { padding: var(--space-3xl) 0; }
.services__header { max-width: 600px; margin-bottom: var(--space-xl); }
.services__intro { font-size: 1.0625rem; line-height: 1.7; color: var(--text-light-muted); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }

.service-card__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/4.5;
}
.service-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover .service-card__img { transform: scale(1.05); }
.service-card__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(26,22,20,0.7) 0%, transparent 60%);
}
.service-card__index { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); margin-bottom: var(--space-xs); }
.service-card__title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; color: var(--paper); }
.service-card__reveal {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--space-md);
  background: rgba(26,22,20,0.92);
  backdrop-filter: blur(10px);
  transform: translateY(100%);
  transition: transform var(--transition);
}
.service-card:hover .service-card__reveal { transform: translateY(0); }
.service-card__desc { font-size: 0.875rem; line-height: 1.6; color: var(--text-light); margin-bottom: var(--space-sm); }
.service-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 100px;
  border: 1px solid rgba(245,241,234,0.2); color: var(--text-light-muted);
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact { padding: var(--space-3xl) 0; }
.contact__header { max-width: 600px; margin-bottom: var(--space-xl); }
.contact__intro { font-size: 1.0625rem; line-height: 1.7; color: var(--text-muted); max-width: 480px; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(26,22,20,0.1);
}
.contact__item { display: flex; flex-direction: column; }
.contact__index { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); display: block; margin-bottom: var(--space-xs); }
.contact__label { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 400; margin-bottom: var(--space-xs); }
.contact__value { font-size: 1.0625rem; font-weight: 500; color: var(--text); margin-bottom: 4px; line-height: 1.5; }
.contact__value a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact__value a:hover { color: var(--ink); }
.contact__sub { font-size: 0.875rem; color: var(--text-muted); }
.contact__disclaimer {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(26,22,20,0.1);
}
.contact__disclaimer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer { padding: var(--space-3xl) 0 var(--space-lg); }
.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(245,241,234,0.1);
  margin-bottom: var(--space-lg);
}
.footer__monogram {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(245,241,234,0.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.25rem; color: var(--paper);
  margin-bottom: var(--space-md);
}
.footer__brand-name { font-family: var(--font-serif); font-size: 1.25rem; color: var(--paper); display: block; }
.footer__brand-tagline { font-size: 0.8125rem; color: var(--text-light-muted); display: block; margin-bottom: var(--space-md); }
.footer__description { font-size: 0.875rem; line-height: 1.6; color: var(--text-light-muted); max-width: 280px; }
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.footer__col-title {
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-light-muted); margin-bottom: var(--space-md);
}
.footer__link { display: block; font-size: 0.875rem; color: rgba(245,241,234,0.7); padding: 4px 0; transition: var(--transition-fast); }
.footer__link:hover { color: var(--paper); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; }
.footer__copy { font-size: 0.8125rem; color: var(--text-light-muted); }
.footer__legal-link { font-size: 0.8125rem; color: var(--accent); }
.footer__legal-link:hover { color: var(--paper); }

/* ═══════════════════════════════════════════════════════════
   EASTER EGG — ChillOG rises from behind the couch
   ═══════════════════════════════════════════════════════════ */

/* Invisible hitbox over the book on the coffee table */
.easter-book-hitbox {
  position: absolute;
  left: 60%;
  top: 72%;
  width: 100px;
  height: 52px;
  z-index: 5;
  cursor: pointer;
}

.easter-couch-oggy {
  position: absolute;
  bottom: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  display: block;
  pointer-events: none;
  z-index: 1;
}

/* Duplicate of hero image clipped to show only from the couch line down.
   Sits above Oggy (z-index 2) so he's hidden until he clears the couch back. */
.easter-couch-mask {
  position: absolute;
  inset: 0;
  background-image: url('assets/modern/main.png');
  background-size: cover;
  background-position: center;
  clip-path: inset(43% 0 0 0);
  pointer-events: none;
  z-index: 2;
}

.easter-couch-oggy.is-rising {
  animation: oggy-couch-rise 3.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes oggy-couch-rise {
  0%   { bottom: -220px; }
  22%  { bottom: 55%; }
  38%  { bottom: 59%; }
  55%  { bottom: 56%; }
  78%  { bottom: 56%; }
  100% { bottom: -220px; }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-fade.is-revealed { opacity: 1; transform: translateY(0); }

.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-word.is-revealed,
.h2-split.is-revealed .reveal-word,
.hero-title.is-revealed .reveal-word,
.reveal-trigger.is-revealed .reveal-word { opacity: 1; transform: translateY(0); }

.h2-split .reveal-word,
.hero-title .reveal-word,
.reveal-trigger .reveal-word {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__method-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
  }
  .nav-pill__links { display: none; }
  .nav-pill__cta { display: none; }
  .nav-pill__burger { display: flex; }
  .hero__card { height: 100vh; height: 100svh; min-height: 560px; }
  .hero-copy { padding: 2rem 1.5rem 2.5rem; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .services__grid { grid-template-columns: 1fr; }
  .service-card__image-wrap { aspect-ratio: 3/2; }
  .contact__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .method-cards { grid-template-columns: 1fr; }
  .hero__method-buttons { flex-direction: column; gap: var(--space-xs); }
  .footer__nav { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .footer__bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
}

@media (max-width: 480px) {
  .h2-split { font-size: 1.875rem; }
  .footer__nav { grid-template-columns: 1fr; }
}
