/* =====================================================================
   Saliya Astrology Studio — stylesheet
   "The Instrument": a near-black graphite field, one muted brass ink,
   hairline rules instead of glow — the visual language of a chart wheel
   or an astronomer's ledger, not a mystical SaaS landing page.
   ===================================================================== */

:root {
  /* Near-black graphite, not a tinted-purple "void" — a drafting table at
     night, not a glowing app background. */
  --void: #0b0a0e;
  --void-deep: #060506;
  --panel: #131217;
  --panel-alt: #1a1820;
  --glass: #17151b;
  --glass-border: rgba(184, 147, 90, 0.22);
  --hair: rgba(184, 147, 90, 0.14);
  --hair-strong: rgba(184, 147, 90, 0.4);

  /* Warm parchment ink, not lavender-white. */
  --ink: #f1ece2;
  --ink-soft: #d8d2c6;
  --muted: #b7b0a3;
  --muted-2: #948d81;
  --muted-3: #726c62;

  /* One accent: muted brass, not a gold/violet gradient pair. */
  --gold: #b8935a;
  --gold-strong: #cba874;
  --gold-deep: #8f6f3e;

  --radius-sm: 0.3rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.65rem;
  --radius-xl: 0.85rem;
  --radius-full: 999px;
}

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

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  color: var(--muted);
  background: var(--void);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  transition: opacity 0.12s ease;
}

body {
  position: relative;
  background-color: var(--void);
}

body::before {
  /* A quiet, fixed field behind everything: faint star grain plus one
     restrained vignette — no colored glow washing across the page. */
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    radial-gradient(90rem 55rem at 50% -15%, rgba(184, 147, 90, 0.1), transparent 60%),
    url('images/stars-texture.svg');
  background-repeat: no-repeat, repeat;
  background-size: auto, 220px 220px;
}

/* Hide page until translations are applied to prevent FOUC flicker */
body.lang-loading {
  opacity: 0;
}

/* Display type: an editorial serif with real weight, used with restraint —
   headings only. Body copy, nav and buttons stay on Inter. */
h1,
h2,
h3,
h4 {
  font-family: 'Newsreader', 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* A monospace "instrument readout" face for anything numeric or label-like:
   prices, dates, badges, footer labels — reinforcing precision over mood. */
.badge,
.service-card-price,
.order-price,
.contact-card-label,
.currency-switcher-label,
.currency-btn,
.lang-btn,
.section-eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
}


