/* Sentrik Roofing: red (#A51C24) and white only. No gradients. */

:root {
  --red: #a51c24;
  --white: #ffffff;
  --text: #3d1216;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

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

.hero .btn:focus-visible {
  outline-color: var(--white);
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

h1,
h2,
h3 {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--red);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1.35rem;
  margin: 1.25rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  border-bottom: 4px solid var(--red);
  background: var(--white);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem max(1.25rem, env(safe-area-inset-right)) 1rem max(1.25rem, env(safe-area-inset-left));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  height: clamp(52px, 12vw, 72px);
  width: auto;
  display: block;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.main-nav a {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--red);
  touch-action: manipulation;
}

.main-nav a[aria-current="page"] {
  border-bottom: 3px solid var(--red);
}

.hero {
  background: var(--red);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4rem) max(1.25rem, env(safe-area-inset-right)) clamp(2.5rem, 6vw, 4rem) max(1.25rem, env(safe-area-inset-left));
  padding-bottom: max(clamp(2.5rem, 6vw, 4rem), env(safe-area-inset-bottom));
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hero--home .hero-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 4vw, 3rem);
  width: 100%;
}

.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-texas {
  flex: 0 0 auto;
  width: clamp(170px, 32vw, 300px);
  max-width: 42%;
  margin-left: auto;
  line-height: 0;
  pointer-events: none;
  opacity: 0.94;
}

