/* risingsun3.css - Style Guide v1 application layer (cache-busted 2026-11-16 evening) (approved 2026-11-16)
   Works WITH the quark2 theme: overrides the theme's custom properties
   (radius, shadow, accent) at :root so every theme component inherits the
   flat design tokens. Component rules below use selector specificity that
   legitimately wins in the cascade. No !important anywhere.
   Guide: http://100.111.38.10:8085/rse-style-guide/ */

/* ---------- Theme token overrides: the flat design contract ---------- */
:root,
:root:not([data-theme]),
:root[data-theme='light'],
:root[data-theme='dark'],
:root[data-theme='auto'] {
  --q2-radius: 0px;          /* square corners everywhere the theme asks */
  --q2-radius-sm: 0px;
  --q2-radius-xs: 0px;
  --q2-radius-md: 0px;
  --q2-radius-pill: 0px;
  --q2-shadow-card: none;    /* shadows: none, ever */
  --q2-shadow-hl: none;
}

/* ---------- Service cards: exact signature-component tokens ---------- */
.rse-services.rse-services { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rse-card.rse-card {
  background: #f2f2f2;
  border-top: 3px solid #0bb4aa;
  border-radius: 0;
  padding: 18px 20px;
  transition: none;
}
.rse-card.rse-card:hover { background: #f2f2f2; }
.rse-card h3 { margin: 0 0 7px; font-size: 15.5px; }
.rse-card h3 a { color: #101010; text-decoration: none; }
.rse-card h3 a:hover { color: #101010; }
.rse-card p { margin: 0; font-size: 12.5px; line-height: 1.55; color: #666666; }

/* ---------- Hero: flat 35% scrim, 70vh ---------- */
/* Uniform tone as a plain overlay (not a gradient — style guide bans gradients).
   The ::before/child-z rules in risingsun.css provide the scrim layer. */
.rse-hero.rse-hero {
  min-height: 70vh;
  background:
    url('../images/hero-home.jpg') center 35% / cover no-repeat,
    #000000;
}

/* ---------- Buttons: teal stays teal; hover = accent-hover ---------- */
.rse-hero a.button:hover,
.rse-hero a.rse-btn:hover,
form button[type="submit"].button:hover,
form button[type="submit"]:hover {
  background: #0fd3c7;
  border-color: #0fd3c7;
  color: #ffffff;
}
a.rse-btn-body,
#quote-request button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  min-height: 48px;
  max-inline-size: 100%;
  padding: 12px clamp(12px, 4vw, 24px);
  background: var(--rse-accent);
  color: #101010;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
  transition: none;
  /* The solid fill defines the edge; a separate border can leave a paint gap at fractional positions. */
  border: 0;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
a.rse-btn-body:is(:hover, :active),
#quote-request button[type="submit"]:is(:hover, :active) {
  background: #0fd3c7;
  color: #101010;
  text-decoration: none;
}
a.rse-btn-body:focus-visible,
#quote-request button[type="submit"]:focus-visible {
  outline: 2px solid #007d76;
  outline-offset: 3px;
  box-shadow: none;
}

/* ---------- Section headings: Form B underline only, never both ---------- */
.section h2 {
  border-bottom: 2px solid #0bb4aa;
  display: inline-block;
}

/* ---------- Footer: titles 13px per spec ---------- */
.rse-footer-grid h2,
.rse-footer-grid h3 {
  font-size: 13px;
  letter-spacing: 2px;
}

/* ---------- Form system: fields on white, spec dims ---------- */
form input[type="text"], form input[type="email"],
form input[type="tel"], form textarea, form select,
form .form-input, form .form-select {
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  padding: 8px 10px;
  font-family: var(--rse-body);
  font-size: 13px;
  background: #fff;
}
form label { font-weight: 700; font-size: 12.5px; color: #000; }

/* ---------- Placeholder tiles: token-exact per Style Guide v1 ---------- */
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.ph-tile {
  background: #f2f2f2;
  border-top: 3px solid #0bb4aa;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 22px;
  box-sizing: border-box;
}
.ph-tile .ph-badge {
  color: #08736b; font-size: 10px; font-weight: 700; /* dark teal: 5.1:1 on #f2f2f2 (AA) */
  letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 10px; border: none; padding: 0;
}
.ph-tile .ph-title {
  color: #111; font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700; font-size: 15.5px; margin-bottom: 8px;
}
.ph-tile .ph-desc { color: #666666; font-size: 12.5px; line-height: 1.6; }
.ph-tile .ph-caption { color: #0bb4aa; font-size: 11px; letter-spacing: 1px; margin-top: 10px; padding: 0; }
.ph-wide {
  background: #f2f2f2;
  border-top: 3px solid #0bb4aa;
  aspect-ratio: 21 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 30px;
  margin: 22px 0;
  box-sizing: border-box;
}
.ph-wide .ph-badge {
  color: #08736b; font-size: 10px; font-weight: 700; /* dark teal: 5.1:1 on #f2f2f2 (AA) */
  letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 10px; border: none; padding: 0;
}
.ph-wide .ph-title {
  color: #111; font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700; font-size: 17px; margin-bottom: 8px;
}
.ph-wide .ph-desc { color: #666666; font-size: 13px; line-height: 1.6; max-width: 620px; }
@media (max-width: 900px) { .ph-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .ph-grid { grid-template-columns: 1fr; }
  .ph-wide { aspect-ratio: 4 / 3; padding: 18px; }
}

/* ---------- Card grid responsive: 3 / 2 / 1 like the placeholder grid ---------- */
@media (max-width: 900px) {
  .rse-services.rse-services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .rse-services.rse-services { grid-template-columns: 1fr; }
}

/* ---------- Form control consistency (borders, radius, no inset highlight) ---------- */
/* --q2-radius/shadow tokens already flatten these; borders unified here */
.form-wrapper input,
.form-wrapper select,
.form-wrapper textarea {
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  box-shadow: none;
}
.rse-card a:hover { text-decoration: none; }

/* ---------- Header ---------- */
/* Wordmark: bold, uppercase, letterspaced, Montserrat (matches risingsun.css base rule) */
#header .rse-brand-text.rse-brand-text,
.mobile-logo .rse-brand-text.rse-brand-text {
  font-family: var(--rse-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
/* Compact header */
#header.section.section { padding-top: 0.25rem; padding-bottom: 0.25rem; }
#header .container .navbar { min-height: 40px; }
/* Get a Quote = quiet dark pill per guide header specimen */
#header .desktop-menu .dropmenu a[href*="contact"] {
  background: #2a2a2a;
  border: 1px solid #3d3d3d;
  border-radius: 0;
  padding: 0.35rem 0.9rem;
  margin-left: 0.5rem;
}
#header .desktop-menu .dropmenu a[href*="contact"]:hover {
  background: #333333;
  color: #ffffff;
}
/* Nav links: square, hover = teal accent text per Michael 2026-11-16 */
#header nav a:hover,
#header .desktop-menu a:hover,
#header .dropmenu > ul > li > a:hover,
body.header-dark:not(.scrolled) #header .dropmenu > ul > li > a:hover:not(.active),
body.header-light:not(.scrolled) #header .dropmenu > ul > li > a:hover:not(.active) {
  border-radius: 0;
  background: transparent;
  color: var(--rse-accent-hover, #0fd3c7);
}
#header nav a.active,
#header .desktop-menu a.active,
#header .dropmenu > ul > li > a.active {
  border-radius: 0;
  background: transparent;
  color: var(--rse-accent-hover, #0fd3c7);
}
#header .dropmenu > ul > li > a.active:hover {
  background: transparent;
  color: var(--rse-accent-hover, #0fd3c7);
}

/* ---------- Typography per guide ---------- */
/* Section H2: 17px, teal underline, no dash. Kill theme dash via its own hook. */
.section h2::before,
.rse-page-pad h2::before,
#body-wrapper h2::before {
  content: none;
  display: none;
  width: 0;
  height: 0;
  margin-bottom: 0;
}
#body-wrapper h2:not(#footer h2):not(.rse-footer-grid h2) {
  font-family: var(--rse-heading);
  font-size: 1.0625rem; /* 17px per guide */
  border-bottom: 2px solid var(--rse-accent, #0bb4aa);
  padding-bottom: 0.35rem;
  display: inline-block;
}
/* Hero H1 40px (wins over .section h1 via .rse-hero chain specificity) */
.rse-hero.rse-hero h1,
#body-wrapper .rse-hero h1 {
  font-size: 2.5rem; /* 40px */
}
/* Page H1 28px on inner pages (hero rule above is more specific, protects home) */
#body-wrapper h1.entry-title,
h1.entry-title,
.section h1 {
  font-size: 1.75rem; /* 28px */
}
/* Hero buttons 12px */
.rse-hero .rse-actions a.button,
.rse-hero .rse-actions .rse-btn {
  font-size: 0.75rem; /* 12px */
}
/* Form labels bold 12.5px; inputs 44px tall (field tap-target + iOS zoom threshold) */
form .form-label.form-label,
#body-wrapper form .form-label {
  font-weight: 700;
  font-size: 0.8125rem; /* 12.5px */
}
form input[type="text"], form input[type="email"],
form input[type="tel"] {
  font-size: 1rem; /* 16px: iOS Safari zooms viewport on inputs < 16px */
  padding: 0.5rem 0.6rem;
  height: 44px;
}
form select, form .form-select, form .form-input {
  font-size: 1rem; /* 16px */
  padding: 0.5rem 0.6rem;
  height: 44px;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
}
form textarea { min-height: 96px; }
/* Footer body 12px, sub-footer 10px */
#footer .rse-footer-grid p { font-size: 0.75rem; }
#footer .rse-footer-bottom { font-size: 0.625rem; }
/* Mobile overlay brand link: theme.css .navbar-brand { var(--pico-font-family-display) }
   (Cal Sans) wins on the link; the span inside is Montserrat via .rse-brand-text rule.
   Set the link itself to the heading stack so the whole wordmark matches. */
.mobile-logo .navbar-brand.navbar-brand {
  font-family: var(--rse-heading);
}
/* Mobile overlay links: Montserrat per type system */
.overlay-menu .tree a,
.mobile-logo .rse-brand-text.rse-brand-text {
  font-family: var(--rse-heading);
}

/* Sunrise mark and responsive header wordmark */
.rse-brand > img.rse-brand-mark {
  display: block;
  flex: none;
  width: 41px;
  height: auto;
}

@media (max-width: 1199px) {
  .rse-brand > img.rse-brand-mark { width: 28px; }
  header .rse-brand { gap: 6px; }
}

@media (max-width: 360px), (min-width: 861px) and (max-width: 1023px) {
  header .rse-brand .rse-brand-text {
    font-size: 14px !important;
    letter-spacing: 0.065em !important;
  }
}

@media (min-width: 861px) and (max-width: 1023px) {
  header nav ul.navigation { gap: 2px !important; }
  header nav ul.navigation li:not(:last-child) > a { padding-inline: 5px !important; }
}

/* Home, services index and project gallery */
.rse-editorial {
  margin: 0 auto;
  max-width: 68rem;
}
.rse-editorial section + section {
  margin-top: clamp(2rem, 5vw, 4.5rem);
}
.rse-editorial :is(p, ul) { margin-top: 0.65rem; }
.rse-editorial h2 { margin-bottom: 0.55rem; }
.rse-editorial h3 { margin: 0 0 0.3rem; }
.rse-editorial a:focus-visible {
  outline: 2px solid #007d76;
  outline-offset: 3px;
}
.rse-hero .rse-hero-local {
  color: #fff;
  margin: 0.65rem 0 0;
}
.rse-home-facts {
  display: grid;
  gap: 0.7rem 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 3px solid #0bb4aa;
  background: #f2f2f2;
  list-style: none;
  padding: 1rem clamp(1rem, 3vw, 2.1rem);
  margin: 0 0 clamp(2rem, 5vw, 4.5rem);
}
.rse-home-facts li {
  list-style: none;
  color: #111;
  font-weight: 700;
  margin: 0;
}
.rse-home-overview, .rse-home-feature, .rse-project-feature {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1rem, 4vw, 3rem);
}
.rse-editorial .rse-home-links {
  display: block;
  background: #f2f2f2;
  border-top: 3px solid #0bb4aa;
  padding: clamp(1rem, 3vw, 1.75rem);
}
.rse-home-links ul {
  display: grid;
  gap: 0.4rem 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}
.rse-home-links .rse-card {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.rse-home-links a, .rse-service-jumps a, .rse-service-row a, .rse-project a {
  color: #005f5a;
  text-underline-offset: 0.18em;
}
.rse-home-links a { display: inline-block; padding: 0.25rem 0; }
.rse-home-feature img, .rse-project img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.rse-page-lead {
  border-top: 3px solid #0bb4aa;
  background: #f2f2f2;
  padding: clamp(1rem, 4vw, 2.5rem);
  margin: 0 0 clamp(1.5rem, 4vw, 3.25rem);
}
.rse-page-lead h1 { margin: 0 0 0.6rem; }
.rse-page-lead p { max-width: 44rem; margin-bottom: 0; }
.rse-service-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-top: 1.2rem;
}
.rse-service-band {
  display: grid;
  gap: 0.85rem clamp(1.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.65fr);
  border-top: 2px solid #0bb4aa;
  padding-top: 1.15rem;
  scroll-margin-top: 5rem;
}
.rse-service-band > div > p { margin-bottom: 0; }
.rse-service-row { padding: 0.9rem 0; border-bottom: 1px solid #dedede; }
.rse-service-row:first-child { padding-top: 0.2rem; }
.rse-service-row p { margin: 0; }
.rse-project-feature {
  background: #f2f2f2;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: 0;
}
.rse-project-feature figcaption { padding: clamp(1rem, 4vw, 2.5rem); }
.rse-project-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 1.7rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.7rem;
}
.rse-project { margin: 0; border-top: 3px solid #0bb4aa; }
.rse-project-grid .rse-project { background: #f2f2f2; }
.rse-project-grid figcaption { padding: 1rem 1.15rem 1.2rem; }
.rse-project figcaption p { margin: 0.45rem 0 0.8rem; }
.rse-project-foot { margin-top: 1.65rem; }
.rse-editorial-cta {
  border-top: 3px solid #0bb4aa;
  background: #f2f2f2;
  padding: clamp(1rem, 4vw, 2.25rem);
}
.rse-editorial-cta p:last-child {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0;
}
@media (max-width: 720px) {
  .rse-home-facts, .rse-home-overview, .rse-home-feature,
  .rse-project-feature, .rse-project-grid, .rse-service-band {
    grid-template-columns: minmax(0, 1fr);
  }
  .rse-home-facts { gap: 0.45rem; }
  .rse-home-feature { gap: 1rem; }
  .rse-service-row:first-child { padding-top: 0.85rem; }
}

/* ---------- Contrast compliance (WCAG AA 4.5:1) ---------- */
/* figcaption muted text: #898989 (3.5:1) -> #6e6e6e (5.1:1) */
figure figcaption { color: #6e6e6e; }
/* body-copy inline links: accent teal (2.3:1) -> dark teal #08736b (5.7:1 on white);
   matches owner-ux content-link color; header/footer dark-bg links keep accent */
#body-wrapper > .container > p > a:not(.button, .rse-btn, .rse-btn-body),
#body-wrapper > .container p a:not(.button, .rse-btn, .rse-btn-body) {
  color: #08736b;
}
