/* Creative Avenue — Design System */

:root {
  --terracotta: #C4704A;
  --terracotta-dark: #A85A38;
  --peach: #E5A07D;
  --cream: #F5F0E8;
  --cream-dark: #EBE4D8;
  --charcoal: #2C2C2C;
  --charcoal-light: #4A4A4A;
  --green: #4A7C59;
  --orange: #E67E22;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(44, 44, 44, 0.08);
  --shadow-lg: 0 12px 48px rgba(44, 44, 44, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  color: var(--white);
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 20, 0.72) 0%,
    rgba(20, 20, 20, 0.4) 60%,
    transparent 100%
  );
  transition: var(--transition);
}

.header.is-scrolled {
  color: var(--charcoal);
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 12px 0;
}

.header .logo-text {
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.header.is-scrolled .logo-text {
  color: var(--charcoal);
  text-shadow: none;
}

.header .nav-links a:not(.btn) {
  color: var(--white);
  opacity: 1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.header.is-scrolled .nav-links a:not(.btn) {
  color: var(--charcoal);
  opacity: 0.85;
  text-shadow: none;
}

.header .nav-links a:not(.btn):hover {
  color: var(--peach);
}

.header.is-scrolled .nav-links a:not(.btn):hover {
  color: var(--terracotta);
}

.header .nav-links .btn-sm {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.header.is-scrolled .nav-links .btn-sm {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.header .nav-toggle span {
  background: var(--white);
}

.header.is-scrolled .nav-toggle span {
  background: var(--charcoal);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition), opacity var(--transition);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 44, 44, 0.75) 0%,
    rgba(44, 44, 44, 0.45) 50%,
    rgba(196, 112, 74, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 140px 24px 80px;
  color: var(--white);
  max-width: 720px;
}

.hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--peach);
}

.hero-desc {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.75;
}

/* Section common */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.section-header p {
  font-size: 17px;
  color: var(--charcoal-light);
}

/* Directions */
.directions {
  padding: 100px 0;
  background: var(--white);
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.category-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.category-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.category-visual {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.category-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover .category-visual img {
  transform: scale(1.05);
}

.category-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  font-size: 22px;
  box-shadow: var(--shadow);
}

.category-body {
  padding: 24px;
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.category-count {
  font-size: 14px;
  color: var(--charcoal-light);
}

.category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--terracotta);
  cursor: pointer;
  transition: var(--transition);
}

.category-toggle:hover {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.category-toggle svg {
  transition: transform var(--transition);
}

.category-card.is-open .category-toggle svg {
  transform: rotate(180deg);
}

.directions-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.direction-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  transition: var(--transition);
}

.direction-item:hover {
  border-color: var(--peach);
  background: rgba(229, 160, 125, 0.08);
}

.direction-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
}

.direction-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.direction-info strong {
  font-size: 15px;
  font-weight: 600;
}

.direction-info span {
  font-size: 13px;
  color: var(--charcoal-light);
}

/* Campus */
.campus {
  padding: 100px 0;
  background: var(--cream);
}

.campus-showcase {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 20px;
  margin-bottom: 64px;
}

.campus-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.campus-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.campus-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(44, 44, 44, 0.85));
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
}

.campus-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 480px;
}

.campus-thumb {
  flex-shrink: 0;
  padding: 0;
  border: 3px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: none;
}

.campus-thumb img {
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.campus-thumb:hover,
.campus-thumb.active {
  border-color: var(--terracotta);
}

.campus-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.feature {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: var(--charcoal-light);
  line-height: 1.6;
}

/* About */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-images {
  position: relative;
  height: 520px;
}

.about-img-main {
  width: 75%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.about-content p {
  color: var(--charcoal-light);
  margin-bottom: 16px;
}

.about-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.about-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
  flex-shrink: 0;
}

/* CTA */
.cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(44, 44, 44, 0.9) 0%,
    rgba(44, 44, 44, 0.7) 100%
  );
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: var(--white);
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-content > p {
  opacity: 0.85;
  margin-bottom: 32px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-form input,
.cta-form select {
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
}

.cta-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cta-form input:focus,
.cta-form select:focus {
  outline: none;
  border-color: var(--peach);
  background: rgba(255, 255, 255, 0.15);
}

.cta-form select {
  cursor: pointer;
}

.cta-form select option,
.cta-form select optgroup {
  color: var(--charcoal);
  background: var(--white);
}

.form-note {
  font-size: 18px;
  font-weight: 500;
  color: var(--peach);
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.7;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--peach);
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  opacity: 0.5;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.category-card.reveal {
  transition-delay: var(--delay, 0s);
}

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 80px 32px 32px;
    background: var(--cream);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
  }

  .nav-links.is-open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--cream-dark);
  }

  .campus-showcase {
    grid-template-columns: 1fr;
  }

  .campus-thumbs {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
  }

  .campus-thumb {
    width: 100px;
    flex-shrink: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-images {
    height: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

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

  .hero-stats {
    gap: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
