/* =========================================================
   Krodyne Industries — Theme Stylesheet
   Recreates the original Next.js + Tailwind design system
   as plain CSS for a classic WordPress theme.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --color-graphite: #1a1f2e;
  --color-graphite-light: #2a3044;
  --color-amber: #ff7a1a;
  --color-white-off: #fafafa;
  --color-steel: #6b7280;
  --color-border: #e5e7eb;

  --font-sans: "Manrope", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --container-max: 80rem; /* 1280px */
}

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

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

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-graphite);
  background: var(--color-white-off);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

.site-main { flex: 1 0 auto; }

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }

button, input, textarea, select { font-family: inherit; font-size: 1rem; }

button { cursor: pointer; background: none; border: none; }

.font-mono, code, pre { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.container--narrow { max-width: 48rem; }

.section { padding-block: 5rem; }
.section-sm { padding-block: 4rem; }
.section-md { padding-block: 4.5rem; }

.section--dark { background: var(--color-graphite); color: var(--color-white-off); }
.section--amber { background: var(--color-amber); }
.section--bordered { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section--border-bottom { border-bottom: 1px solid var(--color-border); }

.amber-rule { height: 4px; background: var(--color-amber); width: 100%; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.eyebrow__line { width: 2rem; height: 2px; background: var(--color-amber); flex-shrink: 0; }
.eyebrow__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-amber);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-amber);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-label { margin-bottom: 2rem; }

.text-steel { color: var(--color-steel); }
.text-amber { color: var(--color-amber); }
.text-muted-light { color: rgba(250, 250, 250, 0.6); }
.text-muted-light-70 { color: rgba(250, 250, 250, 0.7); }

.divider-amber { width: 1.5rem; height: 2px; background: var(--color-amber); margin-bottom: 1.25rem; }

/* ---------- Section heading ---------- */
.section-heading { margin-bottom: 3rem; }
.section-heading h2 { font-size: 1.875rem; margin-top: 0.5rem; }
.section--dark .section-heading h2 { color: var(--color-white-off); }

.section-heading--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-heading__link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  transition: color 0.15s;
}
@media (min-width: 640px) { .section-heading__link { display: inline-flex; } }
.section-heading__link:hover { color: var(--color-amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--color-amber); color: var(--color-white-off); }
.btn--primary:hover { background: rgba(255, 122, 26, 0.9); }
.btn--outline { border-color: rgba(250, 250, 250, 0.3); color: var(--color-white-off); font-weight: 600; }
.btn--outline:hover { border-color: var(--color-white-off); }
.btn--dark { background: var(--color-graphite); color: var(--color-white-off); }
.btn--dark:hover { background: var(--color-graphite-light); }
.btn--block { width: 100%; }
.btn--sm { padding: 0.875rem 1.5rem; }
@media (min-width: 640px) { .btn--auto { width: auto; } }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white-off);
  border-bottom: 1px solid var(--color-border);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.logo__mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-graphite);
}
.logo--inverted .logo__mark { background: var(--color-white-off); }
.logo__text-main {
  display: block;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--color-graphite);
}
.logo--inverted .logo__text-main { color: var(--color-white-off); }
.logo__text-sub {
  display: block;
  font-weight: 600;
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 0.125rem;
  color: var(--color-steel);
}
.logo--inverted .logo__text-sub { color: rgba(250, 250, 250, 0.6); }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }
.nav-link {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: var(--color-graphite);
  transition: color 0.15s;
}
.nav-link:hover, .nav-link.is-active { color: var(--color-amber); }

.nav-cta { display: none; align-items: center; gap: 1rem; }
@media (min-width: 768px) { .nav-cta { display: flex; } }
.nav-cta .btn { padding: 0.625rem 1.25rem; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--color-graphite);
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-white-off);
}
.nav-mobile.is-open { display: block; }
@media (min-width: 768px) { .nav-mobile { display: none !important; } }
.nav-mobile__inner { padding: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.nav-mobile .nav-link {
  padding-block: 0.625rem;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}
.nav-mobile .btn { margin-top: 0.75rem; text-align: center; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--color-graphite); color: var(--color-white-off); }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }

.footer__brand p { margin-top: 1rem; max-width: 20rem; font-size: 0.875rem; line-height: 1.7; color: rgba(250, 250, 250, 0.6); }

