/* ============================================
   Chandler Panelbeaters (2007) LTD
   Grey Lynn, Auckland
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2332;
  --navy-light: #2d3a4a;
  --copper: #c07a28;
  --copper-light: #d4922e;
  --copper-glow: #e8a94a;
  --warm-white: #f7f4ef;
  --off-white: #faf8f5;
  --text: #1a2332;
  --text-light: #4a5568;
  --grey: #6b7280;
  --border: #e2ddd5;
  --shadow: rgba(26, 35, 50, 0.08);
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--copper-light); }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 35, 50, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo span {
  color: var(--copper);
}

/* Desktop nav - hidden on mobile */
.nav-links {
  display: none;
  list-style: none;
  gap: 6px;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  margin-left: 5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 220px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  z-index: 100;
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  border-radius: 0;
}

.dropdown-menu a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

/* Mobile burger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 999;
  overflow-y: auto;
  padding: 24px 20px 40px;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav a.active { color: var(--copper); }

.mobile-nav .mobile-sub { padding-left: 20px; }
.mobile-nav .mobile-sub a { font-size: 1rem; color: rgba(255,255,255,0.65); }

.mobile-nav .mobile-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 28px;
  background: var(--copper);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  width: 100%;
}

/* Phone pill in header */
.header-phone {
  display: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 8px 16px;
  background: var(--copper);
  border-radius: 6px;
  white-space: nowrap;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: 64px;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(26, 35, 50, 0.25) 0%,
    rgba(26, 35, 50, 0.55) 50%,
    rgba(26, 35, 50, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 16px;
  max-width: 500px;
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  color: var(--copper-glow);
}

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.55;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--copper);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
  min-height: 52px;
}

.hero-cta:hover {
  background: var(--copper-light);
  color: #fff;
  transform: translateY(-1px);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(192, 122, 40, 0.15);
  border: 1px solid rgba(192, 122, 40, 0.3);
  color: var(--copper-glow);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  position: relative;
  padding: 140px 0 80px;
  background: var(--navy);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 560px;
}

/* --- Sections --- */
.section {
  padding: 64px 0;
}

.section--warm { background: var(--warm-white); }
.section--dark { background: var(--navy); color: #fff; }
.section--off { background: var(--off-white); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.section-intro {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.section--dark .section-intro { color: rgba(255,255,255,0.7); }

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

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.service-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-card .card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card .card-link::after {
  content: '\2192';
  transition: transform 0.2s;
}

.service-card:hover .card-link::after {
  transform: translateX(3px);
}

/* --- Image + Text split --- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.split-image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-text h2 { margin-bottom: 16px; }
.split-text p { color: var(--text-light); margin-bottom: 16px; line-height: 1.65; }

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

.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid var(--border);
}

.review-stars {
  color: var(--copper);
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-card blockquote {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.review-source {
  font-size: 0.8rem;
  color: var(--grey);
}

/* --- CTA Band --- */
.cta-band {
  background: var(--navy);
  padding: 56px 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  font-size: 1rem;
}

.cta-band .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--copper);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s;
  min-height: 52px;
}

.cta-band .btn-primary:hover {
  background: var(--copper-light);
  color: #fff;
}

/* --- Features / Process --- */
.process-list {
  counter-reset: step;
}

.process-step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.process-step:last-child { border-bottom: none; }

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--copper);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step-content h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step-content p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

/* --- Info cards (hours, location) --- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.info-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid var(--border);
}

.info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card p, .info-card address {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: normal;
}

/* --- Contact Form --- */
.contact-form {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font);
  background: var(--off-white);
  color: var(--text);
  transition: border-color 0.2s;
  min-height: 48px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--copper);
}

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--copper);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 52px;
  min-width: 44px;
  font-family: var(--font);
}

.btn-submit:hover { background: var(--copper-light); }

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--copper-glow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

/* --- Utilities --- */
.text-copper { color: var(--copper); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-40 { margin-bottom: 40px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* --- Stat row --- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.stat {
  text-align: center;
  padding: 20px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--copper-glow);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* content page body text */
.content-body p { margin-bottom: 16px; color: var(--text-light); line-height: 1.7; }
.content-body h2 { margin-bottom: 12px; margin-top: 32px; }
.content-body ul { margin: 0 0 16px 20px; color: var(--text-light); line-height: 1.7; }
.content-body li { margin-bottom: 6px; }

/* gallery for service pages */
.gallery-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 32px 0;
}

.gallery-row img {
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* --- Inline CTA block --- */
.inline-cta {
  background: var(--warm-white);
  border-radius: 12px;
  padding: 32px 24px;
  margin: 40px 0;
  border: 1px solid var(--border);
}

.inline-cta h3 { margin-bottom: 8px; }
.inline-cta p { color: var(--text-light); margin-bottom: 20px; }
.inline-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  background: var(--copper);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  min-height: 48px;
  transition: background 0.2s;
}
.inline-cta .btn-primary:hover { background: var(--copper-light); color: #fff; }

/* ============================================
   Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.9rem; }

  .section { padding: 80px 0; }
  .container { padding: 0 32px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .split--reverse .split-image { order: 2; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-row { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(4, 1fr); }

  .hero h1 { font-size: 2.8rem; }
  .page-hero h1 { font-size: 2.6rem; }
  .section-title { font-size: 2rem; }
}

/* ============================================
   Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
  .header-phone { display: inline-block; }

  .hero h1 { font-size: 3.2rem; max-width: 600px; }
  .hero-content { padding: 0 32px 80px; }

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

  .page-hero { padding: 180px 0 100px; }
}

/* ============================================
   Large Desktop (1280px+)
   ============================================ */
@media (min-width: 1280px) {
  .hero h1 { font-size: 3.6rem; }
  .section-title { font-size: 2.2rem; }
}
