/* ============================================================
   Sant Cugat Student Rentals — Stylesheet
   Editorial. Warm. Mediterranean.
   Cormorant Garamond (display) + Manrope (body).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --cream: #faf6ef;
  --cream-deep: #f3ecdf;
  --ink: #2a2520;
  --ink-soft: #5a4f44;
  --terracotta: #b85c3a;
  --terracotta-dark: #8a3f25;
  --olive: #6b7350;
  --gold: #c08a3e;
  --rule: #d8cfbf;

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1180px;
  --max-narrow: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--terracotta-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
a:hover { border-bottom-color: var(--terracotta-dark); }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15; margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; margin-bottom: .6rem; }
h4 { font-size: 1.15rem; line-height: 1.3; margin-bottom: .4rem; font-weight: 600; }

p { margin-bottom: 1.1rem; max-width: 68ch; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: .8rem;
  display: block;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 400;
  max-width: 60ch;
}

/* ----- Layout ----- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--rule); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 3.5rem 0; }
}

/* ----- Header / Nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  border-bottom: none;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand em { color: var(--terracotta); font-style: italic; }
.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: none;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--terracotta); }
.nav-cta {
  background: var(--terracotta);
  color: var(--cream) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--terracotta-dark); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--rule);
    align-items: flex-start;
  }
  .nav-toggle { display: block; }
}

/* ----- Hero ----- */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(184, 92, 58, 0.06), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(107, 115, 80, 0.05), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero h1 { margin: 0.5rem 0 1.5rem; max-width: 18ch; }
.hero h1 em { color: var(--terracotta); font-style: italic; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.hero-meta strong { color: var(--ink); display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 0.2rem; font-weight: 500; }

.hero-image {
  margin-top: 3rem;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--cream-deep) 0%, var(--rule) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.1rem;
  border-radius: 2px;
  overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
  border-bottom: none;
}
.btn-primary:hover { background: var(--terracotta-dark); border-bottom: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-bottom-color: var(--ink); }

.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ----- Proximity Infographic ----- */
.proximity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.prox-item {
  border-left: 2px solid var(--terracotta);
  padding-left: 1.2rem;
}
.prox-item .distance {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--terracotta);
  line-height: 1;
  font-weight: 500;
  display: block;
  margin-bottom: 0.4rem;
  font-style: italic;
}
.prox-item .place {
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.98rem;
}
.prox-item .detail { font-size: 0.88rem; color: var(--ink-soft); }

/* ----- Room blocks ----- */
.room-block {
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
}
.room-block:last-child { border-bottom: none; }
.room-block .grid-2 { gap: 4rem; }
.room-image {
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--serif);
  border-radius: 2px;
  overflow: hidden;
}
.room-image img { width: 100%; height: 100%; object-fit: cover; }
.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.room-name {
  font-family: var(--serif);
  font-style: italic;
  color: var(--terracotta);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Tier headers */
.tier { padding: 2rem 0 1rem; margin-top: 2rem; }
.tier h2 {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.tier-mark {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--olive);
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  font-weight: 600;
  vertical-align: middle;
}
.tier-mark.premium { background: var(--terracotta); }

/* ----- FAQ ----- */
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
}
.faq-item summary {
  font-family: var(--serif);
  font-size: 1.25rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.6rem;
  color: var(--terracotta);
  transition: transform .2s ease;
  font-family: var(--sans);
  font-weight: 300;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { margin-top: 1rem; color: var(--ink-soft); max-width: 70ch; }
.faq-item .answer p { margin-bottom: 0.8rem; }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* ----- Highlight box ----- */
.highlight-box {
  background: var(--cream-deep);
  border-left: 3px solid var(--terracotta);
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  border-radius: 0 2px 2px 0;
}
.highlight-box p:last-child { margin-bottom: 0; }
.highlight-box .label {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
}

/* ----- Tenant diversity (dark band) ----- */
.diversity {
  background: var(--ink);
  color: var(--cream);
  padding: 5rem 0;
}
.diversity h2 { color: var(--cream); }
.diversity .eyebrow { color: var(--gold); }
.diversity p { color: rgba(250, 246, 239, 0.85); }
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  margin-top: 1.5rem;
  max-width: 70ch;
}
.tag-cloud span {
  border: 1px solid rgba(250, 246, 239, 0.3);
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
  border-radius: 2px;
  font-family: var(--sans);
  letter-spacing: 0.02em;
}
.tag-cloud.programs span { border-color: var(--gold); color: var(--gold); }

/* ----- Amenities ----- */
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 2rem;
  margin-top: 2rem;
}
.amenity {
  padding: 1.2rem 0;
  border-top: 1px solid var(--rule);
}
.amenity strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.amenity span { font-size: 0.92rem; color: var(--ink-soft); }

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: rgba(250, 246, 239, 0.7);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}
.site-footer h4 {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250, 246, 239, 0.15);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.site-footer ul { list-style: none; }
.site-footer a {
  color: rgba(250, 246, 239, 0.7);
  border-bottom: none;
  display: block;
  padding: 0.2rem 0;
}
.site-footer a:hover { color: var(--gold); border-bottom: none; }
.footer-bottom {
  padding-top: 2rem;
  font-size: 0.82rem;
  color: rgba(250, 246, 239, 0.45);
}

/* ----- Contact card ----- */
.contact-card {
  background: var(--cream-deep);
  padding: 3rem;
  border-radius: 2px;
  border-left: 4px solid var(--terracotta);
}
.contact-card h3 { margin-bottom: 1.5rem; }
.contact-line {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  flex-wrap: wrap;
}
.contact-line .label {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  min-width: 90px;
}
.contact-line a { font-size: 1.1rem; color: var(--ink); }
.contact-line a:hover { color: var(--terracotta); border-color: var(--terracotta); }

/* ----- Page header ----- */
.page-header {
  padding: 5rem 0 3rem;
  background: var(--cream-deep);
}
.page-header .eyebrow { color: var(--terracotta); }
.page-header h1 { margin-bottom: 1rem; }

/* ----- Process list ----- */
.process-list {
  list-style: none;
  counter-reset: step;
  margin-top: 2rem;
}
.process-list li {
  counter-increment: step;
  padding: 1.5rem 0 1.5rem 4rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.process-list li:last-child { border-bottom: none; }
.process-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.5rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--terracotta);
  font-style: italic;
  font-weight: 500;
}
.process-list h4 { margin-bottom: 0.4rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.process-list p { margin-bottom: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ----- Rules grid ----- */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
}
.rule-item {
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.rule-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.rule-item span { font-size: 0.9rem; color: var(--ink-soft); }

/* Utility */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
hr.rule { border: none; border-top: 1px solid var(--rule); margin: 3rem 0; }

/* Decorative ornament */
.ornament {
  text-align: center;
  margin: 3rem 0;
  color: var(--terracotta);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: 1em;
  padding-left: 1em;
}

@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  body { color: black; background: white; }
}
