/* ==========================================================================
   Skydime Holdings — Shared Design Foundation
   Tokens, base elements, header, footer, buttons and utilities shared by
   the homepage and every future entity page.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand */
  --brand-blue: #1e316b;
  --brand-blue-deep: #142149;
  --brand-green: #00a859;
  --white: #ffffff;

  /* Neutrals */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f5f7fb;
  --surface-strong: #eef1f9;
  --text: #16213f;
  --text-muted: #566079;
  --text-on-dark: rgba(255, 255, 255, 0.92);
  --text-on-dark-muted: rgba(255, 255, 255, 0.72);
  --border: rgba(30, 49, 107, 0.12);
  --border-soft: rgba(30, 49, 107, 0.08);

  /* Elevation */
  --shadow-sm: 0 6px 20px rgba(20, 30, 63, 0.08);
  --shadow-md: 0 20px 48px rgba(20, 30, 63, 0.1);
  --shadow-lg: 0 32px 80px rgba(20, 30, 63, 0.14);

  /* Layout */
  --max-width: 1280px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --header-h: 72px;
  --header-h-mobile: 64px;
  --utility-h: 38px;
  --utility-h-mobile: 32px;

  /* Type */
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fs-hero: clamp(2rem, 1.75rem + 1.2vw, 2.375rem);
  --fs-section: clamp(1.75rem, 1.55rem + 1vw, 2.125rem);
  --fs-intro: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --lh-tight: 1.08;
  --lh-normal: 1.6;
  --lh-loose: 1.8;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  :root {
    --fs-hero: clamp(2.5rem, 2.1rem + 1.6vw, 2.875rem);
    --fs-section: clamp(2.25rem, 1.9rem + 1.4vw, 2.5rem);
  }
}

@media (min-width: 1024px) {
  :root {
    --fs-hero: clamp(3rem, 2.3rem + 2vw, 3.5rem);
    --fs-section: clamp(2.5rem, 2.1rem + 1.6vw, 2.75rem);
  }
}

@media (min-width: 1280px) {
  :root {
    --fs-hero: clamp(3.5rem, 2.4rem + 2.2vw, 4rem);
    --fs-section: clamp(2.75rem, 2.2rem + 1.6vw, 3rem);
  }
}

/* ---- Reset & base ---------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: var(--lh-normal);
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}

/* ---- Launch-status badge (shared) --------------------------------------
   Restrained "not yet live" indicator used for Sky Capital ahead of its
   1 Jan 2027 launch — a small pill, not a banner, so a card/hero keeps
   its normal weight instead of looking disabled. --on-dark is for use
   over hero imagery/overlays. */

.launch-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  margin: 0.4rem 0;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 168, 89, 0.12);
  color: var(--brand-green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.launch-badge--on-dark {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ---- Accessibility ----------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---- Layout primitives -------------------------------------------------- */

.container {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 0 auto;
}

@media (max-width: 540px) {
  /* Was calc(100% - 1.5rem) — a 12px-per-side gutter that was actually
     TIGHTER than the 20px default above it, which is what made content
     feel pinned to the edge on very small phones. 2rem keeps a genuine
     16px-per-side minimum instead of shrinking further at the narrowest
     widths. */
  .container {
    width: min(100%, calc(100% - 2rem));
  }
}

.section {
  padding: clamp(3.5rem, 3rem + 2vw, 6rem) 0;
}

.section--compact {
  padding: clamp(2.5rem, 2rem + 1.5vw, 4rem) 0;
}

.section-title {
  max-width: 640px;
}

.section-title span,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-green);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: currentColor;
}

.section-title h2 {
  margin-top: 0.85rem;
  font-size: var(--fs-section);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-blue);
}

.section-title p {
  margin-top: 1rem;
  color: var(--text-muted);
  line-height: var(--lh-loose);
  max-width: 60ch;
}

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-green);
  color: var(--white);
}

.btn-primary:hover {
  background: #039650;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-blue);
  border-color: rgba(30, 49, 107, 0.22);
}

