/* ============ My Guy Handyman Services ============ */
:root {
  --charcoal: #4a4a4a;        /* business card background */
  --charcoal-deep: #3d3d3d;
  --charcoal-ink: #2f2f2f;
  --white: #ffffff;
  --muted: #cfcfcf;
  --faint: rgba(255, 255, 255, 0.08);
  --orange: #f5821f;
  --orange-hover: #e0740f;
  --blue: #29abe2;
  --blue-hover: #1a97cc;
  --green: #2bb673;
  --radius: 10px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--charcoal);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1140px, 100% - 3rem);
  margin-inline: auto;
}

h1, h2, h3 { line-height: 1.15; font-weight: 700; }

h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 0.75rem; }

.accent-orange { color: var(--orange); }
.accent-blue { color: var(--blue); }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-deep { background: var(--charcoal-deep); }
.section-lead {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 0.9rem 1.7rem; font-size: 1.05rem; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-hover); }
.btn-outline-blue {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn-outline-blue:hover { background: var(--blue); color: #fff; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(58, 58, 58, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--faint);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  margin-right: auto;
}
.brand-logo { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand-name em { font-style: normal; color: var(--orange); }
.brand-tag {
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  color: var(--muted);
  font-weight: 500;
}

.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(41, 171, 226, 0.12), transparent 60%),
    radial-gradient(50rem 28rem at -10% 110%, rgba(245, 130, 31, 0.12), transparent 60%),
    var(--charcoal);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.8rem;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.hero-trust li:nth-child(1) svg { color: var(--orange); }
.hero-trust li:nth-child(2) svg { color: var(--blue); }
.hero-trust li:nth-child(3) svg { color: var(--green); }

.hero-photos {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  align-items: start;
}
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main {
  border-bottom: 4px solid var(--orange);
  aspect-ratio: 3 / 4.4;
}
.hero-photo-offset {
  border-bottom: 4px solid var(--blue);
  aspect-ratio: 3 / 4.4;
  margin-top: 3rem;
}

/* ============ Cards ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--charcoal);
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.card:hover .card-media img { transform: scale(1.05); }

.card-body { padding: 1.3rem 1.4rem 1.6rem; }
.card-body h3 { font-size: 1.12rem; margin-bottom: 0.5rem; color: var(--orange); }
.card:nth-child(even) .card-body h3 { color: var(--blue); }
.card-body p { color: var(--muted); font-size: 0.93rem; }

/* ============ Split sections ============ */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-reverse { grid-template-columns: 0.95fr 1.05fr; }

.split-copy p { color: var(--muted); margin-bottom: 1rem; max-width: 56ch; }
.split-copy h2 { margin-bottom: 1.2rem; }

.about-role {
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.split-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.split-photo img { width: 100%; height: 100%; object-fit: cover; max-height: 560px; }
.split-photo figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.3rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  font-size: 0.85rem;
  color: #eee;
}

/* ============ Check list ============ */
.check-list {
  list-style: none;
  margin-top: 1.8rem;
  display: grid;
  gap: 1.1rem;
}
.check-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.check-list strong { color: var(--white); }
.check-list div { color: var(--muted); font-size: 0.95rem; }

.check {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  position: relative;
}
.check::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 7px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.check-orange { background: var(--orange); }
.check-blue { background: var(--blue); }
.check-green { background: var(--green); }

/* ============ Gallery ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1.1rem 0.9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  font-size: 0.88rem;
  font-weight: 500;
}

/* ============ Mini services ============ */
.mini-services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.mini-services li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--charcoal-deep);
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 0.97rem;
  transition: transform 0.2s, border-color 0.2s;
}
.mini-services li:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.2); }

.hex-dot {
  flex: none;
  width: 16px;
  height: 16px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.hex-orange { background: var(--orange); }
.hex-blue { background: var(--blue); }
.hex-green { background: var(--green); }

/* ============ Badges ============ */
.badges {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}
.badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--charcoal);
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
}
.badge svg { flex: none; }
.badge:nth-child(1) svg { color: var(--green); }
.badge:nth-child(2) svg { color: var(--blue); }
.badge:nth-child(3) svg { color: var(--orange); }
.badge strong { display: block; font-size: 0.97rem; }
.badge span { color: var(--muted); font-size: 0.85rem; }

/* ============ Contact ============ */
.contact {
  background:
    radial-gradient(45rem 22rem at 50% 120%, rgba(245, 130, 31, 0.15), transparent 65%),
    var(--charcoal-ink);
  text-align: center;
}
.contact-inner { max-width: 640px; }
.contact .section-lead { margin-inline: auto; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ============ Footer ============ */
.site-footer {
  background: #292929;
  padding: 2.5rem 0;
  border-top: 1px solid var(--faint);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer-details { text-align: right; font-size: 0.9rem; color: var(--muted); }
.footer-details a { color: var(--blue); text-decoration: none; }
.footer-details a:hover { text-decoration: underline; }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photos { max-width: 560px; }
  .split, .split-reverse { grid-template-columns: 1fr; }
  .split-reverse .split-photo { order: 2; }
  .footer-details { text-align: left; }
}

@media (max-width: 760px) {
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--charcoal-ink);
    border-bottom: 1px solid var(--faint);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.95rem 1.5rem;
    border-top: 1px solid var(--faint);
    font-size: 1rem;
  }
  .hero-photo-offset { margin-top: 1.5rem; }
}
