/* Bulldog Mechanical-Remodeling — flyer palette restyle
   Red / black / white. Navy and gray are not theme colors. */

:root {
  --red: #F8323F;
  --red-deep: #E32526;
  --red-hover: #C41E24;
  --black: #000000;
  --white: #FFFFFF;
  --ink: #000000;
  --paper: #FFFFFF;
  --focus: #F8323F;
  --radius: 0;
  --header-h: 4.35rem;
  --bar-h: 4.25rem;
  --max: 68rem;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --display: "Montserrat", "Arial Black", "Arial Narrow", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: calc(var(--bar-h) + 0.5rem);
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.6em;
  color: var(--black);
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.15rem, 8.4vw, 4.15rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.7rem, 4.6vw, 2.45rem);
}

h3 {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--black);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--red);
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header — black bar, white text, red Call now */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--black);
  color: var(--white);
  border-bottom: 4px solid var(--red);
}

.header-inner {
  width: min(100% - 1.25rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
  flex: 1;
}

.brand:hover {
  color: var(--white);
}

.brand-logo {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  background: transparent;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-loc {
  font-size: 0.72rem;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav {
  display: none;
  gap: 1.25rem;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0;
}

.nav a:hover {
  color: var(--red);
}

.header-call {
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1.2;
}

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

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

.btn-call {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  padding-inline: 1rem;
}

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

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-ghost-dark:hover {
  background: var(--black);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

/* Hero — white left, black chevron right, red diagonal wedge */
.hero {
  background: var(--white);
  color: var(--black);
  position: relative;
  overflow: hidden;
  padding: 2.25rem 0 0;
}

.hero-geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-wedge {
  position: absolute;
  display: block;
}

.hero-wedge-black {
  right: 0;
  bottom: 0;
  width: min(58vw, 16rem);
  height: 38%;
  background: var(--black);
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-wedge-red {
  left: 0;
  bottom: 0;
  width: 42%;
  height: 0.7rem;
  background: var(--red);
  clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
}

.hero-wedge-char {
  right: 0;
  bottom: 0;
  width: min(38vw, 16rem);
  height: 2.4rem;
  background: var(--red);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
  display: grid;
  gap: 1.25rem;
  align-items: end;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
}

.kicker {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.65rem;
}

.kicker-dark {
  color: var(--red);
}

.hero h1 {
  color: var(--black);
  max-width: 14ch;
  margin-bottom: 0.75rem;
}

.hero-lead {
  max-width: 34rem;
  font-size: 1.12rem;
  color: var(--black);
  margin-bottom: 0.65rem;
}

.hero-trust {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions .btn {
  flex: 1 1 12rem;
  max-width: 22rem;
}

.hero-actions .btn-ghost {
  color: var(--black);
  border-color: var(--black);
  background: var(--white);
}

.hero-actions .btn-ghost:hover {
  background: var(--black);
  color: var(--white);
}

.hero-mascot-wrap {
  position: relative;
  z-index: 2;
  justify-self: center;
  margin: 0 auto 1.25rem;
  width: min(52vw, 14rem);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 0 0 4px var(--red);
}

.hero-mascot {
  width: 86%;
  height: 86%;
  max-width: none;
  margin: 7%;
  object-fit: contain;
  object-position: center;
}

/* Sections */
.section {
  padding: 3.25rem 0 3.5rem;
  background: var(--white);
}

.section-steel {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
  border-block: 0;
}

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

.section-steel .area-copy {
  color: var(--white);
}

.area-geo {
  position: absolute;
  right: 0;
  top: 0;
  width: 46%;
  height: 100%;
  background: var(--red);
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.95;
  pointer-events: none;
}

.service-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.service-card {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 1.25rem 1.2rem 1.35rem;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: var(--red);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.service-icon {
  color: var(--red);
  margin-bottom: 0.7rem;
}

.service-card h3 {
  margin-bottom: 0.35rem;
  color: var(--black);
}

.service-card p {
  margin: 0;
  color: var(--black);
  font-size: 1rem;
}

/* Area */
.area-layout {
  display: grid;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.area-copy {
  max-width: 38rem;
  font-size: 1.15rem;
}

.area-card {
  display: block;
  font-style: normal;
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--white);
  padding: 1.5rem 1.4rem;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.area-card p {
  margin: 0 0 0.75rem;
}

.area-card p:last-child {
  margin-bottom: 0;
}

.area-card-label {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.area-card a {
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
}

.area-card a:hover {
  color: var(--red);
}

/* Contact + form */
.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-copy p {
  max-width: 32rem;
}

.contact-about {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-label {
  display: block;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.15rem;
}

.contact-list a {
  color: var(--black);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  word-break: break-word;
}

.contact-list a:hover {
  color: var(--red);
}

.contact-afterhours {
  font-size: 1rem !important;
  font-weight: 600 !important;
}

.contact-note {
  display: block;
  font-size: 0.85rem;
  color: var(--black);
  margin-top: 0.15rem;
}

.quote-panel {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 1.35rem 1.15rem 1.5rem;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.quote-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: var(--red);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.quote-title {
  margin-bottom: 0.35rem;
  color: var(--black);
}

.quote-dest {
  font-size: 0.9rem;
  color: var(--black);
  margin-bottom: 1.1rem;
}

.quote-dest a {
  color: var(--black);
  font-weight: 600;
}

.quote-form {
  display: grid;
  gap: 0.95rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%),
    linear-gradient(135deg, var(--black) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px),
    calc(100% - 10px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-color: var(--black);
  background: var(--white);
}

.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: var(--red);
}

.form-error {
  margin: 0;
  color: var(--red-deep);
  font-weight: 600;
  font-size: 0.95rem;
}

.quote-success {
  padding: 0.5rem 0 0.25rem;
}

.quote-success-msg {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--black);
  margin-bottom: 1.1rem;
}

/* Footer */
.site-footer {
  padding: 1.25rem 1rem 1.5rem;
  text-align: center;
  background: var(--white);
}

.site-footer p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  font-family: var(--display);
  font-weight: 600;
}

/* Mobile sticky bar */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  background: var(--black);
  border-top: 4px solid var(--red);
}

.mobile-bar .btn {
  min-height: 48px;
}

#services,
#area,
#contact,
#quote,
#top {
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

/* Desktop */
@media (min-width: 720px) {
  body {
    padding-bottom: 0;
  }

  .header-inner {
    gap: 1.5rem;
  }

  .brand-logo {
    width: 3.1rem;
    height: 3.1rem;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .nav {
    display: flex;
  }

  .hero {
    padding: 0;
  }

  .hero-inner {
    grid-template-columns: 1.25fr 0.85fr;
    min-height: 28rem;
    align-items: center;
    gap: 1rem;
  }

  .hero-copy {
    padding: 4.5rem 0 4.75rem;
  }

  .hero-wedge-black {
    top: 0;
    bottom: auto;
    height: 100%;
    width: min(46vw, 32rem);
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  }

  .hero-wedge-red {
    width: 36%;
    height: 0.85rem;
  }

  .hero-wedge-char {
    width: min(28vw, 20rem);
    height: 3.1rem;
  }

  .hero-mascot-wrap {
    width: min(32vw, 18rem);
    margin: 0;
    justify-self: center;
    align-self: center;
  }

  .section {
    padding: 4.5rem 0 5rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }

  .service-grid li:last-child {
    grid-column: 1 / -1;
  }

  .area-layout {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
    gap: 2.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }

  .quote-panel {
    padding: 1.75rem 1.6rem 1.85rem;
  }

  .quote-form {
    grid-template-columns: 1fr 1fr;
  }

  .field-full,
  .form-error,
  .quote-form .btn {
    grid-column: 1 / -1;
  }

  .mobile-bar {
    display: none;
  }
}

@media (max-width: 519px) {
  .brand-rest {
    display: none;
  }
}

@media (min-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .service-grid li:last-child {
    grid-column: auto;
  }

  .service-grid li {
    grid-column: span 2;
  }

  .service-grid li:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .service-grid li:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .hero-inner {
    min-height: 32rem;
  }
}
