/* ChiquiCorp — B2B landing
   Earth-tone system: warm cream, sage/olive greens, friendly orange accent
   Type: Newsreader (serif display, credible/premium) + Hanken Grotesk (sans, clean/approachable) */

:root {
  /* Surfaces — warm, low-chroma creams */
  --cream:      oklch(0.977 0.012 85);
  --cream-2:    oklch(0.958 0.018 82);
  --cream-3:    oklch(0.935 0.022 80);
  --paper:      oklch(0.992 0.006 90);

  /* Ink + greens */
  --ink:        oklch(0.29 0.028 155);
  --ink-soft:   oklch(0.43 0.030 152);
  --green-deep: oklch(0.41 0.058 156);
  --green:      oklch(0.55 0.066 152);
  --sage:       oklch(0.70 0.045 150);
  --sage-line:  oklch(0.86 0.028 145);
  --sage-tint:  oklch(0.93 0.022 145);

  /* Accent — friendly orange */
  --orange:     oklch(0.71 0.145 52);
  --orange-deep:oklch(0.64 0.150 48);
  --orange-tint:oklch(0.94 0.045 62);

  --radius:   14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: 72px;
  --head-gap: 40px;

  --shadow-sm: 0 1px 2px oklch(0.4 0.03 150 / 0.06), 0 2px 8px oklch(0.4 0.03 150 / 0.05);
  --shadow:    0 4px 14px oklch(0.4 0.03 150 / 0.08), 0 12px 40px oklch(0.4 0.03 150 / 0.07);

  --serif: "Newsreader", Georgia, serif;
  --sans:  "Hanken Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { scroll-margin-top: 86px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: oklch(0.99 0.01 80);
  box-shadow: 0 2px 10px oklch(0.71 0.145 52 / 0.30);
}
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-1px); box-shadow: 0 6px 18px oklch(0.71 0.145 52 / 0.36); }
.btn-ghost {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--sage-line);
}
.btn-ghost:hover { background: var(--paper); border-color: var(--sage); transform: translateY(-1px); }
.btn-dark { background: var(--green-deep); color: var(--cream); }
.btn-dark:hover { background: var(--ink); transform: translateY(-1px); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--sage);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.977 0.012 85 / 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-color: var(--sage-line); background: oklch(0.977 0.012 85 / 0.94); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--green-deep);
  display: grid; place-items: center;
  color: var(--cream);
  font-family: var(--serif); font-weight: 600; font-size: 19px;
  flex: none;
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; color: var(--green-deep); }
.brand-name b { color: var(--orange-deep); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--green-deep); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang {
  display: inline-flex; border: 1px solid var(--sage-line); border-radius: 100px;
  overflow: hidden; font-size: 12.5px; font-weight: 600;
}
.lang button { border: none; background: transparent; padding: 6px 11px; cursor: pointer; color: var(--ink-soft); font-family: var(--sans); font-weight: 600; }
.lang button.on { background: var(--green-deep); color: var(--cream); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  margin-bottom: 22px;
}
.tagline-rotor { position: relative; }
.tagline-es { display: block; font-family: var(--sans); font-style: italic; font-weight: 400; font-size: clamp(15px, 1.5vw, 18px); color: var(--green); letter-spacing: 0; margin-top: 14px; }
.hero-sub { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-soft); max-width: 30em; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.tagswitch { display: inline-flex; gap: 7px; margin-top: 30px; align-items: center; }
.tagswitch .lbl { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); font-weight: 600; margin-right: 4px; }
.tagswitch button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--sage-line);
  background: var(--paper); cursor: pointer; font-size: 12px; font-weight: 700; color: var(--ink-soft);
  font-family: var(--sans); transition: .18s;
}
.tagswitch button.on { background: var(--orange); color: #fff; border-color: var(--orange); }
.tagswitch button:hover:not(.on) { border-color: var(--sage); }

/* Hero image stack */
.hero-media { position: relative; }
.hero-media .ph { aspect-ratio: 4/5; border-radius: var(--radius-lg); }
.hero-badge {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--paper); border: 1px solid var(--sage-line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 13px;
  max-width: 250px;
}
.hero-badge .dot { width: 38px; height: 38px; border-radius: 10px; background: var(--orange-tint); display: grid; place-items: center; flex: none; color: var(--orange-deep); }
.hero-badge b { font-family: var(--serif); font-size: 15px; display: block; }
.hero-badge span { font-size: 12.5px; color: var(--ink-soft); }

/* Trust strip */
.strip { border-top: 1px solid var(--sage-line); border-bottom: 1px solid var(--sage-line); background: var(--cream-2); }
.strip-inner { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; align-items: center; padding: 20px 0; }
.strip-item { display: flex; align-items: center; gap: 11px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.strip-item svg { color: var(--green); flex: none; }

/* ---------- Section scaffolding ---------- */
.section { padding: var(--section-pad) 0; }
.section-head { max-width: 640px; margin-bottom: var(--head-gap); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 18px 0 16px; }
.section-head p { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); }

/* ---------- What we make ---------- */
.product { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.product-media .ph { aspect-ratio: 1/1; border-radius: var(--radius-lg); }
.product-name { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.product-name h3 { font-size: clamp(26px, 3vw, 36px); }
.pill { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 100px; background: var(--sage-tint); color: var(--green-deep); }
.product > div > p.lead { font-size: 18px; color: var(--ink-soft); margin-bottom: 26px; }

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--sage-line); border: 1px solid var(--sage-line); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.spec { background: var(--paper); padding: 20px 20px; }
.spec .ico { width: 36px; height: 36px; border-radius: 9px; background: var(--sage-tint); display: grid; place-items: center; color: var(--green-deep); margin-bottom: 12px; flex: none; }
.spec.spec-wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; background: var(--sage-tint); }
.spec.spec-wide .ico { margin-bottom: 0; background: var(--green-deep); color: var(--cream); }
.spec.spec-wide .ico svg { stroke: currentColor; }
.spec.spec-wide b { margin-bottom: 2px; }
.spec b { font-family: var(--serif); font-weight: 500; font-size: 16.5px; display: block; margin-bottom: 4px; }
.spec span { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

.range-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--orange-tint); border-radius: var(--radius); }
.range-note svg { color: var(--orange-deep); flex: none; margin-top: 2px; }
.range-note b { font-family: var(--serif); font-weight: 500; }

