/* ==========================================================================
   CADCom Services — Aurora Glass SITE COMPONENTS
   Marketing shell only (home, about, projects, case studies).
   Never loaded by the demo applications. Requires aurora-core.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}
.shell-narrow {
  width: min(100% - (var(--gutter) * 2), var(--maxw-narrow));
  margin-inline: auto;
}

.section { padding-block: var(--pad-section); position: relative; }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }

.stack > * + * { margin-top: var(--s, 1rem); }
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* --------------------------------------------------------------------------
   5. Type primitives
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.display {
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--text);
}

.h-xl { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); letter-spacing: -0.035em; }
.h-lg { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); }
.h-md { font-size: clamp(1.2rem, 1.06rem + 0.5vw, 1.4rem); }

.lead {
  font-size: clamp(1.06rem, 1rem + 0.42vw, 1.3rem);
  line-height: 1.62;
  color: var(--text-2);
}

.muted { color: var(--text-3); }
.small { font-size: 0.875rem; }
.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* Gradient text — with a solid fallback for unsupported engines */
.grad-text {
  color: var(--cyan);
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .grad-text {
    background: var(--grad-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.section-head { max-width: 56ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* --------------------------------------------------------------------------
   6. Glass surfaces
   -------------------------------------------------------------------------- */
.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
}

/* Browsers without backdrop-filter get an opaque panel instead of a muddy one */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: rgba(26, 23, 64, 0.88); }
}

/* Light sweep along the top edge */
.glass::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  border-radius: inherit;
  pointer-events: none;
}

.glass-card {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

/* Cursor-tracked spotlight, coordinates set from JS */
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 0%),
    rgba(139, 92, 246, 0.17),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 400ms var(--ease);
  pointer-events: none;
}
.spotlight:hover::after,
.spotlight:focus-within::after { opacity: 1; }

@media (hover: hover) {
  .glass-card.lift:hover {
    transform: translateY(-6px);
    border-color: var(--edge-2);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 220ms var(--ease), box-shadow 320ms var(--ease),
              background-color 220ms var(--ease), border-color 220ms var(--ease);
}
.btn i, .btn svg { font-size: 1.05em; }

.btn-primary {
  position: relative;
  color: #0A0820;
  background: var(--grad-aurora);
  background-size: 180% 100%;
  background-position: 0% 50%;
  font-weight: 650;
  box-shadow: var(--glow-violet);
}
.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: var(--glow-violet), var(--glow-cyan);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--text);
  background: var(--glass);
  border-color: var(--edge-2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn-ghost:hover {
  background: var(--glass-2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-lg { padding: 1.02rem 1.9rem; font-size: 1.02rem; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.86rem; }
.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Text link with an underline that draws in */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--cyan);
  font-weight: 550;
  font-size: 0.95rem;
}
.link-arrow i { transition: transform 300ms var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   8. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 360ms var(--ease), border-color 360ms var(--ease),
              backdrop-filter 360ms var(--ease);
}
.nav.scrolled {
  background: rgba(11, 10, 31, 0.72);
  border-bottom-color: var(--edge);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.nav-inner {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 650;
  font-size: 1.06rem;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-right: auto;
}
.brand img { width: 32px; height: 32px; }
.brand span { white-space: nowrap; }
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.93rem;
  color: var(--text-2);
  transition: color 220ms var(--ease), background-color 220ms var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--glass); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.26rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--grad-aurora);
}

.nav-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem var(--gutter) 1.6rem;
    background: rgba(11, 10, 31, 0.97);
    border-bottom: 1px solid var(--edge);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 260ms;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 0.85rem 0.6rem; font-size: 1rem; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-cta { margin: 0.6rem 0 0; }
  .nav-cta .btn { width: 100%; }
  .brand small { display: none; }
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 9vw, 8rem) clamp(4rem, 8vw, 7rem);
  min-height: min(90vh, 820px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: 1.3rem; }
.hero .lead { max-width: 52ch; margin-bottom: 2.2rem; }

/* Trust strip under the hero actions */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--edge);
}
.hero-stat strong {
  display: block;
  font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.hero-stat span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   10. Hero showcase — a stylised browser frame
   -------------------------------------------------------------------------- */
.showcase {
  position: relative;
  perspective: 1600px;
}

.showcase-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(170deg, rgba(26, 23, 64, 0.95), rgba(11, 10, 31, 0.98));
  border: 1px solid var(--edge-2);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: rotateY(-7deg) rotateX(3deg);
  transition: transform 700ms var(--ease);
}
@media (hover: hover) and (min-width: 981px) {
  .showcase:hover .showcase-frame { transform: rotateY(-2deg) rotateX(1deg) translateY(-6px); }
}
@media (max-width: 980px) {
  .showcase-frame { transform: none; }
}

