/* =============================================================
   LAYOUT: header, shared section header, buttons, floating CTA, footer
   ============================================================= */

/* ---------- Header (desktop only; mobile shows the logo inside the hero) ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease;
}
.header.is-scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.04); }
.header-content {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 8px 0;
}
.logo-link { display: flex; align-items: center; }
.logo-image { height: 36px; width: auto; transition: height 0.2s ease; }
.header.is-scrolled .logo-image { height: 32px; }
.header-right { display: flex; align-items: center; gap: 28px; }
.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.2px;
  color: var(--ink-700);
  transition: color 0.15s ease;
}
.header-nav a:hover { color: var(--ink-900); }
.header-cta {
  padding: 10px 24px; border-radius: 999px;
  background: var(--brand-primary); color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: 0.2px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.header-cta:hover { background: var(--brand-primary-dark); }
.header-cta:active { transform: scale(0.97); }
@media (max-width: 880px) {
  .header { display: none; }
}

/* ---------- Shared section header ---------- */
.section-header { margin-bottom: 60px; text-align: center; }
.section-title {
  margin: 0 0 16px;
  font-size: 36px; font-weight: 600; line-height: 1.2; letter-spacing: -0.5px;
  color: var(--ink-900);
}
.section-subtitle {
  max-width: 520px; margin: 0 auto;
  font-size: 15px; line-height: 1.7;
  color: var(--ink-500);
}
@media (max-width: 768px) {
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 14px; }
}

/* ---------- Buttons ---------- */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 29px; border-radius: 999px;
  background: var(--brand-primary); color: var(--white);
  font-size: 16px; font-weight: 600; letter-spacing: 0.2px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-cta:hover { background: var(--brand-primary-dark); transform: translateY(-2px); }
.btn-cta:active { transform: translateY(0); }
/* White pill on the orange final section */
.btn-cta-light { background: var(--white); color: var(--brand-primary); }
.btn-cta-light:hover { background: var(--ink-50); color: var(--brand-primary-dark); }
@media (max-width: 768px) {
  .btn-cta { padding: 12px 24px; font-size: 15px; }
  .btn-cta-light { padding: 12px 29px; font-size: 16px; }
}

.section-action { display: flex; justify-content: center; margin-top: 24px; }
.section-action-left { justify-content: flex-start; margin-top: 12px; }
@media (max-width: 880px) {
  /* Centre every CTA on mobile */
  .section-action-left { justify-content: center; }
  .btn-cta { display: block; margin: 0 auto; }
  .btn-cta-light { display: inline-flex; margin: 0; }
}

/* ---------- Floating CTA (mobile, after scrolling past the hero) ---------- */
.floating-cta {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 40;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.floating-cta.is-hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }
.floating-cta button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 16px 24px; border-radius: 999px;
  background: var(--brand-primary); color: var(--white);
  font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
@media (min-width: 769px) {
  .floating-cta { display: none; }
}

/* ---------- Footer ---------- */
.footer { padding: 56px 0 48px; background: var(--footer-bg); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.footer-title { margin: 0 0 18px; font-size: 18px; font-weight: 700; }
.footer-links { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-links a { font-size: 15px; transition: opacity 0.15s ease; }
.footer-links a:hover { opacity: 0.75; }
.footer-address { margin: 0 0 4px; font-size: 15px; }
.footer-copyright { margin: 0; font-size: 14px; opacity: 0.85; }
@media (max-width: 768px) {
  .footer { padding: 40px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
