/* ==========================================================================
   Zebra Investments Cyprus Ltd — Stylesheet
   Design tokens follow brand brochure: black, white, warm orange accent.
   ========================================================================== */

:root {
  /* Brand palette (from Zebra brochure) */
  --color-bg: #0a0a0a;
  --color-bg-alt: #111214;
  --color-section-light: #ffffff;
  --color-section-muted: #f4f5f7;
  --color-primary: #f5a623;
  --color-primary-dark: #d98c12;
  --color-text: #14161a;
  --color-text-light: #f7f7f8;
  --color-accent: #ffc363;
  --color-muted-text: #5b6270;

  --max-width: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.16);
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.08);
  /* Layered elevation tokens (near + far shadow) for a more physical,
     3D sense of cards floating above the page -- same neutral tone,
     just composited in two depths instead of one flat blur. */
  --shadow-card-elevated: 0 2px 6px rgba(15, 23, 42, 0.05), 0 18px 40px -12px rgba(15, 23, 42, 0.16);
  --shadow-card-elevated-hover: 0 4px 10px rgba(15, 23, 42, 0.06), 0 28px 56px -16px rgba(15, 23, 42, 0.22);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

header, main, footer {
  width: 100%;
}

/* ---------------------------------- Nav --------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.6);
}

/* Prevent sticky nav from covering section headings when jumping via anchor links */
section[id],
#main-content {
  scroll-margin-top: 84px;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  color: var(--color-text-light);
}

.logo-link svg {
  height: 34px;
  width: auto;
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--color-text-light);
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav-cta {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #14161a;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.4);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  white-space: nowrap;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-accent));
  box-shadow: 0 0 24px rgba(245, 166, 35, 0.55);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: var(--color-text-light);
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* --------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  background: #050505;
  color: var(--color-text-light);
  padding: 4.5rem 1.25rem 3.5rem;
  overflow: hidden;
  perspective: 1600px;
}

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

.hero-bg img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  opacity: 0.55;
  will-change: transform;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Architectural framing vignette: darkens edges so the hero reads like a
     view glimpsed through an opening rather than a flat photo backdrop. */
  background:
    radial-gradient(120% 85% at 50% 38%, transparent 45%, rgba(5, 5, 5, 0.5) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.55) 0%, transparent 14%, transparent 86%, rgba(5, 5, 5, 0.55) 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.85) 65%, #050505 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text-layer {
  will-change: transform;
}

.hero-media-layer {
  will-change: transform;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background-color: rgba(20, 20, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: #e6e6e6;
  margin-bottom: 1.2rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.9);
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 1.1rem;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h1 span.highlight {
  color: var(--color-accent);
}

.hero-sub {
  font-size: 1.02rem;
  max-width: 34rem;
  opacity: 0.92;
  margin-bottom: 1.7rem;
}

.hero-bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  opacity: 0.92;
}

.hero-bullet-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #14161a;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 20px 40px rgba(245, 166, 35, 0.22);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-accent));
  box-shadow: 0 24px 50px rgba(245, 166, 35, 0.32);
}

.btn-primary {
  transition: transform 0.15s ease-out, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary-link {
  font-size: 0.92rem;
  color: #eaeaea;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-meta {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.55), 0 12px 24px -8px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transform: translateZ(0);
}

/* Architectural frame: a slim inset border + corner accents so the card
   reads like a window/threshold view rather than a flat photo tile. */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: calc(var(--radius) - 10px);
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-media.in-view img {
  transform: scale(1);
}

.hero-media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
}

.hero-media-caption strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.hero-media-caption span {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* -------------------------------- Sections ------------------------------- */

.section {
  padding: 4rem 1.25rem;
  background-color: var(--color-section-light);
}

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

.section.dark {
  /* Subtle warm glow rising from center + darker vignette at the edges --
     built only from the existing bg/primary tokens, adds depth without
     introducing new brand colors. */
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(245, 166, 35, 0.05) 0%, rgba(245, 166, 35, 0) 55%),
    radial-gradient(140% 100% at 50% 100%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35) 100%),
    var(--color-bg);
  color: var(--color-text-light);
  position: relative;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.1rem;
}

.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section.dark .section-kicker {
  color: var(--color-primary);
}

