/* SEIRA CM - stylesheet
   Clean modern build, brand-aligned.
   Colors sampled from the SEIRA|CM wordmark. */

:root {
  --red: #7d1416;
  --red-dark: #5e0f11;
  --ink: #0f0f11;
  --ink-2: #2a2a2e;
  --muted: #6b6b72;
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e5e5e7;
  --gray-300: #d4d4d8;
  --white: #ffffff;

  --font-head: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --max-width: 1200px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --transition: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-header__logo img {
  height: 36px;
  width: auto;
}
.site-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.site-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--red);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: all var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .site-nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--gray-200);
    transform: translateY(-120%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a {
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
  }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    rgba(15,15,17,0.85) 0%,
    rgba(15,15,17,0.58) 55%,
    rgba(15,15,17,0.32) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 104px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero h1 {
  color: var(--white);
  max-width: 18ch;
  margin-bottom: 24px;
}
.hero__lede {
  font-size: 1.125rem;
  max-width: 60ch;
  opacity: 0.94;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero--sub {
  min-height: 260px;
  background: var(--ink);
}
.hero--sub::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(125,20,22,0.18) 100%);
  pointer-events: none;
}
.hero--sub .hero__content {
  padding: 80px 24px 64px;
}
.hero--sub h1 {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  max-width: none;
}
.hero--sub .hero__lede {
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.btn--dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn--dark:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--gray-300);
}
.btn--outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 0 40px;
}
.section--gray {
  background: var(--gray-50);
}
.section--dark {
  background: var(--ink);
  color: var(--white);
}
.section--dark h2,
.section--dark h3 { color: var(--white); }
@media (max-width: 640px) {
  .section { padding: 48px 0 32px; }
}

.section__header {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}
.section__header--left {
  text-align: left;
  margin-left: 0;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 14px;
}
.lede {
  font-size: 1.125rem;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ---------- Grid / Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .grid--3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card__num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--red);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.card h3 { margin-bottom: 10px; }
.card p {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0;
}

/* Project cards (with image) */
.card--project {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card--project__image {
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
  overflow: hidden;
}
.card--project__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.card--project:hover .card--project__image img {
  transform: scale(1.04);
}
.card--project__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card--project h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}
.card--project__body > p {
  flex: 1;
}

/* Placeholder tile when image missing */
.placeholder-tile {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(125,20,22,0.08) 0%, rgba(15,15,17,0.06) 100%),
    var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Callout ---------- */
.callout {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--red);
  padding: 36px 40px;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 900px;
  margin: 0 auto;
}
.callout h3 { margin-top: 0; }
.callout p { color: var(--ink-2); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.timeline__item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.timeline__value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--red);
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}
.timeline__label {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 10px;
  display: block;
  font-weight: 500;
}

/* ---------- Flow chart component ---------- */
.flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.flow-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
@media (max-width: 820px) {
  .flow-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 540px) {
  .flow-row { grid-template-columns: 1fr; gap: 16px; }
}

.flow-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 24px 28px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.flow-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.flow-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.flow-card__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--red);
  letter-spacing: 0.12em;
  background: rgba(125,20,22,0.08);
  padding: 5px 10px;
  border-radius: 3px;
  line-height: 1;
  display: inline-block;
}
.flow-card__icon {
  width: 26px;
  height: 26px;
  color: var(--red);
  flex-shrink: 0;
}
.flow-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.flow-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
  line-height: 1.25;
}
.flow-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

/* Red right-pointing chevron arrow between adjacent cards in a row */
.flow-row .flow-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 14px solid var(--red);
  z-index: 2;
}
@media (max-width: 820px) {
  .flow-row .flow-card:not(:last-child)::after { display: none; }
}

/* Serpentine connector strip (flavor 1) */
.flow-connector {
  height: 56px;
  position: relative;
  pointer-events: none;
}
.flow-connector svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.flow-connector svg path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
}
@media (max-width: 820px) {
  .flow-connector { display: none; }
}

/* Flavor 2: simple — hide connectors */
.flow--simple .flow-connector { display: none; }

/* ---------- Tenants / trust band ---------- */
.tenants {
  padding: 56px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.tenants__label {
  text-align: center;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 36px;
}
.tenants__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.tenants__grid img {
  height: 42px;
  width: auto;
  max-width: 150px;
  opacity: 0.62;
  filter: grayscale(100%);
  transition: all var(--transition);
  object-fit: contain;
}
.tenants__grid img:hover {
  opacity: 1;
  filter: grayscale(0%);
}
@media (max-width: 640px) {
  .tenants { padding: 40px 0; }
  .tenants__grid { gap: 28px; }
  .tenants__grid img { height: 30px; max-width: 100px; }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) {
  .gallery--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .gallery--3 { grid-template-columns: 1fr; }
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray-100);
}
.gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  transition: transform 500ms ease;
}
.gallery figure:hover img {
  transform: scale(1.04);
}

/* ---------- Service rows (detail page) ---------- */
.service-rows { display: grid; gap: 0; }
.service-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-200);
}
.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: 0; padding-bottom: 0; }
.service-row__num {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--red);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 6px;
}
.service-row h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.service-row p {
  color: var(--ink-2);
  font-size: 16px;
}
.service-row ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--ink-2);
}
.service-row li { margin-bottom: 6px; }

@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; gap: 10px; padding: 36px 0; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--red);
}
.cta-band h2 { color: var(--white); }
.cta-band p {
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
  margin: 0 auto 28px;
  font-size: 1.0625rem;
}

/* ---------- Contact card ---------- */
.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.contact-card__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.contact-card__email {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  display: inline-block;
  margin: 8px 0 32px;
  color: var(--ink);
  word-break: break-all;
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
}
.contact-card__email:hover {
  color: var(--red);
}
@media (max-width: 640px) {
  .contact-card { padding: 40px 28px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 28px;
  font-size: 14px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer h4 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  font-weight: 600;
}
.site-footer a { color: rgba(255,255,255,0.9); }
.site-footer a:hover { color: var(--white); }
.site-footer p { line-height: 1.8; margin: 0; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* Footer logo */
.site-footer__logo {
  display: block;
  height: 36px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }

/* ---------- Prose (content pages) ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose p { color: var(--ink-2); font-size: 1.0625rem; }
.prose ul { padding-left: 20px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }
