/* ─────────────────────────────────────────
   CUSTOM PROPERTIES
───────────────────────────────────────── */
:root {
  --black:        #080808;
  --dark:         #0d0d0d;
  --surface:      #111111;
  --surface-2:    #161616;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text:         #efefef;
  --text-mid:     #888888;
  --muted:        #444444;

  --accent:       #e85d04;
  --accent-warm:  #f48c06;
  --accent-pale:  rgba(232, 93, 4, 0.12);

  --font:         'Space Grotesk', sans-serif;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);

  --container:    1200px;
  --pad:          2rem;
}

/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
textarea { font-family: inherit; }

/* ─────────────────────────────────────────
   UTILITIES
───────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Text-clip reveal wrapper */
.clip {
  display: block;
  overflow: hidden;
}

/* Animated inner element — JS sets initial y: 105% */
.reveal {
  display: block;
  will-change: transform;
}

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

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.nav--scrolled {
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  transition: border-color 0.25s, background 0.25s !important;
}

.nav-cta:hover {
  border-color: var(--border-hover) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 6.5rem;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}

.hero-heading {
  margin-bottom: 1.75rem;
}

.hero-heading .clip {
  margin-bottom: 0.05em;
}

.hero-heading .reveal {
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: var(--text-mid);
  font-weight: 300;
  max-width: 42ch;
  line-height: 1.75;
}

/* ── Wave background canvas ── */

/* Soft centre vignette so white text stays readable over the wave field */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 55% at 50% 42%,
    rgba(8, 8, 8, 0.68) 0%,
    rgba(8, 8, 8, 0.25) 55%,
    transparent 80%
  );
  z-index: 1;
  pointer-events: none;
}

#wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* ─────────────────────────────────────────
   SERVICES
───────────────────────────────────────── */
.services {
  padding: 7rem 0 6rem;
  background: var(--black);
}

.section-label {
  margin-bottom: 3.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  align-items: start;
  transition: background 0.3s ease;
}

.service-row:last-child {
  border-bottom: 1px solid var(--border);
}

.service-row:hover {
  background: rgba(232, 93, 4, 0.015);
}

.service-num {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-name {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.125rem;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 38ch;
  font-weight: 300;
}

.service-items {
  list-style: none;
  padding-top: 0.25rem;
}

.service-items li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 0;
  font-size: 0.9375rem;
  color: rgba(239, 239, 239, 0.55);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.service-items li:first-child {
  border-top: 1px solid var(--border);
}

.service-items li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.7;
}

.service-items li:hover {
  color: var(--text);
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact {
  padding: 7rem 0 8rem;
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.contact-box {
  max-width: 660px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3rem 3.25rem;
  background: var(--surface);
}

.contact-header {
  margin-bottom: 2.5rem;
}

.contact-header h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.625rem;
}

.contact-sub {
  color: var(--text-mid);
  font-size: 0.9375rem;
  font-weight: 300;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.form-field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(239, 239, 239, 0.45);
  letter-spacing: 0.01em;
}

.label-optional {
  color: var(--muted);
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
  appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(232, 93, 4, 0.45);
  background: rgba(22, 22, 22, 0.8);
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.375rem;
  flex-wrap: wrap;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.8125rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
  flex-shrink: 0;
}

.btn-submit:hover {
  background: var(--accent-warm);
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit.success {
  background: #1e6641;
}

.btn-icon {
  transition: transform 0.2s var(--ease-out);
}

.btn-submit:hover .btn-icon {
  transform: translateX(3px);
}

.form-note {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 300;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  background: var(--black);
}

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

.footer-logo {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-email {
  font-size: 0.8125rem;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-email:hover {
  color: var(--text);
}

/* ─────────────────────────────────────────
   RESPONSIVE — TABLET
───────────────────────────────────────── */
@media (max-width: 860px) {
  :root {
    --pad: 1.5rem;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.75rem 0;
  }

  .service-desc {
    max-width: 100%;
  }

  .contact-box {
    padding: 2.5rem 2rem;
  }
}

/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE
───────────────────────────────────────── */
@media (max-width: 560px) {
  :root {
    --pad: 1.25rem;
  }

  .nav {
    padding: 1.25rem 0;
  }

  .nav-links li:first-child {
    display: none;
  }

  .hero-content {
    padding-top: 6rem;
    padding-bottom: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 1.75rem 1.25rem;
    border-radius: 6px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }

  .footer-copy,
  .footer-email {
    font-size: 0.75rem;
  }
}
