/* -------------------------------------------------------------------- */
/* Great Solutions LLC — modern SaaS styling                             */
/* Palette: deep teal + warm terracotta accents, near-black footer.      */
/* -------------------------------------------------------------------- */
:root {
  --color-bg: #ffffff;
  --color-bg-muted: #f7f5f1;
  --color-bg-subtle: #fbfaf8;
  --color-surface: #ffffff;

  --color-ink: #16181c;
  --color-text-heading: #16181c;
  --color-text-body: #5c6168;
  --color-text-soft: #868b92;

  --color-teal: #1f4a52;
  --color-teal-dark: #143338;
  --color-teal-deep: #0f2a2f;
  --color-teal-mid: #2c6670;
  --color-teal-tint: #e4edee;

  --color-terracotta: #c98a63;
  --color-terracotta-light: #e2b293;
  --color-terracotta-dark: #a96f4c;
  --color-terracotta-tint: #f8ede5;

  --color-border: #ebe7e1;
  --color-border-strong: #ddd7ce;
  --color-danger: #c0362c;
  --color-success-bg: #eaf3ec;
  --color-success-text: #1f5c34;

  --footer-bg: #16181c;
  --footer-text: #a9adb3;
  --footer-heading: #ffffff;
  --footer-border: rgba(255, 255, 255, 0.1);

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(22, 24, 28, 0.05);
  --shadow-sm: 0 1px 3px rgba(22, 24, 28, 0.06), 0 1px 2px rgba(22, 24, 28, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(22, 24, 28, 0.14), 0 2px 6px rgba(22, 24, 28, 0.04);
  --shadow-lg: 0 32px 80px -24px rgba(15, 42, 47, 0.35), 0 8px 24px -8px rgba(15, 42, 47, 0.18);
  --shadow-teal: 0 8px 24px -8px rgba(31, 74, 82, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container-width: 1200px;
  --header-height: 72px;
}

/* -------------------------------------------------------------------- */
/* Reset / base                                                         */
/* -------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-text-heading);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-teal-dark);
}

.prose a {
  text-decoration: underline;
  text-decoration-color: rgba(31, 74, 82, 0.3);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: currentColor;
}

h1,
h2,
h3,
h4 {
  color: var(--color-text-heading);
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 0.6em;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-body);
}

ul,
ol {
  padding-left: 1.2em;
}

button {
  font-family: inherit;
}

::selection {
  background: var(--color-terracotta-tint);
  color: var(--color-teal-dark);
}

:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 104px 0;
  position: relative;
}

@media (max-width: 760px) {
  .section {
    padding: 72px 0;
  }
}

.section--muted {
  background: var(--color-bg-muted);
}

.section--muted + .section--muted {
  padding-top: 0;
}

.section__header {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section__header p {
  margin: 0 auto;
  font-size: 1.075rem;
  max-width: 58ch;
}

.section__header h2:last-child {
  margin-bottom: 0;
}

.prose {
  max-width: 780px;
}

.prose p,
.prose ul,
.prose ol {
  max-width: 68ch;
}

.prose li {
  color: var(--color-text-body);
  margin-bottom: 0.5em;
}

.prose h2 {
  margin-top: 2em;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
}

.prose > h2:first-child {
  margin-top: 0;
}

.eyebrow {
  color: var(--color-text-body);
  font-size: 0.9rem;
  margin-bottom: 1.25em;
}

.eyebrow a {
  color: var(--color-text-body);
}

.eyebrow a:hover {
  color: var(--color-teal);
}

/* Pill-shaped section label */
.eyebrow--standalone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-terracotta-tint);
  color: var(--color-terracotta-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow--standalone::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.text-gradient {
  background: linear-gradient(100deg, var(--color-terracotta-light), var(--color-terracotta) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------------------------------------------------------------------- */
/* Buttons                                                               */
/* -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.8em 1.4em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--lg {
  padding: 1em 1.75em;
  font-size: 1rem;
}

.btn--primary {
  background: linear-gradient(180deg, var(--color-teal-mid) -40%, var(--color-teal) 60%);
  color: #fff !important;
  box-shadow: var(--shadow-teal), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn--primary:hover {
  background: linear-gradient(180deg, var(--color-teal) -40%, var(--color-teal-dark) 60%);
  box-shadow: 0 12px 28px -8px rgba(31, 74, 82, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Warm accent button used on dark backgrounds */
.cta-section .btn--primary,
.hero .btn--primary {
  background: linear-gradient(180deg, var(--color-terracotta-light) -40%, var(--color-terracotta) 60%);
  color: var(--color-ink) !important;
  box-shadow: 0 10px 30px -10px rgba(201, 138, 99, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cta-section .btn--primary:hover,
.hero .btn--primary:hover {
  background: linear-gradient(180deg, var(--color-terracotta) -40%, var(--color-terracotta-dark) 80%);
  color: #fff !important;
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text-heading);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
  background: var(--color-bg-subtle);
  border-color: var(--color-text-soft);
  color: var(--color-text-heading);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-heading);
  border-color: transparent;
}

.btn--ghost:hover {
  background: var(--color-bg-muted);
  color: var(--color-text-heading);
}

/* Glassy outline button for the dark hero */
.btn--outline-invert {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.btn--outline-invert:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn__arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* -------------------------------------------------------------------- */
/* Header                                                                */
/* -------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(235, 231, 225, 0.8);
  transition: box-shadow 0.2s ease;
}

/* The blur lives on a pseudo-element: backdrop-filter on the header itself
   would trap the fixed-position mobile menu inside the header box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: background-color 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px -12px rgba(22, 24, 28, 0.15);
}

.site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.92);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 24px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo {
  display: block;
  height: 50px;
  width: auto;
}

@media (max-width: 480px) {
  .site-header__logo {
    height: 50px;
  }
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
}

.site-header__toggle-bar {
  width: 18px;
  height: 2px;
  background: var(--color-text-heading);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s ease;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--color-text-body);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav ul a:hover {
  color: var(--color-text-heading);
  background: var(--color-bg-muted);
}

.site-nav ul a.is-active {
  color: var(--color-teal);
  background: var(--color-teal-tint);
  font-weight: 600;
}

.site-nav__cta {
  white-space: nowrap;
  padding: 0.7em 1.25em;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .site-header__toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 32px;
    transform: translateY(-110%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
  }

  .site-nav--open {
    transform: translateY(0);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .site-nav ul a {
    display: block;
    padding: 14px 16px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }

  .site-nav__cta {
    margin-top: 12px;
    width: 100%;
    padding: 1em;
  }
}

/* -------------------------------------------------------------------- */
/* Background decoration helpers                                         */
/* -------------------------------------------------------------------- */
.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 100%);
}

/* -------------------------------------------------------------------- */
/* Hero — deep teal, glow + grid, product mockup                         */
/* -------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 112px;
  background: radial-gradient(60% 70% at 85% 0%, rgba(201, 138, 99, 0.28), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(44, 102, 112, 0.55), transparent 70%),
    linear-gradient(160deg, var(--color-teal) 0%, var(--color-teal-dark) 55%, var(--color-teal-deep) 100%);
  isolation: isolate;
}

.hero::after {
  /* soft fade into the next section */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 178, 147, 0.5), transparent);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  margin-bottom: 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.hero__badge-tag {
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-terracotta);
  color: var(--color-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__headline {
  color: #fff;
  margin-bottom: 0.45em;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.04;
}

.hero__headline-light {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
}

.hero__headline-bold {
  font-weight: 800;
}

.hero__subcopy {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 44px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__services li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero__services li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(201, 138, 99, 0.2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e2b293' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.hero__content > * {
  animation: fade-up 0.8s var(--ease) both;
}

.hero__content > *:nth-child(2) { animation-delay: 0.06s; }
.hero__content > *:nth-child(3) { animation-delay: 0.12s; }
.hero__content > *:nth-child(4) { animation-delay: 0.18s; }
.hero__content > *:nth-child(5) { animation-delay: 0.24s; }

.hero__visual {
  animation: fade-up 1s 0.2s var(--ease) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .hero {
    padding: 72px 0 80px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* -------------------------------------------------------------------- */
/* App mockup (illustrative, aria-hidden)                                */
/* -------------------------------------------------------------------- */
.app-mock {
  position: relative;
  max-width: 540px;
  margin-left: auto;
  width: 100%;
}

.app-mock__window {
  position: relative;
  background: var(--color-surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.app-mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
}

.app-mock__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border-strong);
}

.app-mock__url {
  margin-left: 12px;
  flex: 1;
  height: 22px;
  border-radius: 6px;
  background: var(--color-bg-muted);
  font-size: 0.7rem;
  color: var(--color-text-soft);
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.app-mock__body {
  padding: 20px;
}

.app-mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-mock__title {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-heading);
}

.app-mock__pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-teal-tint);
  color: var(--color-teal);
}

.app-mock__board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.app-mock__col {
  background: var(--color-bg-muted);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 170px;
}

.app-mock__col-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 2px 4px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-soft);
}

