/* ==========================================================================
   MRNC Inc. — Brochure Site Stylesheet
   Brand palette from Colour_Scheme_MRNC.pdf: Field Green (primary), Brick Clay
   (accent), Parchment (background), Ink (text), Moss (secondary). White is a
   high-contrast backup only. Mobile-first. No external dependencies.
   ========================================================================== */

:root {
  /* Palette — MRNC brand */
  --navy:        #24402F;   /* Field Green — primary: logo, headers, dark bands */
  --ink:         #1B231C;   /* Ink — body text */
  --slate:       #5E6B57;   /* muted moss-green — muted text */
  --moss:        #7C8B74;   /* Moss — secondary: labels, dividers */
  --line:        #D6CEB8;   /* parchment hairline / borders */
  --bg:          #E9E3D0;   /* Parchment — base background */
  --bg-alt:      #E1DAC4;   /* deeper parchment — alt sections / panels */
  --accent:      #9C4630;   /* Brick Clay — single accent */
  --accent-dark: #7D3826;   /* darker brick — hover */
  --accent-2:    #E3A489;   /* light brick tint — accents on dark green */
  --white:       #ffffff;   /* high-contrast surfaces only */

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --gap:  clamp(1rem, 3vw, 2rem);
  --radius: 6px;
  --shadow: 0 2px 6px rgba(27, 35, 28, 0.08), 0 8px 24px rgba(27, 35, 28, 0.08);
}

/* Reset-ish ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; color: var(--ink); }
.lead { font-size: 1.15rem; color: var(--slate); }

/* Layout helpers ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 2.5rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn--primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: rgba(255,255,255,0.14); text-decoration: none; color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* Header / Nav ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(233, 227, 208, 0.92);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 70px; gap: 1rem;
}
.brand { display: flex; flex-direction: row; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__badge { height: 46px; width: auto; flex-shrink: 0; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: 0.02em; }
.brand__tag  { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin-top: 3px; }

.nav__toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--navy); display: block; transition: transform .2s ease, opacity .2s ease; }

.nav__menu { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  color: var(--ink); font-weight: 500; font-size: 0.98rem; padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { text-decoration: none; color: var(--navy); }
.nav__link.is-active { color: var(--navy); border-bottom-color: var(--accent); }
.nav__cta { margin-left: 0.25rem; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gap) 1.25rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu li { width: 100%; }
  .nav__link { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav__link.is-active { border-bottom-color: var(--line); color: var(--accent-dark); }
  .nav__cta { margin: 0.75rem 0 0; }
  .nav__cta .btn { display: block; text-align: center; }
}
@media (min-width: 861px) { .nav__toggle { display: none; } }

/* Hero --------------------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, #2c4b38 0%, #24402F 55%, #1b3325 100%);
  color: #E7E1CE;
}
.hero .container { padding-block: clamp(3.5rem, 10vw, 7rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero__tag { color: var(--accent-2); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 1rem; }
.hero__lead { color: #CBD3BC; font-size: 1.2rem; max-width: 56ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Page banner (interior pages) -------------------------------------------- */
.page-banner { background: var(--navy); color: #E7E1CE; }
.page-banner .container { padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-banner h1 { color: #fff; margin-bottom: 0.4rem; }
.page-banner p { color: #CBD3BC; max-width: 60ch; margin: 0; }

/* Grid + cards ------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  height: 100%;
}
.card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-alt); color: var(--accent-dark);
  font-weight: 700; margin-bottom: 1rem; border: 1px solid var(--line);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--slate); margin-bottom: 0; }

/* Feature list / chips ----------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 0; list-style: none; }
.chip {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.92rem;
  color: var(--navy); font-weight: 500;
}

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.75rem; margin-bottom: 0.65rem; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; background: var(--accent); border-radius: 2px; transform: rotate(45deg);
}
/* Brand mini-logo used as bullet icons (About & Services) */
.checklist--logo li { padding-left: 2rem; }
.checklist--logo li::before {
  background: url("../assets/mrnc-mark-colour.svg") center / contain no-repeat;
  width: 16px; height: 16px; top: 0.3em; border-radius: 0; transform: none;
}

/* Two-column prose --------------------------------------------------------- */
.split { display: grid; gap: clamp(1.5rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 820px) { .split--2 { grid-template-columns: 1.3fr 1fr; align-items: start; } }

.panel {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem;
}
.panel h3 { margin-top: 0; }

/* CTA band ----------------------------------------------------------------- */
.cta-band { background: var(--navy); color: #E7E1CE; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #CBD3BC; max-width: 60ch; margin-inline: auto; }
.cta-band .btn { margin-top: 1.25rem; }

/* Contact / form ----------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.field .req { color: var(--accent-dark); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.75rem 0.85rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(156, 70, 48, 0.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.field__hint { font-size: 0.85rem; color: var(--slate); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.error-msg { color: #c0392b; font-size: 0.85rem; display: none; }
.field.has-error .error-msg { display: block; }
.form__note { font-size: 0.88rem; color: var(--slate); }
.form-status { padding: 0.9rem 1rem; border-radius: var(--radius); font-weight: 600; display: none; }
.form-status.is-ok { display: block; background: #e5efdd; color: #35502b; border: 1px solid #c2d4b2; }

.contact-detail { margin-bottom: 1.25rem; }
.contact-detail .label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); font-weight: 700; }
.contact-detail .value { color: var(--navy); font-weight: 600; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: #16261C; color: #C4CBB8; padding-block: 3rem 1.5rem; }
.site-footer a { color: #E4E2D3; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand__name { font-weight: 800; font-size: 1.2rem; color: #fff; }
.footer-brand__tag { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss); margin-top: 4px; }
.footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 0.5rem; }
.footer address { font-style: normal; line-height: 1.7; }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  font-size: 0.85rem; color: #90997F;
}
.placeholder { color: inherit; border-bottom: 1px dashed currentColor; opacity: 0.85; }

/* Accessibility ------------------------------------------------------------ */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
  padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Footer — centred variant (one statement per line) */
.footer--center { text-align: center; }
.footer__mark { height: 52px; width: auto; margin: 0 auto 0.85rem; display: block; }
.footer--center .footer-brand__name { font-size: 1.3rem; }
.footer--center .footer-brand__tag { margin: 5px 0 1.35rem; }
.footer-statement { max-width: 62ch; margin: 0 auto 1.4rem; color: #C4CBB8; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin-bottom: 1.4rem; padding: 0; }
.footer-nav a { color: #E4E2D3; font-weight: 500; }
.footer-contact { font-style: normal; line-height: 1.9; color: #C4CBB8; margin: 0 0 1.6rem; }
.footer-contact a { color: #E4E2D3; }
.footer--center .footer__bottom { justify-content: center; gap: 0.4rem 1.5rem; }
