/* ==========================================================================
   Dogwood Hospitality Partners: design system
   Copy the header and footer from index.html exactly. In the header, move
   aria-current="page" to the active link. The footer never changes.

   LAYOUT
     .wrap                 centred container
     .band                 section with vertical padding; add .band-alt (paper-2) or .band-dark (ink)
     .stack                vertical rhythm for a block of mixed children

   TEXT
     <p class="eyebrow">   small letterspaced label (words from the copy only)
     <p class="lead">      large serif intro paragraph
     <a class="button" href="contact.html">   every call to action

   PAGE HEADER BAND (first thing inside <main> on inner pages)
     <section class="page-header"><div class="wrap">
       <p class="eyebrow">Services</p><h1>...</h1><p class="lead">...</p>
     </div></section>

   SERVICE BLOCK WITH RULED LIST
     <div class="service-block">
       <div class="service-intro"><h2>...</h2><p>...</p></div>
       <ul class="ruled-list"><li>...</li></ul>
     </div>
     Stack several inside one .wrap; each one after the first gets a top rule.

   CLOSING LINE PLUS BUTTON
     <div class="cta-block"><p class="cta-line">...</p><a class="button" href="contact.html">...</a></div>

   LABEL AND TEXT ROWS
     <div class="ledger"><div class="ledger-row"><h3>...</h3><p>...</p></div></div>

   FOUNDER / BIO
     <div class="founder">
       <div class="founder-body">
         <h3 class="founder-name">...</h3><p class="founder-role">...</p><p>bio</p>
         <p class="brand-line"><span class="brand-line-label">Brand experience:</span> A · B · and more</p>
       </div>
     </div>

   CONTACT PAGE
     <div class="contact-layout"> form first, then <aside class="contact-details"> </div>
     <aside class="contact-details">
       <p class="contact-name">James Layne, CRME</p>
       <dl><div><dt>LinkedIn:</dt><dd><a href="...">Connect with James</a></dd></div></dl>
     </aside>

   FORM (site.js finds data-contact-form, and uses these exact name attributes:
         name, email, phone, property, brand, rooms, message, website)
     <form class="form" data-contact-form action="https://formspree.io/f/mzeenbyp" method="post">
       <div class="field">   add .field-wide to span both columns
         <label for="name">Name <span class="field-flag" aria-hidden="true">Required</span></label>
         <input id="name" name="name" type="text" autocomplete="name" required>
       </div>
       ...optional fields omit the flag and the required attribute. Other controls:
       email type="email" autocomplete="email"; phone type="tel" autocomplete="tel";
       property autocomplete="organization"; brand autocomplete="off";
       rooms inputmode="numeric" autocomplete="off"; message is a <textarea> in .field.field-wide...
       <div class="field-trap" aria-hidden="true">   honeypot, must stay in the form
         <label for="website">Website</label>
         <input id="website" name="website" type="text" tabindex="-1" autocomplete="off">
       </div>
       <div class="form-actions"><button class="button" type="submit">Send Message</button></div>
       <div class="form-status" data-form-status role="status" aria-live="polite"></div>
     </form>
     site.js adds <p class="field-error"> under a field and .is-note / .is-success /
     .is-error on .form-status. Do not write those by hand.
   ========================================================================== */

:root {
  /* Palette drawn from the Dogwood logo */
  --ink: #241A15;          /* warm black: text and dark bands */
  --ink-2: #5E4F46;        /* secondary text, from the logo's brown */
  --white: #FFFFFF;        /* header and form fields */
  --paper: #FFFAF5;        /* page background */
  --paper-2: #F8EEE5;      /* alternate band */
  --line: #E6D8CB;         /* hairlines */
  --accent: #B8431A;       /* logo orange, deepened to hold 4.5:1 for buttons and links */
  --accent-dark: #8F3212;  /* hover */
  --flame: #E45221;        /* the logo's exact orange: decorative only, never text */

  --on-ink-2: #D9CBBF;     /* secondary text on ink */
  --error: #9B1C1C;        /* holds 4.5:1 on paper and paper-2 */

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --band-space: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 2px;

  color-scheme: light;
}

/* Base
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); max-width: 22em; }
h2 { font-size: clamp(1.625rem, 1.35rem + 1.2vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.4375rem); }

p { margin: 0; max-width: 36em; }
ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
a:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}
.band-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--paper); }
main:focus { outline: none; }

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:hover { color: var(--paper); }
.skip-link:focus { transform: none; outline-color: var(--ink); }

/* Layout
   ========================================================================== */

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

.band { padding-block: var(--band-space); }
.band-alt { background: var(--paper-2); }
.band-dark { background: var(--ink); color: var(--paper); }
.band-dark a { color: var(--paper); }
.band-dark a:hover { color: var(--on-ink-2); }
.band-dark .eyebrow { color: var(--on-ink-2); }

.stack > * + * { margin-top: 1.25rem; }

/* Text components
   ========================================================================== */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  line-height: 1.45;
  max-width: 34em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--paper);
}
.button[disabled] { opacity: 0.65; cursor: default; }

/* Site header
   ========================================================================== */

.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--flame);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
}

.brand-logo {
  width: auto;
  height: 76px;
}

