/* ==========================================================================
   Aspire International — core stylesheet
   Structure:
     1. Design tokens (light "day" theme + dark "night" theme)
     2. Base & typography
     3. Layout primitives
     4. Header, navigation, theme toggle
     5. Buttons & links
     6. Page components (hero, services, credentials, contact, footer…)
     7. Forms
     8. Utilities
   Responsive overrides live in responsive.css; motion in animations.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-2xl: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --text-3xl: clamp(2.375rem, 1.6rem + 3.4vw, 4.25rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: clamp(4rem, 6vw + 1rem, 7.5rem);

  /* Layout */
  --container: 76rem;
  --container-narrow: 48rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4.5rem;

  /* Shape */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 560ms;
  --theme-dur: 320ms;

  /* -------- Day theme (default) -------- */
  color-scheme: light;
  --bg: #f6f8f8;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #eaf0f0;
  --surface-3: #dde6e6;
  --border: rgba(16, 42, 46, 0.14);
  --border-strong: rgba(16, 42, 46, 0.3);
  /* Form fields: white wells with a solid edge ≥ 3:1 against white (WCAG 1.4.11) */
  --field-bg: #ffffff;
  --field-border: #7f8f93;
  --field-border-hover: #5c6f73;
  /* White cards sit on a near-white page, so in daylight they need a lift */
  --card-shadow: 0 1px 2px rgba(15, 31, 33, 0.05), 0 4px 14px -4px rgba(15, 31, 33, 0.08);
  --text: #0f1f21;
  --text-2: #3e5357;
  --text-3: #5c6f73;
  --accent: #0a7a72;
  --accent-strong: #08635d;
  --accent-ink: #ffffff;
  --accent-soft: rgba(10, 122, 114, 0.1);
  --accent-glow: rgba(10, 122, 114, 0.18);
  --brass: #9c7b32;
  --brass-soft: rgba(156, 123, 50, 0.12);
  --skyline: #1d4a50;
  --skyline-opacity: 0.9;
  --lattice: rgba(10, 122, 114, 0.16);
  --shadow-sm: 0 1px 2px rgba(15, 31, 33, 0.06), 0 2px 8px rgba(15, 31, 33, 0.05);
  --shadow-md: 0 6px 24px rgba(15, 31, 33, 0.09);
  --shadow-lg: 0 24px 64px -16px rgba(15, 31, 33, 0.18);
  --header-bg: rgba(246, 248, 248, 0.78);
  --whatsapp: #17893f;
  --danger: #b4342c;
  --success: #1f7a4e;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1316;
  --bg-elev: #0f1a1e;
  --surface: #132126;
  --surface-2: #192c32;
  --surface-3: #22383f;
  --border: rgba(150, 190, 194, 0.14);
  --border-strong: rgba(150, 190, 194, 0.28);
  --field-bg: #0b1316;
  --field-border: rgba(150, 190, 194, 0.28);
  --field-border-hover: rgba(150, 190, 194, 0.46);
  --card-shadow: none;
  --text: #e9f0f1;
  --text-2: #aebcbf;
  --text-3: #7f9196;
  --accent: #2ad4c5;
  --accent-strong: #63e6da;
  --accent-ink: #06201d;
  --accent-soft: rgba(42, 212, 197, 0.12);
  --accent-glow: rgba(42, 212, 197, 0.28);
  --brass: #d6b26b;
  --brass-soft: rgba(214, 178, 107, 0.14);
  --skyline: #2ad4c5;
  --skyline-opacity: 0.38;
  --lattice: rgba(42, 212, 197, 0.2);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 28px 72px -16px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(11, 19, 22, 0.72);
  --whatsapp: #25d366;
  --danger: #ff7b73;
  --success: #5fd49a;
}

/* --------------------------------------------------------------------------
   2. Base & typography
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Theme transition — applied only after first paint (see theme.js) */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color var(--theme-dur) var(--ease-in-out),
    border-color var(--theme-dur) var(--ease-in-out),
    color var(--theme-dur) var(--ease-in-out),
    fill var(--theme-dur) var(--ease-in-out),
    stroke var(--theme-dur) var(--ease-in-out),
    box-shadow var(--theme-dur) var(--ease-in-out) !important;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
}
h2 {
  font-size: var(--text-2xl);
}
h3 {
  font-size: var(--text-xl);
}
h4 {
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--space-4);
}
p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-lg);
  color: var(--text-2);
  max-width: 38em;
}