.footer__heading {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 1rem;
}
.footer__list { display: flex; flex-direction: column; gap: 0.625rem; }
.footer__list a, .footer__col address a, .footer__col address p {
  font-size: 0.875rem;
  color: rgba(250, 250, 250, 0.6);
  transition: color 0.15s;
}
.footer__list a:hover, .footer__col address a:hover { color: var(--color-white-off); }
.footer__col address { font-style: normal; display: flex; flex-direction: column; gap: 0.625rem; }

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 250, 250, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px) { .footer__bottom { flex-direction: row; } }
.footer__copy { font-size: 0.75rem; color: rgba(250, 250, 250, 0.4); }
.footer__badge { display: flex; align-items: center; gap: 0.5rem; }
.footer__badge-dot { width: 0.75rem; height: 0.75rem; background: var(--color-amber); }
.footer__badge-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(250, 250, 250, 0.4);
}

/* =========================================================
   Hero (home + page heroes)
   ========================================================= */
.hero { background: var(--color-graphite); color: var(--color-white-off); }
.hero__inner { padding-block: 6rem; }
@media (min-width: 768px) { .hero__inner { padding-block: 8rem; } }
.hero__content { max-width: 48rem; }

.hero__title {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--color-white-off);
}
@media (min-width: 640px) { .hero__title { font-size: 3rem; } }
@media (min-width: 768px) { .hero__title { font-size: 3.75rem; } }
.hero__title .accent { color: var(--color-amber); }

.hero__lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(250, 250, 250, 0.7);
  margin-bottom: 2.5rem;
  max-width: 42rem;
}
@media (min-width: 640px) { .hero__lead { font-size: 1.25rem; } }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Page hero — smaller variant used on About/Services/Projects/Gallery/Blog/Contact */
.page-hero { background: var(--color-graphite); color: var(--color-white-off); }
.page-hero__inner { padding-block: 5rem; }
.page-hero .kicker { margin-bottom: 0.75rem; }
.page-hero__title {
  font-size: 2.25rem;
  max-width: 42rem;
  line-height: 1.2;
  color: var(--color-white-off);
}
@media (min-width: 768px) { .page-hero__title { font-size: 3rem; } }
.page-hero__lead {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(250, 250, 250, 0.6);
}
.page-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(250, 250, 250, 0.5);
  margin-bottom: 2rem;
  transition: color 0.15s;
}
.page-hero__back:hover { color: var(--color-white-off); }
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  color: rgba(250, 250, 250, 0.5);
  font-size: 0.875rem;
}
.page-hero__meta span { display: inline-flex; align-items: center; gap: 0.375rem; }

/* =========================================================
   Grids
   ========================================================= */
.grid { display: grid; gap: 2.5rem; }
.grid--gap-px { gap: 1px; background: var(--color-border); }
.grid--gap-px > * { background: var(--color-white-off); }
.grid--gap-sm { gap: 0.75rem; }

/* Services grid: 1 / 2 / 4 */
.services-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

/* Services list (services index page): 1 / 2 */
.services-list-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .services-list-grid { grid-template-columns: repeat(2, 1fr); } }

/* Projects grid: 1 / 2 / 3 */
.projects-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

/* Blog grid: 1 / 2 / 3 */
.blog-grid { grid-template-columns: 1fr; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* Founders grid: 1 / 2 / 4 */
.founders-grid { grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .founders-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .founders-grid { grid-template-columns: repeat(4, 1fr); } }

/* Three-up feature grid (Why Us / Beliefs): 1 / 3 */
.feature-grid { grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

/* About intro: 1 / 2 */
.intro-grid { grid-template-columns: 1fr; gap: 4rem; align-items: start; }
@media (min-width: 1024px) { .intro-grid { grid-template-columns: repeat(2, 1fr); } }

/* Detail layout: 2/3 + 1/3 sidebar */
.detail-grid { grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 2fr 1fr; } }

/* Contact layout: 2/3 + 1/3 */
.contact-grid { grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 1fr; } }

/* Gallery / project image grid: 2 / 3 / 4 */
.gallery-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.project-images-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .project-images-grid { grid-template-columns: repeat(3, 1fr); } }

