/* DCDS Consulting — site styles
   Change the look of the whole site from the tokens below. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-alt: #f1efe9;
  --text: #1c2328;
  --text-muted: #55606a;
  --border: #dedad1;
  --accent: #1d5c63;        /* deep teal: links, buttons */
  --accent-hover: #154449;
  --accent-soft: #e3eeee;
  --highlight: #a8561c;     /* warm accent, used sparingly */
  --on-accent: #ffffff;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --max: 70rem;
  --radius: 10px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section: clamp(3rem, 8vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; font-weight: 600; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--text-muted); max-width: 40rem; }
.muted { color: var(--text-muted); }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--highlight); margin-bottom: 0.75rem; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 42rem; margin-bottom: 2.25rem; }

.skip-link { position: absolute; left: -999px; top: 0.5rem; background: var(--surface); padding: 0.5rem 1rem; z-index: 10; }
.skip-link:focus { left: 0.5rem; }

/* Header and navigation */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand-mark { width: 2.1rem; height: 2.1rem; flex: none; }
.brand-name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.02em; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.nav-list a { display: block; padding: 0.5rem 0.75rem; text-decoration: none; color: var(--text); border-radius: 6px; font-weight: 500; }
.nav-list a:hover { background: var(--surface-alt); color: var(--text); }
.nav-list a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-list .nav-cta a { background: var(--accent); color: var(--on-accent); margin-left: 0.5rem; padding-inline: 1rem; }
.nav-list .nav-cta a:hover { background: var(--accent-hover); color: var(--on-accent); }
.nav-list .nav-cta a[aria-current="page"] { box-shadow: none; border-radius: 6px; }

.menu-toggle { display: none; }
@media (max-width: 52rem) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; font: inherit; font-weight: 500;
    background: none; border: 1px solid var(--border); border-radius: 6px; padding: 0.45rem 0.8rem; color: var(--text); cursor: pointer;
  }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--border); display: none; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 0.5rem 1rem 1rem; }
  .nav-list a { padding: 0.8rem 0.5rem; }
  .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 0.9rem; }
  .nav-list .nav-cta a { margin: 0.5rem 0 0; text-align: center; }
  /* Without JavaScript the menu simply stays open */
  .no-js .site-nav { position: static; display: block; border: 0; }
  .no-js .menu-toggle { display: none; }
  .no-js .site-header .wrap { flex-wrap: wrap; }
}

/* Buttons */
.btn { display: inline-block; padding: 0.8rem 1.4rem; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid var(--accent); line-height: 1.2; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { color: var(--accent); background: transparent; }
.btn-secondary:hover { background: var(--accent-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Hero */
.hero { padding-block: clamp(3.5rem, 10vw, 7rem) clamp(3rem, 8vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { max-width: 16ch; }
.hero-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); max-width: 22rem; justify-self: end; }
.hero-photo figcaption { background: var(--surface); padding: 0.75rem 1rem; font-size: 0.9rem; color: var(--text-muted); }
.hero-photo figcaption strong { color: var(--text); display: block; }
@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 16rem; }
}

/* Cards and grids */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: border-color 0.15s, transform 0.15s; }
.card-link:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.card-link .more { margin-top: auto; padding-top: 0.75rem; color: var(--accent); font-weight: 600; }
.icon { width: 2.4rem; height: 2.4rem; color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 0.5rem; margin-bottom: 1rem; }

/* Quoted problem statements */
.quotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.quotes li { background: var(--surface); border-left: 4px solid var(--highlight); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.25rem; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.4; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.steps li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.steps h3 { margin-bottom: 0.3rem; }

/* Split layout (text + aside) */
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.split-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); max-width: 22rem; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } .split-photo { max-width: 16rem; } }

/* Service detail blocks */
.service { padding-block: 2.5rem; border-top: 1px solid var(--border); scroll-margin-top: 5rem; }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.service-head .icon { margin: 0; flex: none; }
.service-head h2 { margin: 0; }
.service-cols { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin-top: 1.25rem; }
.service-cols h3 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.service-cols ul { margin: 0; padding-left: 1.2rem; }
.service-cols li { margin-bottom: 0.4rem; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 1.75rem; position: relative; margin-bottom: 0.6rem; }
.check-list li::before { content: ""; position: absolute; left: 0.2rem; top: 0.55em; width: 0.7rem; height: 0.4rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent-hover); margin-bottom: 0.75rem; }
.case dl { margin: 1rem 0 0; display: grid; gap: 0.9rem; }
.case dt { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.case dd { margin: 0.15rem 0 0; }

.facts { display: grid; gap: 0.6rem; margin: 0; }
.facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }
.facts dt { font-weight: 600; color: var(--text-muted); }
.facts dd { margin: 0; }
@media (max-width: 30rem) { .facts div { grid-template-columns: 1fr; gap: 0; } }

/* Project cards */
.project h3 { font-size: 1.35rem; }
.project .for-you { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--border); font-size: 0.95rem; color: var(--text-muted); }
.project .for-you strong { color: var(--accent-hover); }

/* About page */
.pull-quote { margin: 1.75rem 0 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 4px solid var(--highlight); font-family: var(--font-head); font-size: clamp(1.15rem, 2.4vw, 1.35rem); line-height: 1.5; color: var(--text); }
.pull-quote p { margin: 0; }
.work-list { display: grid; gap: 0.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }

/* Personal story (About page) */
.story { max-width: 46rem; margin-inline: auto; text-align: center; }
.story blockquote { margin: 0 0 1.25rem; font-family: var(--font-head); font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.45; color: var(--text); }
.story blockquote p { margin: 0; }
.story > p:last-child { font-size: 1.125rem; color: var(--text-muted); margin: 0; }

/* Closing call to action */
.cta-band { background: var(--accent); color: var(--on-accent); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.25rem); }
.cta-band h2 { color: var(--on-accent); }
.cta-band p { color: #d7e6e7; max-width: 38rem; }
.cta-band .btn-primary { background: var(--surface); color: var(--accent-hover); border-color: var(--surface); }
.cta-band .btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

/* Contact */
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.email-link { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 600; word-break: break-word; }

.page-head { padding-block: clamp(3rem, 8vw, 5rem) 1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: var(--section); padding-block: 2.5rem; font-size: 0.95rem; color: var(--text-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-nav a { color: var(--text-muted); }
.site-footer p { margin: 0.2rem 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card-link:hover { transform: none; }
}