.btn-secondary:hover {
  background: rgba(30, 49, 107, 0.06);
  border-color: rgba(30, 49, 107, 0.32);
}

.btn-on-dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Header CTA — deliberately isolated from .btn and .nav-links a so neither
   can silently override its dimensions (see .nav-links a:not(.header-cta)). */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 41px;
  padding: 0 17px;
  border-radius: 8px;
  background: var(--brand-blue);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease);
}

.header-cta svg {
  color: var(--brand-green);
  transition: transform 0.2s var(--ease);
}

.header-cta:hover {
  background: #101f4d;
}

.header-cta:hover svg {
  transform: translateX(3px);
}

@media (max-width: 420px) {
  .btn {
    min-height: 44px;
  }
}

/* ---- Header / navigation -------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h-mobile);
}

@media (min-width: 768px) {
  .navbar {
    height: var(--header-h);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .brand img {
    width: 40px;
    height: 40px;
  }
}

.header .header-logo {
  display: block;
  width: auto;
  height: 38px;
  max-width: 145px;
  object-fit: contain;
}

@media (min-width: 390px) {
  .header .header-logo {
    height: 42px;
    max-width: 155px;
  }
}

@media (min-width: 768px) {
  .header .header-logo {
    height: 46px;
    max-width: 180px;
  }
}

@media (min-width: 1024px) {
  .header .header-logo {
    height: 52px;
    max-width: 200px;
  }
}

@media (min-width: 1440px) {
  .header .header-logo {
    height: 56px;
    max-width: 220px;
  }
}

.brand-title {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a:not(.header-cta) {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.1rem;
  position: relative;
}

.nav-links a:not(.header-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brand-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 0;
}

/* ---- Mobile menu icon (hamburger <-> close) --------------------------------
   Shared header primitive — every page's header markup includes the same
   .menu-toggle__bars three-span icon, so it belongs here rather than
   duplicated per-page. (Previously only defined in homepage.css, which left
   properties.html/insurance.html/contact.html with an invisible mobile menu
   button; homepage.css's copy is now redundant but harmless.) */

.menu-toggle__bars {
  position: relative;
  width: 20px;
  height: 14px;
  display: inline-block;
}

.menu-toggle__bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
}

.menu-toggle__bars span:nth-child(1) {
  top: 0;
}

.menu-toggle__bars span:nth-child(2) {
  top: 6px;
}

.menu-toggle__bars span:nth-child(3) {
  top: 12px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* ---- "Our Businesses" dropdown ------------------------------------------- */

.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: inherit;
  cursor: pointer;
  padding: 0.4rem 0.1rem;
}

.nav-dropdown-chevron {
  transition: transform 0.2s var(--ease);
}

.nav-item-dropdown:hover .nav-dropdown-chevron,
.nav-item-dropdown.is-open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  display: grid;
  gap: 0.15rem;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 8px;
  color: var(--text);
  transition: background-color 0.15s var(--ease);
}

.nav-dropdown-item:hover {
  background: var(--surface-muted);
}

/* Official entity logo, replacing the previous generic icon badge. Sized by
   width (not a fixed square) so the three horizontal wordmarks and Sky
   Capital's square stacked mark (see .nav-dropdown-logo--square below) each
   render at a comparable visual weight without stretching or a background
   box behind them — same technique as .entity-group-panel__logo. */
.nav-dropdown-logo {
  display: inline-flex;
  align-items: center;
  width: 86px;
  flex-shrink: 0;
}

.nav-dropdown-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.nav-dropdown-logo--square {
  width: 28px;
}

