/* =========================================================
   Concilai — clean responsive rebuild
   Plain hand-written CSS, mobile-first
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f5f1;
  --bg-dark: #0e0e10;
  --ink: #0e0e10;
  --ink-soft: #3a3a3f;
  --muted: #6b6b73;
  --line: #e6e4dd;
  --brand: #d97706;          /* warm amber */
  --brand-ink: #7c2d12;
  --brand-soft: #fef3c7;
  --accent: #1f6feb;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 15, 20, .04), 0 1px 1px rgba(15, 15, 20, .03);
  --shadow-md: 0 10px 30px -12px rgba(15, 15, 20, .12);
  --container: 1200px;
  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw + 1rem, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw + .5rem, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 1.5vw + .5rem, 1.5rem); }
p  { margin: 0 0 1em; color: var(--ink-soft); }
small { color: var(--muted); }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: clamp(48px, 8vw, 96px) 0;
}
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #f5f5f0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #f9f7f1; }
.section--dark p { color: #cccac3; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 12px;
}
.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .12s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--brand); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-soft); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.nav__brand img { height: 28px; width: auto; }
.brand-wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--ink) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav__links {
  display: none;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__links a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  position: relative;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: none; gap: 10px; }
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 10px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Dropdown (hover on desktop, click on mobile) */
.has-menu { position: relative; }
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 240px;
  padding: 8px;
  list-style: none;
  margin: 12px 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.submenu li a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}
.submenu li a:hover { background: var(--bg-alt); color: var(--ink); }
.has-menu:hover .submenu,
.has-menu:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu > ul > li { border-bottom: 1px solid var(--line); }
.mobile-menu a {
  display: block;
  padding: 14px 20px;
  color: var(--ink);
  font-weight: 500;
}
.mobile-menu .sub { padding-left: 16px; }
.mobile-menu .sub a { color: var(--ink-soft); font-weight: 400; padding: 10px 20px; }
.mobile-menu .cta-stack { padding: 16px 20px; display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
  background:
    radial-gradient(60% 60% at 20% 0%, #fff7e6 0%, transparent 70%),
    radial-gradient(50% 60% at 90% 20%, #e7eefe 0%, transparent 70%),
    #fffdfa;
}
.hero h1 { margin-bottom: 20px; }
.hero p.lede { font-size: clamp(1rem, 1.2vw + .6rem, 1.25rem); margin-bottom: 28px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__visual {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
  aspect-ratio: 16 / 9;
  position: relative;
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Logos / trust strip ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  align-items: center;
  justify-items: center;
  padding: 32px 0;
  opacity: .85;
}
.logos img { max-height: 32px; width: auto; filter: grayscale(1) contrast(.9); opacity: .8; }

/* ---------- Feature cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d8d4c8; }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-soft); }
.card__icon {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
  border-radius: 12px;
  margin-bottom: 14px;
  font-weight: 700;
}

/* ---------- Split / alternating content ---------- */
.split {
  display: grid;
  gap: 32px;
  align-items: center;
}
.split img, .split .split__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-alt);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split h2 { margin-bottom: 12px; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial p { font-size: 1.05rem; color: var(--ink); margin-bottom: 18px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial .who span { display: block; font-size: 14px; color: var(--muted); }
.testimonial .who strong { display: block; color: var(--ink); }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #111114 0%, #2a2118 100%);
  color: #fff;
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  gap: 20px;
  align-items: center;
}
.cta-banner h2 { color: #fff; margin: 0; }
.cta-banner p { color: #d6d4cc; margin: 0; }
.cta-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #c8c6bf;
  padding: 64px 0 32px;
  margin-top: 0;
}
.site-footer a { color: #c8c6bf; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid li a { font-size: 14px; }
.footer-bottom {
  border-top: 1px solid #2a2a2e;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: #8b8983;
}
.footer-brand { font-family: var(--font-serif); color: #fff; font-size: 1.25rem; }

/* ---------- Page header (for non-home pages) ---------- */
.page-header {
  padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 48px);
  background: linear-gradient(180deg, #fff7e6 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin-bottom: 12px; }
.page-header .lede { font-size: 1.15rem; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }

/* ---------- Long-form content ---------- */
.prose {
  max-width: 70ch;
  margin: 0 auto;
}
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 1em; color: var(--ink-soft); }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 1em 1.2em;
  border-left: 3px solid var(--brand);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
  font-style: italic;
}
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .92em;
}

/* ---------- Blog cards ---------- */
.post-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card__media { aspect-ratio: 16 / 9; background: var(--bg-alt); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card__tag { font-size: 12px; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.post-card h3 { margin: 0 0 8px; font-size: 1.2rem; font-family: var(--font-serif); }
.post-card p { color: var(--ink-soft); margin: 0 0 16px; font-size: .95rem; }
.post-card a.read { margin-top: auto; color: var(--brand); font-weight: 600; font-size: 14px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { font-size: 14px; font-weight: 600; color: var(--ink); }
.form input, .form textarea, .form select {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .field { display: grid; gap: 6px; }
.form .row { display: grid; gap: 14px; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--muted);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 12px; color: var(--ink-soft); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
th { background: var(--bg-alt); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

/* =========================================================
   Responsive breakpoints
   ========================================================= */
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; align-items: center; }
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse > :first-child { order: 2; }
  .logos { grid-template-columns: repeat(6, 1fr); }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-banner { grid-template-columns: 2fr 1fr; }
  .cta-banner__actions { justify-self: end; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
}

@media (min-width: 1100px) {
  .hero { padding: 120px 0 80px; }
}

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