/* --------------------------------------------------------------------------
   1. Reset
-------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: clamp(14px, 1.35vw, 26px);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--dark);
  transition: background-color 0.6s ease;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: var(--yellow);
  color: var(--dark);
  z-index: 9999;
  border-radius: 4px;
  text-decoration: none;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* --------------------------------------------------------------------------
   2. Variables
-------------------------------------------------------------------------- */
:root {
  --yellow: #f5c842;
  --orange: #f07020;
  --cyan: #4a7fa5;
  --cyan-light: #6299bb;
  --charcoal: #1c1c1c;
  --dark: #0e1318;
  --nav-dark: #0a0e13;
  --mid: #7a7a7a;
  --light: #c8c4bc;

  --page-padding: 5vw;
  --nav-height: 96px;
  --card-transition: background 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

/* --------------------------------------------------------------------------
   3. Base layout and global effects
-------------------------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -1px -1px;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   4. Header and navigation
-------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.site-nav {
  height: var(--nav-height);
  padding: 0 var(--page-padding);
  border-bottom: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-dark);
}

.site-logo,
.site-footer__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  width: min(220px, 55vw);
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.site-nav__links a,
.mobile-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav__links a:hover,
.mobile-nav a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  display: block;
  border-radius: 1px;
  background: var(--cyan-light);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 99;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem var(--page-padding) 1.5rem;
  border-bottom: 1px solid var(--cyan);
  background: var(--nav-dark);
}

.mobile-nav.is-open {
  display: flex;
}

/* --------------------------------------------------------------------------
   5. Sections and typography
-------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: 8rem var(--page-padding) 6rem;
}

.section__header {
  max-width: 680px;
}

.section__label,
.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--cyan-light);
  border-left: 3px solid var(--cyan);
  padding-left: 10px;
  margin-bottom: 1.4rem;
}

.section__title {
  margin-bottom: 1rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.section__intro {
  max-width: 560px;
  margin-bottom: 3.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.zone-dark .section__label,
.zone-dusk .section__label {
  color: var(--cyan-light);
}

.zone-dark .section__title,
.zone-dusk .section__title,
.zone-dark h3,
.zone-dusk h3 {
  color: #fff;
}

.zone-dark .section__intro,
.zone-dusk .section__intro {
  color: rgba(200, 196, 188, 0.7);
}

.zone-warm .section__label {
  color: #7a3800;
}

.zone-warm .section__title,
.zone-warm h3 {
  color: #1a0e00;
}

/* Increase contrast for paragraph text on warm backgrounds */
.zone-warm .section__intro,
.zone-warm p {
  color: #1a0e00; /* darker for improved readability */
}

/* --------------------------------------------------------------------------
   6. Hero
-------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 100px var(--page-padding) 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 85% 60%, rgba(240, 112, 32, 0.2) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 8% 35%, rgba(74, 127, 165, 0.25) 0%, transparent 60%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  color: #fff;
  opacity: 0.05;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  animation: fade-up 0.9s ease both;
}

.hero__brand {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Orbitron", sans-serif;
  font-size: 5.04rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 3rem;
  margin-top: 2.5rem;
  animation: fade-up 1.1s 0.3s ease both;
}

/* --------------------------------------------------------------------------
   7. Buttons, grids, and cards
-------------------------------------------------------------------------- */
.button {
  width: 260px;
  display: block;
  padding: 14px 32px;
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button--primary {
  color: var(--dark);
  background: linear-gradient(90deg, var(--yellow), var(--orange));
}

.button--primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.button--ghost {
  border: 1px solid rgba(200, 196, 188, 0.35);
  color: var(--light);
  background: transparent;
}

.button--ghost:hover {
  border-color: var(--cyan-light);
  color: var(--cyan-light);
}

.grid {
  display: grid;
}

.grid--services {
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.07);
}

.grid--process,
.grid--team {
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
}

.grid--process {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.08);
}

.grid--team {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.07);
}

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

.card,
.testimonial,
.contact-card {
  transition: var(--card-transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card {
  padding: 2.25rem 2rem 2.5rem;
}

.card:hover,
.testimonial:hover,
.contact-card:hover {
  transform: translateY(-4px);
}

.card--service,
.card--team {
  background: rgba(255, 255, 255, 0.06);
}

.card--service:hover,
.card--team:hover {
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.card--process {
  background: rgba(255, 255, 255, 0.15);
}

.card--process:hover {
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.card h3,
.why-item h3 {
  margin-bottom: 0.75rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card p,
.why-item p,
.testimonial blockquote,
.contact-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.zone-dark .card p,
.zone-dark .contact-card p {
  color: rgba(255, 255, 255, 0.6);
}

.card__icon,
.step-number {
  display: block;
  margin-bottom: 1.25rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card__icon {
  font-size: 1.8rem;
}

.step-number {
  font-size: 4rem;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   8. Section-specific components
-------------------------------------------------------------------------- */
.stat {
  text-align: left;
}

.stat__number {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 196, 188, 0.5);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.why-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.why-item h3::before {
  content: "";
  width: 24px;
  height: 2px;
  display: block;
  flex-shrink: 0;
  background: var(--orange);
}

.why-item p {
  padding-left: 34px;
}

.team-card__header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 1.5rem;
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 2px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
}

.team-card__header p {
  margin-top: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-light);
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
}

.tag-list li {
  padding: 5px 12px;
  border: 1px solid rgba(74, 127, 165, 0.4);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(74, 127, 165, 0.15);
}

.testimonial {
  border: 1px solid rgba(74, 127, 165, 0.22);
  padding: 2.25rem 2rem;
  background: rgba(255, 255, 255, 0.04);
}

.testimonial:hover {
  border-color: rgba(74, 127, 165, 0.45);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.testimonial blockquote {
  margin-bottom: 1.5rem;
  color: rgba(200, 215, 225, 0.88);
  font-style: italic;
}

.testimonial blockquote::before {
  content: "\201C";
  margin-right: 4px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3rem;
  line-height: 0;
  vertical-align: -0.5em;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testimonial p {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a8a9a;
}

.testimonial strong {
  color: #c0d4dc;
}

.contact-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(74, 127, 165, 0.3);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.contact-card:hover {
  border-color: rgba(74, 127, 165, 0.55);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.contact-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
}

.contact-card__value {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-card__value:hover {
  color: var(--cyan-light);
}

/* --------------------------------------------------------------------------
   9. Footer
-------------------------------------------------------------------------- */
.site-footer {
  padding: 28px var(--page-padding);
  border-top: 1px solid rgba(74, 127, 165, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--nav-dark);
}

.site-footer__logo img {
  width: min(200px, 55vw);
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-footer p {
  font-size: 0.75rem;
  color: #444;
}

/* --------------------------------------------------------------------------
   10. Animation
-------------------------------------------------------------------------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1.visible { transition-delay: 0.08s; }
.reveal-delay-2.visible { transition-delay: 0.16s; }
.reveal-delay-3.visible { transition-delay: 0.24s; }
.reveal-delay-4.visible { transition-delay: 0.32s; }

/* --------------------------------------------------------------------------
   11. Responsive rules
-------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 700px) {
  .site-nav__links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

@media (max-width: 600px) {
  .section {
    padding: 90px var(--page-padding) 70px;
  }

  .grid--services,
  .grid--process,
  .grid--team,
  .grid--testimonials,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero__brand {
    font-size: 3.2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 400px) {
  .contact-card {
    padding: 24px 16px;
  }

  .contact-card__value {
    font-size: 1.1rem;
    word-break: break-all;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero__content,
  .hero__stats,
  .reveal {
    opacity: 1;
    transform: none;
  }
}