/* =====================================================================
   Courtney Lynette Creative Co. — Design System
   Source: /Users/courtneyherman/Projects/Reels-Editing-Engine/design.md
   REM + Karla load from Google Fonts (free). Peach Citrus and
   "Stylish Aesthetic Light" are licensed display faces not vendored
   here yet — drop their font files into assets/fonts/ (see README) and
   these @font-face rules pick them up automatically. Until then the
   fallback stacks below render instead.
   ===================================================================== */

@font-face {
  font-family: "Peach Citrus";
  src: url("../assets/fonts/PeachCitrus.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Stylish Aesthetic Light";
  src: url("../assets/fonts/StylishAesthetic-Light.woff2") format("woff2"),
       url("../assets/fonts/StylishAesthetic-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}

/* ---- Client's OWN brand fonts (section 03 Color & Type only) ----
   These are NOT the portal's own chrome fonts (REM/Karla/Peach Citrus/Stylish
   Aesthetic above) — they're each client's actual brand typefaces, shown so
   the client sees their real fonts rendering, not Courtney's. For each new
   client, drop their font files into assets/fonts/ using exactly these
   generic names (whatever formats you have — just list the ones that exist).
   Skip a role entirely (both the @font-face and its .type-sample block in
   index.html) if that client doesn't have one, e.g. no accent font. */
@font-face {
  font-family: "Client Heading";
  src: url("../assets/fonts/client-heading.woff2") format("woff2"),
       url("../assets/fonts/client-heading.otf") format("opentype"),
       url("../assets/fonts/client-heading.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Client Subheader";
  src: url("../assets/fonts/client-subheader.woff2") format("woff2"),
       url("../assets/fonts/client-subheader.otf") format("opentype"),
       url("../assets/fonts/client-subheader.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Client Body";
  src: url("../assets/fonts/client-body.woff2") format("woff2"),
       url("../assets/fonts/client-body.otf") format("opentype"),
       url("../assets/fonts/client-body.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Client Accent";
  src: url("../assets/fonts/client-accent.woff2") format("woff2"),
       url("../assets/fonts/client-accent.otf") format("opentype"),
       url("../assets/fonts/client-accent.ttf") format("truetype");
  font-display: swap;
}

:root {
  /* ---- Colors (measured from courtneylynette.com) ---- */
  --ivory:      #FBFAF8;
  --ink:        #1E1E1E;
  --periwinkle: #6089C6;
  --slate:      #CBD0D8;
  --mustard:    #F6CA6A;
  --olive:      #BCB56C;
  --blush:      #ECB9BB;
  --white:      #FFFFFF;

  /* ---- Type ramps ---- */
  --font-display:  "Peach Citrus", "Segoe Script", "Brush Script MT", cursive;
  --font-headline: "Stylish Aesthetic Light", Georgia, "Times New Roman", serif;
  --font-chrome:   "REM", -apple-system, sans-serif;
  --font-body:     "Karla", -apple-system, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0.3px;
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.skip-link { position: absolute; left: -999px; }
.skip-link:focus {
  left: 1rem; top: 1rem;
  background: var(--mustard);
  padding: .5rem 1rem;
  z-index: 100;
}

.portal { display: flex; min-height: 100vh; }

/* ===== Sidebar ===== */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--ivory);
  border-right: 1px solid var(--periwinkle);
  padding: 2.5rem 1.75rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.sidebar-top { margin-bottom: 2.5rem; }

.studio-tag {
  font-family: var(--font-chrome);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin: 0 0 .5rem;
}

.client-name {
  font-family: var(--font-headline);
  font-weight: 300;
  font-size: 1.9rem;
  line-height: 1.15;
  color: var(--periwinkle);
  margin: 0 0 .5rem;
}

.studio-credit {
  font-family: var(--font-chrome);
  font-size: .58rem;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .65;
  margin: 0;
  white-space: nowrap;
}

.sidebar-nav { flex: 1; overflow-y: auto; }
.sidebar-nav ol { list-style: none; margin: 0; padding: 0; }
.sidebar-nav li { margin-bottom: .1rem; }
.sidebar-nav a {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .5rem .5rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-chrome);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .9px;
  text-transform: uppercase;
  opacity: .72;
  transition: opacity .15s ease, color .15s ease;
}
.sidebar-nav a .num {
  font-size: .68rem;
  color: var(--periwinkle);
  width: 1.3rem;
  flex-shrink: 0;
}
.sidebar-nav a:hover { opacity: 1; }
.sidebar-nav a.active { opacity: 1; color: var(--periwinkle); font-weight: 700; }

.sidebar-logo {
  display: block;
  width: 100%;
  max-width: 170px;
  height: auto;
  margin: 1.5rem auto 0;
}

.sidebar-cta {
  margin-top: 1.25rem;
  display: block;
  text-align: center;
  background: var(--olive);
  color: var(--white);
  padding: .85rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-chrome);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: background .15s ease;
}
.sidebar-cta:hover { background: var(--mustard); color: var(--ink); }

/* ===== Mobile top bar + pop-out sidebar drawer (desktop: inert/hidden) ===== */
.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  padding: 0 1.25rem;
  background: var(--ivory);
  border-bottom: 1px solid var(--periwinkle);
  z-index: 120;
}
.mobile-topbar-name {
  font-family: var(--font-headline);
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--periwinkle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 50px);
}
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.sidebar-close {
  display: none;
  position: absolute;
  top: .6rem;
  right: .9rem;
  width: 2.2rem;
  height: 2.2rem;
  background: none;
  border: none;
  color: var(--periwinkle);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 24, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 150;
}
.sidebar-backdrop.open { opacity: 1; pointer-events: auto; }

/* ===== Main content ===== */
.content { flex: 1; max-width: 920px; }

.panel {
  padding: 5rem 4rem;
}
.panel-hero {
  padding: 4rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.panel-hero .lede { max-width: 540px; }

/* Full-bleed section-block backgrounds — color IS the divider, no rule lines */
.bg-ivory  { background: var(--ivory); }
.bg-slate  { background: var(--slate); }
.bg-mustard{ background: var(--mustard); }
.bg-blush  { background: var(--blush); }
.bg-periwinkle { background: var(--periwinkle); }

/* Headline color flips to white on color-block sections, stays periwinkle on light ones */
.bg-ivory .eyebrow, .bg-slate .eyebrow { color: var(--periwinkle); }
.bg-mustard .eyebrow, .bg-blush .eyebrow, .bg-periwinkle .eyebrow { color: var(--white); }

.bg-ivory h2, .bg-slate h2 { color: var(--periwinkle); }
.bg-mustard h2, .bg-blush h2, .bg-periwinkle h2 { color: var(--white); }

.bg-periwinkle .lede, .bg-periwinkle .note, .bg-periwinkle p { color: var(--white); }
.bg-periwinkle .sub-h { color: var(--white); }

.eyebrow {
  font-family: var(--font-chrome);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

h2 {
  font-family: var(--font-headline);
  font-weight: 300;
  font-size: 2.3rem;
  line-height: 1.2;
  margin: 0 0 1.2rem;
}

h3.sub-h {
  font-family: var(--font-chrome);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin: 2.2rem 0 .9rem;
}

.lede {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 620px;
  margin: 0 0 1rem;
}

.note {
  font-family: var(--font-body);
  font-size: .9rem;
  opacity: .75;
  line-height: 1.55;
  margin-top: 1.2rem;
}

.lede a, .note a {
  color: var(--periwinkle);
  text-decoration-color: var(--periwinkle);
}
.bg-periwinkle .lede a, .bg-periwinkle .note a {
  color: var(--white);
  text-decoration-color: var(--white);
}

/* ---- Highlight swash: one tilted blush stripe behind one emphasized word ----
   Painted as the span's own background (not a z-indexed pseudo-element) so it
   always sits behind the glyphs with no stacking-context surprises. */
.swash {
  white-space: nowrap;
  padding: 0 .12em;
  background-image: linear-gradient(var(--blush), var(--blush));
  background-repeat: no-repeat;
  background-size: 100% .5em;
  background-position: 0 72%;
}
.bg-blush .swash {
  background-image: linear-gradient(var(--mustard), var(--mustard));
}
.bg-periwinkle .swash {
  background-image: linear-gradient(var(--blush), var(--blush));
  color: var(--white);
}

/* ---- Display word (Peach Citrus, one hero word only, tracking always 0) ---- */
.display-word {
  font-family: var(--font-display);
  letter-spacing: 0;
  color: var(--periwinkle);
  font-size: 1.15em;
}
.bg-periwinkle .display-word, .bg-mustard .display-word, .bg-blush .display-word {
  color: var(--white);
}

/* ===== Flat hairline content cards (square, no shadow, periwinkle border) ===== */
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.asset-grid-two { grid-template-columns: repeat(2, 1fr); }

.content-card, .asset-card, .price-card, .type-sample {
  background: var(--ivory);
  border: 1px solid var(--periwinkle);
  border-radius: 0;
  box-shadow: none;
  padding: 1.5rem;
}

.asset-preview {
  height: 90px;
  background: var(--white);
  border: 1px solid var(--slate);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--periwinkle);
  font-family: var(--font-chrome);
  font-size: .78rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.asset-card h3, .content-card h3 { font-family: var(--font-headline); font-weight: 300; font-size: 1.15rem; color: var(--periwinkle); margin: 0 0 .4rem; }
.asset-card p, .content-card p { font-family: var(--font-body); font-size: .88rem; opacity: .75; margin: 0 0 1rem; }
.asset-usage { font-family: var(--font-body); font-size: .88rem; opacity: .75; line-height: 1.55; margin: 0 0 1rem; }
.type-usage { font-family: var(--font-body); font-style: italic; font-size: .88rem; opacity: .75; line-height: 1.55; margin: 0; }
.asset-link {
  font-family: var(--font-chrome);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--periwinkle);
  text-decoration: none;
  border-bottom: 1px solid var(--periwinkle);
  padding-bottom: 2px;
}
.asset-link:hover { color: var(--ink); border-color: var(--ink); }

/* ===== Color swatches ===== */
.swatch-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.swatch-row-6 { grid-template-columns: repeat(3, 1fr); }
.swatch {
  height: 110px;
  border: 1px solid var(--periwinkle);
  display: flex;
  align-items: flex-end;
  padding: .75rem;
}
.swatch span {
  font-family: var(--font-chrome);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: rgba(255,255,255,.88);
  padding: .3rem .4rem;
  line-height: 1.4;
}
.color-usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem 2rem;
  margin-top: 1.25rem;
}
.color-usage-grid p {
  font-family: var(--font-body);
  font-size: .9rem;
  line-height: 1.55;
  margin: 0;
}
.color-usage-grid strong { color: var(--periwinkle); }

/* ===== Type samples ===== */
.type-sample { margin-bottom: .9rem; }
.type-label {
  font-family: var(--font-chrome);
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin: 0 0 .6rem;
}
.type-demo { margin: 0 0 .5rem; }
.type-headline { font-family: "Client Heading", var(--font-headline); font-weight: 300; font-size: 1.7rem; color: var(--ink); }
.type-subheader { font-family: "Client Subheader", var(--font-chrome); font-weight: 500; font-size: .95rem; letter-spacing: 1.2px; text-transform: uppercase; }
.type-body { font-family: "Client Body", var(--font-body); font-size: 1rem; line-height: 1.6; }
.type-accent { font-family: "Client Accent", var(--font-display); letter-spacing: 0; font-size: 1.8rem; color: var(--periwinkle); }

/* ===== Overview / voice grids ===== */
.voice-grid, .overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; margin: 1.5rem 0; }
.overview-grid p { margin: 0; font-size: .95rem; line-height: 1.65; }
.overview-grid .sub-h { margin: 0 0 .5rem; }
.rules-list {
  font-family: var(--font-body);
  margin: 0;
  padding-left: 1.2rem;
  font-size: .95rem;
  line-height: 1.7;
}

/* ===== Mood board ===== */
.mood-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.25rem; }
.mood-tile {
  aspect-ratio: 3/4;
  background: var(--white);
  border: 1px solid var(--periwinkle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--periwinkle);
  font-family: var(--font-chrome);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  overflow: hidden;
}
.mood-tile img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Buttons — pill shape is the ONE soft shape, reserved for CTAs ===== */
.btn-primary, .btn-outline, .btn-link {
  display: inline-block;
  margin-top: 1.5rem;
  text-decoration: none;
  font-family: var(--font-chrome);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--olive);
  color: var(--white);
  padding: .95rem 2rem;
  border-radius: 999px;
  transition: background .15s ease;
}
.btn-primary:hover { background: var(--mustard); color: var(--ink); }
.btn-large { font-size: .88rem; padding: 1.15rem 2.4rem; }
.btn-outline {
  border: 1px solid var(--periwinkle);
  padding: .85rem 1.6rem;
  border-radius: 999px;
  color: var(--periwinkle);
}
.btn-outline:hover { background: var(--periwinkle); color: var(--white); }
.btn-link {
  margin-left: 1.25rem;
  color: var(--ink);
  opacity: .7;
  border-bottom: 1px solid var(--periwinkle);
  padding-bottom: 2px;
}
.btn-link:hover { opacity: 1; color: var(--periwinkle); }