.app-mock__col-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot, var(--color-text-soft));
}

.app-mock__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 9px 10px;
  box-shadow: var(--shadow-xs);
}

.app-mock__card--active {
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(201, 138, 99, 0.16);
}

.app-mock__card-name {
  margin: 0 0 6px;
  height: 7px;
  width: 75%;
  border-radius: 4px;
  background: var(--color-border-strong);
}

.app-mock__card-src {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--color-text-body);
  line-height: 1.3;
}

.app-mock__card--ghost {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  height: 44px;
}

.app-mock__toast {
  position: absolute;
  left: -28px;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border-radius: 14px;
  padding: 12px 16px 12px 12px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.app-mock__toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-teal);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.app-mock__toast-icon svg {
  width: 18px;
  height: 18px;
}

.app-mock__toast p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--color-text-body);
}

.app-mock__toast strong {
  display: block;
  color: var(--color-text-heading);
  font-size: 0.85rem;
}

.app-mock__notify {
  position: absolute;
  right: -20px;
  top: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-ink);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: float 7s 1s ease-in-out infinite;
}

.app-mock__notify-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-terracotta);
  box-shadow: 0 0 0 4px rgba(201, 138, 99, 0.25);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 960px) {
  .app-mock {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .app-mock__toast {
    left: 8px;
  }

  .app-mock__notify {
    right: 8px;
    top: -18px;
  }
}

/* -------------------------------------------------------------------- */
/* Service cards / grids                                                 */
/* -------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Bento layout for the 5-card grid: two wide cards on top, three below */
.service-grid--bento {
  grid-template-columns: repeat(6, 1fr);
}

.service-grid--bento .service-card {
  grid-column: span 2;
}

.service-grid--bento .service-card:nth-child(-n + 2) {
  grid-column: span 3;
}

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

  .service-grid--bento .service-card,
  .service-grid--bento .service-card:nth-child(-n + 2) {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .service-grid--bento {
    grid-template-columns: 1fr;
  }
}

.service-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s ease;
}