.project-cover { margin-bottom: 2.5rem; }
.project-gallery { margin-top: 3rem; }
.project-gallery h2 { margin-bottom: 1.5rem; }

/* Form 2-column rows */
.form-row { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   Cards
   ========================================================= */
.aspect-video { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.aspect-square { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Service card */
.service-card { display: block; border: 1px solid var(--color-border); padding: 2rem; height: 100%; transition: border-color 0.15s; }
.service-card:hover { border-color: var(--color-amber); }
.service-card:hover .service-card__cta { color: var(--color-amber); }
.service-card:hover .service-card__cta svg { transform: translateX(0.25rem); }
.service-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-graphite);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-amber);
}
.service-card__title { font-size: 1.25rem; margin-bottom: 0.25rem; }
.service-card__tagline { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-amber); letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.service-card__summary { color: var(--color-steel); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.service-card__cta { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.875rem; transition: color 0.15s; }
.service-card__cta svg { transition: transform 0.15s; }

/* Placeholder tiles (no services published yet) */
.placeholder-tile { padding: 2rem; }
.placeholder-tile__inner { height: 8rem; display: flex; align-items: flex-end; }
.placeholder-tile__label { font-weight: 800; font-size: 1.25rem; }

/* Project card */
.project-card { display: block; border: 1px solid var(--color-border); overflow: hidden; transition: border-color 0.15s; height: 100%; }
.project-card:hover { border-color: var(--color-amber); }
.project-card:hover .cover-img { transform: scale(1.05); }
.project-card__placeholder { aspect-ratio: 16/9; background: var(--color-graphite); display: flex; align-items: center; justify-content: center; }
.project-card__placeholder span { width: 2rem; height: 2rem; background: var(--color-amber); }
.project-card__body { padding: 1.5rem; }
.project-card__industry { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-amber); }
.project-card__title { font-size: 1.125rem; margin-top: 0.25rem; margin-bottom: 0.5rem; line-height: 1.4; }
.project-card__summary {
  color: var(--color-steel);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card__meta { display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; color: rgba(107, 114, 128, 0.7); margin-bottom: 1rem; }
.project-card__meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.project-card__cta { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.875rem; transition: color 0.15s; }
.project-card:hover .project-card__cta { color: var(--color-amber); }
.project-card:hover .project-card__cta svg { transform: translateX(0.25rem); }
.project-card__cta svg { transition: transform 0.15s; }

/* Blog card */
.blog-card { display: block; padding: 2rem; transition: color 0.15s; }
.blog-card__date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-steel); letter-spacing: 0.025em; margin-bottom: 0.5rem; }
.blog-card__title { font-size: 1.25rem; margin-bottom: 0.75rem; line-height: 1.4; transition: color 0.15s; }
.blog-card:hover .blog-card__title { color: var(--color-amber); }
.blog-card__excerpt {
  color: var(--color-steel);
  font-size: 0.875rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card .aspect-video { margin-bottom: 1.5rem; }
.blog-card:hover .cover-img { transform: scale(1.05); }

/* Single post */
.post-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-amber); letter-spacing: 0.025em; margin-bottom: 0.75rem; }
.post-cover { margin-bottom: 3rem; }
.post-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.875rem; color: var(--color-amber); }
.back-link:hover { text-decoration: underline; }

/* =========================================================
   Why Us / Beliefs (feature items)
   ========================================================= */
.feature-item h3 { font-size: 1.125rem; margin-bottom: 0.75rem; }
.section--dark .feature-item h3 { color: var(--color-white-off); }
.feature-item p { font-size: 0.875rem; line-height: 1.7; }
.section--dark .feature-item p { color: rgba(250, 250, 250, 0.6); }

/* =========================================================
   Industries
   ========================================================= */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.industry-tag {
  border: 1px solid var(--color-border);
  color: var(--color-graphite);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  display: inline-block;
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) { .cta-band__inner { flex-direction: row; text-align: left; } }
.cta-band h2 { font-size: 1.5rem; color: var(--color-white-off); }
@media (min-width: 768px) { .cta-band h2 { font-size: 1.875rem; } }
.cta-band p { color: rgba(250, 250, 250, 0.8); margin-top: 0.25rem; font-size: 0.875rem; }
.cta-band .btn { flex-shrink: 0; }

