/* ============================================================
   Nurtura Care Group - Design System
   ============================================================ */

:root {
  /* Brand palette (from logo) */
  --forest-deep: #1f5631;
  --forest: #2a6f3f;
  --forest-soft: #3d8a52;
  --leaf: #6fb04a;
  --leaf-soft: #a8cf7e;

  --gold: #d4a24b;
  --gold-deep: #a87526;
  --gold-soft: #e8c98a;

  --cream: #f7f1e3;
  --cream-soft: #fbf7ec;
  --ivory: #fdfbf6;
  --paper: #ffffff;

  --ink: #16261b;
  --ink-soft: #3d4b42;
  --ink-mute: #6b7770;
  --line: #e5e0d2;
  --line-soft: #efeadd;

  /* Surface colors (default = nurturing) */
  --bg: var(--ivory);
  --bg-alt: var(--cream-soft);
  --bg-deep: var(--cream);
  --surface: var(--paper);
  --surface-line: var(--line);

  /* Brand tones */
  --primary: var(--forest-deep);
  --primary-hover: var(--forest);
  --accent: var(--gold);
  --accent-deep: var(--gold-deep);

  /* Type */
  --font-display: 'Lora', 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  /* Geometry */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(22, 38, 27, 0.04), 0 2px 6px rgba(22, 38, 27, 0.04);
  --shadow: 0 4px 18px rgba(22, 38, 27, 0.06), 0 14px 40px rgba(22, 38, 27, 0.06);
  --shadow-lg: 0 24px 60px rgba(22, 38, 27, 0.12);

  /* Layout */
  --container: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
  --section-py: clamp(72px, 9vw, 128px);
}

/* ----- Aesthetic preset: Institutional ----- */
[data-aesthetic="institutional"] {
  --bg: #ffffff;
  --bg-alt: #f6f7f5;
  --bg-deep: #eef1ed;
  --surface: #ffffff;
  --surface-line: #e3e6e2;
  --line: #e3e6e2;
  --line-soft: #eef1ed;
  --cream: #f6f7f5;
  --cream-soft: #fafbfa;
  --ivory: #ffffff;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --font-display: 'Manrope', system-ui, sans-serif;
}

/* ----- Aesthetic preset: Editorial ----- */
[data-aesthetic="editorial"] {
  --bg: #fbf8f1;
  --bg-alt: #f3ecd9;
  --bg-deep: var(--forest-deep);
  --surface: #ffffff;
  --section-py: clamp(96px, 11vw, 160px);
}

/* ----- Palette emphasis variants ----- */
[data-palette="gold"] {
  --primary: var(--gold-deep);
  --primary-hover: #8a5e1c;
  --accent: var(--forest-deep);
  --accent-deep: var(--forest);
}
[data-palette="balanced"] {
  --primary: var(--forest-deep);
  --accent: var(--gold);
}

/* ----- Density ----- */
[data-density="compact"] {
  --section-py: clamp(48px, 6vw, 88px);
}
[data-density="airy"] {
  --section-py: clamp(96px, 12vw, 180px);
}

/* ----- Button shape ----- */
[data-button-shape="square"] {
  --btn-radius: 4px;
}
[data-button-shape="rounded"] {
  --btn-radius: 10px;
}
[data-button-shape="pill"] {
  --btn-radius: 999px;
}

/* ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button { font-family: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 5.6vw, 78px); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
h4 { font-size: 20px; line-height: 1.3; font-weight: 600; font-family: var(--font-body); }
p { margin: 0; text-wrap: pretty; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.container--narrow { max-width: 880px; }
.container--wide { max-width: 1400px; }

.section { padding-block: var(--section-py); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: currentColor;
  display: inline-block;
  opacity: 0.7;
}

/* ----- Buttons ----- */
.btn {
  --btn-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--btn-radius);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
[data-button-shape="square"] .btn,
[data-button-shape="rounded"] .btn { --btn-radius: inherit; }

.btn--primary {
  background: var(--primary);
  color: var(--cream-soft);
}
.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(31, 86, 49, 0.28);
}
.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--ghost:hover {
  background: var(--primary);
  color: var(--cream-soft);
}
.btn--light {
  background: var(--cream-soft);
  color: var(--ink);
  border-color: var(--line);
}
.btn--light:hover { background: var(--paper); border-color: var(--ink-mute); }

.btn--on-dark {
  background: var(--gold);
  color: var(--forest-deep);
}
.btn--on-dark:hover { background: var(--gold-soft); }

.btn--ghost-on-dark {
  background: transparent;
  color: var(--cream-soft);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost-on-dark:hover { background: rgba(255,255,255,0.1); border-color: var(--cream-soft); }

.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----- Scroll reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* ----- Form controls ----- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 86, 49, 0.12);
}
.field.error input,
.field.error textarea,
.field.error select { border-color: #b54639; }
.field .error-msg {
  font-size: 12px;
  color: #b54639;
  font-weight: 600;
}

/* ----- Cards ----- */
.card {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

/* ----- Utility ----- */
.dark-section {
  background: var(--forest-deep);
  color: var(--cream-soft);
}
.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 { color: var(--cream-soft); }
.dark-section .eyebrow { color: var(--gold-soft); }

.gold-section { background: var(--cream); }

/* ----- Image placeholder ----- */
.img-placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(31,86,49,0.04) 0 1px, transparent 1px 12px),
    linear-gradient(135deg, var(--cream) 0%, var(--cream-soft) 100%);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute);
  font-family: 'Menlo', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 16px;
}

.img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-deep);
  position: relative;
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ----- Logo treatments ----- */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest-deep);
}
.logo-mark img { height: 78px; width: auto; }
.logo-mark__text { display: flex; flex-direction: column; line-height: 1; }
.logo-mark__text .top { font-size: 28px; letter-spacing: -0.01em; }
.logo-mark__text .bot { font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; font-family: var(--font-body); color: var(--forest); font-weight: 500; margin-top: 6px; }

/* ----- Tag / pill ----- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.tag--gold { background: rgba(212, 162, 75, 0.14); color: var(--gold-deep); border-color: rgba(168, 117, 38, 0.2); }
.tag--green { background: rgba(31, 86, 49, 0.08); color: var(--forest-deep); border-color: rgba(31, 86, 49, 0.15); }

/* ----- Scrollbar (subtle) ----- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }
::-webkit-scrollbar-track { background: var(--bg); }

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

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* page transitions */
.page-enter { animation: pageIn 0.45s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
