/* ==========================================================================
   Slatehaven Roofing — style.css
   DNA seed: feb1rogl | Convention: utility-first classes
   Spacing scale: 6 / 12 / 24 / 48 / 96 px
   Typography: editorial serif stack
   Buttons: neobrutalist offset shadow
   Layout: full-bleed dramatic bands
   ========================================================================== */

/* -------------------------
   Custom properties
   ------------------------- */
:root {
  --color-dark:       #1a2e1a;
  --color-dark-alt:   #243524;
  --color-light:      #f7f4ef;
  --color-muted:      #ede9e1;
  --color-accent:     #2d4a2d;
  --color-gold:       #c8a96e;
  --color-gold-dark:  #a8863e;
  --color-text:       #1a2e1a;
  --color-text-muted: #4a5e4a;
  --color-border:     #1a2e1a;
  --color-white:      #ffffff;

  --sp-6:   6px;
  --sp-12:  12px;
  --sp-24:  24px;
  --sp-48:  48px;
  --sp-96:  96px;

  --radius: 0px;
  --border-w: 2px;
  --shadow-offset: 5px;

  --font-serif: Georgia, Palatino, 'Times New Roman', serif;
  --font-sans:  system-ui, -apple-system, Segoe UI, sans-serif;

  --header-height: 68px;
  --container-max: 1180px;
  --container-pad: var(--sp-24);
}

/* -------------------------
   Reset & base
   ------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
details { cursor: pointer; }

/* -------------------------
   Skip link
   ------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-12);
  background: var(--color-dark);
  color: var(--color-light);
  padding: var(--sp-6) var(--sp-24);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: var(--sp-12); outline: 3px solid var(--color-gold); }

/* -------------------------
   Container
   ------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* -------------------------
   Utility classes
   ------------------------- */
.stack-3 > * + * { margin-top: var(--sp-24); }
.row-gap-2       { row-gap: var(--sp-24); }
.text-center     { text-align: center; }
.text-xl         { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.2; font-family: var(--font-serif); }
.text-gold       { color: var(--color-gold); }
.text-light      { color: var(--color-light); }
.text-light-muted{ color: rgba(247,244,239,0.78); }

.bg-light  { background: var(--color-light); }
.bg-muted  { background: var(--color-muted); }
.bg-dark   { background: var(--color-dark); }
.bg-accent { background: var(--color-accent); }

/* -------------------------
   Typography helpers
   ------------------------- */
.text-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--sp-6);
}
.section-heading {
  font-family: var(--font-serif);
  font-weight: 700;
  color: inherit;
  margin-bottom: var(--sp-12);
}
.section-intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--sp-48);
}
.body-copy {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* -------------------------
   Buttons — neobrutalist
   ------------------------- */
.btn-cta,
.btn-pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-dark);
  background: var(--color-gold);
  border: var(--border-w) solid var(--color-dark);
  padding: var(--sp-12) var(--sp-48);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--color-dark);
  transition: box-shadow 0.12s ease, transform 0.12s ease;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.btn-cta:hover,
.btn-pill:hover {
  box-shadow: 2px 2px 0 var(--color-dark);
  transform: translate(2px, 2px);
  color: var(--color-dark);
  text-decoration: none;
}
.btn-cta:focus-visible,
.btn-pill:focus-visible {
  outline: 3px solid var(--color-gold-dark);
  outline-offset: 3px;
}
.btn-cta--full {
  display: block;
  width: 100%;
}

/* -------------------------
   Header
   ------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark);
  border-bottom: 2px solid var(--color-gold);
  min-height: var(--header-height);
  padding: var(--sp-12) 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-24);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  text-decoration: none;
  flex-shrink: 0;
}
.wordmark__text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-light);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-24);
  flex-wrap: wrap;
}
.site-nav__link {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(247,244,239,0.85);
  transition: color 0.15s;
  text-decoration: none;
  padding: var(--sp-6) 0;
}
.site-nav__link:hover { color: var(--color-gold); }
.site-nav__link--cta {
  color: var(--color-gold);
  font-weight: 700;
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 2px;
}

/* -------------------------
   Section bands
   ------------------------- */
.section-band {
  padding: var(--sp-96) 0;
}

/* -------------------------
   Hero
   ------------------------- */
