/*
Theme Name: Squared Away Handyman
Theme URI:
Description: Custom WordPress theme for Squared Away Handyman.
Version: 1.7.0
Text Domain: squared-away-handyman
*/

:root {
  --squared-away-red: #C8102E;
  --squared-away-navy: #002D5B;
  --squared-away-white: #FFFFFF;
  --squared-away-ink: #252525;
  --squared-away-muted: #5E6872;
  --squared-away-light: #F7F8FA;
  --squared-away-bluegray: #EEF2F6;
  --squared-away-border: #D9DEE5;
  --squared-away-dark: #071A2B;
  --squared-away-radius: 10px;
  --squared-away-shadow: 0 12px 28px rgba(0,45,91,.10);
  --squared-away-wrap: 1180px;
}


/* Squared Away brand treatment. */
.squared-away-brand-font,
.squared-away-wordmark span {
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: .92;
  text-transform: uppercase;
  color: var(--squared-away-red);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--squared-away-ink);
  background: var(--squared-away-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--squared-away-navy); text-decoration: none; }
a:hover { color: var(--squared-away-red); }
button, input, textarea, select { font: inherit; }

.squared-away-wrap {
  width: min(calc(100% - 40px), var(--squared-away-wrap));
  margin-inline: auto;
}
.squared-away-section { padding: 68px 0; }
.squared-away-light { background: var(--squared-away-light); }
.squared-away-bluegray { background: var(--squared-away-bluegray); }
.squared-away-navy-section { background: var(--squared-away-navy); color: var(--squared-away-white); }
.squared-away-navy-section h2,
.squared-away-navy-section h3,
.squared-away-navy-section p { color: var(--squared-away-white); }
.squared-away-section-title {
  margin: 0 0 12px;
  color: var(--squared-away-navy);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.squared-away-lead {
  max-width: 820px;
  margin: 0 0 34px;
  color: var(--squared-away-muted);
  font-size: 1.1rem;
}
.squared-away-center { text-align: center; }
.squared-away-center .squared-away-lead { margin-inline: auto; }

.squared-away-btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 2px solid var(--squared-away-red);
  border-radius: 5px;
  background: var(--squared-away-red);
  color: var(--squared-away-white) !important;
  font-weight: 800;
  letter-spacing: .02em;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.squared-away-btn:hover,
.wp-block-button__link:hover {
  background: var(--squared-away-navy);
  border-color: var(--squared-away-navy);
  color: var(--squared-away-white) !important;
}
.squared-away-btn-outline {
  background: transparent;
  color: var(--squared-away-navy) !important;
  border-color: var(--squared-away-navy);
}
.squared-away-btn-outline:hover {
  background: var(--squared-away-navy);
  color: var(--squared-away-white) !important;
}
.squared-away-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Utility bar */
.squared-away-utility {
  background: var(--squared-away-navy);
  color: var(--squared-away-white);
  font-size: .84rem;
}
.squared-away-utility-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  flex-wrap: wrap;
}
.squared-away-utility a { color: var(--squared-away-white); font-weight: 800; }

/* Header */
.squared-away-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--squared-away-white);
  border-bottom: 1px solid var(--squared-away-border);
}
.admin-bar .squared-away-header { top: 32px; }
.squared-away-header-row {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr auto;
  align-items: center;
  gap: 24px;
}
.squared-away-brand { min-width: 0; }
.squared-away-brand .custom-logo-link { display: inline-flex; align-items: center; }
.squared-away-brand img.custom-logo {
  width: auto;
  max-width: 290px;
  max-height: 96px;
}
.squared-away-wordmark {
  color: var(--squared-away-navy);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -.025em;
}
.squared-away-wordmark span { color: var(--squared-away-red); }
.squared-away-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
}
.squared-away-nav a {
  color: var(--squared-away-navy);
  font-weight: 800;
  white-space: nowrap;
}
.squared-away-nav .current-menu-item > a,
.squared-away-nav .current_page_item > a { color: var(--squared-away-red); }
.squared-away-header-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.squared-away-phone {
  color: var(--squared-away-navy);
  font-weight: 900;
  white-space: nowrap;
}
.squared-away-menu-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--squared-away-border);
  border-radius: 5px;
  background: var(--squared-away-white);
  color: var(--squared-away-navy);
  font-weight: 900;
}

/* Main */
.site-main { min-height: 50vh; }