.service-card::before {
  /* soft glow that appears on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at 100% 0%, rgba(201, 138, 99, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.service-card:hover::before {
  opacity: 1;
}

.section--muted .service-card {
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(145deg, var(--color-teal-mid), var(--color-teal-dark));
  color: #fff;
  box-shadow: var(--shadow-teal), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  margin-bottom: 0.35em;
}

.service-card p {
  margin-bottom: 1.25em;
}

.service-card__link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-teal);
}

/* Make the whole card clickable */
.service-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.service-card__link span {
  transition: transform 0.2s var(--ease);
}

.service-card:hover .service-card__link span {
  transform: translateX(4px);
}

/* Feature cards on service detail pages */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s ease;
}

.feature-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.feature-card::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin-bottom: 18px;
  background: var(--color-terracotta-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a96f4c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

.feature-card p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------- */
/* Workflow — horizontal timeline on desktop                             */
/* -------------------------------------------------------------------- */
.workflow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.workflow::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-border-strong) 0 8px,
    transparent 8px 16px
  );
  z-index: 0;
}

.workflow li {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.workflow li p:last-child {
  margin-bottom: 0;
}

.workflow__step {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-teal-mid), var(--color-teal-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 0 0 6px var(--color-surface), 0 0 0 7px var(--color-border), var(--shadow-teal);
}

.workflow li:last-child .workflow__step {
  background: linear-gradient(145deg, var(--color-terracotta-light), var(--color-terracotta-dark));
}

.workflow__note {
  margin: 32px auto 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-soft);
  max-width: 60ch;
}

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

  .workflow::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .workflow {
    grid-template-columns: 1fr;
  }

  .workflow li {
    text-align: left;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
  }

  .workflow__step {
    margin: 0;
  }
}

