/* YIWUG — visual system
   Direction: deep ink + ember accent, cool paper surfaces
   Fonts: Syne (brand) + Outfit (UI/body)
*/

:root {
  --ink: #0a121c;
  --ink-soft: #141e2c;
  --slate: #243044;
  --mist: #8b97a8;
  --paper: #eef1f5;
  --paper-bright: #f7f8fa;
  --white: #ffffff;
  --ember: #e85a1c;
  --ember-hover: #ff6b2c;
  --ember-soft: rgba(232, 90, 28, 0.14);
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(10, 18, 28, 0.1);
  --text: #1a2433;
  --text-muted: #5a687a;
  --font-brand: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --max: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper-bright);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-brand);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.65rem); }
h3 { font-size: 1.25rem; }
h4 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mist);
  margin-bottom: 1rem;
}

p { margin: 0 0 1rem; }

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

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, 720px);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 18, 28, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--white);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 28px;
  width: auto;
}

.footer-brand .logo-img {
  height: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
}

.nav-cta {
  padding: 0.55rem 1.15rem;
  background: var(--ember);
  color: var(--white) !important;
  border-radius: var(--radius);
  transition: background 0.25s, transform 0.25s;
}

.nav-cta:hover {
  background: var(--ember-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn-primary {
  background: var(--ember);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--ember-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
  padding: 1.05rem 1.9rem;
  font-size: 1rem;
}

/* Hero — full-bleed composition */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-media,
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: kenburns 22s var(--ease) forwards;
}

@keyframes kenburns {
  to { transform: scale(1); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 28, 0.45) 0%, rgba(10, 18, 28, 0.55) 40%, rgba(10, 18, 28, 0.92) 100%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(232, 90, 28, 0.18), transparent 55%);
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  max-width: 720px;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
}

.hero-content {
  /* Full-height hero unchanged; lift title block via bottom padding only */
  padding: calc(var(--header-h) + 2rem) 0 18vh;
}

.page-hero-content {
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
}

.hero h1,
.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero-lead {
  font-size: 1.125rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.45s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page heroes */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.page-hero-compact {
  min-height: 48vh;
}

/* Sections */
.section {
  padding: 6.5rem 0;
}

.section-intro {
  background:
    linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 55%, #1a2a3d 100%);
  color: rgba(255, 255, 255, 0.78);
}

.section-intro h2,
.section-trust h2 {
  color: var(--white);
}

.section-intro .lead,
.section-trust .lead {
  color: rgba(255, 255, 255, 0.68);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1rem;
}

.section-intro .eyebrow,
.section-trust .eyebrow {
  color: var(--ember-hover);
}

.lead {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-head {
  max-width: 560px;
  margin-bottom: 3rem;
}

.section-sub {
  color: var(--text-muted);
  font-weight: 300;
}

/* Category rail — editorial strip, not cards */
.section-categories {
  background: var(--paper);
  overflow: hidden;
}

.category-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
}

.category-item {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  isolation: isolate;
}

.category-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.category-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 18, 28, 0.85) 100%);
  z-index: 1;
}

.category-item:hover img {
  transform: scale(1.06);
}

.category-label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1.1rem;
  z-index: 2;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.rail-note {
  margin-top: 1.75rem;
  text-align: right;
}

.rail-note a {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ember);
  padding-bottom: 2px;
  transition: color 0.25s;
}

.rail-note a:hover {
  color: var(--ember);
}

/* Custom split */
.section-custom {
  padding: 0;
  background: var(--white);
}

.custom-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}

.custom-visual {
  overflow: hidden;
  background: var(--ink);
}

.custom-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 480px;
}

.custom-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem clamp(2rem, 5vw, 5rem);
  background:
    linear-gradient(135deg, var(--paper-bright) 0%, var(--paper) 100%);
}

.check-list {
  margin: 0.5rem 0 2rem;
}

.check-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-dark);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  background: var(--ember);
  border-radius: 1px;
}

