/* Handyman Fort Wayne — Modern static site */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a2540;
  --navy-light: #123a5c;
  --orange: #f97316;
  --orange-hover: #ea580c;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --shadow: 0 4px 24px rgba(10, 37, 64, 0.12);
  --radius: 8px;
  --max-width: 1200px;
  --header-height: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
}

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

a { color: var(--navy); text-decoration: underline; }
a:hover { color: var(--orange); }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { height: 40px; width: auto; max-width: 200px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.main-nav a:hover,
.main-nav a.active { background: var(--navy-light); color: var(--white); }

.nav-item { position: relative; }

.nav-item .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 0.5rem 0;
  z-index: 100;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { display: block; }

.dropdown a {
  color: var(--navy);
  display: block;
  padding: 0.6rem 1.25rem;
}

.dropdown a:hover { background: var(--gray-100); color: var(--orange); }

.header-phone {
  color: var(--orange);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.header-phone:hover {
  background: var(--orange);
  color: var(--white);
}

/* Hero stack: full viewport below header */
.hero-stack {
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
}

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero.has-image {
  background: linear-gradient(rgba(10, 37, 64, 0.82), rgba(10, 37, 64, 0.88)),
    url("/images/hero-bg.webp") center/cover no-repeat;
}

.hero.hero-with-form {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1.5rem 1.25rem;
}

.hero--epoxy {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 50%, var(--navy-light) 100%);
}

.hero-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr minmax(0, 380px);
  gap: 2rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-content h1,
.hero-content h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 540px;
  margin: 0 0 1.25rem;
  opacity: 0.95;
}

.hero-content .btn { margin-top: 0.25rem; }

.hero-content p a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
}

.hero-content p a:hover { color: var(--white); }

.hero-form {
  min-width: 0;
  width: 100%;
}

.hero-form .quote-form-wrapper {
  width: 100%;
  min-width: 0;
}

