/* ── HRSS SHARED STYLESHEET ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');family=Space+Mono:wght@400;700&display=swap');

:root {
  --canvas: #F4F7F7;
  --forest: #0D5C6B;
  --terra: #E8841A;
  --ink: #1A2B2E;
  --stone: #5A7177;
  --sage: #9DC4CC;
  --cream: #FFFFFF;
  --forest-mid: #1A7A8E;
  --terra-light: #F0A040;
  --rule: #D6E4E6;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--forest);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--cream);
  text-decoration: none;
  line-height: 1.1;
}

.nav-logo small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--cream); }

.nav-cta {
  background: var(--terra) !important;
  color: var(--cream) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  font-weight: 600 !important;
}

/* ── EYEBROW ── */
.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.8rem;
}

.eyebrow.light { color: var(--sage); }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: 'DM Sans', sans-serif; font-weight: 700; line-height: 1.12; }

.display {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.08;
  color: var(--ink);
  font-weight: 700;
}

.display em { font-style: italic; color: var(--forest); }

h2.section-title {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  color: var(--ink);
  line-height: 1.15;
}

h2.section-title.on-dark { color: var(--cream); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  padding: 0.85rem 2rem;
  transition: all 0.2s;
}

.btn-terra {
  background: var(--terra);
  color: var(--cream);
}
.btn-terra:hover { background: var(--terra-light); }

.btn-forest {
  background: var(--forest);
  color: var(--cream);
}
.btn-forest:hover { background: var(--forest-mid); }

.btn-outline-forest {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-outline-forest:hover { background: var(--forest); color: var(--cream); }

.btn-outline-cream {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline-cream:hover { background: rgba(255,255,255,0.1); }

/* ── GHOST NUMBER (signature) ── */
.ghost-num {
  font-family: 'Space Mono', monospace;
  font-size: clamp(6rem, 18vw, 18rem);
  font-weight: 700;
  color: var(--forest);
  opacity: 0.055;
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
  position: absolute;
}

/* ── SECTIONS ── */
.section { padding: 90px 5%; position: relative; overflow: hidden; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.bg-canvas { background: var(--canvas); }
.bg-cream { background: var(--cream); }
.bg-forest { background: var(--forest); }
.bg-ink { background: var(--ink); }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 48px 5% 32px;
  padding-bottom: max(32px, 5rem);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo { font-size: 1.1rem; }

.footer-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 220px;
}

.footer-col h4 {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
}
.footer-credit {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  pointer-events: auto;
  cursor: pointer;
}
.footer-credit:hover { color: rgba(255,255,255,0.5); }
.footer-tagline { display: inline; }
@media (max-width: 768px) {
  .footer-tagline { display: block; }
}

/* ── HAMBURGER (CSS checkbox toggle — no JS) ── */
.nav-toggle-input {
  display: none;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.25s;
}
/* Animate hamburger to X when checked */
.nav-toggle-input:checked ~ nav .nav-hamburger span:nth-child(1),
.nav-toggle-input:checked ~ * .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-input:checked ~ nav .nav-hamburger span:nth-child(2),
.nav-toggle-input:checked ~ * .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle-input:checked ~ nav .nav-hamburger span:nth-child(3),
.nav-toggle-input:checked ~ * .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--forest);
  z-index: 201;
  padding: 1.5rem 5%;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Show menu when checkbox checked */
.nav-toggle-input:checked ~ .nav-mobile-menu { display: flex; }
.nav-mobile-menu a {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
  display: block;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover, .nav-mobile-menu a.active { color: var(--cream); }
.nav-mobile-menu .nav-cta {
  margin-top: 0.75rem;
  background: var(--terra);
  color: var(--cream) !important;
  padding: 0.75rem 1.25rem;
  border-radius: 2px;
  text-align: center;
  font-weight: 600;
  border-bottom: none;
  pointer-events: auto;
  cursor: pointer;
  display: block;
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 60px 5%; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.4rem; padding-right: 0; }
  .hero-actions, .cta-actions, .cta-btns { flex-direction: column; }
  .hero-actions .btn, .cta-actions .btn, .cta-btns .btn { width: 100%; text-align: center; box-sizing: border-box; }
}

/* ── WHATSAPP FAB ── */
/* Hide FAB when mobile nav is open so it doesn't block the Enquire link */
.nav-toggle-input:checked ~ .fab-container,
.nav-toggle-input:checked ~ * .fab-container { display: none; }

.fab-container {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.fab-main {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.fab-main:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,0.55); }

.fab-wa-icon {
  width: 28px; height: 28px;
  fill: white;
  transition: opacity 0.2s, transform 0.2s;
}
.fab-close-icon {
  position: absolute;
  width: 22px; height: 22px;
  color: white;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: rotate(-90deg);
}
.fab-container.open .fab-wa-icon { opacity: 0; transform: rotate(90deg); }
.fab-container.open .fab-close-icon { opacity: 1; transform: rotate(0deg); }
.fab-main { position: relative; }

.fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}
.fab-container.open .fab-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.fab-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  background: white;
  border-radius: 50px;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.fab-option:hover { transform: translateX(-3px); box-shadow: 0 4px 16px rgba(0,0,0,0.16); }

.fab-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.fab-icon-sm {
  width: 32px; height: 32px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* pulse ring on FAB */
.fab-main::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: fab-pulse 2.5s ease-out infinite;
}
.fab-container.open .fab-main::after { display: none; }

@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
