/* ==========================================================================
   Independent Lasagna — design system
   Cinematic, modern, editorial. Dark charcoal + warm cream, one confident
   marinara-red accent. Built mobile-first; components are self-contained.
   ========================================================================== */

:root {
  --ink: #131116;
  --ink-soft: #1c1922;
  --cream: #f6efe2;
  --cream-soft: #efe6d3;
  --paper: #fbf8f1;
  --accent: #e0512e;
  --accent-dark: #b73d20;
  --chartreuse: #d9d94c;
  --chartreuse-dark: #b7b93a;
  --text-on-dark: #f4ede0;
  --text-on-dark-muted: #c8bfb2;
  --text-on-light: #1c1720;
  --text-on-light-muted: #5b5248;
  --border-on-dark: rgba(244, 237, 224, 0.14);
  --border-on-light: rgba(28, 23, 32, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 50px rgba(10, 8, 12, 0.35);
  --container: 1180px;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; }

p {
  margin: 0 0 1em;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: 0.75em 1.25em;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

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

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section--cream {
  background: var(--cream);
  color: var(--text-on-light);
}

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

.section--cream h1, .section--cream h2, .section--cream h3 { color: var(--text-on-light); }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.statement {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

/* ---- Type helpers ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9em;
}

.section--cream .eyebrow { color: var(--accent-dark); }

/* ---- Layers mark ----
   A small recurring echo of the logo's stacked bars + dot. Every story
   has layers; this is the one visual joke we allow ourselves. */
.layers-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 1.1rem;
}
.layers-mark__row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.layers-mark__bar {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: var(--chartreuse);
}
.layers-mark__bar--top { width: 30px; }
.layers-mark__bar--bottom { width: 22px; background: var(--accent); }
.layers-mark__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chartreuse);
}

.hero__lede {
  font-size: 1.15rem;
  max-width: 640px;
  color: var(--text-on-dark-muted);
}
.statement .hero__lede,
.statement p {
  margin-left: auto;
  margin-right: auto;
}

.link-arrow {
  display: inline-block;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.link-arrow::after {
  content: "→";
  margin-left: 0.4em;
  display: inline-block;
  transition: transform 0.2s ease;
}
.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ---- Buttons ---- */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--accent);
  color: #fff;
}
.button--primary:hover {
  background: var(--accent-dark);
}

.button--outline {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
.section--dark .button--outline:hover,
.button--outline:hover {
  background: var(--text-on-dark);
  color: var(--ink);
}
.section--cream .button--outline:hover {
  background: var(--text-on-light);
  color: var(--cream);
}

.button--dark {
  background: var(--ink);
  color: var(--cream);
}
.button--dark:hover {
  background: #000;
}

.button--small {
  padding: 0.55em 1.1em;
  font-size: 0.82rem;
  margin-top: 0.8rem;
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 17, 22, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-on-dark);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 1.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.site-branding img {
  max-height: 60px;
  max-width: 220px;
  width: auto;
  height: auto;
  flex-shrink: 0;
}
.site-branding__wordmark {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text-on-dark);
}
.site-branding__wordmark em {
  font-style: normal;
  color: var(--accent);
}

.site-nav__list {
  display: none;
  align-items: center;
  gap: 1.9rem;
}
.site-nav__list a {
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a {
  border-color: var(--accent);
}
.site-nav__list ul {
  display: none;
}

.site-header__cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border-on-dark);
  border-radius: 10px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-on-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav.is-open .site-nav__list {
  display: flex;
}

@media (max-width: 899px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--border-on-dark);
  }
  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
  }
  .site-nav__list > li {
    width: 100%;
    border-bottom: 1px solid var(--border-on-dark);
  }
  .site-nav__list a {
    display: block;
    padding: 0.9em 0;
  }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; }
  .site-nav__list { display: flex; }
  .site-header__cta { display: inline-flex; }
}

/* ---- Hero ---- */
.hero,
.page-hero {
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
  background:
    radial-gradient(60% 90% at 15% 0%, rgba(224, 81, 46, 0.18), transparent 60%),
    var(--ink);
  border-bottom: 1px solid var(--border-on-dark);
}
.hero__inner {
  max-width: 760px;
}
.page-hero .container {
  max-width: 820px;
}

/* ---- Sections generic ---- */
.section-header {
  max-width: 640px;
  margin-bottom: 2.75rem;
}
.section-footer {
  margin-top: 2.75rem;
}

.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Cards ---- */
.card {
  background: var(--ink-soft);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius);
  padding: 1.9rem;
  height: 100%;
}
.section--cream .card {
  background: var(--paper);
  border-color: var(--border-on-light);
}
.card h3 {
  margin-bottom: 0.4em;
}
.card p:last-child {
  margin-bottom: 0;
}
.card__media {
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  margin: -1.9rem -1.9rem 1.2rem;
}
.card__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

