/* ============================================================
   Chameleon Brands — shared stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  /* Neutrals — warm-cool balanced */
  --ink:        #17181c;
  --ink-soft:   #51545d;
  --ink-faint:  #8b8e97;
  --paper:      #ffffff;
  --paper-2:    #f5f4f1;
  --paper-3:    #ecebe6;
  --line:       #e6e4de;

  /* Chameleon palette — pulled from the logo dots */
  --c-cyan:   #1ec8e6;
  --c-green:  #2ecd7d;
  --c-orange: #f0913f;
  --c-red:    #e22a26;
  --c-pink:   #ec1c63;
  --c-lime:   #8cc63f;

  /* Per-brand accents */
  --brandeur:   #d11b63;
  --hummingbird:#e6188e;
  --growsavvy:  #25b96f;
  --knowhow:    #14b6d6;
  --heights:    #ec8a2e;
  --hca:        #e2453a;
  --taylor:     #16a3a3;

  --accent: var(--ink);   /* overridden per page */

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 4px;

  --shadow-sm: 0 1px 2px rgba(20,22,28,.06), 0 2px 8px rgba(20,22,28,.05);
  --shadow-md: 0 8px 30px rgba(20,22,28,.10);
  --shadow-lg: 0 24px 60px rgba(20,22,28,.16);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding-inline: var(--gutter); }

/* ---- Chameleon dot motif --------------------------------- */
.dots { display: flex; gap: 10px; align-items: center; }
.dots span {
  width: 12px; height: 12px; border-radius: 50%;
  display: block;
}
.dots span:nth-child(1){ background: var(--c-cyan); }
.dots span:nth-child(2){ background: var(--c-green); }
.dots span:nth-child(3){ background: var(--c-orange); }
.dots span:nth-child(4){ background: var(--c-red); }
.dots span:nth-child(5){ background: var(--c-pink); }
.dots span:nth-child(6){ background: var(--c-lime); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; gap: 28px;
  min-height: 84px;
  padding-block: 12px;
}
.brand-logo { flex: 0 0 auto; }
.brand-logo img { height: 46px; width: auto; }

.nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a.current { color: var(--accent); }

.nav-meta { display: flex; align-items: center; gap: 6px; padding-left: 8px; margin-left: 4px; border-left: 1px solid var(--line); }
.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 999px;
  color: var(--ink-soft);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { color: var(--accent); background: var(--paper-2); }
.icon-btn svg { width: 19px; height: 19px; }

/* mobile nav toggle */
.nav-toggle { display: none; }

/* transparent header overlaying the homepage hero */
.site-header.over-hero {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.over-hero.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}

/* White nav over the hero image (desktop, inline nav, before scroll) */
@media (min-width: 1025px) {
  .site-header.over-hero:not(.scrolled) .nav a { color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
  .site-header.over-hero:not(.scrolled) .nav a:hover { color: #fff; background: rgba(255,255,255,.16); }
  .site-header.over-hero:not(.scrolled) .icon-btn { color: rgba(255,255,255,.95); filter: drop-shadow(0 1px 10px rgba(0,0,0,.4)); }
  .site-header.over-hero:not(.scrolled) .icon-btn:hover { color: #fff; background: rgba(255,255,255,.16); }
  .site-header.over-hero:not(.scrolled) .nav-meta { border-left-color: rgba(255,255,255,.3); }
}

/* ============================================================
   Hero — homepage (full-screen image, overlaid white text)
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1040px;
  background: var(--ink);
  overflow: hidden;
}
.hero-banner { position: absolute; inset: 0; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(8,9,12,.58) 0%, rgba(8,9,12,.28) 42%, rgba(8,9,12,0) 72%),
    linear-gradient(0deg, rgba(8,9,12,.42) 0%, rgba(8,9,12,0) 38%);
}
.hero-intro {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: flex-start; text-align: left;
  color: #fff;
  padding-bottom: clamp(72px, 14vh, 150px);
}
.hero h1 {
  font-size: clamp(44px, 7.2vw, 96px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
  max-width: 14ch;
}
.hero h1 .accent { color: #fff; }
.hero-sub {
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 400;
  color: rgba(255,255,255,.92);
  max-width: 42ch;
  margin: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 16px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }

/* ============================================================
   Sections
   ============================================================ */
section { position: relative; }
.section-pad { padding-block: clamp(64px, 9vw, 130px); }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }
.bg-soft { background: var(--paper-2); }
.bg-ink  { background: var(--ink); color: #fff; }
.bg-ink .lead, .bg-ink p { color: rgba(255,255,255,.74); }

.section-label {
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-faint);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.section-label::before {
  content: ""; width: 30px; height: 2px; background: var(--accent);
}

.lead {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22ch;
}

/* statement / prose blocks */
.prose-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.prose-grid p { font-size: 18px; color: var(--ink-soft); margin: 0; }
.prose-grid .num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 15px; color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: 14px; display: block;
}

/* ============================================================
   Portfolio grid (homepage)
   ============================================================ */
.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 22px);
}
.brand-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.brand-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.brand-card:hover img { transform: scale(1.04); }
.brand-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,14,0) 38%, rgba(10,11,14,.72) 100%);
  display: flex; align-items: flex-end;
  padding: 26px;
}
.brand-card .meta { color: #fff; }
.brand-card .meta .name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 22px; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px;
}
.brand-card .meta .desc {
  font-size: 14.5px; color: rgba(255,255,255,.8); margin-top: 4px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.brand-card:hover .meta .desc { opacity: 1; transform: none; }
.brand-card .tag {
  position: absolute; top: 18px; left: 18px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; padding: 6px 11px; border-radius: 999px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
}

/* ============================================================
   Brand page hero
   ============================================================ */
.page-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.page-hero .img-band {
  position: relative;
  aspect-ratio: 21 / 9;
  max-height: 560px;
  width: 100%;
}
.page-hero .img-band img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .img-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,14,0) 55%, rgba(10,11,14,.55) 100%);
}
.page-hero-head { padding: clamp(40px, 6vw, 76px) 0 0; }
.page-hero-head .eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.page-hero-head .eyebrow::before { content:""; width: 30px; height: 2px; background: var(--accent); }
.page-hero-head h1 {
  font-size: clamp(40px, 5.6vw, 76px); font-weight: 800;
  color: var(--ink); max-width: 16ch;
}
.page-hero-head .hero-kicker {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 26px);
  color: var(--accent);
  margin: 18px 0 0;
  max-width: 30ch;
}
.brand-mark-img { display: block; }

/* brand body */
.brand-body { display: grid; grid-template-columns: 1fr; gap: 0; }
.brand-statement {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.32;
  letter-spacing: -.015em;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: clamp(20px, 3vw, 36px);
  max-width: 30ch;
}
.brand-prose { max-width: 70ch; }
.brand-prose p { font-size: 19px; color: var(--ink-soft); margin-bottom: 1.4em; }
.split {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}

/* ============================================================
   Contact / newsletter
   ============================================================ */
.contact h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; margin-bottom: 14px; }
.contact .sub { color: var(--ink-soft); font-size: 19px; margin-bottom: 36px; max-width: 44ch; }
.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 620px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft);
}
.field input {
  font-family: inherit; font-size: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.newsletter .actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.form-note { font-size: 14px; color: var(--ink-faint); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: #fff; padding-block: clamp(56px, 7vw, 88px); }
.site-footer a { color: #fff; text-decoration: none; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  align-items: start;
}
.site-footer .f-brand .mark {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 26px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.site-footer .f-brand p { color: rgba(255,255,255,.6); max-width: 36ch; font-size: 16px; }
.f-col h4 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); font-family: 'Montserrat',sans-serif; font-weight: 700; margin-bottom: 16px; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-col a { color: rgba(255,255,255,.82); font-size: 16px; transition: color .2s var(--ease); }
.f-col a:hover { color: #fff; }
.f-col a.mailto:hover { color: var(--c-green); }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 64px); padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.5); font-size: 14px;
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; }
  .prose-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portfolio { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px; box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 17px; border-radius: 8px; }
  .nav-meta { border-left: none; padding-left: 0; margin-top: 8px; }
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--paper); cursor: pointer; color: var(--ink);
  }
  .nav-toggle svg { width: 22px; height: 22px; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .portfolio { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero .img-band { aspect-ratio: 16/10; }
}