.section-hero {
  background: var(--color-dark);
  padding-top: var(--sp-96);
  padding-bottom: var(--sp-96);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-48);
  align-items: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-light);
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(247,244,239,0.82);
  line-height: 1.7;
  max-width: 520px;
}
.hero-actions {
  margin-top: var(--sp-12);
}
.hero-trust-strip {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-top: var(--sp-24);
}
.hero-trust-strip li {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(247,244,239,0.78);
}
.hero-visual {
  position: relative;
}
.hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  max-height: 480px;
  border: var(--border-w) solid var(--color-gold);
  box-shadow: var(--sp-12) var(--sp-12) 0 var(--color-gold);
}

/* -------------------------
   Problem / Solution
   ------------------------- */
.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-48);
  align-items: start;
}
.problem-col { display: flex; flex-direction: column; gap: var(--sp-24); }
.solution-col { display: flex; flex-direction: column; gap: var(--sp-24); }
.solution-card {
  background: var(--color-light);
  border: var(--border-w) solid var(--color-border);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--color-gold);
  padding: var(--sp-48);
}
.solution-card__icon {
  margin-bottom: var(--sp-24);
}
.solution-card__heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--sp-12);
  color: var(--color-dark);
}
.solution-card__body {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* -------------------------
   Services grid
   ------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-24);
}
.service-card {
  background: var(--color-white);
  border: var(--border-w) solid var(--color-border);
  padding: var(--sp-48) var(--sp-24);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--color-dark);
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  transition: box-shadow 0.12s, transform 0.12s;
}
.service-card:hover {
  box-shadow: 2px 2px 0 var(--color-dark);
  transform: translate(2px, 2px);
}
.service-card__icon { margin-bottom: var(--sp-6); }
.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
}
.service-card__body {
  font-size: 0.97rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* -------------------------
   How It Works — process track
   ------------------------- */
.process-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-48);
  margin-top: var(--sp-48);
}
.process-step {
  display: flex;
  gap: var(--sp-24);
  align-items: flex-start;
}
.process-step__number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  flex-shrink: 0;
  width: 64px;
}
.process-step__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: var(--sp-6);
}
.process-step__body {
  font-size: 0.97rem;
  color: rgba(247,244,239,0.75);
  line-height: 1.7;
}

/* -------------------------
   Photo band
   ------------------------- */
.photo-band {
  position: relative;
  overflow: hidden;
  max-height: 380px;
}
.photo-band__img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.photo-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,46,26,0.82) 0%, rgba(26,46,26,0.45) 60%, rgba(26,46,26,0.15) 100%);
  display: flex;
  align-items: center;
}
.photo-band__caption {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-light);
  max-width: 580px;
  line-height: 1.35;
  border-left: 4px solid var(--color-gold);
  padding-left: var(--sp-24);
}

/* -------------------------
   Trust / Why Us
   ------------------------- */
.trust-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-48);
  margin-top: var(--sp-48);
  align-items: start;
}
.trust-credentials {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}
.credential-item {
  display: flex;
  gap: var(--sp-24);
  align-items: flex-start;
  padding: var(--sp-24);
  background: var(--color-white);
  border: var(--border-w) solid var(--color-border);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--color-gold);
}
.credential-item__icon { flex-shrink: 0; margin-top: 2px; }
.credential-item__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--sp-6);
}
.credential-item__body {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}
.trust-testimonials {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}
.testimonial-card {
  background: var(--color-white);
  border: var(--border-w) solid var(--color-border);
  padding: var(--sp-24);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--color-dark);
}
.testimonial-card__stars {
  color: var(--color-gold);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-12);
}
.testimonial-card__quote {
  font-size: 0.97rem;
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--sp-12);
}
.testimonial-card__attribution {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* -------------------------
   CTA band
   ------------------------- */
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-48);
  flex-wrap: wrap;
}
.cta-band__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: var(--sp-12);
  line-height: 1.25;
}
.cta-band__sub {
  font-size: 1rem;
  color: rgba(247,244,239,0.8);
  max-width: 560px;
  line-height: 1.7;
}
.cta-band-copy { flex: 1 1 320px; }

/* -------------------------
   FAQ
   ------------------------- */
.faq-list {
  max-width: 780px;
  margin: var(--sp-48) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}
.faq-item {
  border: var(--border-w) solid var(--color-border);
  background: var(--color-white);
  padding: 0;
  cursor: pointer;
}
.faq-item[open] .faq-item__question::after { content: '−'; }
.faq-item__question {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  padding: var(--sp-24);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
  cursor: pointer;
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-left: var(--sp-24);
  font-weight: 400;
  font-family: var(--font-sans);
}
.faq-item__answer {
  padding: 0 var(--sp-24) var(--sp-24);
  border-top: 1px solid var(--color-muted);
}
.faq-item__answer p {
  font-size: 0.97rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  padding-top: var(--sp-12);
}

