/* All Trades Construction LLC — Mobile-first styles */

:root {
  --navy: #0e1a2c;
  --navy-mid: #163154;
  --charcoal: #2a3340;
  --slate: #4a5568;
  --muted: #6b7785;
  --border: #e2e6eb;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --brand: #2860a8;
  --brand-hover: #1f4d8a;
  --brand-soft: #e8f0f8;
  --text: #1a2332;
  --text-on-dark: #f5f7fa;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(14, 26, 44, 0.08);
  --shadow-lg: 0 12px 40px rgba(14, 26, 44, 0.12);
  --header-h: 72px;
  --call-bar-h: 52px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 1100px;
  --focus: 0 0 0 3px rgba(40, 96, 168, 0.45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--call-bar-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--call-bar-h);
  padding-bottom: 0;
}

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

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

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

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

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

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

.container-narrow {
  width: min(100% - 2rem, 720px);
}

/* Mobile call bar */
.mobile-call-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--call-bar-h);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-on-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}

.mobile-call-btn:hover {
  color: var(--brand);
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: var(--call-bar-h);
  z-index: 150;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--navy);
  opacity: 0.92;
}

.logo-img {
  display: block;
  height: 62px;
  width: auto;
  max-height: 62px;
  max-width: min(240px, 62vw);
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: calc(var(--call-bar-h) + var(--header-h));
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  padding: 0.75rem 1rem 1.25rem;
  gap: 0.25rem;
}

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

.nav-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
}

.nav-menu a:hover {
  background: var(--bg-alt);
  color: var(--navy);
}

.nav-cta {
  background: var(--brand) !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-align: center;
  margin-top: 0.35rem;
}

.nav-cta:hover {
  background: var(--brand-hover) !important;
  color: #fff !important;
}

/* Hero */
.hero {
  background: #ffffff;
  color: var(--text);
  padding: 3rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

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

.hero-copy {
  min-width: 0;
}

/* Mobile: keep natural DOM order — copy/headline first, logo below (associated with headline) */
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Floating logo — no card / box; transparent PNG sits on white hero */
.hero-logo-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  width: min(100%, 340px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.75rem;
}

.hero .eyebrow {
  color: var(--brand);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 18ch;
  color: #2860a8;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--slate);
  margin: 0 0 1.75rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.hero-badges li {
  font-size: 0.85rem;
  color: var(--charcoal);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-secondary:hover {
  background: var(--brand-soft);
  color: var(--brand-hover);
  border-color: var(--brand-hover);
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-header-left {
  text-align: left;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  color: var(--navy);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.section-intro {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--slate);
  font-size: 1.05rem;
}

.section-header-left .section-intro {
  margin-left: 0;
}

.reviews-highlight {
  font-weight: 600;
  color: var(--navy);
  max-width: 36ch;
}

.text-link {
  font-weight: 600;
}

/* Services */
.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 10px;
  margin-bottom: 0.85rem;
}

.service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--navy);
}

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

/* Work cards — CSS placeholders, no images */
.work-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.work-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.work-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
  background: var(--brand-soft);
}

.work-placeholder {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg,
      hsl(var(--hue, 210), 28%, 32%) 0%,
      hsl(calc(var(--hue, 210) + 20), 22%, 42%) 50%,
      hsl(var(--hue, 210), 35%, 28%) 100%);
  position: relative;
}

.work-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(15, 28, 46, 0.35) 100%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      rgba(255, 255, 255, 0.03) 12px,
      rgba(255, 255, 255, 0.03) 24px
    );
}

.work-card h3 {
  margin: 0;
  padding: 1rem 1rem 0.25rem;
  font-size: 1rem;
  color: var(--navy);
}

.work-card p {
  margin: 0;
  padding: 0 1rem 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Why us */
.why-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.why-card {
  padding: 1.35rem 1.25rem;
  background: var(--bg);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.why-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.why-card p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

/* Reviews */
.reviews-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.review-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
}

.sample-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--charcoal);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.review-stars {
  margin: 0 0 0.75rem;
  color: var(--brand);
  letter-spacing: 0.1em;
  font-size: 1rem;
}