/* ---------- Why partner ---------- */
.why { background: var(--green-deep); color: var(--cream); }
.why .eyebrow { color: var(--sage); }
.why .eyebrow::before { background: var(--sage); }
.why h2 { color: var(--cream); }
.why .section-head p { color: oklch(0.86 0.03 145); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: oklch(0.46 0.05 156);
  border: 1px solid oklch(0.52 0.05 156);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); background: oklch(0.49 0.055 156); }
.card .num { font-family: var(--serif); font-size: 14px; color: var(--orange); font-weight: 600; letter-spacing: 0.05em; }
.card .ico { width: 44px; height: 44px; border-radius: 11px; background: oklch(0.55 0.06 156); display: grid; place-items: center; color: var(--cream); margin: 14px 0 16px; }
.card h3 { color: var(--cream); font-size: 21px; margin-bottom: 9px; }
.card p { font-size: 14.5px; color: oklch(0.87 0.03 145); line-height: 1.55; }

/* ---------- Team ---------- */
.team { background: var(--cream-2); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.team-copy p.big { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.4; color: var(--ink); margin-bottom: 22px; letter-spacing: -0.01em; white-space: pre-line; }
.team-copy p.big em { font-style: italic; color: var(--green-deep); }
.team-copy p.sub { color: var(--ink-soft); font-size: 16.5px; }
.disciplines { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.disc-card { background: var(--sage-tint); border: 1px solid var(--sage-line); border-radius: var(--radius-lg); padding: 20px; }
.disc-card-head { padding: 4px 4px 0; margin-bottom: 16px; }
.disc-card-eyebrow { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--green-deep); }
.disc-card-eyebrow svg { color: var(--green); flex: none; }
.disc-card-head p { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.disc { background: var(--paper); border: 1px solid var(--sage-line); border-radius: var(--radius); padding: 20px; }
.disc .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--sage-tint); display: grid; place-items: center; color: var(--green-deep); margin-bottom: 13px; }
.disc b { font-family: var(--serif); font-weight: 500; font-size: 17px; display: block; margin-bottom: 4px; }
.disc span { font-size: 13.5px; color: var(--ink-soft); }
.disc.connect { background: var(--green-deep); border-color: var(--green-deep); }
.disc.connect .ico { background: oklch(0.55 0.06 156); color: var(--cream); }
.disc.connect b { color: var(--cream); }
.disc.connect span { color: oklch(0.86 0.03 145); }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); }
.contact-aside h2 { font-size: clamp(30px, 4vw, 46px); margin: 18px 0 18px; }
.contact-aside p { color: var(--ink-soft); font-size: 17px; margin-bottom: 30px; max-width: 32ch; }
.contact-meta { display: flex; flex-direction: column; gap: 18px; }
.cmeta { display: flex; gap: 14px; align-items: flex-start; }
.cmeta .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--paper); border: 1px solid var(--sage-line); display: grid; place-items: center; color: var(--green-deep); flex: none; }
.cmeta b { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage); display: block; margin-bottom: 3px; }
.cmeta a, .cmeta span { font-size: 16px; color: var(--ink); font-weight: 500; }
.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a { width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--sage-line); background: var(--paper); display: grid; place-items: center; color: var(--green-deep); transition: .18s; }
.socials a:hover { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); transform: translateY(-2px); }

