/* =========================================================
   Inooo Technologies — 2026 redesign
   Design tokens, layout, and component styles.
   ========================================================= */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: local('Fraunces');
}

:root {
  --ink: #151821;
  --ink-soft: #1E212C;
  --paper: #EDEEEA;
  --indigo: #4A4FE0;
  --indigo-dim: #3638A8;
  --brass: #A9824E;
  --slate: #6B707C;
  --white: #FFFFFF;
  --line: rgba(21, 24, 33, 0.12);
  --line-on-ink: rgba(237, 238, 234, 0.16);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Space Grotesk', 'Segoe UI', sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 3px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

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

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

p { margin: 0; max-width: 62ch; }

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

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 26px;
  border: 1.5px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.btn-indigo {
  color: var(--white);
  background: var(--indigo);
  border-color: var(--indigo);
}
.btn-indigo:hover { background: var(--indigo-dim); border-color: var(--indigo-dim); }
.btn-outline-ink { color: var(--ink); }
.btn-outline-ink:hover { background: var(--ink); color: var(--white); }
.btn-outline-light { color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.nav-brand img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--brass);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-socials { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.nav-socials a { color: var(--slate); font-size: 0.95rem; }
.nav-socials a:hover { color: var(--indigo); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-panel {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.25s ease;
}
.mobile-panel.is-open { transform: translateY(0); }
.mobile-panel-top { display: flex; justify-content: flex-end; }
.mobile-panel-close {
  background: none; border: none; color: var(--white);
  font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.mobile-panel-links {
  list-style: none; margin: auto 0; padding: 0;
}
.mobile-panel-links li { border-top: 1px solid var(--line-on-ink); }
.mobile-panel-links li:last-child { border-bottom: 1px solid var(--line-on-ink); }
.mobile-panel-links a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  padding: 18px 0;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--white);
  padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero-eyebrow {
  color: var(--brass);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
}
.hero p.lede {
  color: rgba(255,255,255,0.72);
  font-size: 1.15rem;
  margin-top: 22px;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-visual {
  animation: hero-in 0.7s ease both 0.15s;
}
.hero-content { animation: hero-in 0.7s ease both; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-visual svg { width: 100%; height: auto; }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: var(--white); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--slate); margin-top: 10px; }
.section-ink .section-head p { color: rgba(255,255,255,0.68); }

/* ---------- Why Us (editorial list) ---------- */
.why-list { list-style: none; margin: 0; padding: 0; }
.why-row {
  display: grid;
  grid-template-columns: 64px 1fr 1.4fr;
  gap: 28px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.why-list li:last-child .why-row { border-bottom: 1px solid var(--line); }
.why-index { font-family: var(--font-display); color: var(--brass); font-size: 1.1rem; }
.why-row h3 { font-size: 1.25rem; }
.why-row p { color: var(--slate); }

/* ---------- Services (numbered rows) ---------- */
.service-list { list-style: none; margin: 0; padding: 0; }
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.2s ease;
}
.service-list li:last-child .service-row { border-bottom: 1px solid var(--line); }
.service-row:hover { padding-left: 12px; }
.service-num { font-family: var(--font-display); color: var(--slate); font-size: 1rem; }
.service-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.service-desc {
  grid-column: 2 / 3;
  color: var(--slate);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, margin-top 0.25s ease;
  margin-top: 0;
}
.service-row:hover .service-desc,
.service-row:focus-within .service-desc { max-height: 120px; margin-top: 10px; }
.service-link {
  justify-self: end;
  font-size: 0.9rem;
  color: var(--indigo);
  border-bottom: 1px solid transparent;
}
.service-link:hover { border-color: var(--indigo); }

/* ---------- Portfolio (asymmetric grid) ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-soft);
}
.portfolio-item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.portfolio-item:nth-child(2) { grid-column: span 2; }
.portfolio-item:nth-child(3) { grid-column: span 2; }
.portfolio-item:nth-child(4) { grid-column: span 3; }
.portfolio-item:nth-child(5) { grid-column: span 3; }
.portfolio-item:nth-child(6) { grid-column: span 6; }
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.4s ease;
}
.portfolio-item:hover img { transform: scale(1.04); }
.portfolio-caption {
  position: absolute; inset: auto 0 0 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(21,24,33,0.88), transparent);
  color: var(--white);
}
.portfolio-caption h3 { font-size: 1.1rem; }
.portfolio-caption p { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-top: 4px; }

/* ---------- Testimonials ---------- */
.testimonial-panel {
  border: 1px solid var(--line-on-ink);
  border-left: 3px solid var(--brass);
  padding: clamp(28px, 5vw, 48px);
}
.testimonial-track {
  display: flex;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
}
.testimonial-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 500;
  line-height: 1.4;
}
.testimonial-meta { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.testimonial-meta img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-meta h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
.testimonial-meta span { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.testimonial-controls { display: flex; gap: 12px; margin-top: 28px; }
.testimonial-controls button {
  width: 40px; height: 40px;
  border: 1px solid var(--line-on-ink);
  background: transparent; color: var(--white);
  cursor: pointer; border-radius: 50%;
}
.testimonial-controls button:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- Contact ---------- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
}
.contact-info {
  background: var(--ink);
  color: var(--white);
  padding: clamp(40px, 6vw, 72px);
}
.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--white); }
.contact-info p { color: rgba(255,255,255,0.7); margin-top: 16px; }
.contact-methods { list-style: none; margin: 36px 0 0; padding: 0; }
.contact-methods li { padding: 16px 0; border-top: 1px solid var(--line-on-ink); }
.contact-methods a { font-size: 1.1rem; }
.contact-methods a:hover { color: var(--brass); }

.contact-form-wrap { background: var(--paper); padding: clamp(40px, 6vw, 72px); }
.form-row { display: grid; gap: 20px; margin-bottom: 20px; }
.form-row.two-col { grid-template-columns: 1fr 1fr; }
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--indigo); }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.alert-success { background: #E4F4EA; color: #1E6B3F; border: 1px solid #BFE3CD; }
.alert-danger { background: #FBE9E7; color: #9A3324; border: 1px solid #F3C6BE; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--ink);
  color: var(--white);
  padding: clamp(48px, 8vw, 88px) 0;
}
.cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 18ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); }
.footer-top {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 80px) 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
}
.footer-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 18px;
}
.footer-about p { color: var(--slate); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding: 8px 0; }
.footer-list a:hover { color: var(--indigo); }
.footer-socials { display: flex; gap: 14px; margin-top: 18px; list-style: none; padding: 0; }
.footer-socials a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.footer-socials a:hover { border-color: var(--indigo); color: var(--indigo); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--slate);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-socials { display: none; }
  .nav-toggle { display: block; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 280px; }
  .why-row { grid-template-columns: 40px 1fr; }
  .why-row > p { grid-column: 1 / -1; }
  .service-row { grid-template-columns: 50px 1fr; }
  .service-link { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
  .service-desc { grid-column: 1 / -1; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item, .portfolio-item:nth-child(n) { grid-column: span 1 !important; grid-row: auto !important; }
  .contact-split { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .form-row.two-col { grid-template-columns: 1fr; }
}
