/* ==========================================================================
   DevWidgets.io — site styles
   Palette: burgundy #800020, silver #C0C0C0, warm white #FAF8F7,
            charcoal #262326, sage accent #7E9680
   ========================================================================== */

:root {
  --burgundy: #800020;
  --burgundy-dark: #5c0017;
  --burgundy-tint: #f6e9ec;
  --silver: #c0c0c0;
  --silver-light: #e4e2e3;
  --silver-tint: #f1efef;
  --warm-white: #faf8f7;
  --white: #ffffff;
  --charcoal: #262326;
  --charcoal-soft: #55505a;
  --sage: #7e9680;
  --sage-dark: #4f6552;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;

  --container: 72rem;
  --narrow: 44rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 0.75rem;
  --shadow: 0 1px 2px rgba(38, 35, 38, 0.06), 0 8px 24px rgba(38, 35, 38, 0.08);
  --header-height: 4.25rem;
  --transition: 160ms ease;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--warm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--burgundy);
  margin: 0 0 0.6em;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.5rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
  color: var(--charcoal);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--burgundy-dark);
  text-decoration-thickness: 2px;
}

ul[role="list"],
ol.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

[tabindex="-1"]:focus {
  outline: none;
}

[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 6px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.narrow {
  max-width: var(--narrow);
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--burgundy);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  outline: 3px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--burgundy);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.button--primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

.button--primary:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  color: var(--white);
}

.button--secondary {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--silver);
}

.button--secondary:hover {
  background: var(--burgundy-tint);
  border-color: var(--burgundy);
  color: var(--burgundy-dark);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled,
.button[aria-disabled="true"] {
  background: var(--silver-light);
  color: var(--charcoal-soft);
  border-color: var(--silver-light);
  cursor: not-allowed;
}

.button--small {
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.button-row--center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 247, 0.96);
  border-bottom: 1px solid var(--silver-light);
  backdrop-filter: saturate(140%) blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--burgundy);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wordmark__tld {
  color: var(--charcoal-soft);
  font-weight: 500;
}

.wordmark:hover {
  color: var(--burgundy-dark);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-weight: 600;
  color: var(--burgundy);
  background: var(--white);
  border: 2px solid var(--silver);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--burgundy);
}

.nav-toggle__bars {
  position: relative;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition);
}

.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%;
}

.site-nav:not(.is-open) {
  display: none;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav__list a:not(.button) {
  display: block;
  padding: 0.7rem 0.75rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  border-radius: 0.5rem;
  border-left: 3px solid transparent;
}

.site-nav__list a:not(.button):hover {
  background: var(--silver-tint);
  color: var(--burgundy);
}

.site-nav__list a[aria-current="page"] {
  color: var(--burgundy);
  border-left-color: var(--burgundy);
  background: var(--burgundy-tint);
}

.site-nav__cta {
  margin-top: 0.5rem;
  padding: 0 0.75rem;
}

@media (min-width: 60em) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav:not(.is-open) {
    display: block;
    flex-basis: auto;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
  }

  .site-nav__list a:not(.button) {
    padding: 0.5rem 0.85rem;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0.4rem 0.4rem 0 0;
  }

  .site-nav__list a[aria-current="page"] {
    background: transparent;
    border-bottom-color: var(--burgundy);
    border-radius: 0;
  }

  .site-nav__cta {
    margin: 0 0 0 0.75rem;
    padding: 0;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  scroll-margin-top: var(--header-height);
}

.section--tinted {
  background: var(--white);
  border-top: 1px solid var(--silver-light);
  border-bottom: 1px solid var(--silver-light);
}

.section__intro {
  max-width: var(--narrow);
  margin-bottom: 2.5rem;
}

.section__intro p:last-child {
  color: var(--charcoal-soft);
  font-size: 1.125rem;
}

.section__note {
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--sage);
  color: var(--charcoal-soft);
  font-size: 0.95rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.eyebrow--light {
  color: var(--silver-light);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(192, 192, 192, 0.28), transparent 60%),
    radial-gradient(40rem 22rem at -10% 110%, rgba(128, 0, 32, 0.07), transparent 60%),
    var(--warm-white);
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__heading {
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.hero__accent {
  color: var(--burgundy);
  font-style: italic;
}

.hero__lede {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
  color: var(--charcoal-soft);
  max-width: 34rem;
}

.hero__media {
  position: relative;
  margin: 0;
  max-width: 100%;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 1.25rem -0.9rem -0.9rem 1.25rem;
  background: var(--burgundy);
  border-radius: var(--radius);
  opacity: 0.9;
  z-index: 0;
}

.hero__media::after {
  content: "";
  position: absolute;
  top: -0.9rem;
  left: -0.9rem;
  width: 6rem;
  height: 6rem;
  border: 3px solid var(--silver);
  border-radius: 50%;
  opacity: 0.8;
  z-index: 0;
}

.hero__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}

@media (min-width: 60em) {
  .hero__inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }

  .hero__media {
    margin-right: 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   Cards (services)
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--silver);
  border-top: 4px solid var(--burgundy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-2px);
}

