/* =============================================
   Heat Pump Heating — heatpumpheating.com.au
   Style Sheet
   ============================================= */

/* --- RESET & CUSTOM PROPERTIES --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0d1b2a;
  --navy-mid:    #152336;
  --navy-light:  #1e3a52;
  --slate:       #2d4f6c;
  --amber:       #e8994a;
  --amber-light: #f5b678;
  --amber-pale:  #fdf3e7;
  --white:       #ffffff;
  --off-white:   #f7f8fa;
  --text-dark:   #0d1b2a;
  --text-mid:    #3a5068;
  --text-muted:  #6b8299;
  --border:      #dde4ec;
  --border-dark: rgba(255,255,255,0.1);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --container: 1160px;
  --section-v:  90px;
  --header-h:   70px;

  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-v) 0;
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section--muted {
  background: var(--off-white);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  font-size: 15px;
  padding: 10px 22px;
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-full { width: 100%; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 { line-height: 1.15; font-weight: 400; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
}
h1 em {
  font-style: italic;
  color: var(--amber);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
}

h3 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* --- SECTION HEADERS --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.section-header--light h2,
.section-header--light .section-intro { color: var(--white); }
.section-header--light .section-eyebrow { color: var(--amber); }

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-intro {
  font-size: 18px;
  color: var(--text-mid);
  margin-top: 16px;
  line-height: 1.6;
}

/* =============================================
   HEADER & NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  flex-shrink: 0;
}

.logo-mark {
  font-size: 24px;
  color: var(--amber);
  line-height: 1;
  display: inline-block;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.logo-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--white);
}
.logo-text em {
  font-style: normal;
  color: var(--amber);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

.nav-cta {
  background: var(--amber) !important;
  color: var(--navy) !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--amber-light) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,153,74,0.18) 0%, transparent 70%);
  top: -100px; right: 5%;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(45,79,108,0.5) 0%, transparent 70%);
  bottom: -80px; left: 10%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255,255,255,0.78);
  margin-top: 24px;
  max-width: 640px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}
.badge-icon { color: var(--amber); font-size: 10px; }

/* =============================================
   SERVICES
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(13,27,42,0.1);
}

.service-card--featured {
  border-color: var(--amber);
  background: var(--amber-pale);
}

.service-icon {
  color: var(--amber);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
}

.service-card p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-list li {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  padding-left: 18px;
  position: relative;
}
.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 12px;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.hiw-steps {
  display: flex;
  gap: 0;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hiw-step {
  flex: 1;
  min-width: 200px;
  padding: 32px 24px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
}

.hiw-step-number {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--amber);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 16px;
}

.hiw-step h3 {
  font-size: 17px;
  color: var(--white);
  margin-bottom: 12px;
}

.hiw-step p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.hiw-connector {
  font-size: 24px;
  color: var(--amber);
  opacity: 0.4;
  padding: 0 8px;
  align-self: center;
  flex-shrink: 0;
}

.hiw-note {
  margin-top: 40px;
  padding: 24px 32px;
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}
.hiw-note strong { color: var(--white); }

/* =============================================
   BENEFITS
   ============================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px 40px;
}

.benefit {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-icon {
  width: 52px;
  height: 52px;
  background: var(--amber-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
}

.benefit h3 {
  font-size: 17px;
  color: var(--navy);
}

.benefit p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* =============================================
   AREAS
   ============================================= */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.area-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
}
.area-card:hover {
  border-color: var(--slate);
  transform: translateY(-2px);
}

.area-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.area-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

.areas-card--note {
  border-color: var(--navy);
  background: var(--navy);
}
.areas-card--note h3, .areas-card--note p { color: rgba(255,255,255,0.9); }
.areas-card--note p { color: rgba(255,255,255,0.65); margin-bottom: 16px; }

/* =============================================
   FAQ
   ============================================= */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--amber); }

.faq-item summary {
  padding: 22px 28px;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  transition: background var(--transition);
}
.faq-item summary:hover { background: var(--off-white); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--amber);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  content: '−';
}

.faq-body {
  padding: 0 28px 24px;
  border-top: 1px solid var(--border);
}
.faq-body p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  padding-top: 20px;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-intro { color: var(--white); }
.contact-intro h2 { color: var(--white); margin-bottom: 20px; }
.contact-intro p { color: rgba(255,255,255,0.72); font-size: 17px; line-height: 1.65; }

.contact-points {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-points li {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  padding-left: 20px;
  position: relative;
}
.contact-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

/* FORM */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.required { color: var(--amber); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b8299' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

#submitBtn {
  position: relative;
  margin-top: 4px;
  font-size: 17px;
  padding: 16px;
  letter-spacing: 0.01em;
}
.btn-loading { display: none; }
#submitBtn.is-loading .btn-text { display: none; }
#submitBtn.is-loading .btn-loading { display: inline; }
#submitBtn:disabled { opacity: 0.7; cursor: not-allowed; }

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -4px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #08121d;
  color: rgba(255,255,255,0.6);
  padding: 60px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p, .footer-disclaimer { font-size: 13px; color: rgba(255,255,255,0.35); }

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 900px) {
  :root { --section-v: 64px; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

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

  .hiw-steps {
    flex-direction: column;
    gap: 16px;
  }
  .hiw-connector { display: none; }
  .hiw-step { min-width: auto; }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 640px) {
  :root { --section-v: 52px; }

  body { font-size: 17px; }

  /* Larger text on mobile */
  .section-intro { font-size: 18px; }
  .hero-lead { font-size: 18px; }
  .nav-links a { font-size: 18px; }
  .service-card p { font-size: 16px; }
  .service-list li { font-size: 16px; }
  .benefit p { font-size: 16px; }
  .area-card p { font-size: 16px; }
  .faq-item summary { font-size: 17px; padding: 18px 20px; }
  .faq-body p { font-size: 16px; }
  .contact-intro p { font-size: 17px; }
  .contact-points li { font-size: 16px; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; } /* prevent iOS zoom */
  .form-group label { font-size: 15px; }

  /* NAV MOBILE */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-mid);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border-dark);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 18px; font-size: 17px; border-radius: var(--radius-sm); }
  .nav-cta { text-align: center; margin-left: 0 !important; margin-top: 8px; }

  /* HERO */
  .hero { padding: 60px 0; min-height: auto; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-badges { gap: 14px; }

  /* GRIDS */
  .services-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; gap: 24px; }
  .areas-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 28px 20px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hiw-note { padding: 20px; }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
  .service-card,
  .benefit,
  .area-card,
  .faq-item,
  .hiw-step {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  }
  .service-card.in-view,
  .benefit.in-view,
  .area-card.in-view,
  .faq-item.in-view,
  .hiw-step.in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   FOCUS STYLES (accessibility)
   ============================================= */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}