.muted {
  color: var(--text-2);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur-fast) ease;
}
a:hover {
  color: var(--accent-strong);
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25em;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

strong {
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-3) var(--space-4);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-4);
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--tight {
  padding-block: calc(var(--section-y) * 0.6);
}
.section--elev {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-7);
}
.section-head h2 {
  margin-bottom: var(--space-3);
}
.section-head p {
  color: var(--text-2);
  font-size: var(--text-lg);
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.split {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

/* Diamond-marked list — the brand motif as information structure */
.diamond-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.diamond-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-2);
}
.diamond-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
}
.diamond-list--brass li::before {
  border-color: var(--brass);
}

/* --------------------------------------------------------------------------
   4. Header, navigation, theme toggle
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  white-space: nowrap;
}
.brand__mark {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  color: var(--accent);
}
.brand__name {
  line-height: 1.1;
}
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

.nav {
  display: none; /* shown ≥ 60rem in responsive.css */
  align-items: center;
  gap: var(--space-2);
}
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav__item {
  position: relative;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.nav__link:hover,
.nav__link[aria-expanded="true"] {
  color: var(--text);
  background: var(--surface-2);
}
.nav__link[aria-current="page"],
.nav__link.is-current {
  color: var(--text);
  position: relative;
}
.nav__link[aria-current="page"]::after,
.nav__link.is-current::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.nav__link .chev {
  width: 0.8rem;
  height: 0.8rem;
  transition: transform var(--dur-fast) ease;
}
.nav__link[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  min-width: 17rem;
  padding: 0.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease,
    visibility 0s linear var(--dur-fast);
}
.dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.dropdown a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  font-size: var(--text-sm);
}
.dropdown a:hover,
.dropdown a:focus-visible {
  background: var(--surface-2);
  color: var(--text);
}
.dropdown a svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--accent);
  grid-row: span 2;
}
.dropdown a small {
  color: var(--text-3);
  font-size: var(--text-xs);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.header-actions .nav-cta {
  display: none; /* shown ≥ 60rem in responsive.css */
  margin-inline: var(--space-2);
}

.theme-toggle {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease,
    background-color var(--dur-fast) ease;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.theme-toggle svg {
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) ease;
}
.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}
.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) ease;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: inherit;
}
.menu-toggle span::before {
  top: -6px;
}
.menu-toggle span::after {
  top: 6px;
}
.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}
.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: var(--bg);
  padding: var(--space-5) var(--gutter) var(--space-8);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow);
}
.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--dur-slow) var(--ease-out);
}
.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.mobile-nav__list > li {
  border-bottom: 1px solid var(--border);
}
.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.mobile-nav__link[aria-current="page"],
.mobile-nav__link.is-current {
  color: var(--accent);
}
.mobile-nav__link .chev {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform var(--dur-fast) ease;
}
.mobile-nav__link[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}
.mobile-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 0.75rem 0.25rem;
  display: none;
}
.mobile-nav__sub.is-open {
  display: grid;
}
.mobile-nav__sub a {
  display: block;
  padding: 0.55rem 0;
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--text-md);
}
.mobile-nav__sub a:hover {
  color: var(--text);
}
.mobile-nav__cta {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
}
body.nav-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease,
    border-color var(--dur-fast) ease, transform var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}
.btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--surface);
}
.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn--whatsapp:hover {
  color: #fff;
  filter: brightness(1.08);
}
.btn--sm {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
}
.btn--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}
.text-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur-fast) var(--ease-out);
}
.text-link:hover svg {
  transform: translateX(3px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   6. Page components
   -------------------------------------------------------------------------- */

/* --- Hero (home) --- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 7rem) 0;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__inner {
  position: relative;
  z-index: 2;
}
.hero__licence {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--text-xs);
  margin-bottom: var(--space-5);
}
.hero__licence svg {
  width: 1rem;
  height: 1rem;
  color: var(--brass);
}
.hero h1 {
  max-width: 13ch;
  margin-bottom: var(--space-5);
}
.hero__lead {
  max-width: 34em;
  font-size: var(--text-lg);
  color: var(--text-2);
  margin-bottom: var(--space-6);
}
.hero__services {
  margin-top: var(--space-7);
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  color: var(--text-3);
  font-size: var(--text-sm);
}
.hero__services li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__services li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
}

.hero__creds {
  list-style: none;
  margin: 0;
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
  color: var(--text-2);
}
.hero__creds li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}
.hero__creds li + li {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.hero__creds svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brass);
  margin-top: 0.1rem;
}
.hero__creds strong {
  color: var(--text);
}

.hero__skyline {
  position: relative;
  z-index: 1;
  margin-top: clamp(2rem, 6vw, 4rem);
  width: 100%;
  color: var(--skyline);
}
.hero__skyline svg {
  width: 100%;
  height: auto; /* keep the 1600×260 aspect so the skyline always spans edge to edge */
  display: block;
  opacity: var(--skyline-opacity);
}
.hero__skyline::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero__lattice {
  position: absolute;
  z-index: 0;
  right: -8vw;
  top: -6vw;
  width: clamp(22rem, 48vw, 46rem);
  aspect-ratio: 1;
  color: var(--lattice);
  pointer-events: none;
}
.hero__lattice svg {
  width: 100%;
  height: 100%;
}

/* --- Page hero (inner pages) --- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.page-hero h1 {
  max-width: 16ch;
  margin-bottom: var(--space-4);
}
.page-hero .lead {
  margin: 0;
}
.page-hero__lattice {
  position: absolute;
  right: -6rem;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(18rem, 36vw, 30rem);
  aspect-ratio: 1;
  color: var(--lattice);
  pointer-events: none;
}

/* --- Service index (home) — a ledger of five, not five identical cards --- */
.service-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.service-row {
  border-bottom: 1px solid var(--border);
}
.service-row__summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: 1.4rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
}
.service-row__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}
.service-row__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}
.service-row__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  line-height: 1.15;
  letter-spacing: -0.02em;
  transition: color var(--dur-fast) ease;
}
.service-row__tag {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-3);
  font-size: var(--text-sm);
  letter-spacing: 0;
}
.service-row__summary:hover .service-row__name {
  color: var(--accent);
}
.service-row__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-fast) ease,
    color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.service-row__icon svg {
  width: 1rem;
  height: 1rem;
}
.service-row__summary[aria-expanded="true"] .service-row__icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.service-row__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}
.service-row__panel > div {
  overflow: hidden;
}
.service-row__panel.is-open {
  grid-template-rows: 1fr;
}
.service-row__body {
  display: grid;
  gap: var(--space-5);
  padding: 0 0 2rem;
}
.service-row__body p {
  color: var(--text-2);
  max-width: 36em;
}

/* --- Service detail sections (services page) --- */
.service-detail {
  scroll-margin-top: 2.75rem; /* adds to html scroll-padding-top; clears the sticky sub-nav */
  padding-block: var(--section-y);
  border-top: 1px solid var(--border);
}
.service-detail__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
  margin-bottom: var(--space-6);
}
.service-detail__head h2 {
  margin-bottom: 0.25rem;
}
.service-detail__icon {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.service-detail__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.service-detail__kicker {
  color: var(--text-3);
  font-size: var(--text-sm);
  margin: 0;
}
.service-detail__grid {
  display: grid;
  gap: var(--space-5);
}
.service-detail__grid .lead {
  margin-bottom: var(--space-5);
}
.service-detail__scope {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.service-detail__scope h3 {
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: var(--space-4);
}
.service-detail__scope .diamond-list li {
  color: var(--text);
}

/* Services sub-navigation (sticky under header on services page) */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.subnav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.subnav__list::-webkit-scrollbar {
  display: none;
}
.subnav__list a {
  display: block;
  padding: 0.9rem 0.85rem;
  white-space: nowrap;
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.subnav__list a:hover {
  color: var(--text);
}
.subnav__list a.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* --- About: facts and direction --- */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}
.fact svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--accent);
  margin-top: 0.15rem;
}
.fact p {
  color: var(--text-2);
  margin: 0;
}

.direction {
  display: grid;
  gap: var(--space-5);
}
.direction__card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}
.direction__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.5rem, 3vw, 2.5rem);
  width: 3rem;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}
.direction__card h3 {
  margin-top: var(--space-2);
}
.direction__card p {
  color: var(--text-2);
  font-size: var(--text-lg);
}

/* --- Why choose / strengths --- */
.strengths {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.strength {
  background: var(--bg-elev);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-3);
  align-content: start;
}
.strength svg {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--accent);
}
.strength h3 {
  font-size: var(--text-md);
  margin: 0;
}
.strength p {
  color: var(--text-2);
  font-size: var(--text-sm);
}

