/* ============================================
   AVICOMAS — Modern Poultry Equipment Website
   Aesthetic: Editorial Industrial / Agritech
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette */
  --ink: #1a1a1a;
  --ink-soft: #2b2b2b;
  --paper: #faf7f2;
  --paper-warm: #f3ede2;
  --cream: #ece4d3;
  --line: #e0d8c8;
  --line-strong: #c9bea7;
  --accent: #c1272d;          /* brand red from logo */
  --accent-dark: #951c20;
  --sage: #5a6b4f;
  --sage-light: #8a9a7c;
  --gold: #c9a14a;
  --muted: #6b6b6b;
  --muted-2: #8a8a8a;

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --max-w: 1320px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 2px;
  --radius-lg: 6px;

  /* Motion */
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent); color: var(--paper); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.75rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }

p { font-size: 1.0625rem; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.display-italic { font-style: italic; font-weight: 300; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-text { font-weight: 500; }
.brand-text .accent { color: var(--accent); font-style: italic; }

/* Nav */
.nav-wrap { display: flex; align-items: center; gap: 2rem; }
.nav { display: flex; gap: 2rem; align-items: center; }
.nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  padding-block: 0.4rem;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-cta::after { display: none; }
.nav-cta .arrow { transition: transform 0.3s var(--ease); }
.nav-cta:hover .arrow { transform: translateX(3px); }

/* Mobile toggle */
.menu-toggle { display: none; width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; z-index: 101; position: relative; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 920px) {
  .menu-toggle { display: flex; }

  /* Solid header on mobile so logo + burger always sit on a clean surface */
  .site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-wrap {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(85%, 360px);
    background: var(--paper);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.25rem;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,0.25);
    z-index: 99;
  }
  .nav-wrap.open { transform: translateX(0); }
  .nav { flex-direction: column; align-items: flex-start; gap: 0.5rem; width: 100%; }
  .nav a { font-size: 1.5rem; font-family: var(--font-display); }
  .nav-cta { margin-top: 1rem; }

  /* Dark overlay behind the menu panel when open */
  .site-header.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 98;
    animation: fadeIn 0.3s var(--ease);
  }

  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-top: 7rem;
  padding-bottom: 4rem;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(1.05);
  transform: scale(1.05);
  animation: kenburns 20s ease-out forwards;
}
@keyframes kenburns {
  to { transform: scale(1); }
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.35) 0%, rgba(26,26,26,0.1) 40%, rgba(26,26,26,0.85) 100%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero h1 {
  color: var(--paper);
  max-width: 18ch;
  margin-top: 1.5rem;
  font-weight: 300;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
}
.hero h1 .red-dot {
  display: inline-block;
  width: 0.35em;
  height: 0.35em;
  background: var(--accent);
  border-radius: 50%;
  vertical-align: super;
  margin-left: 0.05em;
  transform: translateY(-0.15em);
}
.hero-eyebrow {
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-eyebrow::before { background: var(--accent); }

.hero-actions { display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }

.hero-meta {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.7);
  text-align: right;
}
.hero-meta strong { color: var(--paper); font-weight: 500; }
@media (max-width: 720px) { .hero-meta { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(193,39,45,0.5); }

.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(250,247,242,0.3); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- Marquee strip ---------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 0;
  overflow: hidden;
  border-block: 1px solid rgba(250,247,242,0.08);
}
.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 300;
  display: inline-flex;
  align-items: center;
  gap: 4rem;
  color: var(--cream);
}
.marquee span::after {
  content: '✦';
  color: var(--accent);
  font-style: normal;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Section Header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head .lead { max-width: 50ch; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; align-items: start; } }

.section-head h2 .num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
  font-style: normal;
}

