/* ==========================================================
   styles.css controls how the whole site LOOKS.
   The words live in index.html, contact.html and thanks.html.
   Brand rules come from brand-guide.html.
   ========================================================== */

/* ---- Brand settings: change a value here and it updates everywhere ---- */
:root {
  /* Light sections (the default): cream background, deeper accents for readable text */
  color-scheme: light;
  --night: #fff6e8;      /* page background */
  --plum: #ffffff;       /* cards and panels */
  --plum-line: #ead9c2;  /* borders */
  --night-rgb: 255, 246, 232; /* the page background as numbers, for see-through fades */
  --ink: #120d0f;        /* dark text on bright fills (buttons, stickers, badge) */
  --logo-filter: brightness(0); /* client logos shown dark */
  --accent-text: #7a2bd6; /* labels */
  --pop-text: #d4127a;    /* highlighted words */
  --gold-text: #8a5c00;   /* yellow-family text */
  --teal-text: #087873;   /* turquoise-family text, links, outline buttons */
  --accent-dim: brightness(.72); /* deepens bright outlines on cream */
  --hot-pink: #ff2e9a;
  --grape: #9b3cff;
  --lagoon: #1fd6d0;
  --sunshine: #ffd23f;
  --tangerine: #ff7a2f;
  --text: #1b1024;
  --text-soft: #4a3a58;
  --neon: linear-gradient(100deg, var(--lagoon), var(--grape) 30%, var(--hot-pink) 60%, var(--tangerine) 85%, var(--sunshine));

  --font-name: "Bungee Shade", "Bungee", Impact, sans-serif;
  --font-headline: "Bungee", Impact, "Arial Black", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --page-width: 1120px;
}

/* Dark sections: add class="band-dark" to any section to flip it to the night palette */
.band-dark {
  color-scheme: dark;
  --night: #120d0f; --plum: #211a1d; --plum-line: #3a2f33; --night-rgb: 18, 13, 15; /* licorice: warm black */
  --text: #fbf5f6; --text-soft: #d0c3c7;
  --logo-filter: brightness(0) invert(1);
  --accent-text: var(--lagoon); --pop-text: var(--sunshine); --gold-text: var(--sunshine); --teal-text: var(--lagoon);
  --accent-dim: none;
  background-color: var(--night); color: var(--text);
}

/* ---- Basics ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; } /* jump links land below the sticky menu */
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  /* Keep the footer at the bottom of the screen on short pages */
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--teal-text); }
.wrap { max-width: var(--page-width); margin: 0 auto; padding-inline: 20px; }

/* Text for screen readers only (hidden on screen) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hidden "Skip to content" link: appears only for keyboard users */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--sunshine); color: var(--ink); font-weight: 700;
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

h2 {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.1;
}
.label {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.lede { color: var(--text-soft); max-width: 60ch; }
.section { padding-block: 96px; }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; }

/* ---- Sparkle star (drawn in the HTML, colored here) ---- */
.star { width: 20px; height: 20px; fill: var(--sunshine); flex: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-headline); font-size: 1rem; letter-spacing: .03em;
  padding: 16px 30px; border-radius: 999px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--hot-pink); color: var(--ink); border: 2px solid var(--text); box-shadow: 4px 4px 0 var(--sunshine); }
.btn-secondary { background: var(--night); color: var(--teal-text); border: 2px solid var(--teal-text); box-shadow: 4px 4px 0 var(--teal-text); }
.btn:hover { transform: translate(-2px, -2px); }
.btn-primary:hover { box-shadow: 6px 6px 0 var(--sunshine); }
.btn-secondary:hover { box-shadow: 6px 6px 0 var(--teal-text); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--sunshine); outline-offset: 3px; }
.btn-small { padding: 10px 20px; font-size: .85rem; box-shadow: 3px 3px 0 var(--sunshine); }
.btn-small:hover { box-shadow: 4px 4px 0 var(--sunshine); }