.showcase-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--edge);
  background: rgba(255, 255, 255, 0.03);
}
.showcase-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.showcase-bar i:nth-child(1) { background: rgba(232, 121, 249, 0.6); }
.showcase-bar i:nth-child(2) { background: rgba(139, 92, 246, 0.6); }
.showcase-bar i:nth-child(3) { background: rgba(34, 211, 238, 0.6); }
.showcase-bar span {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
}
.showcase-frame img { width: 100%; display: block; }

/* Floating glass chip over the frame */
.showcase-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: var(--r);
  background: rgba(18, 16, 46, 0.82);
  border: 1px solid var(--edge-2);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-size: 0.82rem;
  color: var(--text);
  animation: float-chip 7s var(--ease-in-out) infinite alternate;
}
.showcase-chip i { color: var(--mint); font-size: 1rem; }
.showcase-chip.one { bottom: -18px; left: -14px; }
.showcase-chip.two { top: 16%; right: -22px; animation-delay: -3.5s; }

@keyframes float-chip {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}
@media (max-width: 620px) {
  .showcase-chip { display: none; }
}

/* --------------------------------------------------------------------------
   11. Service cards
   -------------------------------------------------------------------------- */
.service-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1.3rem;
  border-radius: var(--r);
  font-size: 1.4rem;
  color: var(--text);
  background: linear-gradient(150deg, rgba(139, 92, 246, 0.28), rgba(34, 211, 238, 0.18));
  border: 1px solid var(--edge-2);
}
.service-card h3 { font-size: 1.22rem; margin-bottom: 0.55rem; }
.service-card p { color: var(--text-2); font-size: 0.96rem; margin: 0; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}
.tag {
  padding: 0.28rem 0.68rem;
  border-radius: var(--r-pill);
  background: var(--glass-2);
  border: 1px solid var(--edge);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   12. Portfolio / work cards
   -------------------------------------------------------------------------- */
.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.case-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--canvas-2);
  border-bottom: 1px solid var(--edge);
}
.case-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 900ms var(--ease);
}
@media (hover: hover) {
  .case-card:hover .case-shot img { transform: scale(1.045); }
}
.case-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 10, 31, 0.72));
  pointer-events: none;
}

.case-index {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  z-index: 2;
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-sm);
  background: rgba(6, 5, 15, 0.7);
  border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.case-body { padding: 1.4rem clamp(1.25rem, 2.4vw, 1.6rem) 1.6rem; display: flex; flex-direction: column; flex: 1; }
.case-kind {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.55rem;
}
.case-body h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.case-body h3 a { transition: color 220ms var(--ease); }
.case-body h3 a:hover { color: var(--cyan); }
.case-body p { font-size: 0.93rem; color: var(--text-2); margin-bottom: 1.1rem; }
.case-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.case-stack { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.case-stack span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  background: var(--glass-2);
  border: 1px solid var(--edge);
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   13. Feature list
   -------------------------------------------------------------------------- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.05rem; }
.feature-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature-list i {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  font-size: 0.72rem;
  color: var(--mint);
  background: rgba(52, 231, 197, 0.12);
  border: 1px solid rgba(52, 231, 197, 0.3);
}
.feature-list strong { display: block; color: var(--text); font-weight: 550; margin-bottom: 0.15rem; }
.feature-list p { font-size: 0.92rem; margin: 0; color: var(--text-2); }

/* Numbered process steps */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem 2.5rem; counter-reset: step; }
@media (min-width: 760px) { .step-list.cols-2 { grid-template-columns: 1fr 1fr; } }
.step-list li { position: relative; padding-left: 3.4rem; counter-increment: step; }
.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  background: var(--glass-2);
  border: 1px solid var(--edge-2);
}
.step-list h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.step-list p { font-size: 0.93rem; margin: 0; }

/* --------------------------------------------------------------------------
   14. Pricing
   -------------------------------------------------------------------------- */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: var(--shadow-lg), var(--glow-violet), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.price-badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-pill);
  background: var(--grad-aurora);
  color: #0A0820;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.9rem;
}
.price-fig {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.price-fig small { font-size: 0.9rem; font-weight: 400; color: var(--text-3); letter-spacing: 0; }
.price-note { font-size: 0.92rem; color: var(--text-2); margin-bottom: 1.5rem; }

.price-feats { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 0.7rem; }
.price-feats li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.91rem; }
.price-feats i { flex: none; margin-top: 4px; font-size: 0.7rem; color: var(--mint); }

