/* =========================================================
   NARINA SAFARIS WELCOME PAGE
   ========================================================= */

:root {
  --forest: #006b35;
  --forest-dark: #003d24;
  --forest-light: #16834a;
  --brand-red: #e31b23;
  --brand-red-dark: #bd1118;
  --white: #ffffff;
  --cream: #f6f3e9;
  --ink: #142019;
  --soft-white: rgba(255, 255, 255, 0.84);
  --line: rgba(255, 255, 255, 0.38);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  background: var(--forest-dark);
  color: var(--white);
}

button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.welcome-page,
.hero {
  min-height: 100vh;
  min-height: 100svh;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    url("../images/background.webp")
    center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 35, 20, 0.48) 0%,
      rgba(0, 30, 18, 0.28) 34%,
      rgba(0, 24, 15, 0.62) 100%
    ),
    radial-gradient(
      circle at center,
      rgba(0, 95, 48, 0.08),
      rgba(0, 25, 15, 0.28)
    );
}

.site-header,
.hero-content,
.site-footer {
  position: relative;
  z-index: 2;
}

/* =========================================================
   HEADER AND LOGO
   ========================================================= */

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 24px 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.brand-logo {
  display: block;
  width: 245px;
  max-width: 72vw;
  height: auto;
  object-fit: contain;
}

/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {
  width: min(900px, calc(100% - 48px));
  margin: auto;
  padding: 55px 0 60px;
  text-align: center;
}

.eyebrow,
.modal-eyebrow {
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow {
  color: #ffffff;
}

.eyebrow::after {
  display: block;
  width: 48px;
  height: 3px;
  margin: 16px auto 0;
  background: var(--brand-red);
  content: "";
}

.hero-content h1 {
  max-width: 900px;
  margin-inline: auto;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.4rem, 7.4vw, 6.8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.28);
}

.hero-text {
  max-width: 680px;
  margin: 26px auto 0;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--soft-white);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.primary-button,
.secondary-button,
.outline-button {
  min-width: 145px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.primary-button {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

.primary-button:hover {
  background: var(--forest-light);
  border-color: var(--forest-light);
  transform: translateY(-2px);
}

.secondary-button {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
}

.secondary-button:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  transform: translateY(-2px);
}

.outline-button {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.62);
  color: var(--white);
}

.outline-button:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--forest-dark);
  transform: translateY(-2px);
}

/* =========================================================
   CONTACT DETAILS
   ========================================================= */

.contact-details {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 28px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.contact-details a {
  transition: color 180ms ease;
}

.contact-details a:hover {
  color: #ffffff;
}

.contact-divider {
  width: 1px;
  height: 17px;
  background: rgba(255, 255, 255, 0.45);
}

.launch-note {
  margin-top: 20px;
  font-size: 0.66rem;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  flex-shrink: 0;
  padding: 20px 24px;
  text-align: center;
  font-size: 0.67rem;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.62);
}

/* =========================================================
   MODAL
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 22, 13, 0.82);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.modal-card {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: 42px;
  background: var(--cream);
  color: var(--ink);
  border-top: 5px solid var(--forest);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 13px;
  right: 17px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.modal-eyebrow {
  color: var(--brand-red);
}

.modal-card h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.08;
}

.modal-card > p:not(.modal-eyebrow) {
  margin-top: 14px;
  line-height: 1.7;
  color: #5d665f;
}

.modal-card form {
  margin-top: 26px;
}

.modal-card label {
  display: inline-block;
  margin-bottom: 9px;
  font-size: 0.78rem;
  font-weight: 700;
}

.form-row {
  display: flex;
}

.form-row input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #cdd4ce;
  border-right: 0;
  outline: none;
  background: var(--white);
}

.form-row input:focus {
  border-color: var(--forest);
}

.form-row button {
  min-width: 120px;
  min-height: 52px;
  border: 0;
  padding: 0 18px;
  background: var(--forest);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-row button:hover {
  background: var(--forest-light);
}

.form-message {
  min-height: 24px;
  margin-top: 10px;
  font-size: 0.8rem;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .hero-content {
    width: min(760px, calc(100% - 40px));
  }

  .hero-content h1 {
    font-size: clamp(3.3rem, 10vw, 5.7rem);
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
  .hero {
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(0, 35, 20, 0.45) 0%,
        rgba(0, 28, 17, 0.48) 42%,
        rgba(0, 20, 12, 0.88) 100%
      );
  }

  .site-header {
    padding: 18px 16px 0;
  }

 .brand {
  padding: 0;
}

  .brand-logo {
    width: 190px;
    max-width: 74vw;
  }

  .hero-content {
    width: 100%;
    margin: auto;
    padding: 70px 20px 38px;
    text-align: center;
    transform: none;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 0.62rem;
    letter-spacing: 0.17em;
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: clamp(2.85rem, 13.5vw, 4.1rem);
    line-height: 1;
  }

  .hero-text {
    max-width: 100%;
    margin-top: 20px;
    font-size: 0.91rem;
    line-height: 1.7;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 27px;
  }

  .primary-button,
  .secondary-button,
  .outline-button {
    width: 100%;
    min-height: 49px;
  }

  .contact-details {
    flex-direction: column;
    gap: 8px;
    margin-top: 23px;
    font-size: 0.78rem;
  }

  .contact-divider {
    width: 34px;
    height: 1px;
  }

  .launch-note {
    margin-top: 18px;
  }

  .site-footer {
    padding: 16px;
  }

  .modal-card {
    padding: 36px 22px 28px;
  }

  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .form-row input {
    border-right: 1px solid #cdd4ce;
  }

  .form-row button {
    width: 100%;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {
  .brand-logo {
    width: 165px;
  }

  .hero-content {
    padding: 55px 17px 32px;
  }

  .hero-content h1 {
    font-size: clamp(2.55rem, 13vw, 3.25rem);
  }
}

/* =========================================================
   SHORT SCREENS
   ========================================================= */

@media (max-height: 720px) and (min-width: 701px) {
  .site-header {
    padding-top: 16px;
  }

  .brand-logo {
    width: 195px;
  }

  .hero-content {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .hero-text {
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 23px;
  }

  .contact-details {
    margin-top: 19px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

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