/* University Courtyard — Student Housing Resource
   Theme: Warm Teal & Orange — modern, approachable, student-friendly
   Framework: Bootstrap 5 (CDN)
   This file handles brand colors, typography, and custom components only */

:root {
  --primary: #2A9D8F;        /* teal — calm, trustworthy */
  --primary-dark: #1E7568;
  --primary-light: #4DC5B5;
  --secondary: #E9C46A;      /* warm amber */
  --accent: #F4A261;         /* warm orange */
  --dark: #1A2B3C;
  --text: #2C3E50;
  --text-light: #6B7C8D;
  --bg-light: #F8FAFB;
  --bg-card: #FFFFFF;
  --border: #E0EAF0;
  --success: #2A9D8F;
  --white: #FFFFFF;
}

/* ── Base ── */
body {
  font-family: 'Nunito', 'Inter', system-ui, sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

/* ── Navbar ── */
.navbar {
  background: var(--dark) !important;
  padding: 0.9rem 0;
  box-shadow: 0 2px 12px rgba(26,43,60,0.15);
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white) !important;
  letter-spacing: -0.3px;
}

.navbar-brand span {
  color: var(--accent);
}

.nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.4rem 0.85rem !important;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--white) !important;
  background: rgba(255,255,255,0.1);
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.4);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,43,60,0.82) 0%, rgba(42,157,143,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 1.1rem;
}

.hero-content p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  max-width: 580px;
  margin-bottom: 1.8rem;
}

/* ── Page Hero (inner pages — no image) ── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  padding: 4rem 0 3.5rem;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin: 0;
}

/* ── Buttons ── */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: all 0.25s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42,157,143,0.35);
}

.btn-outline-light {
  border-width: 2px;
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: all 0.25s;
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
  padding: 0.7rem 1.8rem;
  font-weight: 700;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: all 0.25s;
}

.btn-accent:hover {
  background: #e08a45;
  border-color: #e08a45;
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244,162,97,0.4);
}

/* ── Cards ── */
.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(26,43,60,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26,43,60,0.12);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* ── Feature Icon Boxes ── */
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white);
  flex-shrink: 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.25s;
  height: 100%;
}

.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 6px 24px rgba(42,157,143,0.12);
  transform: translateY(-3px);
}

/* ── Section Styles ── */
.section-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
}

/* ── Topic tags ── */
.topic-tag {
  display: inline-block;
  background: rgba(42,157,143,0.1);
  color: var(--primary-dark);
  border-radius: 20px;
  padding: 0.25rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(42,157,143,0.2);
}

/* ── Breadcrumb ── */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item a {
  color: rgba(255,255,255,0.7);
}

.breadcrumb-item.active {
  color: rgba(255,255,255,0.9);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
}

/* ── Content Article ── */
.article-body h2 {
  font-size: 1.55rem;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  padding-top: 0.25rem;
  color: var(--dark);
}

.article-body h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.article-body p {
  margin-bottom: 1.2rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.2rem;
  padding-left: 1.4rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body .article-image {
  border-radius: 16px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(26,43,60,0.1);
}

.article-body .article-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ── Sidebar ── */
.sidebar-card {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav-list li {
  border-bottom: 1px solid var(--border);
}

.sidebar-nav-list li:last-child {
  border-bottom: none;
}

.sidebar-nav-list a {
  display: block;
  padding: 0.7rem 0;
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.sidebar-nav-list a:hover {
  color: var(--primary);
  text-decoration: none;
}

.sidebar-nav-list a.active {
  color: var(--primary);
  font-weight: 700;
}

/* ── Stats Strip ── */
.stats-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3.5rem 0;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin-top: 0.3rem;
}

/* ── FAQ Accordion ── */
.accordion-button {
  font-weight: 600;
  color: var(--dark);
  background: var(--bg-light);
}

.accordion-button:not(.collapsed) {
  color: var(--primary-dark);
  background: rgba(42,157,143,0.08);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-light);
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 12px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

/* ── Contact Form ── */
.contact-form .form-control {
  border-color: var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42,157,143,0.15);
}

.contact-form label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

/* ── Glossary ── */
.glossary-letter {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
  margin-top: 2rem;
}

.glossary-term {
  font-weight: 700;
  color: var(--dark);
}

/* ── Footer ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
}

footer .footer-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.7rem;
}

footer .footer-brand span {
  color: var(--accent);
}

footer .footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
}

footer h6 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}

footer ul li a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.2rem;
  margin-top: 2.5rem;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.45);
}

/* ── Utilities ── */
.bg-teal { background: var(--primary); }
.bg-teal-light { background: rgba(42,157,143,0.08); }
.text-teal { color: var(--primary); }
.text-amber { color: var(--secondary); }

.rounded-xl { border-radius: 16px !important; }
.rounded-2xl { border-radius: 24px !important; }

.shadow-soft { box-shadow: 0 4px 20px rgba(26,43,60,0.08) !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    min-height: 420px;
  }
  .article-body .article-image img {
    height: 240px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .stat-number {
    font-size: 2rem;
  }
}