.nav-dropdown-item strong {
  display: block;
  color: var(--brand-blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-dropdown-item small {
  display: block;
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.nav-dropdown-divider {
  height: 1px;
  margin: 0.3rem 0.2rem;
  background: var(--border-soft);
}

.nav-dropdown-all {
  justify-content: space-between;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.88rem;
}

.nav-dropdown-all:hover {
  color: var(--brand-green);
}

.nav-dropdown-all svg {
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}

.nav-dropdown-all:hover svg {
  transform: translateX(3px);
}

@media (min-width: 861px) {
  .nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    width: 268px;
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
    z-index: 110;
  }

  .nav-item-dropdown:hover .nav-dropdown-panel,
  .nav-item-dropdown:focus-within .nav-dropdown-panel,
  .nav-item-dropdown.is-open .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .nav-dropdown-item {
    padding: 0.6rem 0.65rem;
  }
}

@media (max-width: 860px) {
  .header-right {
    gap: 0.75rem;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-h-mobile) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1.5rem 1.25rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height 0.3s var(--ease), opacity 0.25s var(--ease),
      transform 0.25s var(--ease);
  }

  .nav-links.open {
    max-height: 24rem;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a:not(.header-cta) {
    color: var(--brand-blue);
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-soft);
    width: 100%;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links .header-cta {
    margin-top: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .nav-dropdown-panel {
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 0.25rem;
    transition: max-height 0.3s var(--ease);
  }

  .nav-item-dropdown.is-open .nav-dropdown-panel {
    max-height: 20rem;
    padding: 0.5rem 0 0.75rem 0.25rem;
  }

  .nav-dropdown-item {
    padding: 0.55rem 0.25rem;
  }
}

/* ---- Cross-entity group navigation (Properties/Insurance/Tours/Capital utility bars) ----
   Shared across the four entity pages so a visitor can switch businesses without
   leaving the utility bar. One compact "Our Businesses" dropdown control, used
   identically at every breakpoint, sits inside the existing utility-bar
   right-side cluster (next to the contact/social items) — deliberately not
   force-centered, since that previously caused collisions with the phone
   number at 1024px. A no-op on any page that doesn't include the markup
   (Holdings pages are unaffected). */

.entity-group-toggle {
  position: relative;
  flex-shrink: 0;
}

.entity-group-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: none;
  padding: 0.32rem 0.7rem;
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.76rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.entity-group-toggle__btn:hover,
.entity-group-toggle__btn:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.34);
}

.entity-group-toggle.is-open .entity-group-toggle__btn {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 255, 255, 0.34);
}

.entity-group-toggle__label-full {
  display: none;
}

@media (min-width: 400px) {
  .entity-group-toggle__label-short {
    display: none;
  }

  .entity-group-toggle__label-full {
    display: inline;
  }
}

.entity-group-toggle__chevron {
  transition: transform 0.2s var(--ease);
}

.entity-group-toggle.is-open .entity-group-toggle__chevron {
  transform: rotate(180deg);
}

.entity-group-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 272px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 120;
}

.entity-group-toggle.is-open .entity-group-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.entity-group-panel__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.entity-group-panel__item:hover {
  background: var(--surface-muted);
}

.entity-group-panel__logo {
  display: inline-flex;
  align-items: center;
  width: 86px;
  flex-shrink: 0;
}

.entity-group-panel__logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* This compact dropdown deliberately keeps sky-capital-stacked.svg (a 1:1
   square lockup) rather than the horizontal sky-capital.svg used in entity
   headers/body content — it needs its own width so it reads at a comparable
   visual size next to the other three entities' logos instead of rendering
   small and square in a lockup sized for a ~3:1 horizontal mark.
   (sky-capital-white.svg remains all-white and is only usable on dark
   backgrounds; unrelated to this square-vs-horizontal sizing.) */
.entity-group-panel__logo--square {
  width: 28px;
}

.entity-group-panel__category {
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.entity-group-panel__item.is-current {
  background: rgba(0, 168, 89, 0.08);
  border-left-color: var(--brand-green);
}

.entity-group-panel__item.is-current .entity-group-panel__category {
  color: var(--brand-green);
  font-weight: 700;
}

.entity-group-panel__divider {
  height: 1px;
  margin: 0.35rem 0.25rem;
  background: var(--border-soft);
}

.entity-group-panel__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  color: var(--brand-blue);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.entity-group-panel__all:hover {
  background: var(--surface-muted);
  color: var(--brand-green);
}

.entity-group-panel__all svg {
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}

.entity-group-panel__all:hover svg {
  transform: translateX(3px);
}

/* ---- 404 / error page ---------------------------------------------------------
   Self-contained fixed-chrome offset (mirrors homepage.css's body.homepage
   pattern) so this page doesn't need to load homepage.css just for the
   utility-bar/header stacking rule. */

body.error-page .utility-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 101;
}