.hero-texas img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 720px) {
  .hero--home .hero-inner {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .hero-texas {
    width: min(240px, 58vw);
    max-width: 100%;
    margin-left: 0;
    align-self: flex-end;
    order: 2;
  }

  .hero-copy {
    order: 1;
  }
}

.hero h1 {
  color: var(--white);
  max-width: 18ch;
}

.hero p {
  font-size: 1.15rem;
  max-width: 42ch;
  margin-bottom: 1.5rem;
  opacity: 0.98;
}

.hero a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  min-height: 44px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 3px solid var(--white);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.btn:hover {
  background: var(--white);
  color: var(--red);
}

.btn-on-white {
  border-color: var(--red);
  color: var(--red);
}

.btn-on-white:hover {
  background: var(--red);
  color: var(--white);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem max(1.25rem, env(safe-area-inset-right)) max(4rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}

.section-lead {
  font-size: 1.15rem;
  max-width: 65ch;
}

.crumbs {
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  max-width: 65ch;
}

.crumbs span {
  font-weight: 700;
  color: var(--red);
}

.area-list a {
  color: var(--red);
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.area-list a:hover {
  text-decoration-thickness: 2px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  border: 3px solid var(--red);
  padding: 1.5rem;
  background: var(--white);
}

.card h3 {
  margin-top: 0;
}

.callout {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border-left: 6px solid var(--red);
  background: var(--white);
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.site-footer {
  background: var(--red);
  color: var(--white);
  padding: 2rem max(1.25rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer a {
  color: var(--white);
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-form {
  max-width: 640px;
  overflow: visible;
}

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

.form-submit-status {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  border: 3px solid var(--red);
  font-weight: 700;
}

.form-submit-status--success {
  background: rgba(165, 28, 36, 0.08);
  color: var(--text);
}

.form-submit-status--error {
  background: var(--white);
  color: var(--red);
}

.main--contact {
  overflow: visible;
}

.main--contact .contact-intro {
  margin-bottom: 1.75rem;
  max-width: 52ch;
}

.contact-form label {
  display: block;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.contact-form .label-hint {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.88;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 3px solid var(--red);
  font: inherit;
  background: var(--white);
  color: var(--text);
  margin-bottom: 0;
  transition: border-color 0.12s ease;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #8b1720;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* Custom select (JS-enhanced): shell + trigger + dropdown list */
.contact-form .select-wrap {
  position: relative;
  z-index: 1;
  display: block;
  border: 3px solid var(--red);
  background: var(--white);
  transition: border-color 0.12s ease;
}

.contact-form .select-wrap:hover {
  border-color: #8b1720;
}

.contact-form .select-wrap:focus-within {
  outline: 3px solid var(--red);
  outline-offset: 0;
  z-index: 60;
}

.contact-form fieldset.form-fieldset:has(.select-wrap:focus-within),
.contact-form fieldset.form-fieldset:has(.select-wrap--open) {
  z-index: 50;
}

.contact-form .select-native-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.contact-form .select-trigger {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 3.25rem;
  border: none;
  border-radius: 0;
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.contact-form .select-trigger:focus {
  outline: none;
}

.contact-form .select-trigger:focus-visible {
  outline: none;
}

.contact-form .select-trigger-value {
  flex: 1;
  min-width: 0;
  padding: 0.8125rem 0.75rem 0.8125rem 1rem;
  display: flex;
  align-items: center;
}

.contact-form .select-trigger--placeholder .select-trigger-value {
  color: #6a5558;
  font-weight: 400;
}

.contact-form .select-trigger-chevron {
  flex: 0 0 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 3px solid var(--red);
  background-color: rgba(165, 28, 36, 0.07);
  color: var(--red);
  transition: background-color 0.12s ease, transform 0.15s ease;
}

.contact-form .select-wrap:hover .select-trigger-chevron {
  background-color: rgba(165, 28, 36, 0.12);
  border-left-color: #8b1720;
}

.contact-form .select-wrap--open .select-trigger-chevron {
  background-color: rgba(165, 28, 36, 0.12);
}

.contact-form .select-wrap--open .select-trigger-chevron svg {
  transform: rotate(180deg);
}

.contact-form .select-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 100;
  max-height: min(320px, 55vh);
  overflow-y: auto;
  overflow-x: hidden;
  border: 3px solid var(--red);
  background: var(--white);
}

.contact-form .select-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.75rem 1rem;
  border: none;
  border-bottom: 3px solid rgba(165, 28, 36, 0.15);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.contact-form .select-option:last-child {
  border-bottom: none;
}

.contact-form .select-option:hover {
  background-color: rgba(165, 28, 36, 0.08);
}

.contact-form .select-option:focus {
  outline: none;
}

.contact-form .select-option:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: -3px;
  position: relative;
  z-index: 1;
}

.contact-form .select-option[aria-selected="true"] {
  font-weight: 700;
  background-color: rgba(165, 28, 36, 0.12);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .form-field {
  margin-bottom: 1rem;
}

.contact-form .form-field:last-child {
  margin-bottom: 0;
}

.contact-form .form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 560px) {
  .contact-form .form-row--split {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form fieldset.form-fieldset {
  position: relative;
  z-index: 1;
  border: 3px solid var(--red);
  padding: 1.5rem 1.35rem 1.4rem;
  margin: 0 0 2.25rem;
  min-inline-size: 0;
  overflow: visible;
}

.contact-form fieldset.form-fieldset:last-of-type {
  margin-bottom: 1.75rem;
}

.contact-form legend {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--red);
  padding: 0 0.5rem;
}

.contact-form button[type="submit"] {
  margin-top: 0.5rem;
  min-height: 44px;
  touch-action: manipulation;
}

.contact-form .select-trigger,
.contact-form .select-option {
  touch-action: manipulation;
}

@media (max-width: 720px) {
  .main-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.15rem;
  }
}

.list-check {
  padding-left: 0;
  list-style: none;
}

.list-check li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--red);
}

.area-list {
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 520px) {
  .area-list {
    columns: 1;
  }
}

small.disclaimer {
  display: block;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.9;
}

/* Admin leads (/admin/) */
.main--admin {
  max-width: 900px;
}

.admin-login-panel {
  max-width: 420px;
}

.admin-msg {
  margin-top: 1rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--red);
}

.admin-toolbar-meta {
  margin: 0;
  font-weight: 700;
  color: var(--red);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.25rem;
}

.btn--small {
  padding: 0.55rem 1.25rem;
  font-size: 1.05rem;
}

.admin-leads-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-empty {
  margin: 0;
  padding: 1.5rem;
  border: 3px dashed var(--red);
  color: var(--text);
}

.lead-card {
  border: 3px solid var(--red);
  padding: 1.25rem 1.5rem;
  background: var(--white);
}

.lead-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(165, 28, 36, 0.35);
}

.lead-card__name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--red);
}

.lead-card__time {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.9;
}

.lead-card__dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(7rem, 32%) 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.98rem;
}

.lead-card__dl dt {
  margin: 0;
  font-weight: 700;
  color: var(--red);
}

.lead-card__dl dd {
  margin: 0;
  color: var(--text);
}

.lead-card__details {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(165, 28, 36, 0.25);
  white-space: pre-wrap;
}

@media (max-width: 560px) {
  .lead-card__dl {
    grid-template-columns: 1fr;
  }

  .lead-card__dl dt {
    margin-top: 0.5rem;
  }

  .lead-card__dl dt:first-child {
    margin-top: 0;
  }
}

/* Contact toasts (bottom right) */
.toast-stack {
  position: fixed;
  z-index: 10000;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: auto;
  width: min(22rem, calc(100vw - 2rem));
  display: flex;
  flex-direction: column-reverse;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 1rem 1.15rem;
  border: 3px solid var(--red);
  background: var(--white);
  color: var(--text);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.45;
  box-shadow: 0 8px 28px rgba(61, 18, 22, 0.18);
  transform: translateX(120%);
  opacity: 0;
  transition:
    transform 0.32s ease,
    opacity 0.32s ease;
}

.toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.toast--success {
  border-color: var(--red);
  background: rgba(165, 28, 36, 0.06);
}

.toast--error {
  border-color: var(--red);
  background: var(--white);
  color: var(--red);
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transform: none;
    opacity: 1;
    transition: none;
  }

  .toast--visible {
    transform: none;
  }
}
