/* =========================================================
   Calor Australia – CONSOLIDATED STABLE STYLE (AMENDED)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&display=swap');

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f6f7f9;
  color: #111827;
  line-height: 1.65;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid #e5e7eb;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

/* Brand: logo + name */
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.brand img {
  height: 100px;
  width: auto;
  display: block;
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #111827;
  white-space: nowrap;
}

/* Navigation */
.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
}

.nav a:hover {
  background: #eef2ff;
}

.nav a[aria-current="page"] {
  background: #e0e7ff;
}

.nav-cta {
  border: 1px solid transparent;
}

.nav-cta:hover {
  border-color: #e5e7eb;
}

/* =========================================================
   HERO
   ========================================================= */

.hero.hero-bg {
  min-height: 140vh;
  display: flex;
  align-items: center;
  text-align: center;

  /* Light overlay so poster isn’t too dark */
  background:
    linear-gradient(
      rgba(0,0,0,0.22),
      rgba(0,0,0,0.32)
    ),
    url("/images/hero/home-poster-blended.webp");

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero.hero-bg .container {
  transform: translateY(-25vh);
}

/* Hero text */
.hero.hero-bg h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.hero.hero-bg .lead {
  color: rgba(255,255,255,0.96);
  font-size: 1.15rem;
  max-width: 70ch;
  margin: 0 auto 26px auto;
  text-shadow: 0 1px 8px rgba(0,0,0,0.30);
}

.hero.hero-bg .micro {
  color: rgba(255,255,255,0.88);
  text-align: center;
}

.hero.hero-bg .container {
  position: sticky;
  top: 200px; /* distance from top while sticky (accounts for header) */
  z-index: 2;
}

/* ---------- Buttons (global) ---------- */
.actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.button {
  padding: 11px 18px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  background: #ffffff;
  color: #111827;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button.primary {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.button.primary:hover {
  background: #1e40af;
}

.button.ghost {
  background: transparent;
  color: #111827;
}

/* ---------- HERO BUTTON VISIBILITY FIX ---------- */
.hero.hero-bg .button {
  background: rgba(255,255,255,0.95);
  color: #111827;
  border-color: rgba(255,255,255,0.95);
}

.hero.hero-bg .button.primary {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

/* Make the right/ghost button clearly visible on the poster */
.hero.hero-bg .button.ghost {
  background: rgba(255,255,255,0.22);
  color: #ffffff;
  border-color: rgba(255,255,255,0.90);
  backdrop-filter: blur(2px);
}

.hero.hero-bg .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* =========================================================
   CONTENT
   ========================================================= */

/* Added: global page-title styling for consistency */
h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  color: #111827;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

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

.lead {
  font-size: 1.1rem;
  color: #374151;
}

.micro {
  font-size: 0.92rem;
  color: #6b7280;
}

/* Grids */
.grid-3 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.grid-2 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}

@media (max-width: 900px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
}

/* =========================================================
   INSIGHTS (added)
   ========================================================= */

/* Remove default "blue underline" feel, but keep affordance */
.textlink {
  text-decoration: none;
  color: #1d4ed8;
  font-weight: 600;
}

.textlink:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.textlink:visited {
  color: #1d4ed8;
}

/* Callout block (fixes overlap + improves spacing) */
.callout {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.callout p + p {
  margin-top: 12px;
}

.callout .button + .button {
  margin-left: 10px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: rgba(255,255,255,0.9);
  padding: 18px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
  /* Keep header sane on mobile */
  .brand img {
    height: 96px;
  }

  .brand-name {
    font-size: 1.7rem;
  }

  .hero.hero-bg {
    min-height: 160vh;
  }

  .hero.hero-bg .container {
    transform: translateY(-3vh);
  }
}

/* Services: bottom actions block */
.actions-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

