:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #111827;
  --text: #18202b;
  --muted: #667085;
  --line: #e7e1d7;
  --accent: #ff4747;
  --accent-dark: #ba2323;
  --steel: #283342;
  --flake: #bfbaba;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(17,24,39,.11);
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
    line-height: 1.3;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header / Navigation */
.top-strip {
  background: var(--surface-2);
  color: #fff;
  font-size: .9rem;
}

.top-strip-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.top-strip a {
  color: #fff;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
}

.navbar {
  background: rgba(246,244,239,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  width: auto;
  margin-right: 24px;
}

.brand img {
  height: 64px;
  width: auto;
  display: block;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--steel);
  color: #fff;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand-text {
  display: grid;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  color: var(--muted);
  font-weight: 700;
}

.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-menu > a,
.nav-dropdown > button {
  border: 0;
  background: transparent;
  padding: 12px 13px;
  font: inherit;
  color: var(--steel);
  font-weight: 700;
  cursor: pointer;
}

.nav-menu .active {
  color: var(--accent-dark);
}

.nav-cta {
  margin-left: 8px;
  background: var(--accent) !important;
  color: #111 !important;
  border-radius: 999px;
  padding: 12px 18px !important;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s ease;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--steel);
}

.dropdown-menu a:hover {
  background: var(--bg);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--steel);
  margin: 4px auto;
}

/* Legacy standard hero for inner pages or non-sticky templates */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17,24,39,.90), rgba(17,24,39,.50)),
    url('../images/hero-garage-floor.jpg') bottom/cover no-repeat;
}

.hero .container {
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: 90px 0;
}

.hero-content {
  max-width: 760px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 680px;
  color: rgba(255,255,255,.86);
}

/* Homepage sticky hero */
.sticky-hero {
  position: relative;
  min-height: 60vh;
  display: grid;
  align-items: center;
  overflow: clip;
  color: #fff;
  isolation: isolate;
}

.sticky-hero-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: url('../images/hero_garage_floor.png') center bottom/cover no-repeat;
  transform: translateZ(0);
}

.sticky-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(0,0,0,.55);
}

.sticky-hero-content {
  padding: 130px 0 190px;
}

.sticky-hero-content h1,
.sticky-hero-content h2 {
  max-width: 900px;
}

.sticky-hero-content p:not(.eyebrow) {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  max-width: 720px;
  color: rgba(255,255,255,.88);
}

/* Typography */
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
  font-size: .78rem;
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  letter-spacing: -.06em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -.04em;
}

h3 {
  font-size: 1.35rem;
}

.lead {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 780px;
}

.center {
  text-align: center;
}

.center .lead {
  margin: 0 auto 32px;
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn-primary {
  background: transparent;    
  border: 2px solid var(--accent);
  color: #fff;
}

.btn-secondary {
  background: transparent;    
  border: 2px solid var(--accent);
  color: #000;
}

.btn-outline {
  border: 2px solid;        
  border-color: rgba(255,255,255,.45);
  color: #fff;
  
}

.btn-light {
  background: #fff;
  color: var(--steel);
}

/* Layout helpers */
.section {
  padding: 30px 0;
}

.section-tight {
  padding: 58px 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: center;
}

/* Cards / panels */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 28px rgba(17,24,39,.06);
}

.card img,
.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: #ddd;
}

.card-link {
  color: var(--accent-dark);
  font-weight: 800;
  display: inline-block;
  margin-top: 12px;
}

.dark-panel {
  background: var(--surface-2);
  color: #fff;
  border-radius: 34px;
  padding: clamp(34px, 6vw, 64px);
}

.dark-panel p {
  color: rgba(255,255,255,.75);
}

.elevated-panel {
  box-shadow: 0 24px 64px rgba(17,24,39,.20);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.feature-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
}

.quote {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Homepage content overlap */
.homepage-overlap {
  position: relative;
  z-index: 2;
  margin-top: -96px;
  background: var(--bg);
  border-radius: 42px 42px 0 0;
  box-shadow: 0 -28px 70px rgba(0,0,0,.28);
  overflow: hidden;
  min-height: auto;
  padding-bottom: 0;
}

.intro-card-section {
  padding-top: 72px;
}

.intro-card {
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(231,225,215,.9);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 58px);
  backdrop-filter: blur(14px);
}

.service-grid {
  margin-top: 34px;
  text-align: left;
}

.service-card {
  padding: 0;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(17,24,39,.12);
}

.service-card img {
  border-radius: 0;
  aspect-ratio: 16 / 11;
}

.service-card-body {
  padding: 24px;
}

/* Mid-page static background image section */
.image-break {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: url('../images/floors1.png') center bottom/cover no-repeat;
  background-attachment: fixed;
}

