/* ============================================================
   DMBS Finance — Delta Mobile Business Solutions
   Design system
   ------------------------------------------------------------
   Brand colours:
     Ash  #C6C3B5  — soft neutral (backgrounds, dividers)
     Red  #FF0000  — accent only (buttons, rules, highlights)
   Because pure red is an alert colour, it is used sparingly as
   punctuation; a deep charcoal carries text and dark surfaces
   so the red stays deliberate and the brand reads as trustworthy.
   ------------------------------------------------------------
   NOTE: variable names below describe a ROLE (e.g. --dark-800),
   not a literal colour, so the whole theme can be retuned here
   without touching the rest of the stylesheet.
   Type: Cormorant Garamond (display) / Source Sans 3 (body)
   Signature: the double brand rule — a paired hairline in red.
   ============================================================ */

:root {
  /* Brand source colours */
  --ash: #c6c3b5;
  --red: #ff0000;

  /* Dark surfaces & text (charcoal, tuned to sit under red) */
  --dark-900: #17150f;   /* deepest — footer */
  --dark-800: #201d16;   /* dark sections, header text */
  --dark-700: #33302a;   /* raised dark elements */

  /* Light surfaces (built around ash) */
  --paper: #fbfaf7;      /* page background — warm off-white */
  --paper-dim: #eeece4;  /* dimmed section — pale ash */
  --ash-line: #d8d6cb;   /* ash-based dividers */

  /* Ink */
  --ink: #26241e;        /* body text */
  --ink-soft: #5c594f;   /* secondary text */

  /* Accent (red) roles — kept as small, deliberate hits */
  --accent: #e00000;         /* red, very slightly deepened for contrast */
  --accent-bright: #ff0000;  /* pure brand red, for on-dark accents */
  --accent-wash: rgba(224, 0, 0, 0.08);

  /* Structural lines */
  --line: rgba(38, 36, 30, 0.16);
  --line-on-dark: rgba(251, 250, 247, 0.16);

  /* --- Backwards-compatible aliases -------------------------
     The rest of the stylesheet was written with navy/brass
     names; map them onto the new brand roles so every existing
     rule picks up the DMBS palette automatically. ----------- */
  --navy-900: var(--dark-900);
  --navy-800: var(--dark-800);
  --navy-700: var(--dark-700);
  --brass: var(--accent);
  --brass-bright: var(--accent-bright);
  --line-on-navy: var(--line-on-dark);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 62ch;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-800); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Signature: the double gilt rule ---------- */
.gilt-rule {
  width: 72px;
  height: 7px;
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
  margin: 1.1rem 0 1.4rem;
}
.gilt-rule--center { margin-left: auto; margin-right: auto; }
.gilt-rule--on-navy { border-color: var(--brass-bright); }

/* ---------- Type scale ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.12;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.lede {
  font-size: clamp(1.15rem, 1.8vw, 1.3rem);
  color: var(--ink-soft);
  max-width: var(--measure);
}

em.accent {
  font-style: italic;
  color: var(--brass-bright);
}

/* ---------- Layout primitives ---------- */
.wrap { max-width: 1140px; margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section--dim { background: var(--paper-dim); }
.section--navy { background: var(--navy-800); color: var(--paper); }
.section--navy h2, .section--navy h3 { color: var(--paper); }
.section--navy .lede, .section--navy p { color: rgba(251, 249, 244, 0.82); }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
.brand:hover { color: inherit; }
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  padding: 7px 12px;
  background: #0f266b;      /* the logo's own navy — makes the tile deliberate */
  border-radius: 6px;
  box-sizing: content-box;
}
@media (max-width: 460px) {
  .brand-logo { height: 32px; padding: 6px 9px; }
}

