/* ==========================================================================
   Hey Chommie — Client Proposal Template
   Shared stylesheet. Do not fork per client — every job uses this file.
   Palette (exact values only):
     Pristine White  #FFFFFF  base background / surfaces
     Deep Teal       #003C30  primary accent — headings, CTA, structure
     Warm Caramel    #DFA364  secondary accent — price, selected colour, callouts
     Stone Grey      #8C9093  muted — borders, dividers, secondary text
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --teal: #003C30;
  --caramel: #DFA364;
  --grey: #8C9093;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
  --max-width: 880px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--teal);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  padding: 0 20px 80px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---------- Header ---------- */

.proposal-header {
  padding: 56px 0 32px;
  text-align: center;
  border-bottom: 1px solid #E7E5E2;
  margin-bottom: 40px;
}

.brand-logo {
  display: block;
  width: 96px;
  height: auto;
  margin: 0 auto 6px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

.proposal-header .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 14px;
}

.proposal-header h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.15;
  color: var(--teal);
  margin: 0 0 10px;
}

.proposal-header .for-client {
  font-size: 15px;
  color: var(--grey);
}

.proposal-header .for-client strong {
  color: var(--teal);
  font-weight: 600;
}

/* ---------- Section shell ---------- */

section {
  margin-bottom: 48px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 12px;
}

section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--teal);
  margin: 0 0 16px;
}

/* ---------- Description ---------- */

.description-card {
  background: #FBFAF8;
  border: 1px solid #E7E5E2;
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 24px 28px;
  white-space: pre-wrap;
  color: #1F2A27;
  font-size: 16px;
}

/* ---------- Cost table ---------- */

.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.cost-table th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 2px solid var(--teal);
}

.cost-table td {
  padding: 12px;
  border-bottom: 1px solid #E7E5E2;
  color: #1F2A27;
}

.cost-table th:last-child,
.cost-table td:last-child {
  text-align: right;
}

.cost-table th:nth-child(2),
.cost-table td:nth-child(2) {
  text-align: center;
}

.cost-summary {
  margin-top: 4px;
  border-top: 1px solid #E7E5E2;
}

.cost-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 15px;
}

.cost-summary-row.total {
  font-weight: 700;
  color: var(--teal);
  font-size: 17px;
  border-top: 1px solid #E7E5E2;
  padding-top: 14px;
}

.cost-summary-row.deposit {
  color: var(--caramel);
  font-weight: 700;
}

.cost-summary-row .label {
  color: inherit;
}

.price-note {
  margin-top: 12px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--grey);
}

/* ---------- Banking details ---------- */

.bank-card {
  border: 1px solid #E7E5E2;
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 8px 20px;
  background: var(--white);
}

.bank-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #E7E5E2;
  font-size: 15px;
}

.bank-row:last-child {
  border-bottom: none;
}

.bank-row span {
  color: var(--grey);
}

.bank-row strong {
  color: var(--teal);
  font-weight: 600;
  text-align: right;
}

.bank-row.reference strong {
  color: var(--caramel);
  font-size: 17px;
  letter-spacing: 0.04em;
}

.bank-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--grey);
}

/* ---------- Extra sections (specs, process, terms) ---------- */

.extra-body {
  margin: 0 0 12px;
  white-space: pre-wrap;
  color: #1F2A27;
}

.extra-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.extra-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid #E7E5E2;
  color: #1F2A27;
}

.extra-list li:last-child {
  border-bottom: none;
}

.extra-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--caramel);
}

.extra-list li.has-dot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 0;
}

.extra-list li.has-dot::before {
  display: none;
}

.extra-list .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}

/* ---------- Mock-ups ---------- */

.mockup-caption {
  margin: -6px 0 16px;
  color: var(--grey);
  font-size: 15px;
}

.mockup-main {
  margin: 0 0 16px;
}

.mockup-main a {
  display: block;
  line-height: 0;
}

.mockup-main img {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid #E7E5E2;
  background: #FBFAF8;
}

.mockup-main figcaption {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--caramel);
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.mockup-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid #E7E5E2;
  background: #FBFAF8;
}

.mockup-grid a {
  display: block;
  line-height: 0;
}

/* ---------- Colour picker ---------- */

.colour-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.colour-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 2px solid var(--grey);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--teal);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.colour-swatch .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.colour-swatch:hover {
  border-color: var(--caramel);
}

.colour-swatch.selected {
  border-color: var(--caramel);
  background: #FBF3E8;
  box-shadow: 0 0 0 3px rgba(223, 163, 100, 0.25);
  font-weight: 600;
}

.colour-swatch .check {
  display: none;
  color: var(--caramel);
  font-weight: 700;
}

.colour-swatch.selected .check {
  display: inline;
}

/* ---------- Comment box ---------- */

textarea#comment {
  width: 100%;
  min-height: 100px;
  padding: 14px 16px;
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--teal);
  resize: vertical;
}

textarea#comment:focus {
  outline: none;
  border-color: var(--caramel);
  box-shadow: 0 0 0 3px rgba(223, 163, 100, 0.2);
}

.optional-tag {
  font-size: 12px;
  color: var(--grey);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 8px;
}

/* ---------- Confirm button ---------- */

.confirm-block {
  text-align: center;
  padding: 12px 0 8px;
}

.confirm-hint {
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 16px;
}

#confirm-btn {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: var(--teal);
  border: none;
  border-radius: 999px;
  padding: 16px 40px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

#confirm-btn:hover:not(:disabled) {
  background: #00594A;
}

#confirm-btn:active:not(:disabled) {
  transform: scale(0.98);
}

#confirm-btn:disabled {
  background: var(--grey);
  cursor: not-allowed;
  opacity: 0.6;
}

.confirm-status {
  margin-top: 14px;
  font-size: 13px;
  color: var(--caramel);
  min-height: 18px;
}

/* ---------- Footer ---------- */

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #E7E5E2;
  text-align: center;
  color: var(--grey);
  font-size: 13px;
}

footer a {
  color: var(--teal);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .footer-logo {
  display: block;
  width: 40px;
  height: auto;
  margin: 0 auto 10px;
  opacity: 0.9;
}

footer .give-fund {
  color: var(--caramel);
  font-weight: 600;
}

/* ---------- Fallback / not found ---------- */

.load-error {
  text-align: center;
  padding: 80px 20px;
  color: var(--grey);
}