/* ---- Top navigation ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(var(--night-rgb), .82);
  -webkit-backdrop-filter: blur(10px); /* older Safari */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--plum-line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.logo {
  font-family: var(--font-headline); font-size: 1.4rem; text-decoration: none;
  background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--text-soft); text-decoration: none; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* ---- Hero ---- */
.hero {
  padding-block: 80px 96px;
  /* 90s Memphis pattern, faded out behind the words so they stay easy to read */
  background:
    linear-gradient(90deg, var(--night) 0%, var(--night) 48%, rgba(var(--night-rgb), .55) 62%, rgba(var(--night-rgb), 0) 80%),
    url("assets/memphis.svg") 0 0 / 260px repeat;
  border-bottom: 1px solid var(--plum-line);
}
.hero-inner { display: grid; gap: 26px; justify-items: center; text-align: center; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy .hero-buttons { justify-content: flex-start; }
.hero-photo {
  justify-self: center; width: 100%; max-width: 380px; aspect-ratio: 1; position: relative;
  border-radius: 50%; overflow: hidden;
  border: 6px solid var(--sunshine); box-shadow: 12px 12px 0 var(--hot-pink);
}
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
/* Sticker-style label: tilted, solid color, hard shadow */
.badge {
  display: inline-block; padding: 8px 16px; border-radius: 8px;
  background: var(--sunshine); color: var(--ink); font-weight: 700; font-size: .95rem;
  transform: rotate(-2deg); box-shadow: 4px 4px 0 var(--hot-pink);
}
.name {
  font-family: var(--font-name); font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1;
  background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent;
  /* Soft dark halo so the rainbow letters stay readable over the pattern */
  filter: drop-shadow(0 0 10px rgba(var(--night-rgb), .85)) drop-shadow(0 2px 2px rgba(var(--night-rgb), .9));
}
.pitch { font-size: clamp(1.25rem, 3vw, 1.7rem); line-height: 1.35; max-width: 30ch; font-weight: 500; }
.pitch em { font-style: normal; color: var(--pop-text); }
.hero-sub { color: var(--text-soft); max-width: 52ch; }
.hero-copy .hero-sub { color: var(--text); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 6px; }

/* ---- Client logo band ---- */
.clients .wrap { display: grid; gap: 22px; justify-items: center; text-align: center; padding-block: 48px; }
.clients-title { color: var(--text-soft); font-size: 1.05rem; }
.clients-title strong { color: var(--gold-text); }
.client-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 56px;
}
.client-list img { width: auto; filter: var(--logo-filter); opacity: .8; transition: opacity .2s; }
.client-list img:hover { opacity: 1; }
/* Each logo has a different shape, so each gets its own height to look balanced */
.logo-7ai { height: 30px; }
.logo-speakeasy { height: 26px; }
.logo-sisense { height: 32px; }
.logo-sightcall { height: 28px; }

/* ---- Numbers strip ---- */
.stats { border-block: 1px solid var(--plum-line); background: var(--plum); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 36px; }
.stat { display: grid; gap: 4px; align-content: start; }
.stat strong { font-family: var(--font-headline); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; }
.stat:nth-child(1) strong { color: var(--hot-pink); }
.stat:nth-child(2) strong { color: var(--gold-text); }
.stat:nth-child(3) strong { color: var(--teal-text); }
.stat:nth-child(4) strong { color: var(--tangerine); }
.stat span { color: var(--text-soft); font-size: .95rem; line-height: 1.4; }

