/* Alex Painting — Auckland
   Design: warm, professional, approachable
   Palette: deep navy, terracotta accent, warm off-white
   Mobile-first throughout */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --navy: #1C2E4A;
  --navy-light: #2A4060;
  --terracotta: #D4734E;
  --terracotta-dark: #B85E3D;
  --terracotta-light: #E8946F;
  --off-white: #FAF8F5;
  --warm-white: #F4F0EB;
  --cream: #EDE8E1;
  --slate: #6B7B8D;
  --dark: #1A1A1A;
  --dark-soft: #333;
  --border: #DDD5CC;
  --shadow-sm: 0 1px 3px rgba(28,46,74,0.08);
  --shadow-md: 0 4px 12px rgba(28,46,74,0.1);
  --shadow-lg: 0 8px 30px rgba(28,46,74,0.12);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: 2.2rem; margin-bottom: 0.5em; }
h2 { font-size: 1.75rem; margin-bottom: 0.5em; }
h3 { font-size: 1.35rem; margin-bottom: 0.4em; }
h4 { font-size: 1.1rem; margin-bottom: 0.3em; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.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(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

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

.logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo span { color: var(--terracotta); }

/* Desktop nav — hidden on mobile */
.nav-links {
  display: none;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--dark-soft);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--terracotta); }

.header-cta {
  display: none;
  background: var(--terracotta);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition);
}
.header-cta:hover { background: var(--terracotta-dark); color: #fff; }

/* Mobile nav toggle — visible on mobile */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 999;
  padding: 30px 20px;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }

.mobile-menu ul {
  list-style: none;
  margin-bottom: 24px;
}
.mobile-menu li { border-bottom: 1px solid var(--border); }
.mobile-menu a {
  display: block;
  padding: 16px 0;
  color: var(--dark);
  font-size: 1.05rem;
  font-weight: 500;
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--terracotta); }

.mobile-menu .mobile-cta {
  display: block;
  text-align: center;
  background: var(--terracotta);
  color: #fff;
  padding: 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 10px;
}
.mobile-menu .mobile-cta:hover { background: var(--terracotta-dark); color: #fff; }

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  overflow: hidden;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 280px;
  overflow: hidden;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--off-white));
}

.hero-content {
  padding: 24px 20px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge {
  display: inline-block;
  background: var(--cream);
  color: var(--slate);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--terracotta);
  color: #fff;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  min-height: 52px;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--navy);
  padding: 16px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 52px;
  white-space: nowrap;
}
.btn-secondary:hover { background: var(--navy); color: #fff; }

/* ── Section Styles ── */
.section {
  padding: 60px 0;
}
.section--alt {
  background: var(--warm-white);
}
.section--navy {
  background: var(--navy);
  color: #fff;
}
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.85); }