/* Hero */
.squared-away-home-hero {
  background: var(--squared-away-navy);
  color: var(--squared-away-white);
  padding: 74px 0;
}
.squared-away-hero-grid {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 52px;
  align-items: center;
}
.squared-away-home-hero h1 {
  margin: 0 0 22px;
  color: var(--squared-away-white);
  font-size: clamp(2.8rem, 5.5vw, 4.9rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.squared-away-home-hero p {
  margin: 0 0 28px;
  color: rgba(255,255,255,.9);
  font-size: 1.16rem;
  line-height: 1.7;
}
.squared-away-photo-slot {
  min-height: 390px;
  display: grid;
  place-items: center;
  padding: 30px;
  border: 2px dashed rgba(255,255,255,.42);
  border-radius: var(--squared-away-radius);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
  text-align: center;
}
.squared-away-photo-slot strong {
  display: block;
  margin-bottom: 7px;
  color: var(--squared-away-white);
  font-size: 1.18rem;
}
.squared-away-photo-slot-light {
  min-height: 290px;
  border-color: var(--squared-away-border);
  background: var(--squared-away-light);
  color: var(--squared-away-muted);
}
.squared-away-photo-slot-light strong { color: var(--squared-away-navy); }

/* Layout helpers */
.squared-away-grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.squared-away-grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.squared-away-grid-4 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.squared-away-grid-5 { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 15px; }
.squared-away-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.squared-away-card {
  padding: 26px;
  border: 1px solid var(--squared-away-border);
  border-radius: var(--squared-away-radius);
  background: var(--squared-away-white);
}
.squared-away-card h3 { margin: 0 0 10px; color: var(--squared-away-navy); }
.squared-away-card p { margin: 0; }
.squared-away-card-soft { background: var(--squared-away-light); }

/* Homepage service cards */
.squared-away-home-services {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}
.squared-away-home-service-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--squared-away-border);
  border-radius: var(--squared-away-radius);
  background: var(--squared-away-white);
  box-shadow: 0 6px 18px rgba(0,45,91,.05);
}
.squared-away-home-service-face,
.squared-away-home-service-detail {
  min-height: 210px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity .2s ease, transform .22s ease;
}
.squared-away-home-service-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.squared-away-home-service-face {
  position: relative;
  background: linear-gradient(180deg, rgba(0,20,38,.06) 12%, rgba(0,28,55,.88) 100%);
}
.squared-away-home-service-face::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,20,38,.20));
  pointer-events: none;
}
.squared-away-home-service-face > * {
  position: relative;
  z-index: 1;
}
.squared-away-home-service-face h3 {
  margin: 0;
  color: var(--squared-away-white);
  font-size: 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.65);
}
.squared-away-service-hint {
  margin-top: 8px;
  color: var(--squared-away-white);
  font-size: .85rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,.72);
}
.squared-away-home-service-detail {
  position: absolute;
  inset: 0;
  justify-content: center;
  background: rgba(0,45,91,.92);
  color: var(--squared-away-white);
  opacity: 0;
  transform: translateY(8px);
}
.squared-away-home-service-detail h3 { margin: 0 0 9px; color: var(--squared-away-white); }
.squared-away-home-service-detail p { margin: 0; color: rgba(255,255,255,.9); }
.squared-away-home-service-card:hover .squared-away-home-service-detail,
.squared-away-home-service-card:focus-within .squared-away-home-service-detail,
.squared-away-home-service-card.is-open .squared-away-home-service-detail {
  opacity: 1;
  transform: translateY(0);
}


/* Temporary stock-photo backgrounds. Replace later with Squared Away project photography. */
.squared-away-img-electrical { background-image:url("assets/images/electrical.webp"); background-position:center 18%; }
.squared-away-img-plumbing { background-image:url("assets/images/plumbing.webp"); background-position:center 52%; }
.squared-away-img-doors { background-image:url("assets/images/doors.webp"); background-position:center 48%; }
.squared-away-img-drywall { background-image:url("assets/images/drywall.webp"); background-position:center 45%; }
.squared-away-img-carpentry { background-image:url("assets/images/carpentry.webp"); background-position:center 48%; }
.squared-away-img-mounting { background-image:url("assets/images/mounting.webp"); background-position:center 45%; }
.squared-away-img-bathroom { background-image:url("assets/images/bathroom.webp"); background-position:center 52%; }
.squared-away-img-deck-fence { background-image:url("assets/images/deck-fence.webp"); background-position:center 52%; }
.squared-away-img-tools { background-image:url("assets/images/tools.webp"); background-position:center 58%; }
.squared-away-img-exterior { background-image:url("assets/images/exterior-ladder.webp"); background-position:center 42%; }
.squared-away-img-assembly { background-image:url("assets/images/assembly.webp"); background-position:center 60%; }