/* -------------------------
   Lead form zone
   ------------------------- */
.form-zone {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-48);
  align-items: start;
}
.form-zone__copy {
  padding-top: var(--sp-12);
}
.form-zone__sub {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--sp-24);
}
.form-reassurance {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}
.form-reassurance li {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(247,244,239,0.78);
}
.form-box {
  background: var(--color-light);
  border: var(--border-w) solid var(--color-gold);
  box-shadow: var(--sp-12) var(--sp-12) 0 var(--color-gold-dark);
  padding: var(--sp-48);
}
.form-box__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--sp-24);
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: var(--sp-12);
}
.form-box__privacy {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: var(--sp-12);
  line-height: 1.5;
}

/* -------------------------
   Injected form fields
   ------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-bottom: var(--sp-24);
}
.field__label {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-dark);
}
.field__required {
  color: var(--color-gold-dark);
  margin-left: 2px;
}
.field__input {
  font-family: var(--font-sans);
  font-size: 0.97rem;
  color: var(--color-dark);
  background: var(--color-white);
  border: var(--border-w) solid var(--color-border);
  padding: var(--sp-12);
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  border-radius: 0;
}
.field__input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.25);
}
.field__error {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #b03a2e;
  margin-top: 2px;
}
.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
}
.phone-wrap {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
}
.phone-wrap__dial {
  font-family: var(--font-sans);
  font-size: 0.97rem;
  background: var(--color-muted);
  border: var(--border-w) solid var(--color-border);
  padding: var(--sp-12);
  min-width: 72px;
  color: var(--color-text-muted);
  border-radius: 0;
}
.phone-wrap__number {
  flex: 1;
}

/* -------------------------
   Form messages
   ------------------------- */
.form-message {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: var(--sp-12) var(--sp-24);
  margin-top: var(--sp-12);
  border: var(--border-w) solid;
}
.form-message--error {
  background: #fdf3f2;
  border-color: #b03a2e;
  color: #b03a2e;
}
.form-message--success {
  background: #f2faf2;
  border-color: #2d6a2d;
  color: #2d6a2d;
}
.form-success {
  text-align: center;
  padding: var(--sp-48) var(--sp-24);
}
.form-success__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--sp-12);
}
.form-success__msg {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* -------------------------
   Footer
   ------------------------- */
.site-footer {
  background: var(--color-dark-alt);
  border-top: 2px solid var(--color-gold);
  padding: var(--sp-24) 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-12);
  text-align: center;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-light);
  letter-spacing: 0.02em;
}
.footer-tagline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(247,244,239,0.6);
  font-style: italic;
}
.footer-nav {
  display: flex;
  gap: var(--sp-24);
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav__link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(247,244,239,0.7);
  transition: color 0.15s;
}
.footer-nav__link:hover { color: var(--color-gold); }
.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(247,244,239,0.45);
}

/* -------------------------
   Tablet — ≤1024px
   ------------------------- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-track {
    grid-template-columns: 1fr;
    gap: var(--sp-48);
  }
  .trust-layout {
    grid-template-columns: 1fr;
  }
}

/* -------------------------
   Mobile — ≤768px
   ------------------------- */
@media (max-width: 768px) {
  :root {
    --container-pad: var(--sp-12);
    --sp-96: 48px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-24);
  }
  .hero-visual { order: -1; }
  .hero-img { max-height: 260px; }
  .hero-headline { font-size: 2.1rem; }
  .text-xl { font-size: 1.7rem !important; }
  .problem-solution-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-24);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .process-track {
    grid-template-columns: 1fr;
    gap: var(--sp-24);
  }
  .trust-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-24);
  }
  .form-zone {
    grid-template-columns: 1fr;
    gap: var(--sp-24);
  }
  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-24);
  }
  .name-row {
    grid-template-columns: 1fr;
  }
  .site-nav__list {
    gap: var(--sp-12);
  }
  .footer-nav {
    gap: var(--sp-12);
  }
  .section-band { padding: var(--sp-48) 0; }
  .section-hero  { padding: var(--sp-48) 0; }
  .form-box { padding: var(--sp-24); }
  .solution-card { padding: var(--sp-24); }
  .photo-band__img { height: 220px; }
  .photo-band { max-height: 220px; }
}