/* ---------- Solutions Grid (mosaic cards) ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.sol-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  cursor: pointer;
  transition: transform 0.5s var(--ease-out);
}
.sol-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.8s var(--ease-out), filter 0.5s var(--ease);
  filter: brightness(0.6) saturate(1.05);
}
.sol-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26,26,26,0) 30%, rgba(26,26,26,0.85) 100%);
}
.sol-card > * { position: relative; z-index: 2; }
.sol-card:hover img { transform: scale(1.06); filter: brightness(0.55); }
.sol-card .sol-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(250,247,242,0.7);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.sol-card h3 { color: var(--paper); margin-bottom: 0.5rem; }
.sol-card p { color: rgba(250,247,242,0.78); font-size: 0.95rem; max-width: 38ch; }
.sol-card .sol-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
}
.sol-card .sol-link .arrow { transition: transform 0.4s var(--ease); }
.sol-card:hover .sol-link .arrow { transform: translateX(5px); color: var(--accent); }

.sol-1 { grid-column: span 7; }
.sol-2 { grid-column: span 5; }
.sol-3 { grid-column: span 4; }
.sol-4 { grid-column: span 4; }
.sol-5 { grid-column: span 4; }
@media (max-width: 900px) {
  .sol-1, .sol-2, .sol-3, .sol-4, .sol-5 { grid-column: span 12; min-height: 320px; }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.stats .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px,100%), 1fr)); gap: 2rem; }
.stat { border-left: 1px solid rgba(250,247,242,0.15); padding: 0.5rem 1.5rem; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 300;
  line-height: 1;
  color: var(--paper);
  display: flex;
  align-items: baseline;
}
.stat .num em { font-style: italic; color: var(--accent); }
.stat .num .unit { font-size: 0.4em; margin-left: 0.25em; color: var(--cream); font-style: normal; }
.stat .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.6);
  margin-top: 0.75rem;
}

/* ---------- Services List ---------- */
.services-list { border-top: 1px solid var(--line-strong); }
.service-row {
  display: grid;
  grid-template-columns: 4rem 1fr 1.5fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line-strong);
  transition: padding-left 0.4s var(--ease), background 0.4s var(--ease);
  cursor: pointer;
  position: relative;
}
.service-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease);
}
.service-row:hover { padding-left: 1.5rem; color: var(--paper); }
.service-row:hover::before { transform: scaleY(1); }
.service-row:hover .service-num { color: var(--accent); }
.service-row:hover .service-arrow { color: var(--accent); transform: translate(6px, -6px); }

.service-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.service-title { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.85rem); }
.service-desc { color: var(--muted); font-size: 0.95rem; }
.service-arrow {
  font-size: 1.5rem;
  color: var(--ink);
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}
.service-row:hover .service-desc { color: rgba(250,247,242,0.7); }

@media (max-width: 760px) {
  .service-row { grid-template-columns: 3rem 1fr auto; gap: 1rem; padding: 1.5rem 0; }
  .service-desc { display: none; }
}

/* ---------- Editorial Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-img.tall { aspect-ratio: 3/4; }
.split-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--accent);
  color: var(--paper);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.split-text h2 { margin: 1rem 0 1.5rem; }
.split-text p + p { margin-top: 1rem; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split-img { aspect-ratio: 3/2; max-height: 60vh; }
}

/* ---------- Featured Image with Caption ---------- */
.feature-image {
  position: relative;
  aspect-ratio: 16/8;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--cream);
}
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(26,26,26,0.85);
  backdrop-filter: blur(10px);
  color: var(--paper);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  max-width: 280px;
  font-size: 0.85rem;
  line-height: 1.4;
}
.feature-caption strong { font-family: var(--font-display); display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }

/* ---------- Equipment Grid ---------- */
.equip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.5rem; }
.equip-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.equip-card:hover { transform: translateY(-4px); border-color: var(--ink); }
.equip-img {
  aspect-ratio: 4/3;
  background: var(--paper);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.equip-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.equip-card:hover .equip-img img { transform: scale(1.06); }
.equip-card h4 { margin-bottom: 0.4rem; }
.equip-card .equip-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.equip-card p { font-size: 0.9rem; color: var(--muted); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 30%, rgba(193,39,45,0.18) 0%, transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(201,161,74,0.12) 0%, transparent 35%);
}
.cta-banner h2 { color: var(--paper); margin-bottom: 1rem; max-width: 22ch; margin-inline: auto; }
.cta-banner h2 em { font-style: italic; color: var(--cream); }
.cta-banner p { color: rgba(250,247,242,0.75); max-width: 50ch; margin: 0 auto 2.5rem; }
.cta-banner .btn-primary { background: var(--paper); color: var(--ink); }
.cta-banner .btn-primary:hover { background: var(--accent); color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper-warm);
  padding: 5rem var(--gutter) 2rem;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } .footer-brand { grid-column: 1 / -1; } }

.footer-brand h3 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 1rem; }
.footer-brand h3 .accent { color: var(--accent); font-style: italic; }
.footer-brand p { font-size: 0.95rem; max-width: 38ch; color: var(--muted); }
.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom .legal a { margin-left: 1.5rem; }
.footer-bottom .legal a:hover { color: var(--accent); }

/* ---------- Page Hero (interior pages) ---------- */
.page-hero {
  padding: 10rem var(--gutter) 4rem;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 18ch; margin-top: 1rem; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p { max-width: 55ch; margin-top: 1.5rem; font-size: 1.15rem; color: var(--muted); }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }

.page-hero-bg {
  position: absolute;
  right: -10%;
  top: 30%;
  width: 50%;
  height: 80%;
  opacity: 0.07;
  z-index: 1;
  pointer-events: none;
}
.page-hero-bg svg { width: 100%; height: 100%; }

/* ---------- Solution Detail Card ---------- */
.solution-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.solution-detail:nth-child(even) { direction: rtl; }
.solution-detail:nth-child(even) > * { direction: ltr; }
.solution-detail .img-wrap { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-lg); }
.solution-detail .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.solution-detail:hover .img-wrap img { transform: scale(1.05); }
.solution-detail h3 { margin: 1rem 0; }
.solution-detail ul { list-style: none; margin-top: 1.5rem; }
.solution-detail ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.solution-detail ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}
@media (max-width: 820px) {
  .solution-detail, .solution-detail:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
}

/* ---------- Process / Timeline ---------- */
.process { counter-reset: step; }
.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px dashed var(--line-strong);
  align-items: start;
}
.process-step:last-child { border-bottom: none; }
.process-step .step-num {
  counter-increment: step;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.process-step .step-num::before { content: counter(step, decimal-leading-zero); }
.process-step h4 { margin-bottom: 0.5rem; }
.process-step p { color: var(--muted); font-size: 0.95rem; max-width: 60ch; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { padding: 2rem 0; }
.contact-info .info-item { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.contact-info .info-item:last-child { border-bottom: none; }
.contact-info .info-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.contact-info .info-value { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; }
.contact-info .info-value a:hover { color: var(--accent); }
.contact-info p.info-note { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }

.contact-form {
  background: var(--paper-warm);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.contact-form h3 { margin-bottom: 0.5rem; }
.contact-form .form-sub { font-size: 0.95rem; color: var(--muted); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
}
.form-group textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Map ---------- */
.map-wrap {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/10;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(0.95); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero text staggered intro */
.hero .stagger > * { opacity: 0; transform: translateY(20px); animation: heroIn 1s var(--ease-out) forwards; }
.hero .stagger > *:nth-child(1) { animation-delay: 0.15s; }
.hero .stagger > *:nth-child(2) { animation-delay: 0.35s; }
.hero .stagger > *:nth-child(3) { animation-delay: 0.55s; }
.hero .stagger > *:nth-child(4) { animation-delay: 0.75s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-bg img { animation: none; transform: none; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-warm); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink); }