/* --- Credentials (real registrations, brass accent reserved for these) --- */
.credentials {
  display: grid;
  gap: var(--space-4);
}
.credential {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brass-soft), transparent 60%) var(--surface);
  box-shadow: var(--card-shadow);
}
.credentials--stack {
  grid-template-columns: 1fr !important;
}
.credentials--stack .credential {
  grid-template-columns: auto 1fr !important;
  align-items: center;
}
.credential__seal {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--brass);
  color: var(--brass);
}
.credential__seal svg {
  width: 1.35rem;
  height: 1.35rem;
}
.credential h3 {
  font-size: var(--text-md);
  margin: 0 0 0.15rem;
}
.credential p {
  color: var(--text-2);
  font-size: var(--text-sm);
  margin: 0;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  gap: var(--space-6);
}
.contact-channels {
  display: grid;
  gap: var(--space-3);
}
.channel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) ease;
}
.channel:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.channel__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.channel__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.channel--whatsapp .channel__icon {
  background: rgba(37, 211, 102, 0.14);
  color: var(--whatsapp);
}
.channel__label {
  display: block;
  color: var(--text-3);
  font-size: var(--text-xs);
}
.channel__value {
  display: block;
  font-weight: 600;
  font-size: var(--text-md);
  word-break: break-word;
}
.channel__arrow {
  width: 1rem;
  height: 1rem;
  color: var(--text-3);
}

.contact-note {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-left: 2px solid var(--brass);
  color: var(--text-2);
  font-size: var(--text-sm);
}

/* --- CTA band --- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
.cta-band h2 {
  margin-bottom: var(--space-2);
}
.cta-band p {
  color: var(--text-2);
  max-width: 36em;
}
.cta-band__lattice {
  position: absolute;
  right: -5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20rem;
  aspect-ratio: 1;
  color: var(--lattice);
  pointer-events: none;
}

/* --- Not found (404) --- */
.not-found__code {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-4);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.not-found__code::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.not-found__links {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-2);
}
.footer-grid {
  display: grid;
  gap: var(--space-6);
}
.footer-brand p {
  max-width: 30em;
  margin-top: var(--space-4);
}
.footer-col h3,
.footer-col h4 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
  color: var(--text);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.footer-col a {
  color: var(--text-2);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--text-3);
  font-size: var(--text-xs);
}

/* --- Floating controls --- */
.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(31, 168, 85, 0.6);
  transition: transform var(--dur-fast) var(--ease-out);
}
.whatsapp-float:hover {
  transform: scale(1.06);
  color: #fff;
}
.whatsapp-float svg {
  width: 1.6rem;
  height: 1.6rem;
}

.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 5.4rem;
  z-index: 80;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-base) ease, transform var(--dur-base) var(--ease-out),
    visibility 0s linear var(--dur-base);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-base) ease, transform var(--dur-base) var(--ease-out);
}
.back-to-top svg {
  width: 1rem;
  height: 1rem;
}

/* --------------------------------------------------------------------------
   7. Forms
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}
.form__row {
  display: grid;
  gap: var(--space-4);
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
}
.field label .optional {
  color: var(--text-3);
  font-weight: 400;
}
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.95rem;
  font: inherit;
  font-size: var(--text-md);
  color: var(--text);
  background-color: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 2px rgba(15, 31, 33, 0.04);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field input:not([type="checkbox"]):hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--field-border-hover);
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6f73' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem;
  padding-right: 2.6rem;
}
.field input:not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
}
.field__error {
  display: none;
  color: var(--danger);
  font-size: var(--text-xs);
}
.field.is-invalid .field__error {
  display: block;
}
.form__consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--text-2);
}
.form__consent input {
  margin: 0.2rem 0 0;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
  flex: none;
}
.form__status {
  display: none;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
.form__status.is-success {
  display: block;
  background: rgba(31, 122, 78, 0.12);
  color: var(--success);
}
.form__status.is-error {
  display: block;
  background: rgba(180, 52, 44, 0.12);
  color: var(--danger);
}
.form__status.is-info {
  display: block;
  background: var(--accent-soft);
  color: var(--text);
}
.form__status a:not(.btn) {
  color: inherit;
}
.form__status p {
  margin: 0;
}
/* Ways to send the prepared message when no form backend answers */
.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}
.form__actions .btn--ghost {
  background: var(--surface);
}
.form__status-note {
  color: var(--text-2);
  font-size: var(--text-xs);
}
.form__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.form .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
/* honeypot — hidden from humans, offered to bots */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   8. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.no-js .js-only {
  display: none !important;
}
.mt-6 {
  margin-top: var(--space-6);
}
.mt-7 {
  margin-top: var(--space-7);
}
