/* Aurora Sandstorm — developerapiportal */

:root {
  --sand-50: #f7efe3;
  --sand-100: #ead9c0;
  --sand-200: #d4c4a8;
  --sand-400: #c4a882;
  --sand-700: #7a6248;
  --sand-900: #3d3228;
  --aurora: #3d9b7a;
  --aurora-bright: #5ebf9a;
  --aurora-deep: #246b52;
  --violet: #7b6b9b;
  --violet-soft: #9b8bb8;
  --violet-deep: #4a3d66;
  --gold: #e8d48a;
  --gold-soft: #f0e6b8;
  --ink: #2a241c;
  --muted: #5c5146;
  --surface: rgba(247, 239, 227, 0.72);
  --surface-strong: rgba(234, 217, 192, 0.9);
  --line: rgba(122, 98, 72, 0.22);
  --radius: 2px;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Outfit", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(61, 155, 122, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(123, 107, 155, 0.28), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(232, 212, 138, 0.2), transparent 55%),
    linear-gradient(165deg, #e8d5b7 0%, #f3e8d6 35%, #dcc9ae 70%, #e6d4b8 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--aurora-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--violet-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--sand-900);
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h3 {
  font-size: 1.45rem;
  letter-spacing: 0.05em;
}

p {
  margin: 0 0 1em;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(247, 239, 227, 0.92), rgba(247, 239, 227, 0.7));
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sand-900);
  font-weight: 500;
}

.brand:hover {
  color: var(--aurora-deep);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--aurora-deep);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--aurora);
  color: var(--aurora-deep) !important;
  background: rgba(61, 155, 122, 0.08);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--sand-900);
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--sand-50);
    border-bottom: 1px solid var(--line);
    gap: 0.85rem;
  }
  .site-nav.is-open { display: flex; }
}

/* Buttons — illuminated dust waves */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0.85rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.35s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background:
    radial-gradient(circle at 20% 50%, rgba(232, 212, 138, 0.45), transparent 40%),
    radial-gradient(circle at 70% 40%, rgba(94, 191, 154, 0.35), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(155, 139, 184, 0.3), transparent 40%);
  opacity: 0;
  transform: translateX(-30%) skewX(-12deg);
  transition: opacity 0.4s ease, transform 0.7s ease;
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
  transform: translateX(20%) skewX(-12deg);
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--aurora-deep), var(--aurora) 50%, var(--violet));
  color: #f7efe3;
  box-shadow: 0 8px 28px rgba(61, 155, 122, 0.25);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 10px 36px rgba(123, 107, 155, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--sand-900);
  border: 1px solid var(--sand-700);
}

.btn-ghost:hover {
  color: var(--aurora-deep);
  border-color: var(--aurora);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Hero — full-bleed atmospheric plane */

.hero-bleed {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-bottom: 0;
}

.hero-bleed__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bleed__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-bleed__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(61, 50, 40, 0.15) 0%, rgba(61, 50, 40, 0.55) 55%, rgba(45, 38, 30, 0.82) 100%),
    radial-gradient(ellipse 50% 40% at 70% 20%, rgba(61, 155, 122, 0.35), transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 60%, rgba(123, 107, 155, 0.3), transparent 55%);
  animation: veil-drift 18s ease-in-out infinite alternate;
}

@keyframes veil-drift {
  from { opacity: 0.92; }
  to { opacity: 1; filter: hue-rotate(8deg); }
}

.hero-bleed__content {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  color: var(--sand-50);
  max-width: 36rem;
}

.hero-bleed__content h1 {
  color: var(--sand-50);
  margin-bottom: 0.35em;
  animation: rise-in 1s ease both;
}

.hero-bleed .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
  animation: rise-in 0.8s ease both;
}

.hero-bleed__content p {
  color: rgba(247, 239, 227, 0.88);
  font-weight: 300;
  font-size: 1.1rem;
  max-width: 28rem;
  animation: rise-in 1.15s ease both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-bleed .btn-primary {
  animation: rise-in 1.3s ease both;
}

/* Page hero (inner) */

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.page-hero p.lede {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 300;
}

.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--violet);
  margin-bottom: 0.75rem;
}