/* ── Phone dial control (injected) ─────────────────────────────────── */
.phone-wrap { display: flex; gap: .5rem; align-items: stretch; }
.phone-wrap__number { flex: 1; min-width: 0; }
.dial { position: relative; flex: none; display: flex; }
.dial__display {
  display: inline-flex; align-items: center; gap: .4rem; width: 100%;
  padding: .7rem .6rem .7rem .7rem;
  border: 1.5px solid var(--clr-border, var(--color-border, #d9d4cc)); border-radius: 8px;
  background: var(--clr-bg, var(--color-bg, #f6f5f2)); color: var(--clr-text, var(--color-text, #1c1c1c));
  font-size: 1rem; line-height: 1.25; white-space: nowrap;
  pointer-events: none;                    /* clicks belong to the select on top */
  transition: border-color .15s, box-shadow .15s;
}
.dial__flag { font-size: 1.15rem; line-height: 1; }
.dial__flag:not(:empty) { min-width: 1.35em; text-align: center; }
.dial__code { font-weight: 700; font-variant-numeric: tabular-nums; }
.dial__caret { width: 15px; height: 15px; flex: none; color: var(--clr-text-muted, var(--color-text-muted, var(--color-label, #6b6b6b))); }
.dial__select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; border: 0; padding: 0; margin: 0;
  appearance: none; -webkit-appearance: none;
}
.dial:focus-within .dial__display { border-color: var(--clr-accent, var(--color-primary, #b4682f)); box-shadow: 0 0 0 3px rgba(0,0,0,.08); }


/* ── Outbound industry references (injected) ───────────────────────── */
.resources-section { padding-block: clamp(3rem, 7vw, 4.5rem); background: var(--clr-bg, var(--color-bg, #f6f5f2)); }
.resources-section .section-header { margin-bottom: 2rem; }
.resource-eyebrow { margin: 0 0 0.75rem; }
.resource-title { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.15; margin: 0 0 0.75rem; color: var(--clr-brand, var(--color-heading, var(--color-text, #23303a))); }
.resource-intro { font-size: 1rem; line-height: 1.65; color: var(--clr-text-mid, var(--color-text-mid, #3d3d3d)); margin: 0; max-width: 68ch; }
.resource-group { margin-top: 2.5rem; }
.resource-group__title {
  font-size: 1.05rem; font-weight: 700; color: var(--clr-brand, var(--color-heading, var(--color-text, #23303a)));
  margin: 0 0 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--clr-border, var(--color-border, #d9d4cc));
}
.resource-grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.resource-card {
  background: var(--clr-surface, var(--color-surface, #ffffff)); border: 1px solid var(--clr-border, var(--color-border, #d9d4cc)); border-radius: 12px; padding: 1.35rem;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.resource-card:hover { transform: translateY(-2px); border-color: var(--clr-accent, var(--color-primary, #b4682f)); box-shadow: 0 6px 22px rgba(0,0,0,.07); }
.resource-card__link {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: .25rem .75rem; text-decoration: none; color: inherit;
}
.resource-card__name {
  grid-column: 1; font-weight: 700; font-size: 1.02rem; color: var(--clr-brand, var(--color-heading, var(--color-text, #23303a)));
  text-decoration: underline; text-decoration-color: var(--clr-accent, var(--color-primary, #b4682f));
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.resource-card__meta {
  grid-column: 1; grid-row: 2; font-size: .78rem; color: var(--clr-text-muted, var(--color-text-muted, var(--color-label, #6b6b6b)));
  text-transform: uppercase; letter-spacing: .06em;
}
.resource-card__arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--clr-accent, var(--color-primary, #b4682f)); font-size: 1.1rem; transition: transform .2s ease; }
.resource-card__link:hover .resource-card__arrow { transform: translateX(3px); }
.resource-card__desc { margin: .75rem 0 0; font-size: .92rem; line-height: 1.55; color: var(--clr-text-mid, var(--color-text-mid, #3d3d3d)); }
.resource-note { margin: 2rem 0 0; font-size: .85rem; line-height: 1.6; color: var(--clr-text-muted, var(--color-text-muted, var(--color-label, #6b6b6b))); max-width: 68ch; }
@media (min-width: 900px) { .resource-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .resource-grid, .resource-grid--three, .resource-grid--two { grid-template-columns: 1fr; } .resource-group { margin-top: 2rem; } }

/* ── Form polish (injected) ────────────────────────────────────────── */
/* #form-message is the empty status container; several generated stylesheets
   give it a border/background, so it renders as a stray empty box until a
   message appears. */
.form-message:empty { display: none; }
/* Keep the number field wide enough that its placeholder is not clipped when
   the form sits in a narrow column beside the dial chip. */
.dial__display { padding-left: .55rem; padding-right: .5rem; gap: .3rem; }
.dial__caret { width: 13px; height: 13px; }
