/* ==============================
   BRAND COLORS
============================== */

:root {
  --navy: #0B1F3B;
  --gold: #F4B400;
  --gold-dark: #D99A00;
  --light-grey: #F5F7FA;
  --dark-grey: #333333;
  --white: #FFFFFF;
}

/* ==============================
   GLOBAL RESET & BASE
============================== */

/* Ensure modals can be displayed when hidden class removed (overrides other sheets) */
.modal:not(.hidden) {
  display: flex !important;
  align-items: center;
  justify-content: center;
}


body {
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  color: var(--dark-grey);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* -----------------------------
   Token Modal & Payment Styling
   (mirrors landing page aesthetics)
----------------------------- */
.modal-header {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 2rem 1.5rem 1rem;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom: 4px solid var(--gold);
}

.modal-header .modal-logo {
  height: 50px;
  margin-bottom: 0.5rem;
}
.modal-header h2 {
  font-size: clamp(24px, 4vw, 32px);
  margin: 0.25rem 0;
  line-height: 1.2;
}
.modal-header .modal-tagline {
  font-size: 1rem;
  opacity: 0.85;
  margin: 0;
}

.token-modal-body {
  background: var(--white);
  padding: 2rem 2rem 1.5rem;
  text-align: center;
}
.token-modal-body h2 {
  color: var(--navy);
  margin-bottom: 0;
}
.token-info {
  font-size: 1rem;
  color: var(--dark-grey);
  margin-bottom: 1.5rem;
}
.token-benefits {
  background: var(--light-grey);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: left;
  margin-bottom: 1.5rem;
}
.token-benefits h3 {
  color: var(--navy);
  margin-top: 0;
}
.token-benefits ul {
  margin: 0;
  padding-left: 1.2rem;
}
.token-benefits li {
  margin: 0.5rem 0;
}
.token-note {
  font-size: 0.85rem;
  color: var(--dark-grey);
  margin-top: 1rem;
}
.payment-form .form-input {
  border: 1px solid var(--dark-grey);
  margin-bottom: 0.8rem;
  border-radius: 6px;
  padding: 0.85rem;
}
.payment-form label {
  font-weight: 600;
  color: var(--navy);
}

/* bigger, attention-grabbing payment button inside modal */
#paymentBtn.payment-btn {
  font-size: 1.2rem;
  padding: 1rem 0;
}


/* Typography system (Option 1) */
:root {
  --type-base: 16px;
  --type-scale: 1.125;
}