body.error-page .header {
  top: var(--utility-h-mobile);
}

.error-page-content {
  margin-top: calc(var(--utility-h-mobile) + var(--header-h-mobile));
  padding: clamp(3.5rem, 3rem + 2vw, 6rem) 0;
  text-align: center;
}

@media (min-width: 768px) {
  body.error-page .header {
    top: var(--utility-h);
  }

  .error-page-content {
    margin-top: calc(var(--utility-h) + var(--header-h));
  }
}

.error-page-content__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--brand-blue);
  margin: 0 auto 1.5rem;
}

.error-page-content__code {
  display: block;
  color: var(--brand-green);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.error-page-content h1 {
  font-size: clamp(1.6rem, 1.35rem + 1.2vw, 2.2rem);
  font-weight: 800;
  color: var(--brand-blue);
}

.error-page-content p {
  margin: 0.85rem auto 0;
  max-width: 44ch;
  color: var(--text-muted);
}

.error-page-content__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* ---- Utility bar ------------------------------------------------------------ */

.utility-bar {
  background: var(--brand-blue);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--utility-h-mobile);
}

@media (min-width: 768px) {
  .utility-bar__inner {
    height: var(--utility-h);
  }
}

.utility-bar__contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

/* At the narrowest phone widths, phone + email together (with location
   already hidden below) are tight against the container's gutters — tighten
   the gaps between items, not the text/icons themselves, to keep both on
   one clean row without any shrinking or clipping. */
@media (max-width: 374px) {
  .utility-bar__contact {
    gap: 0.6rem;
  }
}

.utility-bar__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

@media (max-width: 374px) {
  .utility-bar__contact a {
    gap: 0.3rem;
  }
}

.utility-bar__contact a:hover {
  color: var(--white);
}

.utility-bar__contact svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Phone + email are the required mobile pair (Part A) — both stay visible
   at every width. Only the compact location item is hidden on mobile; the
   full address already lives on Contact/footer, so it doesn't need to
   compete with phone/email for a narrow mobile row. The ancestor-qualified
   selector below still matters even with no hide rule of its own here:
   .utility-bar__contact a (specificity 0,1,1) already sets
   display:inline-flex, so this class only needs to exist for the location
   rule beneath it to reliably win over that same selector. */
.utility-bar__contact .utility-bar__email {
  display: inline-flex;
}

/* Compact office-location item — full address stays on Contact/footer only;
   hidden on mobile/small-tablet widths so it never has to compete with
   phone + email for a narrow row; restored once there's genuinely spare
   room alongside them and social. Qualifying with the .utility-bar__contact
   ancestor raises this to specificity (0,2,0), reliably beating
   .utility-bar__contact a's (0,1,1) inline-flex regardless of source order
   — a plain single-class selector here previously lost that tie and the
   location text stayed visible (and clipped) at every width. */
.utility-bar__contact .utility-bar__location {
  display: none;
}

@media (min-width: 1024px) {
  .utility-bar__contact .utility-bar__location {
    display: inline-flex;
  }
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.social-icons a,
.social-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-size: 0.85rem;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}

.social-icons a:hover {
  opacity: 1;
  color: var(--brand-green);
}

.utility-bar .social-icons {
  display: none;
}

@media (min-width: 860px) {
  .utility-bar .social-icons {
    display: flex;
  }
}

/* ---- Two-tone icon system ---------------------------------------------- */

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-muted);
  flex-shrink: 0;
}

.icon-circle svg {
  width: 22px;
  height: 22px;
}

.icon-tone-primary {
  color: var(--brand-blue);
}

.icon-tone-accent {
  color: var(--brand-green);
}

/* ---- WhatsApp floating button ------------------------------------------- */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  font-size: 1.4rem;
  box-shadow: 0 10px 28px rgba(20, 30, 63, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(20, 30, 63, 0.32);
}

