/* Upward Bound Living — blues and whites inspired UI */

:root {
  --navy: #1e3a5f;
  --navy-deep: #0a1628;
  --blue-muted: #5a80b7;
  --blue-medium: #336699;
  --blue-bright: #3b82f6;
  --text: #2c3e50;
  --text-soft: #5a677d;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --divider: #cbd5e1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lato", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

/* Header — navy background, white logo and text */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  font-family: "Libre Baskerville", Georgia, serif;
}

.logo:hover {
  color: #fff;
}

.logo-icon {
  flex-shrink: 0;
  display: block;
}

.logo-text {
  color: #fff;
  letter-spacing: 0.01em;
}

.logo-name {
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: #fff;
}

/* Main content */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 4rem;
}

.page-title {
  font-family: "Cormorant", Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--navy);
}

.section h2 {
  font-family: "Cormorant", Georgia, serif;
  font-size: 2.375rem;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--navy);
  border-bottom: 1px solid var(--divider);
  padding-bottom: 0.5rem;
}

.section .page-title + h2 {
  margin-top: 0;
}

.section h3 {
  font-family: "Cormorant", Georgia, serif;
  font-size: 1.625rem;
  font-weight: 500;
  margin: 1.25rem 0 0.5rem;
  color: var(--navy);
}

.section p,
.lead {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  color: var(--text);
  margin: 0 0 1rem;
}

/* Hero */
.hero {
  padding: 0.5rem 0 2rem;
}

.hero-tagline {
  font-family: "Lato", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-muted);
  margin: 0 0 0.75rem;
}

.hero-tagline::before,
.hero-tagline::after {
  content: "";
}

.hero-title {
  font-family: "Cormorant", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--navy);
  line-height: 1.25;
}

.hero-title-accent {
  font-style: italic;
  color: var(--blue-muted);
  font-weight: 500;
}

.hero-text {
  font-size: 1.0625rem;
  max-width: 52ch;
  margin: 0 0 1.5rem;
  color: var(--text-soft);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  font-family: "Lato", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--blue-medium);
  color: #fff;
  border: 2px solid var(--blue-medium);
}

.btn-primary:hover {
  background: #2a5580;
  border-color: #2a5580;
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--blue-medium);
  border: 2px solid var(--blue-medium);
}

.btn-secondary:hover {
  background: rgba(51, 102, 153, 0.08);
  color: var(--blue-medium);
}

/* Section cards — white, rounded (inspiration card style) */
.section-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 3px rgba(30, 58, 95, 0.06);
  border: 1px solid var(--border);
}

.section-card h2 {
  margin-top: 0;
}

/* Home page: plain sections (no card) */
.home-section {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--divider);
}

.home-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Cities */
.city-block {
  margin-bottom: 2rem;
}

.city-block:first-of-type {
  margin-top: 1rem;
}

.no-vacancies {
  color: var(--text-soft);
  font-style: italic;
  margin: 0.25rem 0 0;
}

/* Carousel */
.carousel-wrapper {
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.carousel-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.carousel-item {
  display: none;
  position: absolute;
  inset: 0;
}

.carousel-item.active {
  display: block;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(30, 58, 95, 0.5);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
}

.carousel-btn:hover {
  background: var(--navy);
}

.carousel-btn.prev {
  left: 0.5rem;
}

.carousel-btn.next {
  right: 0.5rem;
}

.city-text {
  margin: 1rem 0;
}

.city-text p {
  margin: 0;
}

.city-block .btn-primary {
  margin-top: 0.5rem;
}

/* House Rules — scrollable box */
.rules-disclaimer {
  font-style: italic;
  color: var(--text-soft);
  margin: 0 0 1rem;
  max-width: 60ch;
}

.rules-scroll-wrapper {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: var(--bg);
  margin-top: 0.5rem;
}

.rules-content {
  margin: 0;
}

.rules-content .rules-main-title {
  font-family: "Cormorant", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 0.5rem;
  border: none;
  padding: 0;
}

.rules-content .rules-intro {
  margin-bottom: 1rem;
}

.rules-content h3 {
  font-family: "Cormorant", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  margin: 1.25rem 0 0.5rem;
}

.rules-content h3:first-of-type {
  margin-top: 0;
}

.rules-content ul,
.rules-content ol {
  margin: 0.5rem 0 0;
  padding-left: 1.5rem;
}

.rules-content li {
  margin-bottom: 0.4rem;
}

.rules-signature-block {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.rules-signature-block p {
  margin: 0.35rem 0;
  font-size: 0.9375rem;
}

.rules-content .rules-footer-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Lead Form */
.lead-form {
  margin-top: 1.5rem;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: "Lato", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.form-optional {
  font-weight: 300;
  color: var(--divider);
}

.form-group input,
.form-group textarea {
  font-family: "Lato", sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--divider);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-medium);
  box-shadow: 0 0 0 3px rgba(51, 102, 153, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-submit-row {
  margin-top: 0.25rem;
}

.form-btn {
  border: none;
  width: 100%;
  font-size: 1rem;
  padding: 0.75rem 1.35rem;
}

.form-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-status {
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  display: none;
}

.form-status.success {
  color: #1a6e3e;
  display: block;
}

.form-status.error {
  color: #b91c1c;
  display: block;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.contact-section .contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

.contact-list a {
  color: var(--blue-bright);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 1.5rem 2rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover,
.footer-nav .footer-contact {
  color: #fff;
}

.footer-contact {
  font-weight: 600;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .main-nav {
    flex-wrap: wrap;
  }
}
