/* Fix it Up – handyman website styles
   Colour scheme: deep navy with a warm orange accent */
:root {
  --navy: #1b2a41;
  --navy-light: #2c3e5c;
  --orange: #f28c28;
  --logo-orange: #f2a300;
  --orange-dark: #d9741a;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --cream: #fdf8f2;
  --white: #ffffff;
  --text: #2b2b2b;
  --muted: #5f6b7a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 42, 65, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

h1, h2, h3 { color: var(--navy); line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .6rem; }
h3 { font-size: 1.2rem; margin-bottom: .4rem; }

.eyebrow {
  color: var(--orange-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
  margin-bottom: .6rem;
}

section { padding: 5rem 0; }

.section-heading { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-heading p:last-child { color: var(--muted); }
.section-heading.left { text-align: left; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: 0 6px 18px rgba(37, 211, 102, .35); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-small { padding: .5rem 1.1rem; font-size: .9rem; box-shadow: none; }
.btn-block { width: 100%; }
.wa-icon { width: 22px; height: 22px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--logo-orange);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.logo-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--orange);
  border-radius: 12px;
  font-size: 1.3rem;
}
.logo-img { height: 48px; width: auto; display: block; }
.logo-text { font-size: 1.5rem; color: var(--navy); font-weight: 600; }
.logo-text strong { color: var(--white); }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--navy); }
.site-nav a:not(.btn):hover { color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 5.5rem 0 6rem;
}
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero .eyebrow { color: var(--orange); }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 1.2rem; }
.hero h1 span { color: var(--orange); }
.lead { font-size: 1.15rem; color: #d7deea; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: #d7deea; font-weight: 600; }

.hero-card {
  text-align: center;
}
.hero-logo { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto 1.5rem; }
.toolbox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.toolbox span {
  display: grid; place-items: center;
  aspect-ratio: 1;
  background: var(--white);
  border-radius: 18px;
  font-size: 2.4rem;
  box-shadow: var(--shadow);
  animation: bob 3s ease-in-out infinite;
}
.toolbox span:nth-child(2n) { animation-delay: .6s; }
.toolbox span:nth-child(3n) { animation-delay: 1.2s; }
.hero-card p { font-size: 1.2rem; color: #d7deea; }
.hero-card strong { color: var(--orange); }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Services */
.services { background: var(--cream); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(27, 42, 65, .18); }
.service-icon {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  background: #fff1e2;
  border-radius: 16px;
  font-size: 1.8rem;
  margin-bottom: 1.1rem;
}
.service-icon img { width: 40px; height: 40px; object-fit: contain; }
.service-card p { color: var(--muted); }

/* Latest jobs */
.latest-jobs { background: var(--white); }
.job-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.job-card { background: var(--cream); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.job-card.job-extra { display: none; }
.job-grid.show-all .job-card.job-extra { display: flex; }
.job-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.job-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem; }
.job-top { display: flex; align-items: center; gap: 1rem; }
.job-top .service-icon { margin-bottom: 0; flex-shrink: 0; }
.job-top h3 { margin: .15rem 0 0; }
.job-tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-dark); }
.job-card p { color: var(--muted); }
.job-card .job-meta { margin-top: auto; font-size: .9rem; font-weight: 600; color: var(--navy); }
.jobs-more { text-align: center; margin-top: 2.5rem; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-light); }

/* Testimonials */
.testimonials { background: var(--navy); }
.testimonials h2 { color: var(--white); }
.testimonials .section-heading p:last-child { color: #d7deea; }
.testimonial-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.testimonial-grid .testimonial { flex: 1 1 300px; max-width: 360px; }
.testimonial { background: var(--navy-light); border-radius: var(--radius); padding: 1.75rem; margin: 0; display: flex; flex-direction: column; gap: 1rem; color: #d7deea; }
.stars { color: var(--logo-orange); font-size: 1.2rem; letter-spacing: .15em; }
.testimonial blockquote { margin: 0; font-size: 1.02rem; line-height: 1.65; }
.testimonial figcaption { margin-top: auto; }
.testimonial figcaption strong { color: var(--white); }

/* Why us */
.why-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.why-item { background: var(--cream); border-radius: var(--radius); padding: 1.5rem; }
.why-item span { font-size: 1.8rem; display: block; margin-bottom: .5rem; }
.why-item p { color: var(--muted); }

/* Steps */
.steps { background: var(--navy); }
.steps h2, .steps h3 { color: var(--white); }
.step-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: none; }
.step-list li { background: var(--navy-light); border-radius: var(--radius); padding: 2rem; text-align: center; color: #d7deea; }
.step-num {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin: 0 auto 1rem;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.3rem;
}

/* Areas */
.area-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.area-list li {
  background: var(--white);
  border: 2px solid var(--orange);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
}
.area-note { text-align: center; color: var(--muted); }

/* Contact */
.contact { background: var(--cream); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact-text p { color: var(--muted); font-size: 1.1rem; margin-bottom: 1rem; }
.contact-text .phone { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.contact-text .phone a { color: var(--whatsapp-dark); }

.quote-form { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.quote-form h3 { margin-bottom: 1rem; }
.quote-form label { display: block; font-weight: 600; font-size: .92rem; margin: .9rem 0 .3rem; color: var(--navy); }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1.5px solid #d6dbe3;
  border-radius: 10px;
  font: inherit;
  background: var(--white);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 140, 40, .2); }
.quote-form .btn { margin-top: 1.2rem; }
.form-error { color: #c0392b; font-weight: 600; font-size: .9rem; min-height: 1.2em; margin-top: .6rem; }
.form-hint { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .6rem; }

/* Footer */
.site-footer { background: var(--navy); color: #b8c3d4; padding: 2rem 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.site-footer strong { color: var(--white); }

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .why-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .step-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  section { padding: 3.5rem 0; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 80px; left: 0; right: 0;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--logo-orange);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    display: none;
  }
  .site-nav.open { display: flex; }
  .why-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