.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy-800); }
.site-nav a[aria-current="page"] {
  color: var(--navy-800);
  border-bottom-color: var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.5rem 0.7rem;
  font: inherit;
  color: var(--navy-800);
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem var(--pad-x) 1.5rem;
    gap: 1rem;
  }
  .site-nav.open { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2rem;
  border: 1px solid var(--brass);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn--solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--solid:hover { background: var(--dark-800); border-color: var(--dark-800); color: #fff; }

/* Ghost button — default (on light backgrounds) */
.btn--ghost { background: transparent; color: var(--navy-800); }
.btn--ghost:hover { background: var(--navy-800); color: var(--paper); }

/* Ghost button on the dark hero: light text + clearly visible border */
.hero .btn--ghost { color: #fbfaf7; border-color: rgba(251, 249, 244, 0.7); }
.hero .btn--ghost:hover { background: #fbfaf7; color: #201d16; border-color: #fbfaf7; }

/* Ghost button on dark navy sections */
.section--navy .btn--ghost { color: var(--paper); border-color: var(--brass-bright); }
.section--navy .btn--ghost:hover { background: var(--brass-bright); color: var(--navy-900); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(255, 0, 0, 0.10), transparent 60%),
    var(--navy-800);
  color: var(--paper);
  padding-block: clamp(5rem, 11vw, 9rem);
}
.hero h1 { color: var(--paper); max-width: 17ch; }
.hero .lede { color: rgba(251, 249, 244, 0.8); margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-inner { animation: rise 0.7s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  padding: 2rem 1.8rem;
}
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--ink-soft); font-size: 1rem; }
.card .card-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}
.card .card-link:hover { color: var(--dark-800); }

/* ---------- Principles / stats strip ---------- */
.principles { border-top: 1px solid var(--line-on-navy); border-bottom: 1px solid var(--line-on-navy); }
.principle { padding-block: 2.2rem; }
.principle strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--brass-bright);
  display: block;
  margin-bottom: 0.3rem;
}
.principle span { font-size: 0.95rem; color: rgba(251, 249, 244, 0.75); }

/* ---------- Prose / two-column feature ---------- */
.feature { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
.feature .prose p + p { margin-top: 1rem; }
.feature .prose { color: var(--ink-soft); }

blockquote.pull {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-style: italic;
  color: var(--navy-800);
  line-height: 1.35;
  border-left: 3px solid var(--brass);
  padding-left: 1.4rem;
  margin-top: 2rem;
}
blockquote.pull footer {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.8rem;
}

/* ---------- Service detail rows ---------- */
.service-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: 2.6rem;
  border-top: 1px solid var(--line);
}
.service-row:last-of-type { border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .service-row { grid-template-columns: 1fr; } }
.service-row h3 { position: sticky; top: 96px; }
.service-row ul { margin: 1rem 0 0 1.1rem; color: var(--ink-soft); }
.service-row li + li { margin-top: 0.4rem; }
.service-row p { color: var(--ink-soft); }

/* ---------- People ---------- */
.person { text-align: left; }
.person .portrait {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.person .portrait span {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--brass-bright);
}
.person h3 { font-size: 1.25rem; }
.person .role { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); margin: 0.25rem 0 0.6rem; }
.person p { font-size: 0.98rem; color: var(--ink-soft); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-details p { color: var(--ink-soft); }
.contact-details dl { margin-top: 1.8rem; display: grid; gap: 1.2rem; }
.contact-details dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.contact-details dd { margin-top: 0.15rem; color: var(--ink); }

form.contact-form { display: grid; gap: 1.3rem; }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-800);
}
label .req { color: var(--brass); }

input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(169, 135, 63, 0.18);
}
textarea { min-height: 160px; resize: vertical; }

.field .error {
  font-size: 0.85rem;
  color: #9c2b1f;
  display: none;
}
.field.invalid input,
.field.invalid textarea { border-color: #9c2b1f; }
.field.invalid .error { display: block; }

.form-note { font-size: 0.9rem; color: var(--ink-soft); }
.form-status {
  display: none;
  padding: 1rem 1.2rem;
  border: 1px solid var(--brass);
  background: rgba(169, 135, 63, 0.08);
  color: var(--navy-800);
  font-size: 0.98rem;
}
.form-status.show { display: block; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .btn { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(251, 249, 244, 0.7);
  padding-block: 3.5rem 2.5rem;
  font-size: 0.95rem;
}
.site-footer .wrap { display: grid; gap: 2.5rem; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 0.9rem;
}
.site-footer a { color: rgba(251, 249, 244, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--brass-bright); }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 0.5rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--paper); }
.footer-logo { height: 46px; width: auto; display: block; margin-bottom: 0.4rem; }
.footer-legal {
  border-top: 1px solid var(--line-on-navy);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(251, 249, 244, 0.5);
}

/* ---------- Page intro (inner pages) ---------- */
.page-intro { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4rem); }
.page-intro h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Visible marker for outstanding legal placeholders (remove once filled) */
.footer-legal .placeholder { color: #ff6b6b; font-weight: 600; }
.legal .placeholder, .updated .placeholder { background: rgba(224,0,0,0.10); padding: 0 0.3em; font-weight: 600; }

/* ---------- Footer social links ---------- */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-on-dark);
  border-radius: 50%;
  color: rgba(251, 250, 247, 0.85);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.footer-social svg { width: 18px; height: 18px; display: block; }

/* Subtle helper hint under a form field (e.g. "double-check your email") */
.field-hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}
