/* Dental Education On Demand — coming soon
   Hero photo: Eberhard Grossgasteiger / Pexels License
   https://www.pexels.com/photo/silhouette-photo-of-mountain-and-calm-body-of-water-1421898/
   Type: self-hosted DejaVu Sans, matching the logo tagline.
*/

@font-face {
  font-family: "DejaVu Sans";
  src: url("assets/fonts/DejaVuSans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DejaVu Sans";
  src: url("assets/fonts/DejaVuSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --text: #ffffff;
  --muted: #9a9a9a;
  --muted-strong: #c8c8c8;
  --line: #5a5a5a;
  --divider: #4a4a4a;
  --placeholder: #8a8a8a;
  --footer: #6b6b6b;
  --field-radius: 4px;
  --form-width: 540px;
  --font: "DejaVu Sans", "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.hero {
  position: relative;
  min-height: 40vh;
  height: 64vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #05070c;
  /* Previous hero (mountain/lake): assets/hero.jpg, position was center 72%. */
  background-image: url("assets/bg_7.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.logo {
  width: 340px;
  max-width: 78vw;
  height: auto;
  margin-top: 36px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.45));
}

.hero h1 {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0 16px;
  width: 100%;
  text-align: center;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1.45rem, 3.6vw, 2.45rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
  /* letter-spacing adds space after the last letter; pull back so it stays optically centered */
  padding-right: calc(16px + 0.4em);
}

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

.contact {
  background: var(--black);
  padding: 72px 20px 80px;
  text-align: center;
}

.contact h2 {
  margin: 0 0 18px;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: #b0b0b0;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  padding-right: 0.38em;
}

.divider {
  width: 42px;
  height: 1px;
  background: var(--divider);
  border: 0;
  margin: 0 auto 28px;
}

.intro {
  margin: 0 0 28px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  padding-right: 0.22em;
}

.contact form {
  width: 100%;
  max-width: var(--form-width);
  margin: 0 auto;
  text-align: left;
}

.field {
  margin: 0 0 14px;
}

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

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  background: var(--black);
  color: var(--text);
  border: 1px solid #6a6a6a;
  border-radius: var(--field-radius);
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

input[type="text"],
input[type="email"] {
  height: 46px;
}

textarea {
  min-height: 168px;
  resize: vertical;
  line-height: 1.45;
  display: block;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
  font-family: var(--font);
  letter-spacing: 0.06em;
}

input:focus,
textarea:focus {
  border-color: #b0b0b0;
}

.opt-in {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 28px;
  color: #c5c5c5;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.45;
  cursor: pointer;
}

.opt-in input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 3px 0 0;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border: 1px solid #8a8a8a;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.opt-in input[type="checkbox"]:checked {
  background-color: #fff;
  border-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23111' stroke-width='2' d='M3 8.5l3.2 3.2L13 4.8'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.actions {
  text-align: center;
}

button[type="submit"] {
  background: #fff;
  color: #111;
  border: 0;
  border-radius: 3px;
  padding: 12px 38px;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

button[type="submit"]:hover {
  background: #e8e8e8;
}

button[type="submit"]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

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

footer {
  background: var(--black);
  padding: 8px 48px 40px;
}

footer p {
  margin: 0;
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--footer);
  letter-spacing: 0.08em;
}

/* ----- Thank-you page ----- */

.thanks-hero {
  min-height: 100vh;
  height: auto;
  justify-content: flex-start;
}

.thanks-panel {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: min(560px, 90vw);
  text-align: center;
}

.thanks-panel h1 {
  position: static;
  transform: none;
  left: auto;
  top: auto;
  width: auto;
  padding: 0 0.4em 0 0;
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.thanks-panel p {
  margin: 0 0 28px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #f2f2f2;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75);
}

.back-link {
  color: #fff;
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 2px;
}

.back-link:hover {
  border-bottom-color: #fff;
}

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

@media (max-width: 720px) {
  footer {
    padding: 4px 20px 32px;
    text-align: center;
  }

  .hero {
    height: 52vh;
    min-height: 320px;
  }

  .logo {
    width: 260px;
    margin-top: 28px;
  }

  .hero h1 {
    top: 56%;
    font-size: 1.25rem;
    letter-spacing: 0.26em;
    padding-right: calc(16px + 0.26em);
  }

  .contact {
    padding: 56px 20px 64px;
  }

  .contact h2 {
    letter-spacing: 0.3em;
    padding-right: 0.3em;
  }

  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 16px; /* avoid iOS zoom */
  }
}

@media (max-width: 420px) {
  .logo {
    width: 220px;
    margin-top: 22px;
  }

  .hero {
    height: 48vh;
  }

  .hero h1 {
    font-size: 1.12rem;
    letter-spacing: 0.22em;
    padding-right: calc(16px + 0.22em);
  }
}