.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.hidden {
  display: none;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-0 {
  top: 0;
}

.right-0 {
  right: 0;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.h-20 {
  height: 5rem;
}

.h-32 {
  height: 8rem;
}

.h-8 {
  height: 2rem;
}

.w-10 {
  width: 2.5rem;
}

.w-20 {
  width: 5rem;
}

.z-50 {
  z-index: 50;
}

.z-10 {
  z-index: 10;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-hidden {
  overflow-x: hidden;
}


.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mb-20 {
  margin-bottom: 5rem;
}

.mb-32 {
  margin-bottom: 8rem;
}

.mr-4 {
  margin-right: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.ml-8 {
  margin-left: 2rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-16 {
  margin-top: 4rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.py-32 {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.pt-16 {
  padding-top: 4rem;
}

.pt-20 {
  padding-top: 5rem;
}


.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
}

.text-6xl {
  font-size: 3.75rem;
}

.text-7xl {
  font-size: 4.5rem;
}

.font-light {
  font-weight: 300;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.uppercase {
  text-transform: uppercase;
}

.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.625;
}


.text-white {
  color: #ffffff;
}

.text-black {
  color: var(--ink);
}

.text-gray-300 {
  color: var(--ink-soft);
}

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

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

.text-gray-700 {
  color: var(--ink-soft);
}

.bg-white {
  background-color: var(--void);
}

.bg-black {
  background-color: var(--void-deep);
}

.bg-gray-50 {
  background-color: var(--panel);
}

.bg-gray-100 {
  background-color: var(--glass);
}

.bg-gray-800 {
  background-color: var(--panel-alt);
}

.bg-green-600 {
  background-color: var(--gold);
}

.text-green-600 {
  color: var(--gold) !important;
}

.bg-green-700 {
  background-color: var(--gold-deep);
}

.border-black {
  border-color: var(--hair-strong);
}

.border-gray-200 {
  border-color: var(--hair);
}

.border-gray-300 {
  border-color: var(--glass-border);
}

.border-gray-800 {
  border-color: rgba(255, 255, 255, 0.08);
}

.border-green-600 {
  border-color: var(--hair);
}

.border-green-700 {
  border-color: var(--gold);
}

.border-gold {
  border-color: var(--gold);
}

.border-transparent {
  border-color: transparent;
}

.border-2 {
  border-width: 2px;
}

.border-l-2 {
  border-left-width: 2px;
}

.border-b-2 {
  border-bottom-width: 2px;
}

.border-t {
  border-top-width: 1px;
}


.text-gold {
  color: var(--gold);
}

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

.text-accent {
  color: var(--gold);
}

.bg-accent {
  background-color: var(--gold);
}


.grid {
  display: grid;
}

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

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

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

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

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.gap-16 {
  gap: 4rem;
}

.gap-32 {
  gap: 8rem;
}

.space-x-2>*+* {
  margin-left: 0.5rem;
}

.space-x-12>*+* {
  margin-left: 3rem;
}

.space-y-3>*+* {
  margin-top: 0.75rem;
}

.space-y-4>*+* {
  margin-top: 1rem;
}

.space-y-6>*+* {
  margin-top: 1.5rem;
}

.space-y-8>*+* {
  margin-top: 2rem;
}


/* Rounded shapes — moving away from hard squares */
.rounded-none {
  border-radius: 0;
}

.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-md);
}

.rounded-xl {
  border-radius: var(--radius-lg);
}

.rounded-2xl {
  border-radius: var(--radius-xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}


/* =====================================================================
   Navigation
   ===================================================================== */

nav {
  background-color: rgba(11, 10, 14, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.logo-placeholder {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hair-strong);
}

/* Nav wordmark + "Astrology Studio" tagline lockup, both one gold color. */
.logo-text--brand {
  line-height: 1.05;
  gap: 0.2rem;
}

.logo-text--brand .logo-name {
  display: block;
  font-size: 1.5rem;
}

.logo-text--brand .logo-tagline {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-link {
  color: var(--ink-soft);
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.text-green-600 {
  color: var(--gold) !important;
}

.lang-btn {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--muted-2);
}

.lang-btn:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

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

.lang-btn-active {
  background: var(--gold);
  color: var(--void-deep);
}

.lang-btn-active:hover {
  color: #1c1206;
}


/* =====================================================================
   Mobile menu
   ===================================================================== */

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 60;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  border-radius: var(--radius-full);
  background-color: var(--ink);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(6, 5, 6, 0.98);
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(15px);
  background-image: url('images/stars-texture.svg');
  background-repeat: repeat;
  background-size: 220px 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 700;
  text-decoration: none;
  margin: 1rem 0;
  padding: 1rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transform: translateY(30px);
  opacity: 0;
}

.mobile-menu.active a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu a:nth-child(2) {
  transition-delay: 0.2s;
}

.mobile-menu a:nth-child(3) {
  transition-delay: 0.3s;
}

.mobile-menu a:hover {
  color: var(--gold);
  transform: scale(1.08);
  letter-spacing: 0.2em;
}

.mobile-menu a.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

.mobile-menu .language-switcher {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.5s;
}

.mobile-menu.active .language-switcher {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu .language-switcher button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hair-strong);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu .language-switcher button:hover {
  border-color: var(--gold);
  color: var(--gold);
}


/* =====================================================================
   Buttons
   ===================================================================== */

.btn-primary,
.btn-secondary,
.btn-accent {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0.85rem 1.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  position: relative;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--ink);
  color: var(--void-deep);
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  background-color: var(--gold-strong);
  border-color: var(--gold-strong);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-accent {
  background: var(--gold);
  color: var(--void-deep);
  border: 1px solid var(--gold);
}

.btn-accent:hover {
  background: var(--gold-strong);
  border-color: var(--gold-strong);
}

@media (min-width: 768px) {
  .btn-primary,
  .btn-secondary,
  .btn-accent {
    width: auto;
    margin-bottom: 0;
  }
}


/* =====================================================================
   Section headings
   ===================================================================== */

.section-eyebrow {
  display: inline-block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Newsreader', 'Cormorant Garamond', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  width: 44px;
  height: 1px;
  background: var(--gold);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 3rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


/* =====================================================================
   Cards
   ===================================================================== */

.card,
.feature-card,
.service-card,
.value-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: border-color 0.25s ease, background-color 0.25s ease;
  position: relative;
}

/* A corner registration mark instead of a gradient bar sweep — the kind of
   mark that shows where a printed chart or plate was aligned. Quiet until
   hover, then it simply appears; no motion, no glow. */
.card::before,
.feature-card::before,
.service-card::before,
.value-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover,
.feature-card:hover,
.service-card:hover,
.value-card:hover {
  border-color: var(--hair-strong);
  background: var(--panel-alt);
}

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

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--hair-strong);
}

/* A few icons (target, house, rings) are drawn as inline SVG rather than
   Unicode dingbats — those particular glyphs sit inconsistently within
   their own font metrics across platforms, so no font-fallback-based
   centering is reliable. SVG centers by construction on every browser. */
.card-icon svg,
.contact-card-icon svg {
  width: 1.05em;
  height: 1.05em;
  stroke: currentColor;
  fill: none;
  overflow: visible;
  display: block;
}

/* Service cards are <button> elements (they open the order flow), so undo
   default button chrome and let the existing .service-card look carry over. */
button.service-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.service-card-cta {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.order-trigger:disabled {
  opacity: 0.6;
  cursor: wait;
}

.order-trigger-error {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200, 90, 80, 0.4);
  background: rgba(200, 90, 80, 0.08);
  color: #e7a99e;
  font-size: 0.9rem;
  max-width: 42rem;
}


/* =====================================================================
   Order form (/order)
   ===================================================================== */

.order-back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted-2);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.order-back-link:hover {
  color: var(--gold);
}

.order-card {
  margin-top: 1rem;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.order-card--done {
  opacity: 0.7;
}

.order-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.order-field>label:first-child {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.order-field input[type="date"],
.order-field input[type="time"],
.order-field input[type="text"],
.order-field input[type="email"],
.order-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.order-field input:focus,
.order-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.order-field input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.order-field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.order-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.order-checkbox-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--gold);
  cursor: pointer;
}

.order-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.order-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.order-radio:has(input:checked) {
  border-color: var(--gold);
  color: var(--ink);
}

.order-radio input[type="radio"] {
  accent-color: var(--gold);
  cursor: pointer;
}

.order-turnstile-note {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-2);
  font-size: 0.85rem;
}

.order-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.order-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.order-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
}

.order-status--error {
  border: 1px solid rgba(220, 90, 90, 0.4);
  background: rgba(220, 90, 90, 0.1);
  color: #ffb4b4;
}

.order-status--success {
  border: 1px solid rgba(120, 200, 150, 0.4);
  background: rgba(120, 200, 150, 0.1);
  color: #a8e6bd;
}


/* =====================================================================
   Hero
   ===================================================================== */

.hero-banner {
  background: linear-gradient(180deg, var(--void-deep) 0%, var(--panel) 100%);
  border-bottom: 1px solid var(--hair);
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/stars-texture.svg');
  background-size: 220px 220px;
  background-repeat: repeat;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

/* The degree ring, positioned like a diagram pinned beside the copy rather
   than a glowing watermark behind it. Rotation is slow enough to read as
   the sky turning, not as an animated accent. */
.hero-banner .hero-zodiac {
  position: absolute;
  top: 50%;
  right: -8%;
  width: min(52vw, 640px);
  height: min(52vw, 640px);
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  animation: spin-slow 400s linear infinite;
}

.hero-banner>* {
  position: relative;
  z-index: 2;
}

@keyframes spin-slow {
  from {
    transform: translateY(-50%) rotate(0deg);
  }

  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner .hero-zodiac {
    animation: none;
  }
}


/* =====================================================================
   Footer
   ===================================================================== */

.footer {
  background-color: var(--void-deep);
  color: var(--ink);
  padding: 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--hair);
  background-image: url('images/stars-texture.svg');
  background-repeat: repeat;
  background-size: 220px 220px;
}

.footer .container {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer .border-t {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.footer-spacer {
  display: none;
}

.footer-link {
  color: var(--muted);
  transition: color 0.25s ease;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--gold);
}

@media (min-width: 768px) {
  .footer-spacer {
    display: block;
    flex-grow: 1;
    min-width: 60px;
  }
}


/* =====================================================================
   Contact page
   ===================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.contact-card:hover {
  border-color: var(--hair-strong);
  background: var(--panel-alt);
}

.contact-card-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--gold);
  border: 1px solid var(--hair-strong);
}

.contact-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.35rem;
}

.contact-card-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.contact-card-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-card-value a:hover {
  color: var(--gold);
}

.contact-note {
  font-size: 0.85rem;
  color: var(--muted-3);
  margin-top: 0.35rem;
}


/* =====================================================================
   Decorative bits
   ===================================================================== */

.moon-decor {
  position: absolute;
  width: 220px;
  height: 220px;
  opacity: 0.12;
  pointer-events: none;
}

.divider-glow {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--hair-strong), transparent);
  margin: 3rem 0;
}