.card h3 {
  margin: 0.25rem 0 0.35rem;
}

.card p {
  margin: 0;
  color: var(--charcoal-soft);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: var(--burgundy);
  background: var(--burgundy-tint);
  border-radius: 0.6rem;
}

/* --------------------------------------------------------------------------
   Split layouts (Why / How we work / About)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.split__media {
  margin: 0;
}

.split__media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--silver);
  box-shadow: var(--shadow);
}

.split__copy h2 {
  max-width: 24ch;
}

@media (min-width: 60em) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .split--reverse .split__media {
    order: 2;
  }
}

.feature-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-list li {
  padding-left: 1.25rem;
  border-left: 3px solid var(--silver);
}

.feature-list h3 {
  margin-bottom: 0.25rem;
}

.feature-list p {
  margin: 0;
  color: var(--charcoal-soft);
}

.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step__number {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  background: var(--burgundy);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--burgundy-tint);
}

.step h3 {
  margin-bottom: 0.25rem;
}

.step p {
  margin: 0;
  color: var(--charcoal-soft);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.section--contact {
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
    var(--burgundy);
  color: var(--white);
}

.section--contact h2 {
  color: var(--white);
}

.section--contact :focus-visible {
  outline-color: var(--white);
}

.contact {
  text-align: center;
}

.contact__lede {
  max-width: 36rem;
  margin-inline: auto;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
}

.contact__card {
  max-width: 36rem;
  margin: 2rem auto 0;
  padding: 2rem 1.5rem;
  background: var(--warm-white);
  color: var(--charcoal);
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.contact__card :focus-visible {
  outline-color: var(--burgundy);
}

.contact__label {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.contact__address {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1rem + 1.6vw, 1.9rem);
  font-weight: 600;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.contact__status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  font-weight: 600;
  color: var(--sage-dark);
}

.contact__hint {
  margin: 0.25rem 0 0;
  font-size: 0.925rem;
  color: var(--charcoal-soft);
}

/* --------------------------------------------------------------------------
   Inner pages (About, Not found)
   -------------------------------------------------------------------------- */

.page-hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(50rem 24rem at 90% -20%, rgba(192, 192, 192, 0.3), transparent 60%),
    var(--warm-white);
}

.page-hero__supporting {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--silver);
  max-width: 24rem;
}

.link-list {
  padding-left: 1.25rem;
}

.link-list li + li {
  margin-top: 0.4rem;
}

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

.site-footer {
  padding-block: 2.5rem;
  background: var(--white);
  border-top: 1px solid var(--silver);
}

.site-footer__inner {
  display: grid;
  gap: 0.35rem;
}

.site-footer__brand {
  margin: 0;
}

.wordmark--footer {
  font-size: 1.25rem;
}

.site-footer__tagline {
  margin: 0;
  color: var(--charcoal-soft);
}

.site-footer__meta {
  margin: 0.5rem 0 0;
  font-size: 0.925rem;
  color: var(--charcoal-soft);
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .card:hover {
    transform: none;
  }
}
