/* Rua Automation */

:root {
  --russet: #B4532A;      /* brand, buttons, large headings */
  --brick: #8C2F1B;       /* hover, links, dark accents */
  --cream: #F6F1EA;       /* page background */
  --cream-deep: #EDE4D8;  /* panels, rules */
  --charcoal: #1F2328;    /* body text */
  --slate: #3E5C6B;       /* secondary */
  --muted: #555B61;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brick); text-underline-offset: 0.18em; }
a:hover { color: var(--charcoal); }

:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); color: var(--russet); letter-spacing: -0.015em; max-width: 18ch; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: var(--russet); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; color: var(--charcoal); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

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

/* Header */
.site-header { border-bottom: 1px solid var(--cream-deep); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--charcoal); text-decoration: none;
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem;
}
.brand:hover { color: var(--charcoal); }
.brand-light { font-weight: 400; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--charcoal); text-decoration: none; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--brick); text-decoration: underline; }

@media (max-width: 56rem) {
  .nav li:not(:last-child) { display: none; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--russet); color: #fff;
  font-weight: 600; text-decoration: none;
  padding: 0.85rem 1.4rem; border-radius: 4px;
  border: 2px solid var(--russet);
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn-light { background: var(--cream); border-color: var(--cream); color: var(--charcoal); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--charcoal); }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.95rem; }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; color: var(--brick); }

/* Hero */
.hero { padding: clamp(3.5rem, 10vw, 7.5rem) 0 clamp(3rem, 8vw, 6rem); }
.eyebrow {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 1.25rem;
}
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 38em; color: var(--charcoal); }
.assurances {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.95rem; color: var(--muted);
}
.assurances li::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; background: var(--russet); margin-right: 0.6rem; vertical-align: 0.15em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--cream-deep); }
.section-head { max-width: 36rem; margin-bottom: 2.75rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Work list: numbered, two columns, no icons */
.work-list {
  list-style: none; margin: 0; padding: 0; counter-reset: work;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 2.5rem 4rem;
}
.work-list li { counter-increment: work; padding-top: 1.25rem; border-top: 2px solid var(--charcoal); }
.work-list li::before {
  content: counter(work, decimal-leading-zero);
  display: block; font-family: var(--serif); color: var(--russet);
  font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem;
}
.work-list p { color: var(--charcoal); max-width: 34em; }
.example {
  display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem;
  margin: 1.25rem 0 0; padding: 1rem 1.25rem; background: #FBF8F4; border-radius: 4px; font-size: 0.95rem;
}
.example dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); padding-top: 0.2rem; }
.example dt:nth-of-type(2) { color: var(--brick); }
.example dd { margin: 0; }

/* Process: slate band */
.section-slate { background: var(--slate); color: var(--cream); border-top: 0; }
.section-slate h2, .section-slate h3 { color: var(--cream); }
.section-slate .section-head p { color: var(--cream); opacity: 0.9; }
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 2rem;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; margin-bottom: 1rem;
  border: 1.5px solid var(--cream); border-radius: 50%;
  font-family: var(--serif); font-weight: 600;
}
.steps p { font-size: 1rem; }
.band-cta { margin: 3rem 0 0; }

/* About */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2.5rem 3rem; align-items: start; }
.person { margin: 0; max-width: 20rem; }
.portrait {
  aspect-ratio: 4 / 5; background: var(--cream-deep); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
  overflow: hidden;
}
.portrait span { font-family: var(--serif); font-size: 4.5rem; color: var(--russet); opacity: 0.55; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: 0.1rem; }
.role { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.75rem; }
.name-note { border-left: 3px solid var(--russet); padding-left: 1.5rem; color: var(--muted); }
.name-word {
  font-family: var(--serif); font-style: italic; color: var(--russet);
  font-size: 3.25rem; line-height: 1; margin-bottom: 0.75rem;
}

/* FAQ */
.section-tint { background: #FBF8F4; }
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem 4rem; }
@media (max-width: 50rem) { .faq-wrap { grid-template-columns: 1fr; } }
.faq details { border-top: 1px solid var(--cream-deep); }
.faq details:last-child { border-bottom: 1px solid var(--cream-deep); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative;
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 0.95rem;
  color: var(--russet); font-family: var(--sans); font-size: 1.4rem; line-height: 1.2;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 38em; padding-bottom: 0.5rem; }

/* Contact */
.section-contact { background: var(--cream-deep); border-top: 0; }
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 2.5rem 5rem; align-items: end; }
@media (max-width: 50rem) { .contact-grid { grid-template-columns: 1fr; } }
.contact-label { font-weight: 600; margin-bottom: 0; }
.contacts { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-direction: column; gap: 1rem; }
.contacts li { display: flex; flex-direction: column; }
.contact-name { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.contacts a { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.5rem); overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--cream); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.footer-inner p { margin: 0; }

/* 404 */
.not-found { padding: clamp(4rem, 12vw, 9rem) 0; }