/* Legacy value-card styles retained for layout compatibility. */
.squared-away-acronym-card {
  padding: 24px 20px;
  border-top: 4px solid var(--squared-away-red);
  background: var(--squared-away-white);
}
.squared-away-acronym-card h3 { margin: 0 0 9px; }
.squared-away-initial {
  color: var(--squared-away-red);
  font-weight: 900;
}
.squared-away-acronym-word-light { color: var(--squared-away-white); font-weight: 800; }
.squared-away-acronym-word-dark { color: var(--squared-away-navy); font-weight: 800; }

/* Page hero */
.squared-away-page-hero {
  padding: 58px 0;
  background: var(--squared-away-navy);
  color: var(--squared-away-white);
}
.squared-away-page-hero h1 {
  margin: 0 0 12px;
  color: var(--squared-away-white);
  font-size: clamp(2.5rem, 5vw, 4.15rem);
  line-height: 1.02;
}
.squared-away-page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: 1.12rem;
}

/* Services page cards */
.squared-away-service-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}
.squared-away-service-card {
  min-height: 205px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--squared-away-border);
  border-radius: var(--squared-away-radius);
  background-color: var(--squared-away-white);
  cursor: pointer;
}
.squared-away-service-card-front,
.squared-away-service-card-back {
  min-height: 205px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity .2s ease, transform .22s ease;
}
.squared-away-service-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.squared-away-service-card-front {
  position: relative;
  background: linear-gradient(180deg, rgba(0,20,38,.06) 12%, rgba(0,28,55,.88) 100%);
}
.squared-away-service-card-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,20,38,.20));
  pointer-events: none;
}
.squared-away-service-card-front > * {
  position: relative;
  z-index: 1;
}
.squared-away-service-card-front h3 {
  margin: 0;
  color: var(--squared-away-white);
  text-shadow: 0 2px 8px rgba(0,0,0,.65);
}
.squared-away-service-card-back {
  position: absolute;
  inset: 0;
  justify-content: center;
  background: rgba(0,45,91,.92);
  color: var(--squared-away-white);
  opacity: 0;
  transform: translateY(8px);
}
.squared-away-service-card-back h3 { margin: 0 0 9px; color: var(--squared-away-white); }
.squared-away-service-card-back p { margin: 0; color: rgba(255,255,255,.9); }
.squared-away-service-card:hover .squared-away-service-card-back,
.squared-away-service-card:focus-within .squared-away-service-card-back,
.squared-away-service-card.is-open .squared-away-service-card-back {
  opacity: 1;
  transform: translateY(0);
}

/* Pricing */
.squared-away-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}
.squared-away-price-card {
  padding: 27px;
  border: 1px solid var(--squared-away-border);
  border-top: 5px solid var(--squared-away-navy);
  border-radius: var(--squared-away-radius);
  background: var(--squared-away-white);
}
.squared-away-price-card.featured { border-top-color: var(--squared-away-red); }
.squared-away-price {
  margin: 12px 0;
  color: var(--squared-away-red);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}
.squared-away-price-note { color: var(--squared-away-muted); font-size: .94rem; }
.squared-away-list { margin: 16px 0 0; padding-left: 20px; }
.squared-away-list li { margin: 7px 0; }

/* Company */
.squared-away-team-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 30px;
  align-items: center;
}
.squared-away-portrait-slot {
  aspect-ratio: 4/5;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 2px dashed var(--squared-away-border);
  border-radius: var(--squared-away-radius);
  background: var(--squared-away-light);
  color: var(--squared-away-muted);
  text-align: center;
}
.squared-away-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.squared-away-chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--squared-away-bluegray);
  color: var(--squared-away-navy);
  font-size: .86rem;
  font-weight: 800;
}