/* -------------------------------------------------------------------- */
/* Process — numbered cards                                              */
/* -------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: process;
}

.process-step {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  border: 1px solid var(--color-border);
  counter-increment: process;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s ease;
}

.process-step:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.process-step::before {
  content: counter(process, decimal-leading-zero);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-terracotta-dark);
  margin-bottom: 20px;
}

.process-step::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 58px;
  height: 1px;
  background: var(--color-border);
}

.process-step p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------- */
/* CTA panel / generic page hero                                         */
/* -------------------------------------------------------------------- */
.cta-section {
  padding: 32px 0 104px;
  background: transparent;
}

.section--muted + .cta-section {
  background: linear-gradient(var(--color-bg-muted) 50%, var(--color-bg) 50%);
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 0.3em;
}

.cta-section__inner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 80px 32px;
  border-radius: var(--radius-xl);
  background: radial-gradient(50% 80% at 50% 0%, rgba(201, 138, 99, 0.3), transparent 70%),
    linear-gradient(160deg, var(--color-teal) 0%, var(--color-teal-dark) 60%, var(--color-teal-deep) 100%);
  box-shadow: var(--shadow-lg);
}

.cta-section__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000, transparent);
}

.cta-section__inner p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.075rem;
  max-width: 52ch;
}

.cta-section__inner .btn {
  margin-top: 12px;
}

@media (max-width: 600px) {
  .cta-section {
    padding: 16px 0 72px;
  }

  .cta-section__inner {
    padding: 56px 24px;
    border-radius: var(--radius-lg);
    margin: 0 -8px;
  }
}

/* Light hero used on inner pages */
.page-hero,
.service-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 96px 0 72px;
  background: radial-gradient(50% 80% at 50% 0%, rgba(201, 138, 99, 0.14), transparent 70%),
    radial-gradient(40% 60% at 0% 20%, rgba(31, 74, 82, 0.08), transparent 70%),
    var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.page-hero::before,
.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(31, 74, 82, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 74, 82, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 20%, transparent 80%);
}

.page-hero h1,
.service-hero h1 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.page-hero p,
.service-hero__intro {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.125rem;
}

.page-hero .btn,
.service-hero .btn {
  margin-top: 16px;
}

.service-hero .eyebrow {
  display: inline-flex;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}

.page-hero--legal {
  padding: 72px 0 56px;
  text-align: left;
}