.image-break::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1;
  pointer-events: none;
}

.image-break-bg {
  display: none;
}

.image-break-card {
  position: relative;
  z-index: 2;
  max-width: 820px;
  background: none;
  padding: 0;
  border-radius: 0;
  color: #fff;
}

.image-break-card h2 {
  max-width: 820px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  color: #fff;
}

.image-break-card p,
.image-break-card .eyebrow,
.image-break-card a {
  opacity: 1;
}

.image-break-card .eyebrow {
  color: var(--accent);
}

/* Final homepage section */
.final-home-section {
  background: var(--bg);
  margin-bottom: 0;
}

.homepage-footer-cover {
  background: var(--bg);
  margin-bottom: 0;
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
}

.testimonial-card {
  transform: translateY(-18px);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery figure {
  margin: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ddd;
}

.gallery figcaption {
  padding: 14px 16px;
  font-weight: 800;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.notice {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-weight: 700;
}

.notice.success {
  background: #e9f8ef;
  color: #176c34;
}

.notice.error {
  background: #fff0f0;
  color: #9f1f1f;
}

/* Estimate band / footer */
.estimate-band {
  position: relative;
  z-index: 999;
  background: var(--flake);
  color: #111;
  padding: 46px 0;
}

.estimate-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.estimate-band .eyebrow {
  color: rgba(17,24,39,.72);
}

.estimate-band h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.site-footer {
  position: relative;
  z-index: 999;
  background: #111827;
  color: #fff;
  padding: 58px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.site-footer p,
.site-footer a {
  color: rgba(255,255,255,.76);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 32px;
  padding-top: 22px;
  color: rgba(255,255,255,.6);
}

/* Inner page hero */
.page-hero {
  padding: 30px 0;
  background: var(--steel);
  color: #fff;
}

.page-hero .lead {
  color: rgba(255,255,255,.78);
}

.split-image {
  border-radius: 28px;
  min-height: 420px;
  object-fit: cover;
  background: #ddd;
}

/* Tablet / small desktop */
@media (max-width: 900px) {
  .top-strip-inner {
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 82px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 24px;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu > a,
  .nav-dropdown > button {
    width: 100%;
    text-align: left;
    padding: 14px;
  }

  .nav-cta {
    display: none;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 16px;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .hero .container {
    min-height: 590px;
  }

  .sticky-hero {
    min-height: 760px;
  }

  .sticky-hero-bg {
    position: absolute;
  }

  .sticky-hero-content {
    padding: 96px 0 150px;
  }

  .homepage-overlap {
    margin-top: -72px;
    border-radius: 30px 30px 0 0;
  }

  .intro-card {
    padding: 28px 20px;
    border-radius: 26px;
  }

  .grid-3,
  .grid-2,
  .gallery,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .estimate-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .image-break {
    background-attachment: scroll;
  }

  .testimonial-card {
    transform: none;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-text strong {
    font-size: .9rem;
  }

  .hero .container {
    min-height: 320px;
    padding: 64px 0;
  }

  .sticky-hero {
    min-height: 400px;
  }

  .sticky-hero-content {
    padding: 82px 0 130px;
  }

  .homepage-overlap {
    margin-top: -58px;
    border-radius: 24px 24px 0 0;
  }

  .intro-card-section {
    padding-top: 42px;
  }

  .section {
    padding: 20px 0;
  }

  .image-break {
    min-height: 440px;
  }

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

.residential-applications-layout {
  align-items: center;
}

.residential-bullet-list {
  margin: 24px 0 0;
  padding-left: 22px;
  font-size: 1.1rem;
  color: var(--text);
}

.residential-bullet-list li {
  margin-bottom: 5px;
  padding-left: 4px;
}

.residential-side-image {
  width: 100%;
  border-radius: 28px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.contact-section {
  padding-top: 56px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.35fr .75fr;
  gap: 32px;
  align-items: start;
}

.contact-form-card,
.contact-info-card {
  padding: 32px;
}

.contact-info-card {
  align-self: start;
}

.contact-info-card h2 {
  margin-bottom: 12px;
}

.contact-info-card h3 {
  margin-top: 28px;
  margin-bottom: 8px;
}

.contact-info-card .lead {
  margin-bottom: 18px;
}

.contact-form-card .form-grid {
  gap: 12px 14px;
}

.contact-form-card label {
  font-size: .9rem;
  margin-bottom: 5px;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  padding: 10px 12px;
  min-height: 42px;
  border-radius: 10px;
}

.contact-form-card textarea {
  min-height: 115px;
}

.contact-form-card input[type="file"] {
  padding: 8px 10px;
}

.contact-form-card .btn {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