/* Reach */
.section-reach {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.section-reach h2,
.section-reach h3 {
  color: var(--white);
}

.reach-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.reach-points {
  display: grid;
  gap: 2rem;
}

.reach-points article {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.reach-points p {
  margin: 0;
  font-weight: 300;
}

/* Process */
.section-process {
  background: var(--paper-bright);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.process-list li {
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.step-num {
  display: block;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ember);
  margin-bottom: 1rem;
}

.process-list p {
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 300;
  margin: 0;
}

/* Trust */
.section-trust {
  background:
    linear-gradient(180deg, #122033 0%, var(--ink) 100%);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.trust-row div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.trust-row strong {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  color: var(--white);
}

.trust-row span {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--mist);
}

/* FAQ — editorial list for SEO / GEO */
.section-faq {
  background: var(--paper-bright);
}

.faq-list {
  max-width: 760px;
}

.faq-item {
  border-top: 1px solid var(--line-dark);
  padding: 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1.35rem 2rem 1.35rem 0;
  position: relative;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.35rem;
  color: var(--ember);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1.35rem;
  padding-right: 2rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 38rem;
}

.faq-item a {
  color: var(--ink);
  border-bottom: 1px solid var(--ember);
}

.footer-geo {
  margin-top: 0.75rem !important;
  color: var(--mist) !important;
  font-size: 0.85rem !important;
}

/* CTA band */
.section-cta {
  background: var(--paper);
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
  background:
    linear-gradient(120deg, var(--ink) 0%, #1c3048 50%, #243d55 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -160px;
  background: radial-gradient(circle, rgba(232, 90, 28, 0.35), transparent 65%);
  pointer-events: none;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  position: relative;
}

.cta-band .btn {
  position: relative;
  flex-shrink: 0;
}

/* Products page */
.section-product-list {
  padding-top: 2rem;
}

.product-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 5.5rem;
}

.product-block.reverse {
  direction: rtl;
}

.product-block.reverse > * {
  direction: ltr;
}

.product-block-img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink);
}

.product-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.product-block:hover .product-block-img img {
  transform: scale(1.04);
}

.product-block-copy p {
  color: var(--text-muted);
  font-weight: 300;
}

.product-block-copy ul {
  margin-top: 1.25rem;
}

.product-block-copy li {
  padding: 0.4rem 0;
  padding-left: 1.1rem;
  position: relative;
  color: var(--text);
  font-size: 0.98rem;
}

.product-block-copy li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ember);
}

/* Custom types */
.section-custom-types {
  background: var(--paper);
  padding-top: 2rem;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.type-grid article {
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.type-grid p {
  color: var(--text-muted);
  font-weight: 300;
  margin: 0;
}

/* About */
.section-about-visual {
  padding: 0 0 2rem;
}

.about-banner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  overflow: hidden;
  aspect-ratio: 21 / 9;
}

.about-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact */
.section-contact {
  padding-top: 4rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.contact-details .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.35rem;
}

.contact-details a {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--ember);
}

.contact-details p {
  margin: 0;
  color: var(--text-muted);
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--line-dark);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--paper-bright);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.25s, background 0.25s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--ember);
  background: var(--white);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--mist);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 280px;
  font-weight: 300;
  font-size: 0.95rem;
}

.site-footer a {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer p {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}

.footer-bottom {
  padding-top: 1.5rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mist);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .category-rail {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .reach-grid,
  .custom-split,
  .contact-layout,
  .product-block,
  .product-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .custom-visual img {
    min-height: 360px;
    max-height: 420px;
  }

  .type-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .trust-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(10, 18, 28, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: 0 !important;
  }

  .hero-content,
  .page-hero-content {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    width: auto;
  }

  .section {
    padding: 4.5rem 0;
  }

  .category-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .about-banner {
    aspect-ratio: 16 / 10;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .cta-band .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-img {
    transform: none;
    animation: none;
  }
}
