@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --rj-navy: #1A2A4A;
  --rj-yellow: #F5E36C;
  --rj-paper: #F8F7F3;
  --rj-brick: #A6533C;
  --rj-white: #ffffff;
  --rj-text: #2c3344;
  --rj-muted: #5c6478;
  --rj-border: #dde0e8;
  --rj-shadow: 0 4px 24px rgba(26, 42, 74, 0.1);
  --rj-radius: 8px;
  --rj-font-serif: "Merriweather", Georgia, serif;
  --rj-font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --rj-max: 1180px;
  --rj-header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--rj-font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--rj-text);
  background: var(--rj-paper);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rj-navy);
  text-decoration: none;
}

a:hover {
  color: var(--rj-brick);
}

h1, h2, h3, h4 {
  font-family: var(--rj-font-serif);
  color: var(--rj-navy);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.rj-container {
  width: min(100% - 2rem, var(--rj-max));
  margin-inline: auto;
}

/* Header */
.rj-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rj-navy);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.rj-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--rj-header-h);
  gap: 1rem;
}

.rj-logo {
  display: flex;
  flex-direction: column;
  color: var(--rj-white);
  font-family: var(--rj-font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}

.rj-logo span {
  font-family: var(--rj-font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rj-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.rj-nav a {
  color: var(--rj-white);
  font-weight: 500;
  font-size: 0.95rem;
}

.rj-nav a:hover,
.rj-nav a.rj-nav__active {
  color: var(--rj-yellow);
}

.rj-btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: var(--rj-radius);
  font-family: var(--rj-font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.rj-btn:hover {
  transform: translateY(-1px);
}

.rj-btn--yellow {
  background: var(--rj-yellow);
  color: var(--rj-navy);
}

.rj-btn--yellow:hover {
  box-shadow: 0 4px 16px rgba(245, 227, 108, 0.4);
  color: var(--rj-navy);
}

.rj-btn--navy {
  background: var(--rj-navy);
  color: var(--rj-white);
}

.rj-btn--outline {
  background: transparent;
  border: 2px solid var(--rj-navy);
  color: var(--rj-navy);
}

.rj-btn--full {
  width: 100%;
}

.rj-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.rj-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rj-yellow);
  transition: transform 0.2s;
}

/* Hero */
.rj-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  background: var(--rj-navy);
  overflow: hidden;
}

.rj-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

.rj-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 42, 74, 0.3) 0%, rgba(26, 42, 74, 0.85) 100%);
}

.rj-hero__content {
  position: relative;
  z-index: 2;
  padding: 3rem 0 2.5rem;
  width: 100%;
}

.rj-hero__content h1 {
  color: var(--rj-white);
  max-width: 640px;
}

.rj-hero__content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.rj-hero--compact {
  min-height: 320px;
  align-items: center;
}

.rj-hero--compact .rj-hero__content {
  padding: 2.5rem 0;
  text-align: center;
}

.rj-hero--compact h1,
.rj-hero--compact p {
  margin-inline: auto;
}

/* Room finder form */
.rj-finder {
  background: var(--rj-white);
  border-radius: var(--rj-radius);
  padding: 1.25rem;
  box-shadow: var(--rj-shadow);
  max-width: 900px;
}

.rj-finder__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rj-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.rj-finder__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: end;
}

.rj-finder select,
.rj-finder input,
.rj-form input,
.rj-form select,
.rj-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rj-border);
  border-radius: var(--rj-radius);
  font-family: var(--rj-font-sans);
  font-size: 0.95rem;
  background: var(--rj-paper);
  color: var(--rj-text);
}

.rj-finder select:focus,
.rj-form input:focus,
.rj-form select:focus,
.rj-form textarea:focus {
  outline: 2px solid var(--rj-yellow);
  border-color: var(--rj-navy);
}

/* Sections */
.rj-section {
  padding: 4rem 0;
}

.rj-section--white {
  background: var(--rj-white);
}

.rj-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.rj-section__head p {
  color: var(--rj-muted);
  margin-bottom: 0;
}

.rj-tag {
  display: inline-block;
  background: var(--rj-yellow);
  color: var(--rj-navy);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* Features */
.rj-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.rj-feature {
  text-align: center;
  padding: 1.5rem 1rem;
}

.rj-feature__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--rj-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rj-yellow);
  font-size: 1.25rem;
  font-weight: 700;
}

.rj-feature h3 {
  font-family: var(--rj-font-sans);
  font-size: 1rem;
  font-weight: 700;
}

.rj-feature p {
  font-size: 0.9rem;
  color: var(--rj-muted);
  margin: 0;
}

/* Cards */
.rj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.rj-card {
  background: var(--rj-white);
  border-radius: var(--rj-radius);
  overflow: hidden;
  box-shadow: var(--rj-shadow);
  transition: transform 0.2s;
}

.rj-card:hover {
  transform: translateY(-4px);
}

.rj-card__img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.rj-card__body {
  padding: 1.25rem;
}

.rj-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rj-navy);
}

.rj-card__meta {
  font-size: 0.85rem;
  color: var(--rj-muted);
  margin-bottom: 0.75rem;
}

