/*
Theme Name: AK Heating Custom Child
Theme URI: https://akheating.co.nz/
Description: Child theme for AC Care Pro customised for AK Heating & Ventilation.
Author: OpenAI
Template: ac-care-pro
Version: 1.1.0
Text Domain: ak-heating-child
*/

:root {
  --ak-primary: #1679a1;
  --ak-primary-dark: #105975;
  --ak-primary-light: #1d8dbb;
  --ak-black: #111111;
  --ak-black-soft: #222222;
  --ak-black-muted: #444444;
  --ak-white: #ffffff;
  --ak-white-soft: #f5fbfd;
  --ak-border: rgba(22, 121, 161, 0.18);
  --ak-shadow: 0 16px 38px rgba(17, 17, 17, 0.08);
  --ak-radius: 22px;
  --ak-container: 1240px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ak-black);
  background: var(--ak-white);
  font-family: "Poppins", "Open Sans", Arial, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ak-primary);
  text-decoration: none;
}

a:hover {
  color: var(--ak-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ak-black);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--ak-black-soft);
  line-height: 1.75;
}

.ak-site-wrap {
  min-height: 100vh;
}

.ak-container {
  width: min(calc(100% - 32px), var(--ak-container));
  margin: 0 auto;
}

.ak-section {
  padding: 82px 0;
}

.ak-section--soft {
  background: linear-gradient(180deg, rgba(22, 121, 161, 0.07), rgba(22, 121, 161, 0.03));
}

.ak-section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.ak-section-heading--left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.ak-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(22, 121, 161, 0.10);
  color: var(--ak-primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ak-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ak-primary);
}

.ak-btn,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ak-primary);
  color: var(--ak-white);
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  box-shadow: none;
}

.ak-btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
  background: var(--ak-primary-dark);
  color: var(--ak-white);
  transform: translateY(-1px);
}

.ak-btn--secondary {
  background: var(--ak-white);
  color: var(--ak-black);
  border-color: rgba(17, 17, 17, 0.15);
}

.ak-btn--secondary:hover {
  background: var(--ak-white-soft);
  color: var(--ak-black);
}

.ak-btn--outline {
  background: transparent;
  color: var(--ak-white);
  border-color: rgba(255, 255, 255, 0.62);
}

.ak-btn--outline:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--ak-white);
}

/* Header */
.ak-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ak-white);
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.06);
}

.ak-header__row {
  display: grid;
  grid-template-columns: minmax(230px, 360px) minmax(190px, 260px) 1fr;
  align-items: stretch;
}

.ak-header__brand,
.ak-header__phone,
.ak-header__nav {
  min-height: 108px;
}

.ak-header__brand,
.ak-header__phone {
  background: var(--ak-white);
}

.ak-header__brand {
  display: flex;
  align-items: center;
  padding: 14px 18px 14px 0;
}

.ak-logo-link,
.ak-logo-link:hover {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.ak-logo-link img {
  max-height: 74px;
  width: auto;
}

.ak-header__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 18px;
}

.ak-header__phone-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(22, 121, 161, 0.10);
  color: var(--ak-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ak-header__phone-label {
  display: block;
  color: var(--ak-black-muted);
  font-size: 13px;
  line-height: 1.3;
}

.ak-header__phone a {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--ak-primary);
}

.ak-header__nav {
  position: relative;
  background: linear-gradient(135deg, var(--ak-primary-dark), var(--ak-primary));
  border-bottom-left-radius: 16px;
  overflow: hidden;
}

.ak-header__nav::before,
.ak-header__nav::after {
  content: "✦";
  position: absolute;
  color: rgba(255, 255, 255, 0.88);
  font-size: 32px;
  line-height: 1;
}

.ak-header__nav::before {
  top: 18px;
  right: 86px;
}

.ak-header__nav::after {
  right: 36px;
  bottom: 18px;
  font-size: 52px;
}

.ak-nav {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 22px;
}

.ak-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.ak-nav a {
  color: var(--ak-white);
  font-size: 15px;
  font-weight: 700;
}

.ak-nav a:hover,
.ak-nav .current-menu-item > a,
.ak-nav .current_page_item > a {
  color: var(--ak-white-soft);
}

.ak-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  color: var(--ak-white);
}

/* Slider */
.ak-slider {
  position: relative;
  overflow: hidden;
  background: var(--ak-black);
}

.ak-slides {
  position: relative;
  min-height: 600px;
}

.ak-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background-size: cover;
  background-position: center;
}

.ak-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.82), rgba(17, 17, 17, 0.35));
}

