/* =========================================================================
   Chodak Design × Dot Win — Proposal Theme
   Shared across proposal, website mockup, client portal, and Dream tool.
   Deep moss + warm stone + cream. Serif display + clean sans body.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand palette */
  --moss-900: #1f2a22;
  --moss-800: #27352c;
  --moss-700: #324137;
  --moss-600: #425248;
  --moss-500: #586960;
  --moss-400: #7b8e83;
  --moss-300: #a9b8af;
  --moss-200: #d0d8d2;
  --moss-100: #eaefea;

  --stone-900: #2a2621;
  --stone-800: #3b352d;
  --stone-700: #5a5042;
  --stone-600: #7a6e5d;
  --stone-500: #9c8f7c;
  --stone-400: #bdb3a0;
  --stone-300: #d8cfbd;
  --stone-200: #ece5d6;
  --stone-100: #f6f1e4;

  --cream: #faf6ec;
  --cream-warm: #f3ecdb;
  --ink: #191916;
  --ink-soft: #3a3833;
  --white: #ffffff;

  /* Accents */
  --terracotta: #b86b4b;
  --gold: #c6a661;
  --sage-glow: #88a08e;

  /* Semantic */
  --bg: var(--cream);
  --bg-alt: var(--cream-warm);
  --bg-dark: var(--moss-900);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --fg-inverse: var(--cream);
  --accent: var(--moss-700);
  --accent-strong: var(--moss-900);
  --hairline: rgba(25, 25, 22, 0.12);
  --hairline-soft: rgba(25, 25, 22, 0.06);
  --hairline-inverse: rgba(250, 246, 236, 0.18);

  /* Type */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Rhythm */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(25, 25, 22, 0.05), 0 2px 6px rgba(25, 25, 22, 0.04);
  --shadow: 0 10px 30px -12px rgba(25, 25, 22, 0.18), 0 2px 8px rgba(25, 25, 22, 0.06);
  --shadow-lg: 0 30px 60px -24px rgba(25, 25, 22, 0.28), 0 8px 20px rgba(25, 25, 22, 0.08);

  /* Layout */
  --max: 1200px;
  --max-narrow: 860px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 10vw, 140px);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* --- Typography ----------------------------------------------------------- */
.display, h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--fg);
  margin: 0 0 0.4em;
}
h1, .h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 500; letter-spacing: -0.02em; }
h2, .h2 { font-size: clamp(32px, 4.5vw, 60px); }
h3, .h3 { font-size: clamp(22px, 2.6vw, 34px); }
h4, .h4 { font-size: clamp(18px, 1.8vw, 22px); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss-600);
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--moss-500);
  display: inline-block;
}

p { margin: 0 0 1em; color: var(--fg-soft); }
p.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink); }
small, .small { font-size: 13px; color: var(--moss-600); letter-spacing: 0.01em; }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section-dark { background: var(--bg-dark); color: var(--fg-inverse); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark p { color: rgba(250, 246, 236, 0.78); }
.section-dark .eyebrow { color: var(--moss-300); }
.section-dark .eyebrow::before { background: var(--moss-300); }
.section-alt { background: var(--bg-alt); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--moss-900);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--ink); box-shadow: var(--shadow); }

.btn-ghost {
  background: transparent;
  color: var(--moss-900);
  border: 1px solid var(--moss-900);
}
.btn-ghost:hover { background: var(--moss-900); color: var(--cream); }

.btn-on-dark {
  background: var(--cream);
  color: var(--moss-900);
}
.btn-on-dark:hover { background: var(--white); }

.btn-lg { padding: 20px 34px; font-size: 15px; }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* --- Nav ------------------------------------------------------------------ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 236, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline-soft);
}
.topnav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  gap: 32px;
}
.topnav-links { display: flex; gap: 32px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss-700); }
.topnav-links a:hover { color: var(--moss-900); }

/* --- Logos ---------------------------------------------------------------- */
.cd-logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--moss-900);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cd-logo img { height: 34px; width: auto; }

.dotwin-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-style: normal;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: inherit;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.dotwin-logo::before {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: currentColor;
  margin-right: 0.04em;
  transform: translateY(0.02em);
}
.dotwin-logo .w { font-style: normal; }

.cobrand {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--moss-500);
}
.cobrand .sep { width: 1px; height: 14px; background: currentColor; opacity: 0.4; }

/* --- Cards + tiles -------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.card-dark {
  background: var(--moss-800);
  border: 1px solid var(--hairline-inverse);
  color: var(--cream);
}

/* --- Utility -------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.hr-hairline { border: 0; border-top: 1px solid var(--hairline); margin: 48px 0; }
.hr-hairline-dark { border: 0; border-top: 1px solid var(--hairline-inverse); margin: 48px 0; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--moss-100);
  color: var(--moss-800);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.pill-dark { background: rgba(250, 246, 236, 0.1); color: var(--cream); }
.pill-accent { background: var(--gold); color: var(--ink); }

.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.fade-in { animation: fadeUp 0.8s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* --- Reveal-on-scroll ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