/* Sections */

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-head p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

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

.mineral-panel {
  background:
    linear-gradient(145deg, rgba(247, 239, 227, 0.55), rgba(234, 217, 192, 0.35)),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 6px,
      rgba(196, 168, 130, 0.06) 6px,
      rgba(196, 168, 130, 0.06) 7px
    );
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.mineral-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: sepia(0.12) saturate(0.9);
}

/* Service listings — not cards by default; interaction containers ok */

.offer-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.offer-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease, padding-left 0.3s ease;
}

.offer-row:hover {
  background: rgba(61, 155, 122, 0.06);
  padding-left: 0.5rem;
}

.offer-row h3 {
  margin: 0 0 0.35em;
  color: var(--sand-900);
}

.offer-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.offer-meta {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aurora-deep);
  font-size: 0.95rem;
}

.offer-arrow {
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  color: var(--violet);
  text-transform: uppercase;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .offer-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.service-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
  transition: opacity 0.25s ease;
}

.service-tile:hover {
  opacity: 0.88;
}

.service-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: sepia(0.1) saturate(0.95);
}

.service-tile .price {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aurora-deep);
  margin-top: 0.5rem;
}

/* Evidence / quotes */

.quote-band {
  background:
    linear-gradient(105deg, rgba(61, 155, 122, 0.12), rgba(123, 107, 155, 0.14) 50%, rgba(232, 212, 138, 0.18));
  border-block: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: 0.04em;
  line-height: 1.35;
  font-weight: 400;
  max-width: 40rem;
  color: var(--sand-900);
}

.quote-band cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Blog */

.journal-list {
  display: grid;
  gap: 2.5rem;
}

.journal-item {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.journal-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.journal-item time {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--violet);
}

@media (max-width: 640px) {
  .journal-item { grid-template-columns: 1fr; }
}

.prose {
  max-width: 40rem;
}

.prose img.cover {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 1.5rem 0 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.feature-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  padding-left: 1.25rem;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aurora), var(--gold));
}

/* Forms */

.form-panel {
  max-width: 36rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--sand-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(247, 239, 227, 0.65);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--aurora);
  outline-offset: 1px;
}

.form-group .error-msg {
  display: none;
  color: #8b3a3a;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.form-group.has-error .error-msg {
  display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #8b3a3a;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(61, 155, 122, 0.15);
  border: 1px solid var(--aurora);
  color: var(--aurora-deep);
}

.form-status.is-error {
  display: block;
  background: rgba(139, 58, 58, 0.1);
  border: 1px solid #8b3a3a;
  color: #8b3a3a;
}

.check-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.check-row input {
  width: auto;
  margin-top: 0.3rem;
}

/* Methodology timeline */

.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  color: var(--aurora);
  line-height: 1;
}

/* Legal */

.legal-doc {
  max-width: 42rem;
  padding-bottom: 3rem;
}

.legal-doc h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal-doc ul {
  padding-left: 1.2rem;
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background:
    linear-gradient(100deg, rgba(234, 217, 192, 0.97), rgba(247, 239, 227, 0.97));
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  box-shadow: 0 -8px 40px rgba(61, 50, 40, 0.12);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
}

.cookie-error {
  color: #8b3a3a;
  text-align: center;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

/* 404 */

.error-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  letter-spacing: 0.12em;
  background: linear-gradient(120deg, var(--aurora), var(--violet), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
  animation: veil-drift 10s ease-in-out infinite alternate;
}

/* Footer */

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: rgba(61, 50, 40, 0.06);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.75rem;
}

.footer-name {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.footer-tag {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.footer-label {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--violet);
  margin: 0 0 0.75rem;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--aurora-deep);
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

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

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

/* Dust particle ambient motion on key panels */

@keyframes dust-float {
  0% { background-position: 0% 40%, 100% 60%; }
  100% { background-position: 20% 55%, 80% 40%; }
}

.ambient {
  background-image:
    radial-gradient(circle at 15% 40%, rgba(232, 212, 138, 0.25), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(94, 191, 154, 0.2), transparent 28%);
  background-size: 140% 140%;
  animation: dust-float 22s ease-in-out infinite alternate;
}
