*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --contact-text: #111111;
  --contact-muted: #666666;
  --contact-label: #888888;
  --contact-border: #e5e5e5;
  --contact-placeholder: #999999;
}

html {
  height: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
}

/* ——— Shared full-bleed background (Home + Contact) ——— */
body.page-home,
body.page-contact {
  background-color: #0c0a12;
  background-image: url("./8D6_Comming_Soon_Background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* fixed backgrounds hurt performance and zoom on many phones */
@media (max-width: 768px) {
  body.page-home,
  body.page-contact {
    background-image: url("./8D6_Comming_Soon_Background_Mobile.png");
    background-attachment: scroll;
  }
}

/* ——— Home: full-bleed artwork only (no dimming overlay, no card) ——— */
body.page-home {
  color: #f4f4f5;
}

body.page-home::before {
  display: none;
}

.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  padding-bottom: 1rem;
  padding-left: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-right, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header--home {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  justify-content: flex-end;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  width: 100%;
}

@media (min-width: 420px) {
  .site-header--home .nav {
    width: auto;
  }
}

.nav--home a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-radius: 999px;
  font-size: 1rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav--home a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav--home a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.main-home {
  flex: 1;
}

.site-footer {
  padding-top: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-right, 0px));
  text-align: center;
  font-size: 0.85rem;
}

.site-footer--home {
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* ——— Contact: cool palette + dark gray glass form ——— */
body.page-contact {
  color: #e2e8f0;
}

.page-wrap--contact {
  min-height: 100vh;
  min-height: 100dvh;
}

.main-contact {
  flex: 1;
  width: 100%;
  max-width: 100vw;
  padding-top: clamp(1rem, 4vw, 2.5rem);
  padding-bottom: max(clamp(1.5rem, 5vw, 3.5rem), env(safe-area-inset-bottom, 0px));
  padding-left: max(clamp(0.75rem, 4vw, 2rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(0.75rem, 4vw, 2rem), env(safe-area-inset-right, 0px));
}

.contact-shell {
  box-sizing: border-box;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.35rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem);
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.contact-title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
  text-shadow:
    0 1px 28px rgba(56, 189, 248, 0.35),
    0 0 1px rgba(241, 245, 249, 0.95);
}

.contact-tagline {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  color: #cbd5e1;
  text-shadow: 0 1px 18px rgba(15, 23, 42, 0.65);
}

.contact-rule {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  margin: 1.5rem 0 1.25rem;
}

.contact-intro {
  margin: 0;
  max-width: 42rem;
  color: #e2e8f0;
  font-size: clamp(1rem, 2.8vw, 1.05rem);
  line-height: 1.65;
  text-shadow: 0 1px 16px rgba(15, 23, 42, 0.55);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: 2.25rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.75rem;
  }

  .contact-shell {
    border-radius: 12px;
    padding: clamp(1.15rem, 4vw, 1.75rem) clamp(0.85rem, 3.5vw, 1.25rem);
  }

  .contact-title {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
    line-height: 1.15;
  }

  .contact-tagline {
    font-size: 0.95rem;
  }
}

@media (max-width: 380px) {
  .nav--home a {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
  }
}

.contact-section-title {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  text-shadow: 0 1px 14px rgba(15, 23, 42, 0.55);
}

.contact-label {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.contact-value {
  margin: 0 0 1.35rem;
  font-size: 1rem;
  color: #e2e8f0;
  line-height: 1.5;
  text-shadow: 0 1px 12px rgba(15, 23, 42, 0.45);
  overflow-wrap: anywhere;
}

.contact-value:last-child {
  margin-bottom: 0;
}

.contact-value a {
  color: #93c5fd;
  text-decoration: none;
}

.contact-value a:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.contact-value--multiline {
  line-height: 1.55;
}

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

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

.contact-form .field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #cbd5e1;
  text-shadow: 0 1px 12px rgba(15, 23, 42, 0.55);
}

.contact-form input,
.contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(15, 23, 42, 0.38);
  color: #f1f5f9;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(226, 232, 240, 0.42);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(147, 197, 253, 0.65);
  background: rgba(15, 23, 42, 0.52);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

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

.btn-contact {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-top: 0.25rem;
  padding: 0.95rem 1rem;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  background: rgba(15, 23, 42, 0.62);
  color: #f8fafc;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}

.btn-contact:hover {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(147, 197, 253, 0.45);
}

.btn-contact:active {
  transform: translateY(1px);
}

.btn-contact:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: clamp(0.9rem, 2.5vw, 0.95rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
  display: none;
}

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

.form-status--light.form-status--ok {
  background: rgba(15, 118, 110, 0.38);
  border: 1px solid rgba(45, 212, 191, 0.42);
  color: #ccfbf1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-status--light.form-status--err {
  background: rgba(127, 29, 29, 0.38);
  border: 1px solid rgba(248, 113, 113, 0.42);
  color: #fecaca;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