.review-card blockquote {
  margin: 0 0 0.85rem;
  padding: 0;
}

.review-card blockquote p {
  margin: 0;
  color: var(--slate);
  font-style: italic;
}

.review-card footer {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: normal;
}

/* Service area */
.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
}

.area-list li {
  background: var(--brand-soft);
  color: var(--navy);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-align: center;
  min-width: min(100%, 280px);
}

/* Contact */
.section-contact {
  background: var(--navy);
  color: var(--text-on-dark);
}

.section-contact .eyebrow {
  color: #e8c07a;
}

.section-contact h2 {
  color: var(--text-on-dark);
}

.section-contact .section-intro {
  color: rgba(245, 247, 250, 0.8);
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

.contact-details {
  font-style: normal;
  color: rgba(245, 247, 250, 0.85);
  line-height: 1.7;
}

.contact-details a {
  color: #e8c07a;
}

.contact-details a:hover {
  color: #fff;
}

.contact-details p {
  margin: 0 0 1.25rem;
}

.contact-form {
  background: var(--bg);
  color: var(--text);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

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

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.required {
  color: #b45309;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  appearance: none;
}

.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5568' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--brand);
  box-shadow: var(--focus);
  outline: none;
}

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

.form-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.form-note a {
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #0a1420;
  color: rgba(245, 247, 250, 0.7);
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}

.footer-name {
  font-weight: 700;
  color: var(--text-on-dark);
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.footer-brand p {
  margin: 0.2rem 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.footer-links a {
  color: #e8c07a;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: rgba(245, 247, 250, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

/* Tablet+ */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .services-grid,
  .work-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .area-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .area-list li {
    min-width: auto;
  }
}

/* Tablet/desktop hero: copy left, logo right beside headline */
@media (min-width: 700px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.9fr);
    gap: 2.5rem;
    align-items: center;
  }

  .hero-logo-wrap {
    /* no order:-1 — stays on the right in DOM order */
    justify-content: flex-end;
    align-self: center;
  }

  .hero-logo-card {
    width: min(100%, 420px);
    padding: 0;
    background: transparent;
  }

  .hero-logo {
    max-width: 380px;
  }
}

/* Desktop */
@media (min-width: 900px) {
  :root {
    --call-bar-h: 0px;
  }

  body {
    padding-top: 0;
  }

  .mobile-call-bar {
    display: none;
  }

  .site-header {
    top: 0;
  }

  html {
    scroll-padding-top: calc(var(--header-h) + 8px);
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .nav-menu a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .nav-cta {
    margin-top: 0 !important;
    padding: 0.55rem 1rem !important;
  }

  .hero {
    padding: 5rem 0 5.5rem;
  }

  .hero-inner {
    gap: 3rem;
  }

  .hero-logo-card {
    width: min(100%, 480px);
    padding: 0;
  }

  .hero-logo {
    max-width: 440px;
  }

  .section {
    padding: 4.5rem 0;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid .why-card:nth-child(4),
  .why-grid .why-card:nth-child(5) {
    /* keep balanced on 3-col */
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .contact-form {
    padding: 2rem;
  }

  .footer-inner {
    text-align: left;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
  }
}

@media (min-width: 1100px) {
  .why-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

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

  .service-card,
  .nav-toggle-bar {
    transition: none;
  }
}

/* Print */
@media print {
  .mobile-call-bar,
  .nav-toggle,
  .contact-form {
    display: none !important;
  }

  body {
    padding: 0;
    color: #000;
  }

  .hero {
    background: none;
    color: #000;
    border-bottom: 2px solid #000;
  }

  .hero .eyebrow,
  .hero-sub,
  .hero-badges li {
    color: #333;
  }

  a {
    color: #000;
  }
}
