/* Nimbu Creative house style. Colours and weights come from the build brief. */

@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 400;
  src: url('/fonts/montserrat-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 500;
  src: url('/fonts/montserrat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 600;
  src: url('/fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 700;
  src: url('/fonts/montserrat-latin-700-normal.woff2') format('woff2'); }

:root {
  --navy: #3D3F6B;
  --gold: #FBC85F;
  --tint: #F4F5FA;
  --text: #1A1A1A;
  --white: #FFFFFF;
  --muted: #5B5D7A;
  --radius: 10px;
  --wrap: 1100px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; margin: 0 0 0.5em; color: var(--navy); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--navy); font-weight: 600; }
img { max-width: 100%; height: auto; }

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

/* Header and footer */
.site-header { background: var(--navy); padding: 18px 0; }
.site-footer { background: var(--tint); color: var(--muted); font-size: 0.8rem; padding: 28px 0; margin-top: 64px; }
.site-footer p { margin: 0 0 6px; }

/* Logo */
.logo { display: block; height: auto; max-width: 40vw; }

/* Navy pill section badge */
.badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Navy block with dot-matrix corners */
.navy-block {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 48px);
  margin: 32px 0;
}
.navy-block h1, .navy-block h2, .navy-block h3 { color: var(--white); }
/* Dot matrix in the bottom-right corner, as on the PDF cover and closing panel */
.navy-block::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(45%, 260px);
  height: min(70%, 260px);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1px, transparent 1.4px);
  background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(315deg, #000 35%, transparent 100%);
  mask-image: linear-gradient(315deg, #000 35%, transparent 100%);
  pointer-events: none;
}
.navy-block > * { position: relative; }

/* Tint panel and cards */
.tint-block { background: var(--tint); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); margin: 32px 0; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 3px rgba(61, 63, 107, 0.12); }
.card h3 { margin-bottom: 6px; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 12px 28px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(0.96); }
.button-secondary { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.navy-block .button-secondary { color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }

/* Long-form text: privacy statement, terms */
.prose { max-width: 760px; padding-top: 32px; }
.prose h2 { font-size: 1.25rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.5em; }
.prose .updated { color: var(--muted); font-size: 0.9rem; }

/* Forms */
.form-page { max-width: 760px; margin: 0 auto; }
.discovery-form fieldset { border: 0; margin: 0 0 12px; padding: 0; }
.discovery-form legend { padding: 0; margin: 24px 0 8px; }
.field { margin: 0 0 22px; }
.field > label, .field .label, .priority-row > label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.req { color: var(--muted); font-weight: 500; font-size: 0.85em; }
.opt { color: var(--muted); font-weight: 400; font-size: 0.85em; }
.hint { color: var(--muted); font-size: 0.9rem; margin: -2px 0 8px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], textarea, select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid #C9CADB;
  border-radius: 8px;
  padding: 11px 12px;
  margin-top: 4px;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(251, 200, 95, 0.6); outline-offset: 1px; border-color: var(--navy); }
.field-pair { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.choices-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.choice { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; padding: 4px 0; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.priority-row { margin-bottom: 14px; }
.money { display: flex; align-items: center; gap: 8px; max-width: 260px; }
.money span { font-weight: 600; color: var(--navy); }
.consent { background: var(--tint); border-radius: var(--radius); padding: 16px 18px; }
.has-error input, .has-error textarea, .has-error select { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: 0.9rem; font-weight: 500; margin: 6px 0 0; }
.form-alert { background: #FCEEEE; color: #8C1D18; border-radius: 8px; padding: 12px 16px; font-weight: 600; margin: 0 0 16px; }
.cf-turnstile { margin: 8px 0 18px; min-height: 65px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Banner, as used for the recommendation and time frame */
.banner { border-left: 6px solid var(--gold); background: var(--tint); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 500; margin: 24px 0; }