.price-meta {
  margin-top: auto;
  padding-top: 1.35rem;
  border-top: 1px solid var(--edge);
  display: grid;
  gap: 0.3rem;
  font-size: 0.84rem;
  color: var(--text-3);
  margin-bottom: 1.35rem;
}
.price-meta strong { color: var(--text-2); font-weight: 550; }

/* --------------------------------------------------------------------------
   15. CTA panel
   -------------------------------------------------------------------------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  border-radius: var(--r-xl);
}
.cta-panel::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 150%;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.28), transparent 62%);
  pointer-events: none;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel .btn-row { justify-content: center; margin-top: 2rem; }

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--edge);
}
.contact-methods a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--edge);
  font-size: 0.9rem;
  color: var(--text-2);
  transition: all 240ms var(--ease);
}
.contact-methods a:hover { color: var(--text); border-color: var(--edge-2); background: var(--glass-2); }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 0.45rem; margin-bottom: 1.1rem; text-align: left; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(6, 5, 15, 0.45);
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); opacity: 0.7; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.17);
}

.form-status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(52, 231, 197, 0.1); border: 1px solid rgba(52, 231, 197, 0.32); color: var(--mint); }
.form-status.err { background: rgba(232, 121, 249, 0.1); border: 1px solid rgba(232, 121, 249, 0.32); color: var(--magenta); }

/* --------------------------------------------------------------------------
   17. Page header (inner pages)
   -------------------------------------------------------------------------- */
.page-head {
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.page-head .lead { max-width: 60ch; margin-inline: auto; }

.crumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.crumbs a:hover { color: var(--cyan); }
.crumbs span { opacity: 0.45; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-top: 1px solid var(--edge);
  background: linear-gradient(180deg, transparent, rgba(6, 5, 15, 0.6));
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-about p { font-size: 0.92rem; color: var(--text-3); max-width: 34ch; margin-top: 1rem; }

.footer h2 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer ul a {
  font-size: 0.92rem;
  color: var(--text-2);
  transition: color 200ms var(--ease);
}
.footer ul a:hover { color: var(--cyan); }

.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--glass);
  border: 1px solid var(--edge);
  color: var(--text-2);
  transition: all 220ms var(--ease);
}
.footer-social a:hover { color: var(--text); border-color: var(--edge-2); transform: translateY(-2px); }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--edge);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   20. Utilities
   -------------------------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--edge-2), transparent);
}

/* --------------------------------------------------------------------------
   19. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* Never leave content invisible if the observer never runs */
.no-js .reveal { opacity: 1; transform: none; }


/* --------------------------------------------------------------------------
   23. Contact panel split — WhatsApp beside the enquiry form
   -------------------------------------------------------------------------- */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: left;
}
@media (max-width: 860px) {
  .contact-split { grid-template-columns: 1fr; }
}

.contact-primary {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--edge);
}
.contact-primary .contact-methods {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.contact-primary .contact-methods a { justify-content: flex-start; }

.contact-form {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: rgba(6, 5, 15, 0.32);
  border: 1px solid var(--edge);
}
.contact-form .eyebrow { margin-bottom: 1.25rem; }

/* Paired fields sit side by side from tablet up, regardless of column width */
.field-pair { display: grid; gap: 0 1rem; }
@media (min-width: 520px) { .field-pair { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   24. Send-button row
   Two buttons with nowrap labels create a hard minimum width that can push
   the panel wider than a small phone viewport. Let them wrap instead.
   -------------------------------------------------------------------------- */
.send-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: stretch;
}
.send-row .btn { flex: 1 1 auto; min-width: 0; }
.send-row .btn-send-wa { flex: 2 1 12rem; }
.send-row .btn-send-mail { flex: 1 1 7rem; }
@media (max-width: 400px) {
  .send-row .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   25. Small-phone padding and label wrapping
   At 320px the panel padding plus a nowrap button label pushed the contact
   panel wider than the viewport. Full-width buttons may wrap their label,
   and the nested panels shed padding on small screens.
   -------------------------------------------------------------------------- */
.btn-block { white-space: normal; }

@media (max-width: 520px) {
  .cta-panel { padding: 1.5rem 1.1rem; }
  .contact-primary,
  .contact-form { padding: 1.1rem 0.95rem; }
  .contact-methods a { word-break: break-word; }
  .glass-card { padding: 1.25rem 1.1rem; }
}
@media (max-width: 360px) {
  .cta-panel { padding: 1.25rem 0.85rem; }
  .contact-primary,
  .contact-form { padding: 1rem 0.8rem; }
}