/* A running-head label, not a pill chip: small caps with a hairline
   underline, the way a printed section header is marked. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0 0.4rem;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--hair-strong);
  background: transparent;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 3.5rem 2.5rem;
  text-align: center;
  background: var(--panel-alt);
  border: 1px solid var(--glass-border);
}


/* =====================================================================
   Misc / links / images
   ===================================================================== */

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

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

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.flex-grow {
  flex-grow: 1;
}

.min-h-screen {
  min-height: 100vh;
}

ul {
  list-style: none;
}

li {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Offsets any #id jump target by the fixed nav's height, so a link like
   #services doesn't land the section title underneath the nav bar. */
#services {
  scroll-margin-top: 6rem;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.opacity-20 {
  opacity: 0.2;
}


/* =====================================================================
   Scroll-reveal animation
   ===================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1.in-view {
  transition-delay: 0.08s;
}

.reveal-delay-2.in-view {
  transition-delay: 0.16s;
}

.reveal-delay-3.in-view {
  transition-delay: 0.24s;
}

.reveal-delay-4.in-view {
  transition-delay: 0.32s;
}

.reveal-delay-5.in-view {
  transition-delay: 0.4s;
}


/* =====================================================================
   Currency switcher (mirrors .lang-btn — a manual override for the
   server's geo-IP currency guess)
   ===================================================================== */

.currency-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.currency-switcher-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-right: 0.35rem;
}