.section-header {
  margin-bottom: 36px;
}
.section-header .label {
  display: block;
  color: var(--terracotta);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

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

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.service-card-img {
  height: 200px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }

.service-card-body {
  padding: 24px;
}
.service-card-body h3 {
  margin-bottom: 10px;
}
.service-card-body p {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.9rem;
}
.service-card-link::after {
  content: '→';
  transition: transform var(--transition);
}
.service-card-link:hover::after { transform: translateX(4px); }

/* ── Why Section (features/trust) ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  font-size: 1.3rem;
}
.why-item h4 { margin-bottom: 6px; }
.why-item p { color: var(--slate); font-size: 0.92rem; }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial-stars {
  color: #F5A623;
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--dark-soft);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial-author {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}
.testimonial-source {
  font-size: 0.8rem;
  color: var(--slate);
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--navy);
  padding: 50px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 20px;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; font-size: 1.6rem; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 24px; font-size: 1rem; }
.cta-banner .btn-primary { font-size: 1.05rem; padding: 18px 32px; }

/* ── Service Page Hero ── */
.page-hero {
  position: relative;
  padding-top: 60px;
  overflow: hidden;
}
.page-hero-image {
  width: 100%;
  height: 45vh;
  min-height: 250px;
  overflow: hidden;
}
.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-content {
  padding: 30px 20px;
}
.page-hero-content h1 {
  font-size: 1.9rem;
  margin-bottom: 14px;
}
.page-hero-content p {
  color: var(--slate);
  font-size: 1.02rem;
  max-width: 600px;
}

/* ── Service Detail Sections ── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
.service-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
}
.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-list {
  list-style: none;
  margin: 20px 0;
}
.service-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
}

/* ── About Page ── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 320px;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.value-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--terracotta);
}
.value-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.value-card p { color: var(--slate); font-size: 0.93rem; }

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--cream);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  font-size: 1.1rem;
}
.contact-info-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-item p { color: var(--slate); font-size: 0.93rem; }
.contact-info-item a { color: var(--terracotta); font-weight: 500; }

.contact-form {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-form h3 { margin-bottom: 20px; }

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark-soft);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--dark);
  background: var(--off-white);
  transition: border-color var(--transition);
  min-height: 48px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(212,115,78,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.form-submit {
  width: 100%;
  margin-top: 6px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px;
}
.form-success.visible { display: block; }
.form-success h3 { color: var(--navy); margin-bottom: 8px; }
.form-success p { color: var(--slate); }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 30px;
}

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

.footer-brand .logo { color: #fff; font-size: 1.3rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; max-width: 300px; }

.footer-links h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--terracotta-light); }

.footer-contact a {
  color: var(--terracotta-light);
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--terracotta-light); }

/* ── Privacy Page ── */
.legal-content {
  padding-top: 100px;
  padding-bottom: 60px;
}
.legal-content h1 { margin-bottom: 10px; }
.legal-content .updated { color: var(--slate); font-size: 0.9rem; margin-bottom: 30px; }
.legal-content h2 { font-size: 1.3rem; margin-top: 30px; margin-bottom: 12px; }
.legal-content p, .legal-content li { color: var(--dark-soft); font-size: 0.95rem; line-height: 1.7; }
.legal-content ul { margin: 10px 0 20px 20px; }
.legal-content li { margin-bottom: 6px; }

/* ── Responsive: Tablet ── */
@media (min-width: 600px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive: Desktop ── */
@media (min-width: 768px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.1rem; }

  .nav-toggle { display: none; }
  .nav-links { display: flex; }
  .header-cta { display: inline-flex; }

  .hero {
    flex-direction: row;
    min-height: 90vh;
  }
  .hero-image-wrap {
    order: 2;
    width: 50%;
    height: auto;
    min-height: unset;
  }
  .hero-image-wrap::after { display: none; }
  .hero-content {
    order: 1;
    width: 50%;
    padding: 80px 50px 60px 40px;
  }
  .hero h1 { font-size: 2.6rem; }

  .section { padding: 80px 0; }

  .service-detail { grid-template-columns: 1fr 1fr; gap: 50px; }
  .service-detail.reverse .service-detail-img { order: -1; }

  .about-intro { grid-template-columns: 5fr 4fr; gap: 50px; }

  .contact-grid { grid-template-columns: 1fr 1fr; gap: 50px; }

  .page-hero {
    display: flex;
    flex-direction: row;
  }
  .page-hero-image {
    width: 50%;
    height: 50vh;
    min-height: 400px;
  }
  .page-hero-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 40px;
  }
  .page-hero-content h1 { font-size: 2.4rem; }

  .cta-banner { margin: 0; padding: 70px 50px; }
  .cta-banner h2 { font-size: 2rem; }
}

@media (min-width: 1024px) {
  .hero-content { padding: 100px 60px 80px; }
  .hero h1 { font-size: 3rem; }
  .hero-actions { flex-direction: row; max-width: none; }

  .services-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1280px) {
  .container { padding: 0 40px; }
  .hero-content { padding: 100px 80px 80px; }
}

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

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