.page-hero--legal h1 {
  margin: 0 auto;
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-hero--legal .container {
  max-width: 828px;
}

.page-hero--legal + .section .prose {
  margin: 0 auto;
}

.page-hero--legal + .section {
  padding-top: 64px;
}

@media (max-width: 760px) {
  .page-hero,
  .service-hero {
    padding: 64px 0 48px;
  }
}

/* -------------------------------------------------------------------- */
/* Contact page / form                                                   */
/* -------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 32px;
  align-items: flex-start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-grid__aside {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  background: radial-gradient(80% 60% at 100% 0%, rgba(201, 138, 99, 0.3), transparent 70%),
    linear-gradient(160deg, var(--color-teal), var(--color-teal-deep));
  color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-md);
}

.contact-grid__aside h2 {
  color: #fff;
  font-size: 1.5rem;
}

.contact-grid__aside p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-grid__aside p + h2 {
  margin-top: 1.4em;
}

.contact-grid__aside a {
  color: var(--color-terracotta-light);
  font-weight: 600;
}

.contact-grid__aside a:hover {
  color: #fff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 560px) {
  .contact-form {
    padding: 24px;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.form-field label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-heading);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8em 1em;
  border-radius: 12px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-subtle);
  color: var(--color-text-heading);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--color-text-soft);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 74, 82, 0.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field__error {
  color: var(--color-danger);
  font-size: 0.85rem;
  margin: 0;
}

.form-field__error:empty {
  display: none;
}

.form-field--honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form .btn {
  align-self: flex-start;
}

.form-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.form-success[hidden],
.contact-form[hidden] {
  display: none;
}

/* -------------------------------------------------------------------- */
/* Legal / owner notes                                                   */
/* -------------------------------------------------------------------- */
.owner-note {
  background: #fdf5ee;
  border: 1px solid #f0d6bd;
  border-left: 4px solid var(--color-terracotta);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
}

.owner-note__label {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-terracotta-dark);
}

.owner-note p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------- */
/* Scroll reveal (applied by JS only to below-the-fold elements)         */
/* -------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* -------------------------------------------------------------------- */
/* Cookie banner                                                         */
/* -------------------------------------------------------------------- */
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(22, 24, 28, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}

.cookie-overlay[hidden] {
  display: none;
}

.cookie-banner {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  width: 100%;
  padding: 28px;
  animation: fade-up 0.4s var(--ease) both;
}

.cookie-banner:focus {
  outline: none;
}

.cookie-banner__text h2 {
  margin-bottom: 0.4em;
  font-size: 1.2rem;
}

.cookie-banner__text p {
  font-size: 0.92rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.cookie-banner__actions .btn {
  padding: 0.7em 1.2em;
  font-size: 0.88rem;
}

.cookie-prefs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cookie-prefs[hidden],
.cookie-simple[hidden] {
  display: none;
}

.cookie-prefs li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
}

.cookie-prefs input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-prefs__title {
  margin: 0 0 2px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text-heading);
}

.cookie-prefs__desc {
  margin: 0;
  font-size: 0.82rem;
}

/* -------------------------------------------------------------------- */
/* Footer — near-black, uppercase labels                                 */
/* -------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 80px 0 0;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 138, 99, 0.5), transparent);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

@media (max-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__col--brand {
    grid-column: 1 / -1;
  }
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__col a {
  color: var(--footer-text);
  display: inline-block;
  padding: 6px 0;
  font-size: 0.93rem;
}

.site-footer__col a:hover {
  color: #fff;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
}

.site-footer__logo {
  display: block;
  height: 40px;
  width: auto;
}

.site-footer__tagline {
  font-size: 0.95rem;
  max-width: 32ch;
  color: var(--footer-text);
}

.site-footer__email {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 16px !important;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--footer-border);
  color: var(--color-terracotta-light) !important;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer__email:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.site-footer__heading {
  color: var(--footer-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 14px;
}

.site-footer__bottom {
  border-top: 1px solid var(--footer-border);
  padding-top: 24px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.site-footer__legal {
  margin: 0;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.site-footer__legal a {
  color: var(--footer-text);
  padding: 2px 0;
}

.site-footer__legal a:hover {
  color: #fff;
}

.site-footer__legal span {
  color: rgba(255, 255, 255, 0.2);
}

.site-footer__copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin: 0;
}

.site-footer__link-button {
  background: none;
  border: none;
  padding: 2px 0;
  color: var(--footer-text);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.site-footer__link-button:hover {
  color: #fff;
}