.section h2 {
  font-size: 1.75rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

.section h2.text-reveal-mask {
  overflow: hidden;
  display: block;
}

.section h2 .text-reveal-inner {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.section h2.text-reveal-mask.in-view .text-reveal-inner {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .section h2 .text-reveal-inner {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

/* ------------------------------ Custom cursor ----------------------------- */

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  pointer-events: none;
  z-index: 400;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  opacity: 0;
  mix-blend-mode: difference;
}

.custom-cursor.visible {
  opacity: 0.9;
}

.custom-cursor.cursor-hover {
  width: 46px;
  height: 46px;
  background: var(--color-primary);
}

body.custom-cursor-active,
body.custom-cursor-active a,
body.custom-cursor-active button {
  cursor: none;
}

.section-lead {
  font-size: 1rem;
  color: var(--color-muted-text);
}

.section.dark .section-lead {
  color: #c7c9cf;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 1.9rem;
  align-items: flex-start;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.list-check li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #40454e;
}

.list-check span.icon {
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

/* --------------------------- Sticky scroll story --------------------------- */

.sticky-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 2.5rem;
  align-items: start;
}

.sticky-story-visual {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.sticky-story-visual .card {
  margin: 0;
}

.sticky-story-steps {
  display: grid;
  gap: 1.75rem;
  padding: 1rem 0;
}

.sticky-step {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1.1rem 1.2rem 1.1rem 3.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  opacity: 0.45;
  transform: translateX(0);
  overflow: hidden;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.45s ease,
    border-color 0.45s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Large editorial step numeral -- the "typographic drama" cue. Sits behind
   the copy, scales up and warms in color as its step becomes active. */
.sticky-step .step-index {
  position: absolute;
  left: 0.1rem;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(15, 23, 42, 0.1);
  transition: color 0.45s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

.sticky-step .icon {
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.sticky-step p {
  margin: 0;
  font-size: 0.98rem;
  color: #40454e;
}

.sticky-step.is-active {
  opacity: 1;
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: var(--shadow-card-elevated);
  transform: translateX(6px);
}

.sticky-step.is-active .step-index {
  color: rgba(245, 166, 35, 0.32);
  transform: translateY(-50%) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .sticky-step {
    transition: none;
  }
  .sticky-step .step-index {
    transition: none;
  }
}

@media (max-width: 860px) {
  .sticky-story {
    grid-template-columns: 1fr;
  }
  .sticky-story-visual {
    position: relative;
    top: 0;
  }
  .sticky-step {
    padding-left: 3rem;
  }
  .sticky-step .step-index {
    font-size: 2.1rem;
  }
}

.card {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-card-elevated);
  border: 1px solid rgba(148, 163, 184, 0.22);
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.card.tilt-active {
  transition: transform 0.06s linear;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.28);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted-text);
}

.card-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #97a0ad;
  margin-bottom: 0.3rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.6rem;
}

/* Editorial "typographic fact" treatment for the tax stat cards: the tag
   gets a thin rule beneath it, catalogue-style, instead of a filled pill. */
.card-tag::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.pill-muted {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background-color: #f1f5f9;
  color: #475569;
}

/* -------------------------------- Projects -------------------------------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-card-elevated);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.project-card.tilt-active {
  transition: transform 0.06s linear;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.32);
}

.project-card figure img {
  transition: transform 0.4s ease;
}

.project-card.tilt-active figure img {
  transform: scale(1.05);
}

.project-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #e2e8f0;
  position: relative;
}

/* Slim inset frame echoing the hero's architectural "window" treatment,
   so project photography reads consistently premium across the page. */
.project-card figure::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: calc(var(--radius) - 10px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover figure::after,
.project-card.tilt-active figure::after {
  opacity: 1;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.09);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card.in-view img {
  transform: scale(1);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background-color: rgba(245, 166, 35, 0.14);
  color: var(--color-primary-dark);
  margin-bottom: 0.55rem;
}

.project-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
}

.project-card .location {
  font-size: 0.82rem;
  color: #8b93a1;
  margin-bottom: 0.5rem;
}

.project-card p.desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted-text);
  flex-grow: 1;
}

/* -------------------------------- Timeline -------------------------------- */

.timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0.6rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: flex-start;
}

.timeline-index {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background-color: var(--color-primary);
  color: #14161a;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.timeline-content h3 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
}

.timeline-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted-text);
}

