@import url("brand.css");
@import url("base.css");
@import url("nav.css");
@import url("pages.css");
@import url("service-pages.css");
@import url("desktop.css");
@import url("mobile.css");
@import url("perf.css");
@import url("locations.css");
@import url("core-services-carousel.css");

/* Fixed header — stays visible on scroll (all pages) */
:root {
  --site-header-height: 56px;
}

body {
  padding-top: var(--site-header-height);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  overflow: visible;
  background: linear-gradient(90deg, var(--nav-faint-1), var(--nav-faint-2));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nav-border);
}

.site-header > .container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

#header-placeholder {
  height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
}

#header-placeholder[data-initialized="false"] {
  visibility: hidden;
}

@media (max-width: 900px) {
  :root {
    --site-header-height: 52px;
  }

  .site-header > .container {
    padding: 0 22px;
  }
}

@media (max-width: 480px) {
  :root {
    --site-header-height: 48px;
  }

  .site-header > .container {
    padding: 0 14px;
  }
}

/* Shared header logo — scale by max-height only (never clip wide artwork) */
.site-header .header-row {
  padding: 8px 0;
  gap: 8px;
}

.site-header .brand {
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100vw - 280px);
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.site-header .brand-logo-wrap {
  display: block;
  max-width: 100%;
  overflow: visible;
  line-height: 0;
}

.site-header .brand .logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 34px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

/* Subtle “live” pulse — respects reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .site-header .brand .logo {
    animation: logo-live 5s ease-in-out infinite;
  }
}

@keyframes logo-live {
  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    opacity: 0.97;
    filter: drop-shadow(0 2px 10px var(--brand-primary-glow));
  }
}

/* Tablet / mobile: shrink whole logo to fit beside menu button */
@media (max-width: 900px) {
  .site-header .brand {
    max-width: calc(100vw - 96px);
  }

  .site-header .brand .logo {
    max-height: 30px;
  }
}

@media (max-width: 480px) {
  .site-header .brand {
    max-width: calc(100vw - 80px);
  }

  .site-header .brand .logo {
    max-height: 26px;
  }
}

@media (min-width: 1100px) {
  .site-header .brand {
    max-width: none;
  }

  .site-header .brand .logo {
    max-height: 36px;
  }
}

/* ——— Site footer (4-column) ——— */
.site-footer {
  background: linear-gradient(90deg, var(--nav-faint-1), var(--nav-faint-2));
  border-top: 1px solid var(--nav-border);
  color: var(--brand-dark);
  padding: 44px 0 0;
  margin-top: 0;
}

.site-footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(230px, 1fr) minmax(250px, 1fr) minmax(340px, 1.25fr);
  gap: 42px;
  align-items: start;
}

.site-footer .footer-col {
  min-width: 0;
}

.site-footer .footer-col--brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer .footer-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin: 0 0 16px;
}

.site-footer .footer-brand {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
  margin-bottom: 2px;
}

.site-footer .footer-logo-wrap {
  display: flex;
  align-items: center;
  height: 96px;
  max-width: 230px;
  overflow: hidden;
}

.site-footer .footer-logo {
  height: 96px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.site-footer .footer-blessing {
  margin: 14px 0 0;
  max-width: 230px;
  color: #00AEEF;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.3;
  text-align: left;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-col--explore .footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 8px;
}

.site-footer .footer-links li {
  margin: 0;
}

.site-footer .footer-links a {
  display: block;
  padding: 5px 0;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer .footer-links a:hover {
  color: #00AEEF;
  opacity: 1;
  text-decoration: underline;
}

.site-footer .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer .footer-col--explore .footer-links a {
  padding: 2px 0;
  line-height: 1.25;
}

.site-footer .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--brand-dark);
  opacity: 0.9;
  line-height: 1.5;
  min-width: 0;
}

.site-footer .footer-contact-item i {
  color: #00AEEF;
  width: 18px;
  text-align: center;
  margin-top: 3px;
  flex-shrink: 0;
}

.site-footer .footer-contact-item a {
  color: var(--brand-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: normal;
  opacity: 0.9;
}

.site-footer .footer-contact-item a:hover {
  color: #00AEEF;
  opacity: 1;
}

.site-footer .footer-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(0, 174, 239, 0.08);
  border: 1px solid rgba(0, 174, 239, 0.22);
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-footer .footer-quote-btn:hover {
  background: rgba(0, 174, 239, 0.14);
  border-color: rgba(0, 174, 239, 0.35);
}

.site-footer .footer-bottom {
  margin-top: 32px;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer .footer-copy {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #475569;
  line-height: 1.5;
}

.site-footer .footer-abn {
  display: inline;
}

.site-footer .footer-legal {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--brand-dark);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.85;
}

.site-footer .footer-legal:hover {
  color: #00AEEF;
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(240px, 1fr);
  }

  .site-footer .footer-col--brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .site-footer .footer-brand {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .site-footer .footer-blessing {
    max-width: none;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
    text-align: right;
  }
}

@media (max-width: 900px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .site-footer .footer-col--brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: nowrap;
  }

  .site-footer .footer-brand {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .site-footer .footer-blessing {
    max-width: none;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
    text-align: right;
  }

  .site-footer .footer-logo-wrap {
    height: 76px;
    max-width: 220px;
  }

  .site-footer .footer-logo {
    height: 76px;
  }
}

@media (max-width: 720px) {
  .site-footer {
    padding-top: 40px;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .site-footer .footer-col--brand,
  .site-footer .footer-col:nth-child(4) {
    grid-column: 1 / -1;
  }

  .site-footer .footer-col--explore .footer-links {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    column-gap: 18px;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 32px;
  }

  .site-footer .footer-col--brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-footer .footer-blessing {
    font-size: 0.95rem;
    text-align: left;
  }

  .site-footer .footer-logo-wrap {
    height: 68px;
    max-width: min(220px, 100%);
  }

  .site-footer .footer-logo {
    height: 68px;
  }
}

@media (max-width: 560px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Icon-style nav dropdown (About menu) */
.site-header .dropdown-menu--icons {
  min-width: 290px;
  padding: 10px;
  border-radius: 14px;
}

.site-header .dropdown-menu--icons .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  margin-bottom: 2px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
}

.site-header .dropdown-menu--icons .dropdown-item-label {
  flex: 1;
  text-align: left;
}

.site-header .dropdown-menu--icons .dropdown-item:last-child {
  margin-bottom: 0;
}

.site-header .dropdown-menu--icons .dropdown-item:hover {
  background: rgba(0, 174, 239, 0.08);
  border-color: transparent;
}

.site-header .dropdown-menu--icons .dropdown-item .arrow {
  display: none;
}

.site-header .dropdown-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 174, 239, 0.12);
  color: #00AEEF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* Mobile nav styles live in nav.css */