/* =========================================================
   About — Name meaning block
   ========================================================= */
.name-block { border-left: 2px solid var(--color-amber); padding-left: 2rem; }
.name-block .kicker { margin-bottom: 1rem; }
.name-block h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.name-block p { color: var(--color-steel); line-height: 1.7; }
.name-block strong { color: var(--color-graphite); }

/* Founder card */
.founder-card { border: 1px solid var(--color-border); padding: 1.5rem; }
.founder-card__avatar {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--color-graphite);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.founder-card__avatar-inner {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 122, 26, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.founder-card__avatar-inner span { font-weight: 800; color: var(--color-amber); font-size: 1.25rem; }
.founder-card h3 { font-weight: 800; font-size: 1rem; }
.founder-card__role { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-amber); letter-spacing: 0.025em; margin: 0.125rem 0 0.75rem; }
.founder-card p:not(.founder-card__role) { color: var(--color-steel); font-size: 0.875rem; line-height: 1.7; }

/* =========================================================
   Prose (blog / project / service body content)
   ========================================================= */
.prose { color: var(--color-graphite); max-width: 72ch; }
.prose h1, .prose h2, .prose h3 { color: var(--color-graphite); font-weight: 800; margin-top: 2em; margin-bottom: 0.75em; }
.prose p { margin-bottom: 1.25em; line-height: 1.75; color: #374151; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1.25em; list-style-position: outside; }
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-bottom: 0.5em; line-height: 1.75; color: #374151; }
.prose strong { font-weight: 700; color: var(--color-graphite); }
.prose code {
  font-family: var(--font-mono);
  background: #f3f4f6;
  padding: 0.125em 0.375em;
  border-radius: 2px;
  font-size: 0.875em;
}
.prose pre { background: var(--color-graphite); color: var(--color-white-off); padding: 1.5em; overflow-x: auto; margin-bottom: 1.5em; }
.prose pre code { background: none; padding: 0; }
.prose a { color: var(--color-amber); text-decoration: underline; }
.prose blockquote { border-left: 3px solid var(--color-amber); padding-left: 1.25em; font-style: italic; color: var(--color-steel); margin: 1.5em 0; }
.prose img { margin-bottom: 1.5em; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.prose th { background: var(--color-graphite); color: var(--color-white-off); padding: 0.75em 1em; text-align: left; font-weight: 600; font-size: 0.875em; letter-spacing: 0.05em; text-transform: uppercase; }
.prose td { padding: 0.75em 1em; border-bottom: 1px solid var(--color-border); font-size: 0.9375em; }

/* =========================================================
   Sidebar detail boxes (single project / single service)
   ========================================================= */
.detail-box { border: 1px solid var(--color-border); padding: 1.5rem; }
.detail-box h3 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.detail-box--sticky { position: sticky; top: 6rem; }
.detail-list { display: flex; flex-direction: column; gap: 0.75rem; }
.detail-list dt { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-steel); letter-spacing: 0.025em; }
.detail-list dd { color: var(--color-graphite); font-size: 0.875rem; margin: 0.125rem 0 0; }
.detail-list dd a { color: var(--color-amber); text-decoration: underline; }
.detail-box p { color: var(--color-steel); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.detail-box + .detail-box { margin-top: 1.5rem; }

/* =========================================================
   Filter bars (Projects / Gallery)
   ========================================================= */
.filter-bar {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white-off);
  position: sticky;
  top: 4rem;
  z-index: 10;
}
.filter-bar__inner { padding-block: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.filter-bar__label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-steel); letter-spacing: 0.025em; }
.filter-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--color-border);
  color: var(--color-steel);
  text-transform: capitalize;
  transition: border-color 0.15s, color 0.15s;
}
.filter-btn:hover { border-color: var(--color-graphite); }
.filter-btn.is-active { border-color: var(--color-amber); color: var(--color-amber); }

/* =========================================================
   Gallery
   ========================================================= */
.gallery-item { position: relative; aspect-ratio: 1/1; overflow: hidden; display: block; width: 100%; padding: 0; border: none; }
.gallery-item:hover .cover-img { transform: scale(1.05); }
.gallery-item__caption {
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 46, 0.6);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: flex-end;
}
.gallery-item:hover .gallery-item__caption, .gallery-item:focus .gallery-item__caption { opacity: 1; }
.gallery-item__caption p { color: var(--color-white-off); font-size: 0.75rem; padding: 0.75rem; line-height: 1.4; }