blockquote.card {
  margin: 0;
}

/* ---- Media frame ---- */
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink-soft);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--portrait {
  aspect-ratio: 3 / 4;
}
.media-frame--reel {
  aspect-ratio: 16 / 9;
}
.media-frame--reel .media-frame__placeholder {
  aspect-ratio: auto;
  height: 100%;
}
.media-frame__placeholder,
.work-card__media-placeholder {
  display: block;
  width: 100%;
  background:
    linear-gradient(135deg, rgba(224, 81, 46, 0.35), rgba(217, 164, 65, 0.2)),
    var(--ink-soft);
}
.media-frame__placeholder { aspect-ratio: 4 / 3; }

/* ---- Work cards ---- */
.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-on-dark);
  background: var(--ink-soft);
}
.section--cream .work-card {
  border-color: var(--border-on-light);
  background: var(--paper);
}
.work-card__media img,
.work-card__media-placeholder {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  width: 100%;
}
.work-card__body {
  padding: 1.5rem;
}
.work-card h3 {
  margin-bottom: 0.3em;
}

/* ---- Services list ---- */
.services-list {
  display: flex;
  flex-direction: column;
}
.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--border-on-dark);
}
.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: none; }
@media (min-width: 760px) {
  .service-row {
    grid-template-columns: 300px 1fr;
    gap: 3rem;
  }
}
.service-row h2 {
  font-size: 1.5rem;
  color: var(--accent);
}
.service-row__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.service-row__items li {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--border-on-dark);
  color: var(--text-on-dark-muted);
}

/* ---- Filter pills (Work page) ---- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.filter-pill {
  padding: 0.5em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--border-on-dark);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.filter-pill.is-active,
.filter-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #fff;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 1.2rem;
}
.cta-band .button--primary {
  background: var(--ink);
}
.cta-band .button--primary:hover {
  background: #000;
}

/* ---- Forms ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-row--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 560px) {
  .form-row--split { grid-template-columns: 1fr 1fr; }
}
.form-row label {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 0.85em 1em;
  border-radius: 10px;
  border: 1px solid var(--border-on-light);
  background: var(--paper);
  color: var(--text-on-light);
}
.contact-form button {
  align-self: flex-start;
  border: none;
}
.il-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-notice {
  padding: 1em 1.3em;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.form-notice--success {
  background: rgba(74, 158, 92, 0.15);
  color: #2b7a3c;
  border: 1px solid rgba(74, 158, 92, 0.35);
}
.form-notice--error {
  background: rgba(224, 81, 46, 0.12);
  color: var(--accent-dark);
  border: 1px solid rgba(224, 81, 46, 0.35);
}

/* ---- Footer ---- */
.site-footer {
  background: #0c0a0e;
  color: var(--text-on-dark-muted);
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-tagline {
  max-width: 320px;
  margin-top: 1rem;
}
.footer-col__title {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-on-dark);
  margin-bottom: 1.1rem;
}
.footer-nav li,
.footer-contact li {
  margin-bottom: 0.7rem;
}
.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--accent);
}
.social-links {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.2rem;
}
.social-links a {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.social-links a:hover {
  border-color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid var(--border-on-dark);
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

/* ---- Video embeds ---- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Page content (wp editor output) ---- */
.page-content {
  max-width: 760px;
}
.page-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* ---- Empty states / admin notes ---- */
.empty-state,
.il-admin-note {
  border: 1px dashed var(--border-on-dark);
  border-radius: var(--radius);
  padding: 2rem;
  color: var(--text-on-dark-muted);
  text-align: center;
}
.section--cream .empty-state,
.section--cream .il-admin-note {
  border-color: var(--border-on-light);
  color: var(--text-on-light-muted);
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.pagination .page-numbers.current {
  color: var(--accent);
}

/* ---- Comments ---- */
.comments-area {
  max-width: 760px;
}
.comments-title {
  margin-bottom: 1.5rem;
}
.comment-list {
  padding: 0;
  margin: 0 0 2.5rem;
}
.comment-list li {
  list-style: none;
  border-top: 1px solid var(--border-on-dark);
  padding: 1.5rem 0;
}
.comment-list .children {
  padding: 0;
  margin: 0 0 0 1.5rem;
}
.comment-form input,
.comment-form textarea {
  font: inherit;
  width: 100%;
  padding: 0.85em 1em;
  border-radius: 10px;
  border: 1px solid var(--border-on-dark);
  background: var(--ink-soft);
  color: var(--text-on-dark);
  margin-bottom: 1rem;
}
.comment-form .form-submit input {
  width: auto;
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* ---- Reveal-on-load animation ---- */
.il-fade {
  opacity: 0;
  transform: translateY(14px);
  animation: il-fade-in 0.6s ease forwards;
}
@keyframes il-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .il-fade {
    animation: none;
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