/* On color-block sections, pills flip so they stay legible */
.bg-mustard .btn-primary, .bg-blush .btn-primary { background: var(--periwinkle); color: var(--white); }
.bg-mustard .btn-primary:hover, .bg-blush .btn-primary:hover { background: var(--ink); }
.bg-periwinkle .btn-primary { background: var(--mustard); color: var(--ink); }
.bg-periwinkle .btn-primary:hover { background: var(--olive); color: var(--white); }
.bg-periwinkle .btn-outline { border-color: var(--white); color: var(--white); }
.bg-periwinkle .btn-outline:hover { background: var(--white); color: var(--periwinkle); }
.bg-periwinkle .btn-link { color: var(--white); border-color: var(--white); opacity: .85; }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.75rem 0; }
.price-card-featured { border-width: 2px; }
.price-card h3 { font-family: var(--font-headline); font-weight: 300; color: var(--periwinkle); margin: 0 0 .4rem; font-size: 1.2rem; }
.price {
  font-family: var(--font-headline);
  font-weight: 300;
  font-size: 2.3rem;
  color: var(--ink);
  margin: 0 0 1rem;
}
.price span { font-family: var(--font-chrome); font-size: .85rem; letter-spacing: .5px; text-transform: uppercase; opacity: .6; }
.bg-mustard .price, .bg-blush .price { color: var(--ink); }

