:root {
  color-scheme: light;
  --bg: #fff7ee;
  --bg-alt: #ffe9d6;
  --text: #1b140f;
  --muted: #5e4b40;
  --primary: #ff6a00;
  --primary-dark: #d45500;
  --accent: #00b3b8;
  --accent-strong: #6a00ff;
  --border: #f1d7bf;
  --shadow: 0 20px 45px rgba(27, 20, 15, 0.18);
  --radius: 20px;
}

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

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff1e4 0%, var(--bg) 55%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

ul {
  list-style: none;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 243, 229, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  font-weight: 500;
  color: var(--muted);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.2s ease;
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-ghost {
  border-color: var(--border);
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero {
  padding: 80px 0 60px;
  background:
    linear-gradient(0deg, rgba(255, 240, 225, 0.6), rgba(255, 240, 225, 0.6)),
    url("https://boprenovations.co.nz/wp-content/uploads/2025/10/BOP-Renovations-Main-Image-1.webp")
      center/cover no-repeat,
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.18), transparent 55%),
    radial-gradient(circle at left, rgba(0, 179, 184, 0.18), transparent 50%);
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -10% -5% auto auto;
  width: 60%;
  height: 120%;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.25), rgba(106, 0, 255, 0.25));
  transform: translate3d(6%, -8%, 0) rotate(6deg);
  filter: blur(10px);
  opacity: 0.7;
  pointer-events: none;
}

.hero::after {
  inset: auto auto -25% -10%;
  width: 55%;
  height: 90%;
  background: linear-gradient(135deg, rgba(0, 179, 184, 0.35), rgba(255, 122, 26, 0.2));
  transform: translate3d(-4%, 8%, 0) rotate(-6deg);
  filter: blur(12px);
  opacity: 0.6;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 2vw + 2rem, 3.4rem);
  margin-bottom: 16px;
}

.hero-content {
  background: rgba(255, 255, 255, 0.75);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 50px rgba(27, 20, 15, 0.25);
  backdrop-filter: blur(6px);
}

.hero-content p {
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.hero-stats div {
  background: rgba(255, 255, 255, 0.75);
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 30px rgba(27, 20, 15, 0.18);
}

.hero-stats strong {
  font-size: 1.4rem;
}

.hero-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 80px 0;
}

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

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.split-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.feature-grid {
  display: grid;
  gap: 20px;
}

.feature-grid article {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff6ee;
}

.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card {
  background: #fff6ee;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(27, 20, 15, 0.12);
}

.service-card div {
  padding: 20px;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 16px;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.image-stack {
  display: grid;
  gap: 20px;
}

.contact-form {
  display: grid;
  gap: 16px;
  background: #fff6ee;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(255, 106, 0, 0.25);
  border-color: var(--primary);
}

.form-status {
  font-weight: 600;
  color: var(--accent-strong);
  min-height: 1.4em;
}

.site-footer {
  background: #1c120d;
  color: #f8fafc;
  padding: 60px 0 30px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f0b08;
    --bg-alt: #15100c;
    --text: #f8f1ea;
    --muted: #c1b5a9;
    --primary: #ff7a1a;
    --primary-dark: #e4630a;
    --accent: #37d9de;
    --accent-strong: #9b7bff;
    --border: #2b2019;
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  }

  body {
    background: linear-gradient(180deg, #120c08 0%, var(--bg) 55%);
  }

  .site-header {
    background: rgba(15, 11, 8, 0.9);
  }

  .nav-menu {
    background: #15100c;
  }

  .hero {
    background:
      linear-gradient(0deg, rgba(15, 11, 8, 0.65), rgba(15, 11, 8, 0.65)),
      url("https://boprenovations.co.nz/wp-content/uploads/2025/10/BOP-Renovations-Main-Image-1.webp")
        center/cover no-repeat,
      radial-gradient(circle at top right, rgba(255, 122, 26, 0.22), transparent 55%),
      radial-gradient(circle at left, rgba(55, 217, 222, 0.22), transparent 50%);
  }

  .hero-content,
  .hero-stats div {
    background: rgba(15, 11, 8, 0.78);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  }

  .feature-grid article,
  .service-card,
  .contact-form {
    background: #15100c;
  }

  .button-ghost {
    border-color: #3a2d24;
    color: var(--text);
  }

  .section-alt {
    background: #120d09;
  }
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 40px;
}

.footer-grid a {
  color: #e2e8f0;
}

.footer-grid ul li {
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 20px;
  font-size: 0.9rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    right: 4vw;
    top: 70px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    flex-direction: column;
    padding: 16px 20px;
    gap: 12px;
    display: none;
  }

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

@media (max-width: 640px) {
  .hero {
    padding: 60px 0 40px;
  }

  .section {
    padding: 60px 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