.form-card { background: var(--paper); border: 1px solid var(--sage-line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; letter-spacing: 0.01em; }
.field label .req { color: var(--orange-deep); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  background: var(--cream); border: 1px solid var(--sage-line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.66 0.02 150); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); background: var(--paper);
  box-shadow: 0 0 0 3px oklch(0.55 0.066 152 / 0.13);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6b5a' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--orange-deep); box-shadow: 0 0 0 3px oklch(0.64 0.150 48 / 0.12); }
.field .err { font-size: 12.5px; color: var(--orange-deep); margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.form-foot small { color: var(--ink-soft); font-size: 13px; max-width: 30ch; }

.form-success { text-align: center; padding: 30px 10px; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--sage-tint); color: var(--green-deep); display: grid; place-items: center; margin: 0 auto 20px; }
.form-success h3 { font-size: 26px; margin-bottom: 10px; }
.form-success p { color: var(--ink-soft); max-width: 34ch; margin: 0 auto; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: oklch(0.84 0.02 145); padding: 56px 0 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid oklch(0.38 0.03 152); }
.footer .brand-name { color: var(--cream); }
.footer .brand-mark { background: var(--green); }
.footer-blurb { max-width: 30ch; font-size: 14.5px; margin-top: 16px; color: oklch(0.78 0.02 145); white-space: pre-line; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin: 0 0 14px; font-weight: 600; }
.footer-col a, .footer-col span { display: block; font-size: 14.5px; color: oklch(0.82 0.02 145); margin-bottom: 9px; transition: color .15s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; flex-wrap: wrap; }
.footer-bottom small { font-size: 13px; color: oklch(0.72 0.02 145); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid oklch(0.40 0.03 152); display: grid; place-items: center; color: oklch(0.82 0.02 145); transition: .18s; }
.footer-social a:hover { background: var(--green); color: var(--cream); border-color: var(--green); }

/* ---------- Real image frames ---------- */
.imgframe {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--sage-line); box-shadow: var(--shadow); background: var(--cream-3);
}
.imgframe img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media .imgframe { aspect-ratio: 5/4; }
.product-media .imgframe { aspect-ratio: 4/5; }

/* ---------- Placeholder image blocks ---------- */
.ph {
  position: relative;
  background-color: var(--cream-3);
  background-image: repeating-linear-gradient(
    -45deg,
    oklch(0.90 0.022 90 / 0.9) 0 14px,
    oklch(0.94 0.018 90 / 0.9) 14px 28px
  );
  border: 1px solid var(--sage-line);
  display: grid; place-items: center;
  overflow: hidden;
}
.ph .ph-cap {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px; line-height: 1.5; color: var(--ink-soft);
  background: oklch(0.99 0.006 90 / 0.86);
  border: 1px solid var(--sage-line); border-radius: 8px;
  padding: 9px 13px; margin: 18px; max-width: 80%; text-align: center;
  backdrop-filter: blur(2px);
}
.ph .ph-cap b { display: block; font-weight: 600; color: var(--green-deep); margin-bottom: 2px; letter-spacing: 0.03em; }
.ph.ph-stacked { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ph .ph-icon { color: var(--green); opacity: 0.55; }
.ph .ph-icon svg { display: block; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; }
  .product { grid-template-columns: 1fr; }
  .product-media { max-width: 480px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .team-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-right .btn, .lang { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--sage-line);
    padding: 16px var(--gutter) 22px;
  }
  .nav.open .nav-links a { padding: 10px 0; font-size: 17px; border-bottom: 1px solid var(--sage-tint); }
  .specs, .form-row, .disciplines { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