.refresh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 1.5rem 0; }

.footer-note {
  margin-top: 3rem;
  font-family: var(--font-chrome);
  font-size: .7rem;
  letter-spacing: .8px;
  text-transform: uppercase;
  opacity: .6;
}

/* ===== Contact form (Hourly Design Requests) ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin-top: 1.5rem;
}
.hp-field { position: absolute; left: -9999px; }
.form-label {
  font-family: var(--font-chrome);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin: 1rem 0 .4rem;
}
.form-label:first-of-type { margin-top: 0; }
.form-input {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--periwinkle);
  border-radius: 0;
  padding: .75rem .85rem;
  width: 100%;
  resize: vertical;
}
.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(96, 137, 198, .35);
}
.contact-form .btn-primary {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

/* ===== Thank-you page ===== */
.thank-you-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.thank-you-page > div { max-width: 480px; }

/* ---- step-badge (circular numeral, blush fill) used for the 01-12 markers on hero ---- */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 999px;
  background: var(--blush);
  color: var(--ink);
  font-family: var(--font-chrome);
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .mobile-topbar { display: flex; }
  .sidebar-backdrop { display: block; }
  .sidebar-close { display: block; }

  .content { padding-top: 60px; }

  /* Sidebar becomes a pop-out drawer instead of stacking at the top */
  .portal { display: block; }
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    border-right: 1px solid var(--periwinkle);
    border-bottom: none;
    box-shadow: 6px 0 24px rgba(30, 27, 24, .18);
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 200;
    padding-top: 3rem;
  }
  .sidebar.open { transform: translateX(0); }

  .panel { padding: 3.5rem 1.5rem; }
  .panel-hero { padding: 3.5rem 1.5rem; min-height: auto; }
  .asset-grid, .asset-grid-two, .swatch-row, .swatch-row-6, .voice-grid,
  .overview-grid, .color-usage-grid, .pricing-grid, .refresh-grid {
    grid-template-columns: 1fr;
  }

  /* Mood board: two columns instead of one giant stacked column */
  .mood-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }

  /* Keep button labels on one line on narrow screens */
  .btn-primary, .btn-outline {
    font-size: .72rem;
    letter-spacing: .9px;
    padding: .85rem 1.3rem;
    white-space: nowrap;
  }
  .btn-large { font-size: .78rem; padding: 1rem 1.8rem; }
}

@media (max-width: 1200px) {
  .swatch-row-6 { grid-template-columns: repeat(3, 1fr); }
}