html { font-size: 16px; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

h1,h2,h3,h4,h5 { color: var(--navy); margin: 0 0 16px 0; }

h1 { font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; }

/* Responsive headline scales for strong hierarchy */
.hero h1 {
  font-size: clamp(40px, 6.5vw + 18px, 88px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(24px, 3.2vw + 10px, 36px);
  line-height: 1.15;
}

p, .hero p, .text-muted { font-size: clamp(15px, 1.6vw + 12px, 20px); color: rgba(0,0,0,0.78); }

.hero p { color: rgba(255,255,255,0.95); }

/* Content width control for readability */
.hero-content { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

section {
  padding: 120px 8%;
  scroll-behavior: smooth;
}

p:not(.hero p):not(.hero-subtitle) {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Buttons: consistent typographic treatment */
.cta-button, .card button, .navbar .cta-btn {
  font-family: inherit;
  letter-spacing: 0.01em;
}

/* Accessibility: focus states */
.cta-button:focus, .navbar .cta-btn:focus, .card button:focus {
  outline: 3px solid rgba(244,180,0,0.18);
  outline-offset: 4px;
}

section {
  padding: 80px 8%;
}

/* ==============================
   NAVBAR
============================== */

.navbar {
  background: rgba(11,31,59,0.86);
  padding: 14px 8%;
  box-shadow: 0 8px 28px rgba(11,31,59,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-text {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.navbar a {
  color: var(--white);
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.3s ease, border-color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.navbar a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.navbar .cta-btn {
  background: var(--gold);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s ease;
}

.navbar .cta-btn:hover {
  background: var(--gold-dark);
}

.access-btn {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.access-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.access-btn:active {
  transform: scale(0.95);
}

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

.hero {
  /* hero uses the Pexels student room photo with reduced dark overlay for brightness */
  background: linear-gradient(rgba(11,31,59,0.82), rgba(11,31,59,0.82)),
              url('https://images.pexels.com/photos/1648768/pexels-photo-1648768.jpeg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 160px 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-size: clamp(38px, 5.8vw, 62px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 4px 18px rgba(0,0,0,0.42);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.015em;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  margin-bottom: 12px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Emotional reinforcement line */
.hero-tagline {
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  opacity: 0.85;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero p {
  font-size: 20px;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  margin-bottom: 28px;
  max-width: 900px;
}

.hero .cta-button {
  background: var(--gold);
  color: var(--navy);
  padding: 16px 40px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(244,180,0,0.25);
  transition: transform 0.3s cubic-bezier(0.23,1,0.32,1), background-color 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  animation: fadeInUp 0.8s ease-out 0.3s both;
  text-transform: none;
}

.hero .cta-button:hover {
  background: #D99A00;
  transform: scale(1.04);
  box-shadow: 0 16px 42px rgba(244,180,0,0.35);
}

.hero .cta-button:active {
  transform: scale(0.98);
}

/* Remove decorative floating elements globally (user requested) */
.floating-star, .floating-house, .decorative, .sparkle, .particle { display: none !important; }

/* CTA contrast helper */
.cta-button { color: var(--navy); background-color: var(--gold); }
.cta-button[disabled], .cta-button.disabled { opacity: 0.6; cursor: not-allowed; }


/* trust strip under hero */
.trust-strip {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  opacity: 0.95;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255,255,255,0.95);
  font-weight: 500;
  font-size: 0.95rem;
}

.trust-item svg {
  flex: 0 0 20px;
  height: 20px;
  width: 20px;
  stroke: var(--gold);
}

.hero .cta-button:hover {
  background: var(--gold-dark);
  transform: scale(1.03);
  box-shadow: 0 18px 48px rgba(11,31,59,0.32);
}

/* ==============================
   SECTION HEADINGS
============================== */

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--navy);
}

/* ==============================
   CARDS (Listings)
============================== */

.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card h3 {
  color: var(--navy);
  margin-bottom: 10px;
}

.card .price {
  color: var(--gold);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
}

.card button, .secondary-btn {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card button:hover, .secondary-btn:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(11,31,59,0.15);
}

.primary-btn, .cta-button {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.primary-btn:hover, .cta-button:hover:not(.hero .cta-button) {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,180,0,0.3);
}

/* ==============================
   ALTERNATE SECTION BACKGROUND
============================== */

.alt-section {
  background: var(--light-grey);
}

/* ==============================
   HOW IT WORKS SECTION (Conversion)
============================== */

.how-it-works {
  background: var(--light-grey);
  padding: 120px 8%;
}

.how-it-works h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  color: var(--navy);
}

.how-it-works-subtitle {
  text-align: center;
  color: rgba(0,0,0,0.65);
  margin-bottom: 60px;
  font-size: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  animation: fadeInUp 0.8s ease-out both;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--gold), #FFD54A);
  border-radius: 50%;
  color: var(--navy);
  font-size: 28px;
  font-weight: 900;
  margin: 0 auto 20px;
  box-shadow: 0 10px 28px rgba(244,180,0,0.28);
}

.step-title {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.step-description {
  font-size: 15px;
  color: rgba(0,0,0,0.68);
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}

/* ==============================
   ANIMATIONS
============================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.footer {
  background: var(--navy);
  color: var(--light-grey);
  padding: 60px 8%;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 15px;
}

.footer a {
  color: var(--light-grey);
  text-decoration: none;
  transition: 0.3s ease;
}

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

/* ==============================
   RESPONSIVENESS
============================== */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
    padding: 0 6%;
  }

  .hero {
    padding: 80px 5%;
    background-position: center top;
    min-height: auto;
  }

  .hero .cta-button {
    width: 100%;
    max-width: 420px;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 10px;
  }

  .trust-strip {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
  }

  .trust-item { width: 100%; justify-content: center; }

  section, .how-it-works {
    padding: 60px 5%;
  }

  .how-it-works-grid {
    gap: 30px;
  }

  .step-number {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}

/* Contrast helpers: ensure text over hero is readable on small screens */
@media (prefers-contrast: high) {
  .hero h1, .hero p { text-shadow: none; }
}

/* Listings contrast helpers - add subtle dark overlay on images */
.card-image { position: relative; }
.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,31,59,0.45), rgba(11,31,59,0.32));
  pointer-events: none;
  transition: background 0.25s ease;
}

/* Ensure card text stands out */
.card-content .card-title,
.card-content .card-location,
.card-content .card-price {
  color: var(--dark-grey);
}

.card-badge {
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
}

/* Slightly dim the entire listings section background to improve overall readability */
.listings-section { background-color: rgba(255,255,255,0.96); }