@media (min-width: 768px) {
  .whatsapp-float {
    right: 28px;
    bottom: 28px;
    width: 56px;
    height: 56px;
  }
}

@media (hover: hover) {
  .whatsapp-float__tip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: var(--brand-blue-deep);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .whatsapp-float:hover .whatsapp-float__tip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@media not all and (hover: hover) {
  .whatsapp-float__tip {
    display: none;
  }
}

/* ---- Footer --------------------------------------------------------------- */

.footer {
  background: var(--brand-blue-deep);
  color: var(--text-on-dark);
  padding: clamp(2.5rem, 2.1rem + 1.6vw, 3.5rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-brand .brand-title {
  color: var(--white);
  font-size: 1.05rem;
}

.footer .footer-logo {
  display: block;
  width: 165px;
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .footer .footer-logo {
    width: 180px;
  }
}

@media (min-width: 1024px) {
  .footer .footer-logo {
    width: 195px;
  }
}

@media (min-width: 1440px) {
  .footer .footer-logo {
    width: 210px;
  }
}

.footer-brand p {
  color: var(--text-on-dark-muted);
  line-height: var(--lh-loose);
  max-width: 30ch;
}

.footer-social {
  margin-top: 0.4rem;
}

.footer-social .social-icons a,
.footer-social .social-icons span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social .social-icons a:hover {
  border-color: var(--brand-green);
}

.footer h5 {
  margin: 0 0 1.1rem;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-list {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.footer-list a,
.footer-list p {
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

.footer-list a {
  display: inline-block;
  transition: color 0.2s var(--ease);
}

.footer-list a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.25rem;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    row-gap: 1.75rem;
  }

  .footer-brand {
    gap: 0.85rem;
  }

  .footer h5 {
    margin-bottom: 0.85rem;
  }

  .footer-list {
    gap: 0.6rem;
  }

  .footer-list p {
    line-height: 1.45;
  }

  .footer-bottom {
    flex-direction: column;
    margin-top: 1.5rem;
    padding-top: 1rem;
  }
}

/* ---- Scroll reveal utility -------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Generic content primitives (about / businesses / contact pages) ------ */

.hero {
  margin-top: 0;
  padding: calc(var(--header-h-mobile) + 3rem) 0 3rem;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

@media (min-width: 768px) {
  .hero {
    padding: calc(var(--header-h) + 4.5rem) 0 4.5rem;
  }
}

.hero-content {
  max-width: 46rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 1.1rem;
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  margin-top: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: var(--lh-loose);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.card-highlight {
  background: var(--surface-muted);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.card-highlight h3 {
  margin: 0 0 1.1rem;
  color: var(--brand-blue);
  font-size: 1.15rem;
}

.list-compact {
  display: grid;
  gap: 0.9rem;
  list-style: none;
}

.list-compact li {
  color: var(--text-muted);
  line-height: var(--lh-normal);
  padding-left: 1.2rem;
  position: relative;
}

.list-compact li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--brand-green);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
}

.feature-card h4 {
  margin: 0 0 0.6rem;
  color: var(--brand-blue);
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--text-muted);
  line-height: var(--lh-normal);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-strong);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.75rem;
  display: grid;
  gap: 0.85rem;
}

.card-body h3 {
  color: var(--brand-blue);
  font-size: 1.3rem;
}

.card-body p {
  color: var(--text-muted);
  line-height: var(--lh-normal);
}

@media (max-width: 860px) {
  .hero-split,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.5rem);
  }
}

/* ---- Shared honeypot field (spam prevention on every enquiry form) --------- */
/* Off-screen rather than display:none — some bots skip fields hidden that way. */

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Shared submission error state (network/dev-mode messaging) ----------- */

.form-error.form-error--notice {
  color: var(--brand-blue);
  background: var(--surface-muted);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

/* ---- Shared choice-input brand treatment (radios/checkboxes, incl. the
   Preferred Contact Method multi-select) — native controls, just tinted. */

.form-radio-group input[type="checkbox"],
.form-radio-group input[type="radio"] {
  accent-color: var(--brand-green);
}