/* Service area */
.squared-away-area-list {
  columns: 3;
  column-gap: 42px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.squared-away-area-list li {
  break-inside: avoid;
  padding: 11px 0;
  border-bottom: 1px solid var(--squared-away-border);
  color: var(--squared-away-navy);
  font-weight: 800;
}

/* Reviews */
.squared-away-review-row {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}
.squared-away-review-placeholder {
  padding: 22px;
  border: 1px solid var(--squared-away-border);
  border-radius: var(--squared-away-radius);
  background: var(--squared-away-white);
}
.squared-away-stars { color: var(--squared-away-red); letter-spacing: 2px; }
.squared-away-review-placeholder p { margin-bottom: 0; color: var(--squared-away-muted); font-style: italic; }

/* FAQ */
.squared-away-faq details {
  padding: 17px 0;
  border-bottom: 1px solid var(--squared-away-border);
}
.squared-away-faq summary {
  cursor: pointer;
  color: var(--squared-away-navy);
  font-size: 1.06rem;
  font-weight: 900;
}
.squared-away-faq details p { margin: 11px 0 0; }

/* CTA */
.squared-away-book-band {
  padding: 34px 0;
  background: var(--squared-away-red);
  color: var(--squared-away-white);
}
.squared-away-book-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.squared-away-book-band h2 { margin: 0 0 5px; color: var(--squared-away-white); }
.squared-away-book-band p { margin: 0; color: var(--squared-away-white); }
.squared-away-book-band .squared-away-btn {
  border-color: var(--squared-away-white);
  background: var(--squared-away-white);
  color: var(--squared-away-navy) !important;
}
.squared-away-book-band .squared-away-btn:hover {
  border-color: var(--squared-away-navy);
  background: var(--squared-away-navy);
  color: var(--squared-away-white) !important;
}

/* Footer */
.squared-away-footer {
  padding: 44px 0 18px;
  background: var(--squared-away-dark);
  color: rgba(255,255,255,.88);
}
.squared-away-footer a { color: var(--squared-away-white); }
.squared-away-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 40px;
}
.squared-away-footer h3 { margin-top: 0; color: var(--squared-away-white); }
.squared-away-footer-logo img.custom-logo {
  max-width: 250px;
  max-height: 88px;
  width: auto;
  filter: brightness(0) invert(1);
}
.squared-away-footer-links { margin: 0; padding: 0; list-style: none; }
.squared-away-footer-links li { margin: 7px 0; }
.squared-away-acronym-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 18px;
}
.squared-away-legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
}
.squared-away-legal-links { display: flex; gap: 14px; }

/* Generic page content */
.squared-away-content { padding: 60px 0; }
.squared-away-content > *:first-child { margin-top: 0; }

/* Mobile */
@media (max-width: 1080px) {
  .squared-away-header-row { grid-template-columns: minmax(180px,240px) 1fr auto; gap: 16px; }
  .squared-away-nav ul { gap: 17px; }
  .squared-away-phone { display: none; }
  .squared-away-home-services,
  .squared-away-service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .squared-away-grid-5 { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .squared-away-header-row { grid-template-columns: 1fr auto auto; min-height: 94px; }
  .squared-away-brand img.custom-logo { max-height: 78px; max-width: 230px; }
  .squared-away-menu-toggle { display: inline-block; }
  .squared-away-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 15px 22px 20px;
    border-bottom: 1px solid var(--squared-away-border);
    background: var(--squared-away-white);
  }
  .squared-away-nav.is-open { display: block; }
  .squared-away-nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .squared-away-nav a {
    display: block;
    padding: 10px 0;
  }
  .squared-away-hero-grid,
  .squared-away-split { grid-template-columns: 1fr; }
  .squared-away-home-services,
  .squared-away-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .squared-away-pricing-grid,
  .squared-away-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .squared-away-grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .squared-away-team-card { grid-template-columns: 180px 1fr; }
  .squared-away-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) {
  .admin-bar .squared-away-header { top: 46px; }
}
@media (max-width: 660px) {
  .squared-away-wrap { width: min(calc(100% - 28px), var(--squared-away-wrap)); }
  .squared-away-section { padding: 54px 0; }
  .squared-away-utility-row { justify-content: flex-start; gap: 5px 14px; padding: 7px 0; }
  .squared-away-header-row { min-height: 82px; gap: 8px; }
  .squared-away-brand img.custom-logo { max-height: 67px; max-width: 180px; }
  .squared-away-header-actions .squared-away-btn { min-height: 42px; padding: 9px 13px; font-size: .8rem; }
  .squared-away-home-hero { padding: 56px 0; }
  .squared-away-photo-slot { min-height: 275px; }
  .squared-away-home-services,
  .squared-away-service-grid,
  .squared-away-pricing-grid,
  .squared-away-grid-2,
  .squared-away-grid-3,
  .squared-away-grid-4,
  .squared-away-grid-5 { grid-template-columns: 1fr; }
  .squared-away-home-service-detail,
  .squared-away-service-card-back {
    position: static;
    min-height: 0;
    padding-top: 14px;
    background: rgba(0,45,91,.96);
    color: var(--squared-away-white);
    opacity: 1;
    transform: none;
  }
  .squared-away-home-service-detail h3,
  .squared-away-service-card-back h3 { display: none; }
  .squared-away-home-service-detail p,
  .squared-away-service-card-back p { color: var(--squared-away-white); }
  .squared-away-service-hint { display: none; }
  .squared-away-home-service-face,
  .squared-away-service-card-front { min-height: auto; padding-bottom: 10px; }
  .squared-away-home-service-card,
  .squared-away-service-card { min-height: auto; }
  .squared-away-team-card { grid-template-columns: 1fr; }
  .squared-away-portrait-slot { max-width: 260px; }
  .squared-away-area-list { columns: 1; }
  .squared-away-review-row { grid-template-columns: 1fr; }
  .squared-away-footer-grid { grid-template-columns: 1fr; }
  .squared-away-book-row { align-items: flex-start; flex-direction: column; }
}