.ak-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ak-slide__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 600px;
}

.ak-slide__content {
  max-width: 720px;
  color: var(--ak-white);
}

.ak-slide__content h1,
.ak-slide__content h2 {
  color: var(--ak-white);
  font-size: clamp(34px, 5vw, 58px);
  margin: 18px 0 18px;
}

.ak-slide__content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  max-width: 640px;
  margin: 0 0 28px;
}

.ak-slider__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ak-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.ak-slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  padding: 0;
}

.ak-slider__dot.is-active {
  background: var(--ak-white);
}

/* Quote band */
.ak-quote-band-wrap {
  background: linear-gradient(135deg, var(--ak-primary-dark), var(--ak-primary-light));
  padding: 44px 0 80px;
}

.ak-quote-band {
  display: grid;
  grid-template-columns: 1.5fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 36px 44px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: var(--ak-white);
}

.ak-quote-band__title {
  color: var(--ak-white);
  font-size: clamp(24px, 2.5vw, 40px);
  margin: 0;
}

.ak-quote-band__phone {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}

.ak-quote-band__phone-icon {
  font-size: 28px;
}

.ak-quote-band__phone small {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.ak-quote-band__phone a {
  color: var(--ak-white);
  font-size: 18px;
  font-weight: 800;
}

/* Cards / grids */
.ak-grid {
  display: grid;
  gap: 24px;
}

.ak-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ak-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ak-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ak-card,
.ak-mini-card,
.ak-panel,
.ak-form-panel,
.ak-map-panel {
  background: var(--ak-white);
  border: 1px solid var(--ak-border);
  border-radius: var(--ak-radius);
  box-shadow: var(--ak-shadow);
}

.ak-card {
  padding: 28px;
  height: 100%;
}

.ak-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(22, 121, 161, 0.10);
  color: var(--ak-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.ak-card h3,
.ak-mini-card h3 {
  margin: 0 0 12px;
}

.ak-mini-card {
  padding: 24px;
}

.ak-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
}

.ak-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.ak-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: var(--ak-black-soft);
}

.ak-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ak-primary);
}

.ak-panel {
  padding: 34px;
}

.ak-panel--primary {
  background: linear-gradient(180deg, rgba(22, 121, 161, 0.08), rgba(22, 121, 161, 0.02));
}

.ak-feature-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.ak-stat {
  padding: 18px;
  border: 1px solid var(--ak-border);
  border-radius: 18px;
  background: var(--ak-white);
}

.ak-stat strong {
  display: block;
  font-size: 26px;
  color: var(--ak-primary);
}

.ak-stat span {
  display: block;
  color: var(--ak-black-muted);
  font-size: 14px;
}

/* Brand strip */
.ak-brand-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.ak-brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  padding: 20px;
  background: var(--ak-white);
  border: 1px solid var(--ak-border);
  border-radius: 22px;
}

.ak-brand-card img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

/* Page hero */
.ak-page-hero {
  position: relative;
  padding: 88px 0 72px;
  background: linear-gradient(135deg, var(--ak-primary-dark), var(--ak-primary));
  overflow: hidden;
}

.ak-page-hero::before,
.ak-page-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.ak-page-hero::before {
  width: 320px;
  height: 320px;
  right: -120px;
  top: -40px;
}

.ak-page-hero::after {
  width: 220px;
  height: 220px;
  left: -80px;
  bottom: -80px;
}

.ak-page-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--ak-white);
}

.ak-page-hero__inner h1 {
  margin: 18px auto 14px;
  color: var(--ak-white);
  font-size: clamp(32px, 4vw, 54px);
  max-width: 900px;
}

.ak-page-hero__inner p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
}

/* Contact page */
.ak-contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.ak-contact-panel,
.ak-form-panel,
.ak-map-panel {
  padding: 32px;
}

.ak-contact-details {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.ak-contact-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
}

.ak-contact-item__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(22, 121, 161, 0.10);
  color: var(--ak-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ak-shortcode-placeholder {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(22, 121, 161, 0.06);
  border: 1px dashed rgba(22, 121, 161, 0.38);
}

.ak-shortcode-placeholder code {
  font-size: 14px;
  color: var(--ak-black);
}

.ak-map-embed {
  margin-top: 20px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--ak-border);
}

.ak-map-embed iframe {
  display: block;
  width: 100%;
  min-height: 430px;
  border: 0;
}