/* ---- The "we can't" section: crossed-out excuses, then the answer ---- */
.cant .wrap { display: grid; gap: 26px; justify-items: start; }
.cant-intro { color: var(--text-soft); font-size: 1.1rem; }
.cant-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cant-list li { font-size: clamp(1.2rem, 3vw, 1.7rem); line-height: 1.35; color: var(--text-soft); }
.cant-list s {
  text-decoration-line: line-through;
  text-decoration-color: var(--hot-pink);
  text-decoration-thickness: 2px;
  color: var(--text);
}
.you-can {
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 7vw, 4.4rem); line-height: 1.05;
  background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- What I do ---- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  border-radius: 12px; padding: 28px 24px; display: grid; gap: 12px; align-content: start;
  color: var(--ink); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--text);
}
.service:nth-child(1) { background: var(--hot-pink); transform: rotate(-1.5deg); }
.service:nth-child(2) { background: var(--lagoon); transform: rotate(1deg); }
.service:nth-child(3) { background: var(--sunshine); transform: rotate(-.5deg); }
.service:nth-child(4) { background: var(--tangerine); transform: rotate(1.5deg); }
.service h3 { font-family: var(--font-headline); font-weight: 400; font-size: 1.25rem; line-height: 1.2; }
.service p { font-size: 1rem; font-weight: 500; }

/* ---- Proof (sits on the zebra-stripe panel) ---- */
.proof { position: relative; isolation: isolate; overflow: hidden; }
.proof::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("assets/zebra-stripes.svg") center / cover no-repeat;
  opacity: .5;
}
.proof::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--night) 0%, rgba(var(--night-rgb), .55) 20%, rgba(var(--night-rgb), .55) 80%, var(--night) 100%);
}
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.proof-card {
  background: var(--plum); border: 1px solid var(--plum-line); border-radius: 8px; box-shadow: 5px 5px 0 var(--grape);
  padding: 30px 28px; display: grid; gap: 10px; align-content: start;
  /* Share row heights with the card next to it, so headline, title and paragraph line up */
  grid-row: span 3; grid-template-rows: subgrid;
}
.proof-card .metric {
  align-self: start;
  font-family: var(--font-headline); font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.1; text-wrap: balance;
  background: linear-gradient(100deg, var(--hot-pink), var(--grape)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.proof-card h3 { font-size: 1.2rem; }
.proof-card p { color: var(--text-soft); font-size: 1rem; }


/* ---- AI governance: t-shirt sizes ---- */
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.size {
  display: grid; gap: 16px; align-content: start;
  padding: 24px 22px; background: var(--plum); border: 1px solid var(--plum-line); border-radius: 8px; box-shadow: 4px 4px 0 var(--lagoon);
  /* Share row heights with neighbors so What / Example / Who line up */
  grid-row: span 4; grid-template-rows: subgrid;
}
.size-head { display: flex; align-items: center; gap: 14px; }
.size-head h3 { font-family: var(--font-headline); font-weight: 400; font-size: 1.25rem; }
.size b {
  font-family: var(--font-headline); font-weight: 400; font-size: 1.05rem; flex: none;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--lagoon); color: var(--lagoon); filter: var(--accent-dim);
}
.size:nth-child(2) b { border-color: var(--sunshine); color: var(--sunshine); }
.size:nth-child(3) b { border-color: var(--tangerine); color: var(--tangerine); }
.size:nth-child(4) b { border-color: var(--hot-pink); color: var(--hot-pink); }
.size:nth-child(2) { box-shadow: 4px 4px 0 var(--sunshine); }
.size:nth-child(3) { box-shadow: 4px 4px 0 var(--tangerine); }
.size:nth-child(4) { box-shadow: 4px 4px 0 var(--hot-pink); }
.size-row { display: grid; gap: 4px; align-content: start; }
.size-row span { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); opacity: .8; }
.size-row p { font-size: .98rem; color: var(--text); line-height: 1.5; }

/* Token frugality callout under the sizes */
.frugal {
  margin-top: 28px; display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 26px; border-radius: 8px;
  border: 1px solid var(--plum-line); background: var(--plum); box-shadow: 4px 4px 0 var(--sunshine);
}
.frugal .star { width: 26px; height: 26px; margin-top: 3px; }
.frugal p { color: var(--text-soft); max-width: 80ch; }
.frugal strong { font-family: var(--font-headline); font-weight: 400; color: var(--pop-text); font-size: 1.1rem; margin-right: 6px; }