/* Squared Away Handyman logo */
.squared-away-logo-image {
  display:block;
  width:min(320px,34vw);
  max-height:92px;
  height:auto;
  object-fit:contain;
}
@media (max-width:760px) {
  .squared-away-logo-image { width:min(235px,58vw); max-height:72px; }
}

@media (max-width:760px) { .squared-away-grid-3 { grid-template-columns:1fr; } }

/* VERSION 1.3 SERVICE CARD FIX
   Keep stock images visible on Services cards and match Home hover behavior. */
.squared-away-service-hint {
  display: none !important;
}

/* Ensure the service-image classes survive other card background rules. */
.squared-away-service-card.squared-away-img-electrical { background-image:url("assets/images/electrical.webp"); }
.squared-away-service-card.squared-away-img-plumbing { background-image:url("assets/images/plumbing.webp"); }
.squared-away-service-card.squared-away-img-doors { background-image:url("assets/images/doors.webp"); }
.squared-away-service-card.squared-away-img-drywall { background-image:url("assets/images/drywall.webp"); }
.squared-away-service-card.squared-away-img-carpentry { background-image:url("assets/images/carpentry.webp"); }
.squared-away-service-card.squared-away-img-mounting { background-image:url("assets/images/mounting.webp"); }
.squared-away-service-card.squared-away-img-bathroom { background-image:url("assets/images/bathroom.webp"); }
.squared-away-service-card.squared-away-img-deck-fence { background-image:url("assets/images/deck-fence.webp"); }
.squared-away-service-card.squared-away-img-tools { background-image:url("assets/images/tools.webp"); }
.squared-away-service-card.squared-away-img-exterior { background-image:url("assets/images/exterior-ladder.webp"); }
.squared-away-service-card.squared-away-img-assembly { background-image:url("assets/images/assembly.webp"); }

@media (hover: hover) and (pointer: fine) {
  .squared-away-home-service-card:hover .squared-away-home-service-face,
  .squared-away-home-service-card:focus-within .squared-away-home-service-face,
  .squared-away-service-card:hover .squared-away-service-card-front,
  .squared-away-service-card:focus-within .squared-away-service-card-front {
    opacity: 0;
    transform: translateY(-8px);
  }

  .squared-away-service-card:hover .squared-away-service-card-back,
  .squared-away-service-card:focus-within .squared-away-service-card-back {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Homepage project slideshow */
.squared-away-project-slideshow {
  position: relative;
  width: 100%;
  min-height: 390px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--squared-away-radius);
  background: #001f3d;
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
}
.squared-away-project-slides,
.squared-away-project-slide {
  position: absolute;
  inset: 0;
}
.squared-away-project-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
}
.squared-away-project-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.squared-away-project-slide-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.squared-away-slide-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(0,29,58,.72);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.squared-away-slide-control:hover,
.squared-away-slide-control:focus-visible {
  background: var(--squared-away-red);
}
.squared-away-slide-prev { left: 12px; }
.squared-away-slide-next { right: 12px; }
.squared-away-slide-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 14px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.squared-away-slide-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  cursor: pointer;
}
.squared-away-slide-dot.is-active {
  background: var(--squared-away-red);
  border-color: #fff;
}
@media (max-width: 660px) {
  .squared-away-project-slideshow {
    min-height: 275px;
    aspect-ratio: 16 / 10;
  }
  .squared-away-slide-control {
    width: 38px;
    height: 46px;
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .squared-away-project-slide { transition: none; }
}

