/* Flow Handyman — brand palette taken from the supplied graphics */
:root {
  --navy: #012241;
  --navy-deep: #011a33;
  --navy-soft: #0b3158;
  --yellow: #fdc107;
  --yellow-dark: #e0a800;
  --white: #ffffff;
  --paper: #f4f6f9;
  --ink: #0d1b2a;
  --muted: #55657a;
  --line: #dde3ea;
  --line-dark: rgba(255, 255, 255, 0.14);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(1, 34, 65, 0.1);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-weight: 800;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.section-light :focus-visible,
.contact :focus-visible,
.phone-strip :focus-visible,
.legal-content :focus-visible {
  outline-color: var(--navy);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}

.btn-primary:hover {
  background: #ffd033;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

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

.btn-navy:hover {
  background: var(--navy-soft);
}

.btn-navy-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-navy-outline:hover {
  background: rgba(1, 34, 65, 0.08);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
}

.wordmark span {
  color: var(--yellow);
}

.nav-links {
  display: none;
  gap: 28px;
}

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

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

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav-phone svg {
  width: 16px;
  height: 16px;
}

/* Hero */
.hero {
  background:
    linear-gradient(rgba(1, 34, 65, 0.86), rgba(1, 34, 65, 0.76)),
    url("../assets/handshake-800.webp") center 30% / cover no-repeat var(--navy);
  color: var(--white);
  text-align: center;
  padding: 36px 0 56px;
}

.hero-logo {
  width: min(370px, 84vw);
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 2px 14px rgba(1, 26, 51, 0.55));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--yellow);
}

.hero h1 {
  margin-top: 12px;
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--yellow);
}

.hero-lead {
  max-width: 620px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-tags li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-tags li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}

/* Phone strip */
.phone-strip {
  background: var(--yellow);
  color: var(--navy);
}

.phone-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  text-align: center;
}

.phone-strip p {
  font-weight: 700;
}

.phone-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.phone-big svg {
  width: 0.9em;
  height: 0.9em;
  padding: 0.2em;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--navy);
  color: var(--yellow);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  text-transform: uppercase;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: var(--yellow);
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.8);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.service-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--yellow);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.0625rem;
  line-height: 1.25;
}

.service-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-card.is-urgent {
  border-color: var(--yellow);
  background: #fff9e3;
}

.service-card.is-urgent .service-icon {
  background: var(--yellow);
  color: var(--navy);
}

.services-note {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
}

.services-note a {
  color: var(--navy);
  font-weight: 800;
  white-space: nowrap;
}

/* Why us */
.why-layout {
  display: grid;
  gap: 32px;
  justify-items: center;
}

.why-figure {
  order: -1;
  width: min(220px, 60vw);
  height: auto;
  background: radial-gradient(closest-side, rgba(1, 26, 51, 0.85), rgba(1, 26, 51, 0));
  -webkit-mask-image: linear-gradient(#000 72%, transparent 98%);
  mask-image: linear-gradient(#000 72%, transparent 98%);
}

.why-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px 20px;
}

.why-item {
  text-align: center;
}

.why-item svg {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  color: var(--yellow);
}

.why-item h3 {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.why-item p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* Contact */
.contact {
  background: var(--yellow);
  color: var(--navy);
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  text-transform: uppercase;
}

.contact-lead {
  max-width: 560px;
  margin: 14px auto 0;
  font-weight: 600;
}

.contact .phone-big {
  margin-top: 22px;
  font-size: clamp(2.1rem, 9vw, 3.5rem);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.contact-area {
  margin-top: 24px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Footer */
footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  padding: 44px 0 96px;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand p {
  margin-top: 8px;
}

footer h2 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer li + li {
  margin-top: 6px;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

/* Mobile sticky call bar */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--navy);
  border-top: 1px solid var(--line-dark);
}

.sticky-cta .btn {
  min-height: 48px;
  padding: 8px 12px;
}

/* Legal pages */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 64px;
}

.legal-content h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  text-transform: uppercase;
}

.legal-updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-content h2 {
  margin: 36px 0 10px;
  font-size: 1.3rem;
}

.legal-content p {
  margin-top: 12px;
}

.legal-content ul {
  margin-top: 12px;
  padding-left: 22px;
  list-style: disc;
}

.legal-content li + li {
  margin-top: 6px;
}

.legal-content a {
  color: var(--navy);
  font-weight: 700;
}

@media (min-width: 760px) {
  .nav-links {
    display: flex;
  }

  .hero {
    padding: 48px 0 72px;
    background-image:
      linear-gradient(rgba(1, 34, 65, 0.86), rgba(1, 34, 65, 0.76)),
      url("../assets/handshake.webp");
  }

  .section {
    padding: 88px 0;
  }

  .why-layout {
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: center;
  }

  .why-figure {
    order: 0;
    width: 300px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  footer {
    padding-bottom: 44px;
  }

  .sticky-cta {
    display: none;
  }
}

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

  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
