/* site.css — ADAPTA modern website styles */

:root {
  --red: #B33028;
  --red-deep: #8E2620;
  --forest: #1F3A2E;
  --forest-deep: #14271E;
  --bone: #F5F1E8;
  --paper: #FBFAF5;
  --ink: #0E1A14;
  --leaf: #5C8347;
  --leaf-bright: #7AA85B;
  --wheat: #E2C97D;
  --soil: #8C5630;
  --sky: #5C7A8C;
  --rule: rgba(14, 26, 20, 0.12);
  --rule-strong: rgba(14, 26, 20, 0.28);

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter Tight', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}
.eyebrow.muted { color: rgba(14, 26, 20, 0.55); }
.eyebrow.muted::before { background: rgba(14, 26, 20, 0.35); }
.eyebrow.on-dark { color: var(--wheat); }
.eyebrow.on-dark::before { background: var(--wheat); }
.eyebrow.leaf { color: var(--leaf); }
.eyebrow.leaf::before { background: var(--leaf); }

/* Display headlines — Fraunces */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--forest);
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--red);
  font-weight: 500;
}
.display .leaf {
  font-style: italic;
  color: var(--leaf);
  font-weight: 500;
}

/* Page container */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 64px;
}
@media (max-width: 800px) {
  .container { padding: 0 24px; }
}

/* Section spacing */
section { padding: 120px 0; }
@media (max-width: 800px) { section { padding: 72px 0; } }

/* Pill chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 58, 46, 0.06);
  color: var(--forest);
  border: 1px solid rgba(31, 58, 46, 0.14);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.chip:hover { background: rgba(31, 58, 46, 0.10); transform: translateY(-1px); }
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--leaf);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.7, 0.3, 1);
  border-radius: 0;
}
.btn-primary {
  background: var(--forest);
  color: var(--bone);
}
.btn-primary:hover {
  background: var(--red);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-bottom: 1.5px solid var(--forest);
  padding: 16px 0;
}
.btn-ghost:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Mono */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* Hairline divider */
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Grain texture (subtle) */
.grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  background-size: 160px 160px;
  background-repeat: repeat;
  opacity: 0.04;
  position: absolute; inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.3, 1),
              transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Floating decorations */
.float-slow { animation: floatY 6s ease-in-out infinite; }
.float-slow-2 { animation: floatY 8s ease-in-out infinite reverse; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Spin slow */
.spin-slow { animation: spin 60s linear infinite; }
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Marquee */
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── Responsive Layout ──────────────────────────────────────────────────────
   !important overrides inline styles at mobile breakpoints.               */

/* 2-column → single-column */
@media (max-width: 900px) {
  .resp-2col { grid-template-columns: 1fr !important; gap: 40px !important; }
  .resp-2col.mob-flip > *:first-child { order: 2; }
  .resp-2col.mob-flip > *:last-child  { order: 1; }
}

/* 3-column → 2-col tablet, 1-col mobile */
@media (max-width: 900px) {
  .resp-3col { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
}
@media (max-width: 580px) {
  .resp-3col { grid-template-columns: 1fr !important; }
}

/* Row-style multi-col → single column */
@media (max-width: 900px) {
  .resp-stack { grid-template-columns: 1fr !important; gap: 8px !important; }
}

/* Footer 4-col → 2-col → 1-col */
@media (max-width: 900px) {
  .resp-foot { grid-template-columns: 1fr 1fr !important; gap: 40px !important; }
  .resp-foot > *:first-child { grid-column: span 2; }
}
@media (max-width: 580px) {
  .resp-foot { grid-template-columns: 1fr !important; }
  .resp-foot > *:first-child { grid-column: span 1; }
}

/* Typography overrides */
@media (max-width: 900px) {
  .resp-h1 { font-size: 52px !important; line-height: 1.05 !important; }
  .resp-h2 { font-size: 42px !important; line-height: 1.08 !important; }
}
@media (max-width: 580px) {
  .resp-h1 { font-size: 36px !important; }
  .resp-h2 { font-size: 28px !important; }
}

/* Scrollable mockup wrapper */
.mockup-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mockup-scroll::-webkit-scrollbar { height: 4px; }
.mockup-scroll::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 2px; }

/* ─── Mobile Navigation ──────────────────────────────────────────────────── */
.site-hamburger {
  display: none;
  background: transparent; border: 1px solid var(--rule-strong); border-radius: 6px;
  cursor: pointer; color: var(--forest);
  width: 40px; height: 40px; padding: 0;
  align-items: center; justify-content: center; flex-shrink: 0;
}
@media (max-width: 900px) {
  .site-hamburger  { display: flex; }
  .site-desk-nav   { display: none !important; }
  .site-desk-right { display: none !important; }
}
.site-mob-menu {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: var(--bone); flex-direction: column;
  padding: 0 24px 40px; overflow-y: auto;
}
.site-mob-menu.is-open { display: flex; }