.hero-form .quote-form {
  padding: 1.25rem;
  max-height: calc(100dvh - 180px);
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hero-form .form-banner-text {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

.hero-form .form-group { margin-bottom: 0.85rem; }

.hero-form .form-group label {
  font-size: 0.875rem;
}

.hero-form .form-row {
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.hero-form .form-row > div {
  min-width: 0;
}

.hero-form .form-group input[type="text"],
.hero-form .form-group input[type="email"],
.hero-form .form-group input[type="tel"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 0.9375rem;
  padding: 0.6rem 0.75rem;
}

.hero-form .checkbox-group {
  gap: 0.45rem 0.65rem;
}

.hero-form .checkbox-group label {
  font-size: 0.8125rem;
}

.hero-form .form-submit {
  padding: 0.85rem;
  font-size: 0.9375rem;
  white-space: normal;
}

/* Legacy hero centering for non-stack contexts */
.hero:not(.hero-with-form) {
  padding: 4rem 1.25rem;
  text-align: center;
}

.hero:not(.hero-with-form) h1,
.hero:not(.hero-with-form) h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero:not(.hero-with-form) p {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
}

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

.btn-primary:hover {
  background: var(--orange-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

/* Trust bar carousel */
.trust-bar {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.trust-carousel {
  overflow: hidden;
  padding: 0.85rem 0;
}

.trust-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.trust-track-inner {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: trust-scroll 28s linear infinite;
}

.trust-item {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.trust-item::before {
  content: "✓ ";
  color: var(--orange);
  font-weight: 800;
}

@keyframes trust-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .trust-track-inner { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; gap: 1rem 2rem; }
  .trust-track { mask-image: none; }
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-title {
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.two-col .col-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-block h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.content-block h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 1.5rem 0 0.75rem;
}

.content-block ul {
  margin: 1rem 0 1rem 1.5rem;
}

.content-block li { margin-bottom: 0.4rem; }

.content-block p { margin-bottom: 1rem; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.service-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.service-card:hover { transform: translateY(-4px); }

.service-card img {
  margin: 0 auto 1rem;
  border-radius: var(--radius);
}

.service-card a {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--navy);
}

.service-card a:hover { color: var(--orange); }

/* Quote form section */
.quote-section {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 1.25rem;
}

.quote-section .section-title { color: var(--white); }

.quote-inner {
  max-width: 640px;
  margin: 0 auto;
}

.quote-form {
  background: var(--white);
  color: var(--gray-800);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote-form img.form-banner {
  margin: 0 auto 1.5rem;
  max-width: 280px;
}

.form-required { color: #dc2626; }

.form-note {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--orange);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row > div {
  min-width: 0;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-group input { width: 18px; height: 18px; accent-color: var(--orange); }

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  font-size: 1.1rem;
}

.form-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: none;
}

.form-error.visible { display: block; }

.form-success {
  text-align: center;
  padding: 2rem;
}

.form-success h3 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.form-success p { color: var(--gray-600); }

/* Map */
.map-section { padding: 0 1.25rem 3rem; }

.map-section .container { padding-top: 0; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-embed iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

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

.footer-inner { max-width: var(--max-width); margin: 0 auto; }

.footer-phone {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}

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

.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0;
}

.footer-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.footer-copy {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-top: 1rem;
}

/* Contact page hero */
.contact-hero .hero-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.05em;
  color: #d5d5d5;
}

/* Disclaimer */
.disclaimer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.disclaimer-content h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

/* Homepage layout */
.home-main { background: var(--gray-50); }
.home-page { padding-top: 2rem; padding-bottom: 2rem; }

.home-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.home-intro-media img,
.home-intro-media picture img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.home-intro-copy p { margin-bottom: 1rem; }
.home-intro-cta { margin-top: 0.5rem; }

.home-section {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.home-section--highlight {
  background: linear-gradient(180deg, var(--white) 0%, #fff8f3 100%);
}

.home-section--highlight h2 {
  display: inline-block;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--orange);
}

.home-section h2,
.home-section h3 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.home-section h2 { font-size: 1.5rem; }
.home-section h3 { font-size: 1.25rem; }

.repair-grid {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.repair-grid li {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.15s;
}

.repair-grid li:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}

.repair-grid a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}

.repair-grid a:hover { color: var(--orange); }

/* Gallery images on homepage */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.image-gallery picture,
.image-gallery img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Form banner text (replaces heavy PNG) */
.form-banner-text {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--orange);
}

/* Image placeholders */
.img-placeholder {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  border: 2px dashed var(--gray-600);
  border-radius: var(--radius);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 600;
}

.img-placeholder--hero { min-height: 280px; aspect-ratio: 4/3; }
.img-placeholder--epoxy { min-height: 160px; aspect-ratio: 16/10; }

.service-card--featured {
  border: 2px solid var(--orange);
}

/* Epoxy page */
.epoxy-main { background: var(--gray-50); }
.epoxy-intro { margin-bottom: 2rem; align-items: start; }

.epoxy-section {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.epoxy-section--benefits {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}

.epoxy-section--process {
  background: var(--white);
}

.epoxy-section h2 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.epoxy-section h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.epoxy-service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.epoxy-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.epoxy-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow);
}

.epoxy-card h3 {
  color: var(--orange);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.epoxy-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0;
}

.process-timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--gray-200);
  z-index: 0;
}

.process-timeline li {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-body {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.85rem;
  text-align: left;
  width: 100%;
}

.step-body strong {
  display: block;
  color: var(--navy);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.step-body p {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.4;
}

.epoxy-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.benefits-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.benefits-list li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0;
}

.faq-list { display: grid; gap: 1.25rem; margin-top: 1rem; }

.faq-item {
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.epoxy-cta-strip {
  text-align: center;
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  margin: 2rem 0 1.5rem;
}

.epoxy-cta-strip h2 { color: var(--white); margin-bottom: 0.75rem; }
.epoxy-cta-strip p { margin-bottom: 1.25rem; opacity: 0.95; }

.epoxy-closing { margin-bottom: 0.75rem; color: var(--gray-600); }

picture { display: block; }
picture img { width: 100%; height: auto; }

.service-card picture img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav > ul { flex-direction: column; width: 100%; }
  .main-nav a { display: block; width: 100%; padding: 0.85rem 1rem; }

  .nav-item .dropdown {
    position: static;
    box-shadow: none;
    background: var(--navy-light);
    margin-top: 0.25rem;
    border-radius: var(--radius);
  }

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

  .header-phone { font-size: 0.95rem; padding: 0.4rem 0.75rem; }

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

  .hero-stack { min-height: auto; }

  .hero.hero-with-form {
    padding: 1.25rem 1rem;
    align-items: flex-start;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-content { text-align: center; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-content .btn { display: inline-block; }

  .hero-form .quote-form { max-height: none; }

  .home-intro { grid-template-columns: 1fr; }
  .image-gallery { grid-template-columns: 1fr; }
  .epoxy-gallery { grid-template-columns: 1fr; }
  .epoxy-service-cards { grid-template-columns: 1fr; }
  .repair-grid { grid-template-columns: 1fr; }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .process-timeline::before { display: none; }

  .process-timeline li {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .step-body { flex: 1; }
}