/* ---- About ---- */
.about { display: grid; grid-template-columns: 1fr; }
.about > * { min-width: 0; }
.about-text { display: grid; gap: 18px; }
.about-text p { color: var(--text-soft); max-width: 58ch; }

/* ---- Closing call to action ---- */
.closing { text-align: center; border-top: 1px solid var(--plum-line); }
.closing .wrap { display: grid; gap: 22px; justify-items: center; position: relative; z-index: 1; }
/* Ivy (the Ivy Thread brand motif) growing up from both bottom corners */
.closing { position: relative; overflow: hidden; }
.closing::before, .closing::after {
  content: ""; position: absolute; bottom: 0; width: 340px; height: 100%;
  background: url("assets/ivy.webp?v=2") right bottom / contain no-repeat;
  pointer-events: none;
}
.closing::after { right: 0; }
.closing::before { left: 0; transform: scaleX(-1); }
.closing p { color: var(--text-soft); max-width: 50ch; }

/* ---- Contact page ---- */
.contact-hero { padding-block: 72px 40px; background: none; }
.contact-title {
  font-family: var(--font-name); font-weight: 400;
  font-size: clamp(2.8rem, 10vw, 6rem); line-height: 1;
  background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-section { padding-block: 24px 96px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; }
.contact-grid > .contact-card { align-self: start; }
/* Left column: the booking card, then ivy filling the space beside the form (the brand motif) */
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.contact-ivy { flex: 1; min-height: 240px; margin-right: -14px; background: url("assets/ivy.webp?v=2") right bottom / contain no-repeat; } /* reaches into the column gap so it climbs the form card */
.contact-grid > * { min-width: 0; }
.contact-card {
  background: var(--plum); border: 1px solid var(--plum-line); border-radius: 8px; box-shadow: 5px 5px 0 var(--hot-pink);
  padding: 32px 30px; display: grid; gap: 14px; justify-items: start;
}
.contact-card .star { width: 28px; height: 28px; }
.contact-card:nth-child(2) { box-shadow: 5px 5px 0 var(--lagoon); }
.contact-card:nth-child(2) .star { fill: var(--lagoon); }
.contact-card h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.contact-card > p { color: var(--text-soft); }
.contact-form { display: grid; gap: 8px; width: 100%; margin-top: 4px; }
.contact-form label { font-weight: 700; font-size: .95rem; margin-top: 8px; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--night); border: 1px solid var(--plum-line); border-radius: 10px; padding: 12px 14px;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--teal-text); outline-offset: 1px; border-color: transparent; }
.contact-form button { margin-top: 16px; justify-self: start; cursor: pointer; background: transparent; }
.hidden-field { position: absolute; left: -9999px; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--plum-line); padding-block: 32px; color: var(--text-soft); font-size: .9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-links { display: flex; gap: 20px; }

/* ---- Tablet and phone layouts ---- */
@media (max-width: 960px) {
  .services, .sizes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .section { padding-block: 64px; }
  .nav-links a:not(.btn) { display: none; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .services, .proof-grid, .sizes { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  /* Phones: photo on top, everything centered; pattern only around the photo */
  .hero-home {
    background:
      linear-gradient(180deg, rgba(var(--night-rgb), 0) 0, rgba(var(--night-rgb), 0) 260px, var(--night) 360px),
      url("assets/memphis.svg") 0 0 / 220px repeat;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .closing::before, .closing::after { width: 120px; height: 60%; opacity: .5; }
  .contact-ivy { display: none; } /* cards stack on phones, so there's no empty space for it */
  .hero-photo { order: -1; max-width: 220px; box-shadow: 8px 8px 0 var(--hot-pink); }
  .hero-copy { justify-items: center; text-align: center; }
  .hero-copy .hero-buttons { justify-content: center; }
  .name { font-size: 13vw; }
  .service:nth-child(n) { transform: none; } /* stickers sit straight on small screens */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