/* Form styling */
.ak-form-panel input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.ak-form-panel textarea,
.ak-form-panel select,
.ak-quote-modal input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.ak-quote-modal textarea,
.ak-quote-modal select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: var(--ak-white);
  color: var(--ak-black);
  margin-top: 7px;
  margin-bottom: 14px;
}

.ak-form-panel textarea,
.ak-quote-modal textarea {
  min-height: 140px;
  resize: vertical;
}

.ak-form-panel label,
.ak-quote-modal label {
  display: block;
  font-weight: 600;
  color: var(--ak-black);
}

.ak-form-panel .wpcf7-submit,
.ak-quote-modal .wpcf7-submit {
  min-width: 180px;
}

.ak-file-note {
  display: block;
  font-size: 13px;
  color: var(--ak-black-muted);
  margin-top: -6px;
  margin-bottom: 10px;
}

/* Modal */
.ak-quote-modal[hidden] {
  display: none;
}

.ak-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.ak-quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.74);
}

.ak-quote-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 30px), 760px);
  margin: 4vh auto;
  max-height: 92vh;
  overflow: auto;
  background: var(--ak-white);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(17, 17, 17, 0.28);
}

.ak-quote-modal__head {
  padding: 26px 26px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ak-quote-modal__body {
  padding: 0 26px 28px;
}

.ak-quote-modal__close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(22, 121, 161, 0.10);
  color: var(--ak-primary);
  border: 0;
  padding: 0;
  font-size: 22px;
}

.ak-quote-modal__close:hover {
  background: rgba(22, 121, 161, 0.16);
  color: var(--ak-primary-dark);
  transform: none;
}

/* Footer */
.ak-footer {
  background: var(--ak-black);
  color: var(--ak-white);
  padding: 68px 0 24px;
}

.ak-footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.9fr;
  gap: 28px;
}

.ak-footer h3,
.ak-footer h4,
.ak-footer p,
.ak-footer a,
.ak-footer li,
.ak-footer span {
  color: var(--ak-white);
}

.ak-footer__logo img {
  max-height: 72px;
}

.ak-footer__menu {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ak-footer__bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

/* Utility */
.ak-spacer-24 { height: 24px; }
.ak-spacer-18 { height: 18px; }

/* WordPress / parent cleanup */
.header-top,
.site-header.header-transparent,
.page-main-header,
#innerpage-box,
#ht-colophon,
#back2Top,
.ht-site-description {
  display: none !important;
}

/* Responsive */
@media (max-width: 1180px) {
  .ak-header__row {
    grid-template-columns: minmax(230px, 320px) 220px 1fr;
  }
  .ak-brand-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ak-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ak-split,
  .ak-contact-layout,
  .ak-footer__grid,
  .ak-quote-band {
    grid-template-columns: 1fr;
  }
  .ak-quote-band__phone {
    justify-content: flex-start;
  }
}

@media (max-width: 920px) {
  .ak-header__row {
    grid-template-columns: 1fr;
  }
  .ak-header__brand,
  .ak-header__phone,
  .ak-header__nav {
    min-height: auto;
    border-radius: 0;
  }
  .ak-header__brand {
    padding: 14px 0;
    justify-content: center;
  }
  .ak-header__phone {
    justify-content: center;
    border-top: 1px solid rgba(17, 17, 17, 0.06);
  }
  .ak-header__nav {
    padding: 14px 0;
  }
  .ak-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .ak-nav {
    padding: 0 18px;
    min-height: 48px;
  }
  .ak-nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 52px;
    padding-bottom: 10px;
  }
  .ak-header.is-menu-open .ak-nav ul {
    display: flex;
  }
  .ak-slides,
  .ak-slide__inner,
  .ak-slide {
    min-height: 520px;
  }
  .ak-brand-strip,
  .ak-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ak-section {
    padding: 64px 0;
  }
  .ak-header__phone {
    padding: 10px 14px 16px;
  }
  .ak-slide__content p,
  .ak-page-hero__inner p {
    font-size: 16px;
  }
  .ak-slider__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .ak-grid--2,
  .ak-grid--3,
  .ak-grid--4,
  .ak-brand-strip,
  .ak-feature-stats {
    grid-template-columns: 1fr;
  }
  .ak-contact-panel,
  .ak-form-panel,
  .ak-map-panel,
  .ak-panel,
  .ak-card,
  .ak-mini-card,
  .ak-quote-band {
    padding: 24px;
  }
  .ak-quote-band-wrap {
    padding: 30px 0 54px;
  }
  .ak-quote-modal__head,
  .ak-quote-modal__body {
    padding-left: 20px;
    padding-right: 20px;
  }
}