/* ---------------------------------- FAQ ----------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.1rem;
  margin-top: 0.8rem;
}

.faq-item {
  background-color: #ffffff;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.faq-item h3 {
  font-size: 1rem;
  margin: 0 0 0.3rem;
}

.faq-item p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--color-muted-text);
}

/* -------------------------------- Contact ---------------------------------- */

.contact-section {
  background: #0a0a0a;
  color: var(--color-text-light);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.contact-intro p {
  color: #d1d5db;
  font-size: 0.97rem;
}

form {
  background-color: #15171b;
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.95rem 0.85rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

label {
  font-size: 0.8rem;
  color: #e5e7eb;
}

input, select, textarea {
  font: inherit;
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #3d424c;
  background-color: #0d0e11;
  color: #e5e7eb;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.35);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.field-full {
  grid-column: 1 / -1;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: #d6d9df;
  margin-top: 0.5rem;
}

.consent-row input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.form-note {
  font-size: 0.76rem;
  color: #9aa0ab;
}

.form-status {
  font-size: 0.85rem;
  margin-top: 0.7rem;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

/* --------------------------------- Footer ---------------------------------- */

footer {
  background-color: #050505;
  color: #9ca3af;
  padding: 2rem 1.25rem 2.2rem;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-logo svg {
  height: 30px;
  width: auto;
  color: #ffffff;
  margin-bottom: 0.7rem;
}

.footer-contact {
  margin-top: 0.4rem;
}

.footer-contact a {
  color: #e5e7eb;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.82rem;
}

.footer-note {
  margin-top: 0.9rem;
  font-size: 0.76rem;
  color: #6b7280;
}

/* ---------------------------------- Misc ----------------------------------- */

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

/* -------------------------------- Responsive -------------------------------- */

@media (max-width: 880px) {
  .hero-inner,
  .two-col,
  .contact-layout,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 4.5rem;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 96;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-media img {
    height: 240px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 3rem 1rem;
  }

  h1 {
    font-size: 1.9rem;
  }
}

/* ==========================================================================
   Enhancements: scroll progress, back-to-top, scroll-spy, reveal animations,
   mobile sticky CTA, FAQ accordion, consultation popup
   ========================================================================== */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 200;
  transition: width 0.1s linear;
}

/* Scroll-spy active nav link */
.nav-links a.active {
  color: var(--color-primary);
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #14161a;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .back-to-top {
    right: 1rem;
    bottom: 5.5rem;
    width: 42px;
    height: 42px;
  }
}

/* Scroll-reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-stagger.in-view > * {
  transition-delay: calc(var(--stagger-index, 0) * 80ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in-view {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* FAQ accordion */
.faq-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}

.faq-question:hover {
  color: var(--color-primary-dark);
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-section-muted);
  color: var(--color-text);
  transition: transform 0.25s ease, background 0.25s ease;
  font-size: 0.95rem;
  line-height: 1;
}

.faq-item[data-open="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: #14161a;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item[data-open="true"] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  margin: 0 1.25rem 1.1rem;
  color: var(--color-muted-text);
}

/* Mobile sticky CTA bar */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .mobile-cta-bar {
    display: flex;
  }

  /* Prevent content from being hidden behind the bar */
  body {
    padding-bottom: 64px;
  }
}

.mobile-cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.mobile-cta-bar .cta-call {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-light);
}

.mobile-cta-bar .cta-consult {
  background: var(--color-primary);
  color: #14161a;
}

/* Consultation popup */
.consult-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(2px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.consult-popup-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.consult-popup {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s ease;
}

.consult-popup-overlay.visible .consult-popup {
  transform: translateY(0) scale(1);
}

.consult-popup-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-section-muted);
  color: var(--color-text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.consult-popup-close:hover {
  background: #e6e6e6;
}

.consult-popup .badge {
  margin-bottom: 0.9rem;
}

.consult-popup h3 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}

.consult-popup p {
  margin: 0 0 1.25rem;
  color: var(--color-muted-text);
}

.consult-popup-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.consult-popup-actions .popup-btn {
  flex: 1;
  text-align: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.18);
  cursor: pointer;
  font-family: inherit;
}

.btn-outline:hover {
  background: var(--color-section-muted);
}

/* ----------------------------- Reduced motion ------------------------------- */

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

  .project-card img {
    transition: none;
    transform: scale(1);
  }

  .hero-media img {
    transition: none;
    transform: scale(1);
  }

  .hero-text-layer,
  .hero-media-layer,
  .hero-bg img {
    transform: none !important;
  }
}
