/* ====================================================
   how to NMIMS — Starter Guide landing page
   Tokens
==================================================== */
:root {
  --orange: #f7ad56;
  --orange-deep: #ef9a3b;
  --navy: #241b49;
  --navy-deep: #181030;
  --cream: #fdf6ec;
  --cream-dim: rgba(253, 246, 236, 0.72);

  --footer-bg: #f7e1bd;
  --footer-ink: rgba(36, 27, 73, 0.78);
  --footer-ink-dim: rgba(36, 27, 73, 0.55);
  --footer-line: rgba(36, 27, 73, 0.18);

  --font-display: "Poppins", sans-serif;
  --font-accent: "Playfair Display", serif;

  --max-content: 760px;
  --max-brochure: 920px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ====================================================
   Hero
==================================================== */
.hero {
  padding: clamp(48px, 8vw, 96px) 24px clamp(56px, 8vw, 88px);
}

.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__logo {
  width: clamp(190px, 26vw, 320px);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.hero__eyebrow {
  margin: 0 0 14px;
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.hero__title {
  margin: 0 0 20px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero__title-line {
  display: block;
  font-size: clamp(30px, 5.4vw, 56px);
}

.hero__title-line em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
}

.hero__underline {
  display: inline-block;
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.12em;
}

.hero__subtext {
  max-width: var(--max-content);
  margin: 0 0 clamp(36px, 5vw, 56px);
  font-size: clamp(14.5px, 1.6vw, 17px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--navy);
}

.hero__brochure {
  width: 100%;
  max-width: var(--max-brochure);
  margin-bottom: clamp(8px, 1.5vw, 16px);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 56px;
  margin-bottom: clamp(48px, 7vw, 80px);
  background: var(--navy);
  color: var(--cream);
  font-family: inherit;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
  border-radius: 999px;
  border: 5px solid var(--cream-dim);
  box-shadow: 0 14px 30px -10px rgba(24, 16, 48, 0.5);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero__cta:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -10px rgba(24, 16, 48, 0.55);
}

.hero__cta:active { transform: translateY(0); }

.hero__contact-line,
.hero__contact-number {
  margin: 0;
  color: var(--cream);
  font-weight: 800;
  line-height: 1.4;
}

.hero__contact-line { font-size: clamp(19px, 2.6vw, 30px); }

.hero__contact-number {
  margin-top: 6px;
  font-size: clamp(20px, 2.9vw, 34px);
  letter-spacing: 0.01em;
}

/* ====================================================
   Scroll reveal
==================================================== */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ====================================================
   Load-in animation (hero stack, on page load)
==================================================== */
.load-reveal {
  opacity: 1;
  transform: none;
}

.js .load-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.9, 0.32, 1),
              transform 0.7s cubic-bezier(0.22, 0.9, 0.32, 1);
  transition-delay: var(--d, 0s);
}

.js .load-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .load-reveal { opacity: 1; transform: none; }
}

/* Starter Guide slides in from the right, instead of the default
   fade-up everything else uses, as a small accent moment */
.js .hero__underline.load-reveal {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.6s ease var(--d, 0s),
              transform 0.6s cubic-bezier(0.22, 0.9, 0.32, 1) var(--d, 0s);
}

.js .hero__underline.load-reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* The brochure pops in with a slight scale overshoot rather than the
   default fade-up, since it's a plain image with no card styling now */
.js .hero__brochure.load-reveal {
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.6s ease var(--d, 0s),
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0s);
}

.js .hero__brochure.load-reveal.is-visible {
  opacity: 1;
  transform: scale(1);
}

.js .hero__cta.load-reveal {
  transition: opacity 0.7s cubic-bezier(0.22, 0.9, 0.32, 1) var(--d, 0s),
              transform 0.2s ease,
              box-shadow 0.2s ease,
              background 0.2s ease;
}

/* ====================================================
   Footer
==================================================== */
.footer {
  background: var(--footer-bg);
  padding: clamp(40px, 6vw, 64px) 24px clamp(28px, 4vw, 36px);
}

.footer__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.footer__logo { width: 130px; }

.footer__tagline {
  margin: 0;
  max-width: 380px;
  color: var(--footer-ink);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  border-radius: 50%;
  border: 1.6px solid var(--footer-line);
  color: var(--footer-ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer__social:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
  transform: translateY(-2px);
}

.footer__divider {
  width: 100%;
  max-width: 320px;
  height: 1px;
  margin-bottom: 18px;
  background: var(--footer-line);
}

.footer__legal {
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--footer-ink-dim);
  line-height: 1.6;
}

/* ====================================================
   Form modal
==================================================== */
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(24, 16, 48, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  background: var(--cream);
  border-radius: 16px;
  box-shadow: 0 30px 70px -20px rgba(24, 16, 48, 0.6);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 0.9, 0.32, 1);
  overflow: hidden;
}

.modal.is-open .modal__backdrop { opacity: 1; }

.modal.is-open .modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--cream);
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(24, 16, 48, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal__close:hover {
  background: var(--orange);
  transform: scale(1.06);
}

.modal__frame {
  width: 100%;
  height: min(617px, 80vh);
}

.modal__frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 480px) {
  .modal { padding: 0; }
  .modal__panel {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }
  .modal__frame { height: 100%; }
}
