/* 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;
  /* Lines and field edges. --field-border is at least 3:1 on white and tint, as form edges must be. */
  --line: #E3E4EE;
  --field-border: #8587A3;
  --pressed: #E6E7F1;
  /* Status colours. Green is paid or done, amber is waiting, red is an error. Gold is brand only. */
  --ok: #1E6B38;
  --ok-bg: #DDF3E4;
  --warn: #7A5600;
  --warn-bg: #FFF8E6;
  --warn-bg-strong: #FFF1D1;
  --error: #B3261E;
  --error-text: #8C1D18;
  --error-bg: #FCEEEE;
  --error-bg-soft: #FDF1F0;
  --info: #1B4F94;
  --info-bg: #DCEBFF;
  --sent: #4A3A99;
  --sent-bg: #E8E3FF;
  /* Focus ring: navy on light backgrounds, gold on navy. Both are over 6:1. */
  --focus: var(--navy);
  --radius: 10px;
  --wrap: 1100px;
  --gutter: clamp(16px, 4vw, 32px);
  /* The proposal is a branded document that must match its PDF, so there is no dark appearance. */
  color-scheme: light;
}

*, *::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; }

/* A visible focus ring for keyboard users on everything that can take focus. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.navy-block, .site-header, .admin-header { --focus: var(--gold); }

/* Less motion for people who ask for it: no smooth scrolling, no transitions or animation. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

.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-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  min-height: 44px;
  box-sizing: border-box;
  white-space: nowrap;
  background: var(--gold);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 12px 28px;
  text-decoration: none;
  cursor: pointer;
}
/* Long labels wrap on a phone rather than pushing the page wider than the screen. */
@media (max-width: 560px) { .button { white-space: normal; text-align: center; } }
.button:hover { filter: brightness(0.96); }
.button:active { filter: brightness(0.88); }
.button:disabled, .button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; filter: none; }
.button-secondary { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.button-secondary:hover { background: var(--tint); filter: none; }
.button-secondary:active { background: var(--pressed); filter: none; }
.navy-block .button-secondary { color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.navy-block .button-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.navy-block .button-secondary:active { background: rgba(255, 255, 255, 0.2); }

/* 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 var(--field-border);
  border-radius: 8px;
  padding: 11px 12px;
  margin-top: 4px;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--focus); 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: var(--error); }
.field-error { color: var(--error); font-size: 0.9rem; font-weight: 500; margin: 6px 0 0; }
.form-alert { background: var(--error-bg); color: var(--error-text); 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; }

/* Emailed "update your payment details" page (Stage N) */
.pay-link { padding: 48px 0 64px; max-width: 640px; }
.pay-link h1 { margin-top: 0; }

/* Services sent for acceptance (Stage O) */
.offer-page { max-width: 760px; }
.offer-table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 15px; }
.offer-table th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; padding: 8px 10px; border-bottom: 1px solid currentColor; }
.offer-table td { padding: 10px; border-bottom: 1px solid rgba(127,127,127,.25); vertical-align: top; }
.offer-table .r { text-align: right; white-space: nowrap; }
.offer-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 18px; margin: 14px 0; }
.offer-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.offer-facts dd { margin: 2px 0 0; font-weight: 600; }
.offer-accept { display: grid; gap: 12px; margin: 18px 0; }
.offer-accept .tick { display: flex; gap: 10px; align-items: flex-start; }
.offer-accept .tick input { margin-top: 4px; }
.offer-accept label span { display: block; font-weight: 600; margin-bottom: 4px; }
.offer-accept .field-error { color: #c0392b; margin: -6px 0 0; }
.offer-page .table-wrap { overflow-x: auto; }
@media (max-width: 560px) {
  .offer-table th:nth-child(3), .offer-table td:nth-child(3) { display: none; }
  .offer-table { font-size: 14px; }
}

/* Payment details link page: who is asking, for what, and how it is kept safe (10 October 2026) */
.pay-card { border: 1px solid rgba(127,127,127,.25); border-radius: 18px; padding: 28px 30px; background: rgba(255,255,255,.6); box-shadow: 0 6px 24px rgba(30,30,60,.06); }
.pay-eyebrow { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3d3d6b; margin: 0 0 6px; }
.pay-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 18px; margin: 18px 0; padding: 14px 0; border-top: 1px solid rgba(127,127,127,.2); border-bottom: 1px solid rgba(127,127,127,.2); }
.pay-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.pay-facts dd { margin: 2px 0 0; font-weight: 600; }
.pay-for h2 { font-size: 15px; margin: 0 0 6px; }
.pay-for ul { margin: 0 0 20px; padding-left: 18px; }
.pay-for li { margin: 3px 0; }
.pay-secure { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 18px 0 6px; opacity: .85; }
.pay-secure svg { flex: none; margin-top: 2px; }
@media (max-width: 560px) { .pay-card { padding: 20px 18px; } }

/* v1 day 3: sub-brand logos in the group footer */
.brand-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 10px; }
.brand-row img { height: 30px; width: auto; }

/* Ops forms (CRM phase 2), on their own page or inside a website's frame. */
.nimbu-form-embed { background: transparent; margin: 0; }
.nimbu-form-embed .nimbu-form { padding: 4px 4px 16px; max-width: 720px; }
.nimbu-form .tick { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.nimbu-form .tick input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.nimbu-form input[type="text"], .nimbu-form input[type="email"], .nimbu-form input[type="tel"], .nimbu-form textarea, .nimbu-form select { width: 100%; min-height: 44px; }