.rj-card__badge {
  display: inline-block;
  background: var(--rj-brick);
  color: var(--rj-white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Campus gallery */
.rj-campus-card {
  position: relative;
  border-radius: var(--rj-radius);
  overflow: hidden;
  box-shadow: var(--rj-shadow);
}

.rj-campus-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.rj-campus-card__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(26, 42, 74, 0.9));
  color: var(--rj-white);
}

.rj-campus-card__caption h3 {
  color: var(--rj-yellow);
  font-family: var(--rj-font-sans);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.rj-campus-card__caption p {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.9;
}

/* About split */
.rj-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.rj-split img {
  border-radius: var(--rj-radius);
  box-shadow: var(--rj-shadow);
}

.rj-split--reverse {
  direction: rtl;
}

.rj-split--reverse > * {
  direction: ltr;
}

/* Stats */
.rj-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.rj-stat strong {
  display: block;
  font-family: var(--rj-font-serif);
  font-size: 2rem;
  color: var(--rj-brick);
}

.rj-stat span {
  font-size: 0.85rem;
  color: var(--rj-muted);
}

/* CTA band */
.rj-cta {
  position: relative;
  border-radius: var(--rj-radius);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.rj-cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rj-cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 42, 74, 0.75);
}

.rj-cta__text {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  color: var(--rj-white);
  max-width: 520px;
}

.rj-cta__text h2 {
  color: var(--rj-yellow);
}

.rj-cta__text p {
  opacity: 0.95;
}

/* Contact */
.rj-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.rj-contact-info {
  background: var(--rj-navy);
  color: var(--rj-white);
  padding: 2rem;
  border-radius: var(--rj-radius);
}

.rj-contact-info h3 {
  color: var(--rj-yellow);
  font-family: var(--rj-font-sans);
}

.rj-contact-info a {
  color: var(--rj-yellow);
}

.rj-contact-info dl {
  margin: 0;
}

.rj-contact-info dt {
  font-weight: 600;
  margin-top: 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.rj-contact-info dd {
  margin: 0.25rem 0 0;
}

.rj-form {
  background: var(--rj-white);
  padding: 2rem;
  border-radius: var(--rj-radius);
  box-shadow: var(--rj-shadow);
}

.rj-form__group {
  margin-bottom: 1.25rem;
}

.rj-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.rj-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Privacy */
.rj-legal {
  background: var(--rj-white);
  padding: 2.5rem;
  border-radius: var(--rj-radius);
  box-shadow: var(--rj-shadow);
  max-width: 800px;
  margin: 0 auto;
}

.rj-legal h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.rj-legal h2:first-child {
  margin-top: 0;
}

/* Filters */
.rj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.rj-filter {
  padding: 0.5rem 1rem;
  border: 1px solid var(--rj-border);
  border-radius: 999px;
  background: var(--rj-white);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--rj-muted);
}

.rj-filter--active {
  background: var(--rj-navy);
  color: var(--rj-yellow);
  border-color: var(--rj-navy);
}

/* Footer */
.rj-footer {
  background: var(--rj-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}

.rj-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.rj-footer a:hover {
  color: var(--rj-yellow);
}

.rj-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.rj-footer__brand {
  font-family: var(--rj-font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--rj-white);
  margin-bottom: 0.75rem;
}

.rj-footer h4 {
  color: var(--rj-yellow);
  font-family: var(--rj-font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.rj-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rj-footer li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.rj-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Cookie bar */
.rj-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--rj-navy);
  color: var(--rj-white);
  padding: 1rem 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.rj-cookie__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.rj-cookie p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
  min-width: 200px;
}

.rj-cookie a {
  color: var(--rj-yellow);
  text-decoration: underline;
}

.rj-cookie__actions {
  display: flex;
  gap: 0.75rem;
}

.rj-cookie .rj-btn--outline {
  border-color: var(--rj-yellow);
  color: var(--rj-yellow);
}

/* Responsive 900px */
@media (max-width: 900px) {
  .rj-nav {
    position: fixed;
    top: var(--rj-header-h);
    left: 0;
    right: 0;
    background: var(--rj-navy);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .rj-nav.rj-nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .rj-burger {
    display: flex;
  }

  .rj-finder__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rj-features,
  .rj-grid,
  .rj-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .rj-split {
    grid-template-columns: 1fr;
  }

  .rj-split--reverse {
    direction: ltr;
  }

  .rj-contact-grid {
    grid-template-columns: 1fr;
  }

  .rj-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive 560px */
@media (max-width: 560px) {
  .rj-hero {
    min-height: 480px;
  }

  .rj-finder__grid {
    grid-template-columns: 1fr;
  }

  .rj-features,
  .rj-grid,
  .rj-stats,
  .rj-footer__grid {
    grid-template-columns: 1fr;
  }

  .rj-section {
    padding: 2.5rem 0;
  }

  .rj-cookie__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .rj-cookie__actions {
    justify-content: stretch;
  }

  .rj-cookie__actions .rj-btn {
    flex: 1;
  }

  .rj-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
