/* tokens moved to tokens.css — do not add :root here */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #f7f4ef 0%, #ffffff 100%);
  font-family: "DM Sans", "Inter", sans-serif;
  color: var(--ink);
}

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

.logo-dot {
  max-width: 90px;
  height: 42px;
}

.logo-dot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro {
  position: relative;
  overflow: hidden;
  padding: 104px 24px 38px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(242, 101, 34, 0.17), transparent 54%),
    linear-gradient(180deg, #f7f4ef 0%, rgba(255, 255, 255, 0.5) 100%);
}

.back-link {
  position: absolute;
  top: 30px;
  left: clamp(24px, 5vw, 64px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.back-link:hover {
  color: var(--orange-deep);
}

.back-link:hover svg {
  transform: translateX(-3px);
}

.back-link:focus-visible {
  outline: 3px solid rgba(242, 101, 34, 0.35);
  outline-offset: 5px;
  border-radius: 2px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange); 
  font-weight: 700;
}

.eyebrow.accent {
  color: var(--navy-light);
}

.contact-copy .eyebrow.accent {
  color: var(--orange-light);
}

.intro h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.intro p:last-child {
  margin: 16px auto 0;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.contact-wrap {
  padding: 24px 24px 64px;
}

.contact-card {
  max-width: 1160px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 45, 83, 0.08);
  box-shadow: 0 28px 80px rgba(14, 34, 58, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-columns: 0.95fr 1.4fr;
  overflow: hidden;
}

.contact-copy {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--navy) 0%, #123b69 100%);
  color: var(--white);
  padding: 46px 38px;
}

.contact-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -88px;
  bottom: -110px;
  width: 250px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.025), 0 0 0 48px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.contact-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.contact-copy p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.contact-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 500;
}

.contact-points li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(242, 101, 34, 0.12);
}

.contact-form {
  padding: 46px 38px;
  background: linear-gradient(145deg, #ffffff 0%, #fcfbf8 100%);
  display: grid;
  gap: 22px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(11, 45, 83, 0.14);
  border-radius: 9px;
  background: #f9fbfd;
  color: var(--ink-dark);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(242, 101, 34, 0.8);
  box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.12);
  background: var(--white);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.form-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.form-footer button {
  align-self: stretch;
}

.onboarding-link {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.onboarding-link::after {
  content: "→";
  font-size: 1.1em;
  transition: transform 0.2s ease;
}

.onboarding-link:hover {
  color: var(--orange-deep);
  border-bottom-color: var(--orange-deep);
}

.onboarding-link:hover::after {
  transform: translateX(3px);
}

.contact-form button {
  border: none;
  border-radius: 999px;
  padding: 15px 26px;
  background: linear-gradient(135deg, var(--orange), #ff8f5f);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 28px rgba(242, 101, 34, 0.18);
}

.contact-form button:hover {
  transform: translateY(-1px);
}

.helper-text {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 600;
}

.form-status.success {
  color: var(--orange-deep);
}

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

.contact-card {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.contact-card.is-hidden {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
}

.send-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(247, 244, 239, 0.92) 0%, rgba(255, 255, 255, 0.85) 100%);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 30;
}

.send-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.send-scene {
  position: relative;
  width: min(78vw, 760px);
  height: min(58vw, 430px);
  perspective: 1200px;
  transform-style: preserve-3d;
}

.flight-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.flight-trail {
  fill: none;
  stroke: rgba(11, 45, 83, 0.7);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 16 18;
  stroke-dashoffset: 100;
}

.plane-group {
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(180px, 24vw, 300px);
  transform-style: preserve-3d;
  opacity: 0;
}

.paper-plane {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 18px rgba(11, 45, 83, 0.12));
}

.plane-shadow {
  position: absolute;
  left: 12%;
  bottom: -10%;
  width: 150px;
  height: 24px;
  border-radius: 50%;
  background: rgba(11, 45, 83, 0.18);
  filter: blur(7px);
  transform: rotate(-8deg);
  opacity: 0;
}

.checkmark-group {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-soft) 0%, #fff8f4 100%);
  box-shadow: 
    0 0 0 12px rgba(242, 101, 34, 0.08),
    0 20px 40px rgba(242, 101, 34, 0.15),
    0 8px 16px rgba(11, 45, 83, 0.1);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
}

.checkmark-group svg {
  width: 70px;
  height: 70px;
  stroke: var(--orange);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 2px 4px rgba(242, 101, 34, 0.2));
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg);
  padding: 60px 56px 40px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
  gap: 60px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-cols {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  color: var(--navy);
  font-weight: 700;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-consultant-link {
  font-weight: 600 !important;
  color: var(--orange) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 0;
  transition: all 0.2s ease;
}

.footer-consultant-link:hover {
  color: var(--orange-deep) !important;
  transform: translateX(4px);
}

.footer-consultant-link .footer-icon {
  color: var(--orange);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .contact-card {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .footer-top,
  .footer-bottom,
  .footer-cols {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .intro {
    padding: 94px 20px 30px;
  }

  .back-link {
    top: 24px;
    left: 20px;
    min-height: var(--touch-min, 44px);
    display: inline-flex;
    align-items: center;
  }

  .contact-copy,
  .contact-form {
    padding: 28px 20px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    min-height: var(--touch-min, 44px);
    padding: 12px 14px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .contact-form label {
    gap: 10px;
  }

  .contact-form button {
    width: 100%;
    min-height: var(--touch-min, 44px);
    padding: 14px 24px;
    font-size: 15px;
  }

  .footer-col a {
    min-height: var(--touch-min, 44px);
    display: flex;
    align-items: center;
  }
}

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

/* ============ FOLDABLE DEVICE SUPPORT ============ */

/* Foldable devices in folded narrow mode (Galaxy Fold, etc.) */
@media (max-width: 280px) {
  .intro {
    padding: 80px 16px 24px;
  }

  .intro h1 {
    font-size: 2rem;
  }

  .intro p:last-child {
    font-size: 0.95rem;
  }

  .back-link {
    font-size: 0.85rem;
  }

  .contact-copy,
  .contact-form {
    padding: 24px 16px;
  }

  .contact-copy h2 {
    font-size: 1.5rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 10px 12px;
    font-size: 15px;
  }

  .contact-form button {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Landscape orientation on foldables */
@media (max-height: 500px) and (orientation: landscape) {
  .intro {
    padding: 60px 20px 24px;
  }

  .intro h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  .contact-wrap {
    padding: 16px 20px 40px;
  }
}