.gallery-empty { color: var(--color-steel); text-align: center; padding-block: 4rem; }

.empty-state { color: var(--color-steel); text-align: center; padding-block: 4rem; }
.empty-state a { color: var(--color-amber); text-decoration: underline; }

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 31, 46, 0.95);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: rgba(250, 250, 250, 0.6);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  line-height: 1;
}
.lightbox-close:hover { color: var(--color-white-off); }
.lightbox-content { position: relative; max-width: 64rem; max-height: 85vh; width: 100%; }
.lightbox-content img { max-height: 80vh; width: 100%; object-fit: contain; }
.lightbox-caption { color: rgba(250, 250, 250, 0.6); font-size: 0.875rem; margin-top: 0.75rem; text-align: center; }

/* =========================================================
   Forms (Contact)
   ========================================================= */
.form-field { margin-bottom: 0; }
.form-label { display: block; font-weight: 600; font-size: 0.875rem; color: var(--color-graphite); margin-bottom: 0.375rem; }
.form-required { color: var(--color-amber); margin-left: 0.125rem; }
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-white-off);
  padding: 0.75rem 1rem;
  color: var(--color-graphite);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--color-graphite); }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(107, 114, 128, 0.4); }
.form-textarea { resize: none; }
.form-error { margin-top: 0.25rem; color: #dc2626; font-size: 0.75rem; }
.form-input.has-error, .form-textarea.has-error, .form-select.has-error { border-color: #ef4444; }
.form-banner-error { color: #dc2626; font-size: 0.875rem; border: 1px solid #fecaca; background: #fef2f2; padding: 0.75rem 1rem; }
.form-banner-success { color: #15803d; font-size: 0.875rem; border: 1px solid #bbf7d0; background: #f0fdf4; padding: 0.75rem 1rem; }
.form-honeypot { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }

.stack { display: flex; flex-direction: column; gap: 1.25rem; }

.success-box { border: 1px solid var(--color-border); padding: 2.5rem; text-align: center; }
.success-box__icon {
  width: 3rem;
  height: 3rem;
  background: var(--color-amber);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-box h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.success-box p { color: var(--color-steel); font-size: 0.875rem; }

/* Contact sidebar */
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info__rows { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info__row { display: flex; gap: 1rem; }
.contact-info__icon {
  width: 2rem;
  height: 2rem;
  background: var(--color-graphite);
  color: var(--color-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info__row p, .contact-info__row a { color: var(--color-steel); font-size: 0.875rem; line-height: 1.7; }
.contact-info__row a:hover { color: var(--color-amber); }
.contact-info__row .text-xs { font-size: 0.75rem; color: rgba(107, 114, 128, 0.6); margin-top: 0.125rem; }

.whatsapp-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--color-border);
  padding: 1rem;
  transition: border-color 0.15s;
  margin-top: 2rem;
}
.whatsapp-link:hover { border-color: var(--color-amber); }
.whatsapp-link svg { width: 1.25rem; height: 1.25rem; color: var(--color-steel); transition: color 0.15s; }
.whatsapp-link:hover svg { color: var(--color-amber); }
.whatsapp-link span { font-weight: 600; font-size: 0.875rem; color: var(--color-steel); transition: color 0.15s; }
.whatsapp-link:hover span { color: var(--color-amber); }

/* =========================================================
   Pagination
   ========================================================= */
.pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-graphite);
}
.pagination a:hover { border-color: var(--color-amber); color: var(--color-amber); }
.pagination .current { border-color: var(--color-amber); color: var(--color-amber); }

/* =========================================================
   404
   ========================================================= */
.not-found { text-align: center; padding-block: 6rem; }
.not-found h1 { font-size: 3rem; color: var(--color-amber); margin-bottom: 1rem; }
.not-found p { color: var(--color-steel); margin-bottom: 2rem; }

/* =========================================================
   Misc utilities
   ========================================================= */
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-amber);
  color: var(--color-white-off);
  padding: 0.5rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.empty-state { color: var(--color-steel); text-align: center; padding-block: 4rem; }

.is-hidden { display: none !important; }