.nav-toggle { display: none; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { font-weight: 500; border-bottom-color: var(--accent); }

@media (min-width: 48rem) {
  .brand-logo { height: 100px; }
}

@media (max-width: 47.99rem) {
  .js .nav-toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 0.15s ease, background-color 0.15s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav { flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }

  .site-nav ul { display: block; margin-top: 0.5rem; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: flex; min-height: 48px; border-bottom: 0; }
  .site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
}

/* Site footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper);
}
.site-footer a:hover { color: var(--on-ink-2); }

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.footer-contact span { display: block; color: var(--on-ink-2); }
.footer-contact a { display: flex; width: fit-content; }

.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

.footer-legal {
  grid-column: 1 / -1;
  max-width: none;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-2);
  color: var(--on-ink-2);
  font-size: 0.9375rem;
}

@media (min-width: 40rem) {
  .footer-grid { grid-template-columns: 2fr 1fr; }
}

/* Home page
   ========================================================================== */

.hero {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
  border-bottom: 3px double var(--line);
}

.hero-title {
  max-width: none;
  font-size: clamp(2rem, 10vw, 6.75rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.hero-title span { display: block; }

.hero-sub {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 52ch;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
}

.hero .button { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

.feature-grid {
  display: grid;
  gap: 2.5rem clamp(2.5rem, 6vw, 5rem);
  margin-top: 1.25rem;
}

.feature {
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
}
.feature h2 + p { margin-top: 0.875rem; }

@media (min-width: 48rem) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

.flow-figure { margin: 1.75rem 0 0; max-width: 56rem; }
.flow-figure svg { width: 100%; height: auto; }

.flow-label {
  fill: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  dominant-baseline: central;
}
.flow-line {
  fill: none;
  stroke: var(--on-ink-2);
  stroke-width: 1.25px;
  vector-effect: non-scaling-stroke;
}
.flow-line-main { stroke: var(--paper); stroke-width: 2.5px; }
.flow-node { fill: var(--on-ink-2); }
.flow-hub { fill: var(--flame); }
.flow-sheet { fill: var(--paper); }
.flow-rule { stroke: var(--line); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.flow-rule-strong { stroke: var(--ink); }
.flow-trend {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.flow-trend-end { fill: var(--accent); }

@media (max-width: 47.99rem) { .flow-label { font-size: 20px; } }
@media (max-width: 30rem) { .flow-label { font-size: 27px; letter-spacing: 0.02em; } }

.why-layout {
  display: grid;
  gap: 1.5rem clamp(2.5rem, 6vw, 5rem);
}
.why-layout .button { margin-top: 2rem; }

@media (min-width: 56rem) {
  .why-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); }
}

/* Ledger rows and ruled lists
   ========================================================================== */

.ledger-row {
  display: grid;
  gap: 0.375rem 2rem;
  padding-block: 1.125rem;
  border-top: 1px solid var(--line);
}
.ledger-row:first-child { border-top-color: var(--ink); }
.ledger-row:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 40rem) {
  .ledger-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: baseline; }
}

.ruled-list li {
  padding-block: 0.8125rem;
  border-top: 1px solid var(--line);
}
.ruled-list li:first-child { border-top-color: var(--ink); }
.ruled-list li:last-child { border-bottom: 1px solid var(--line); }

/* Inner page components
   ========================================================================== */

.page-header {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow + h1 { margin-top: 0.75rem; }
.page-header h1 + .lead { margin-top: 1.25rem; }

.service-block {
  display: grid;
  gap: 1.5rem clamp(2.5rem, 6vw, 5rem);
}
.service-block + .service-block {
  margin-top: var(--band-space);
  padding-top: var(--band-space);
  border-top: 3px double var(--line);
}
.service-intro h2 + p { margin-top: 0.875rem; }

@media (min-width: 56rem) {
  .service-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}

.service-block + .cta-block { margin-top: var(--band-space); }
.cta-block > .button { margin-top: 1.5rem; }
.cta-line {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.35;
}

.founder { margin-top: 2rem; }

.founder-role { margin-top: 0.25rem; color: var(--ink-2); }
.founder-role + p { margin-top: 1.25rem; }

.brand-line {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 1rem;
}
.brand-line-label { color: var(--ink); font-weight: 600; }

.founder-link { margin-top: 0.5rem; }
.founder-link a { display: inline-flex; align-items: center; min-height: 44px; }

.contact-layout {
  display: grid;
  gap: 3rem clamp(3rem, 7vw, 6rem);
}

@media (min-width: 60rem) {
  .contact-layout { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; }
}

.contact-details {
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
}
.contact-name {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: 0.125rem;
}

.contact-role {
  margin-bottom: 0.75rem;
  color: var(--ink-2);
}
.contact-details dl > div {
  padding-block: 0.5rem;
  border-top: 1px solid var(--line);
}
.contact-details dt {
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.contact-details dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Forms
   ========================================================================== */

.form {
  position: relative;
  display: grid;
  gap: 1.375rem 1.5rem;
}

@media (min-width: 40rem) {
  .form { grid-template-columns: 1fr 1fr; }
  .field-wide, .form-actions, .form-status { grid-column: 1 / -1; }
}

.field { min-width: 0; }

.field label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 0.75rem;
  margin-bottom: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
}

.field-flag {
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}
.field textarea { min-height: 10rem; resize: vertical; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 3px 0 0 var(--error); }

.field-error {
  margin-top: 0.375rem;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Honeypot: off-screen rather than display:none so that bots still fill it. */
.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { font-size: 1rem; }
.form-status:empty { display: block; height: 0; margin-top: -1.375rem; }
.form-status.is-note,
.form-status.is-success,
.form-status.is-error {
  max-width: 68ch;
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--ink-2);
  background: var(--paper-2);
}
.form-status.is-success { border-left-color: var(--accent); }
.form-status.is-error { border-left-color: var(--error); color: var(--error); }
.form-status.is-error a { color: var(--error); }
.form-status a { display: inline-flex; align-items: center; min-height: 44px; }

/* Motion
   ========================================================================== */

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