.currency-switcher--dark .currency-switcher-label {
  color: var(--muted);
}

.currency-btn {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--muted-2);
}

.currency-btn:hover {
  color: var(--ink);
  border-color: var(--hair-strong);
}

.currency-btn-active {
  background: var(--gold);
  color: var(--void-deep);
  border-color: var(--gold);
}

.currency-btn-active:hover {
  color: var(--void-deep);
}


/* =====================================================================
   Service card price (home preview + full /services list)
   ===================================================================== */

.service-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.order-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}


/* =====================================================================
   Planet rows (home page "Not Just the Sun and Moon" section)
   ===================================================================== */

.planet-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.planet-row .card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.planet-row p {
  color: var(--muted);
  line-height: 1.6;
}


/* =====================================================================
   Military support banner — a deliberately distinct, high-visibility
   callout (per the studio's request to give this its own prominent
   treatment rather than blending into an ordinary section).
   ===================================================================== */

.military-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-left: 2px solid var(--gold);
}

.military-banner-icon {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border-radius: var(--radius-full);
  color: var(--gold);
  border: 1px solid var(--hair-strong);
}

@media (max-width: 640px) {
  .military-banner {
    flex-direction: column;
    padding: 1.75rem;
  }
}


/* =====================================================================
   About/founder section (merged into the home page)
   ===================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

.about-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

@media (max-width: 767px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    max-width: 260px;
    margin: 0 auto;
  }
}


/* =====================================================================
   Publications page — square teaser cards
   ===================================================================== */

.pub-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
}

.pub-card-body {
  display: none;
  margin-top: 1rem;
}

.pub-card--expanded .pub-card-body {
  display: block;
}

.pub-card-toggle {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  cursor: pointer;
}

.pub-card-toggle:hover {
  text-decoration: underline;
}


/* =====================================================================
   Honeypot field — invisible to sighted users and hidden from the tab
   order, but still present in the DOM for simple bots that fill in every
   field blindly (see server/main.go's handleContactSubmit).
   ===================================================================== */

.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 767px) {
  .text-6xl {
    font-size: 2.5rem;
  }

  .text-5xl {
    font-size: 2rem;
  }

  .text-4xl {
    font-size: 1.75rem;
  }

  .text-3xl {
    font-size: 1.5rem;
  }

  .text-2xl {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .py-24 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .py-32 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .mb-16 {
    margin-bottom: 2rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-accent {
    padding: 0.875rem 1.5rem;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
    min-height: 44px;
  }

  .card,
  .feature-card,
  .service-card,
  .value-card {
    padding: 1.5rem;
  }

  .grid-cols-1 {
    grid-template-columns: 1fr;
  }

  .gap-8 {
    gap: 1rem;
  }

  .gap-12 {
    gap: 1.5rem;
  }

  .gap-16 {
    gap: 2rem;
  }

  .hero-banner {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .footer .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .order-card {
    padding: 1.5rem;
  }

  button,
  a,
  input,
  textarea {
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu {
    -webkit-overflow-scrolling: touch;
  }
}


@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .md\:flex {
    display: flex;
  }

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

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .md\:col-span-1 {
    grid-column: span 1 / span 1;
  }

  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .md\:text-7xl {
    font-size: 4.5rem;
  }

  .md\:w-1\/4 {
    width: 25%;
  }

  .md\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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