/* ========================================
   HAUS&CO. PROPERTIES
   Design System — Shared Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ---- Design Tokens ---- */
:root {
  /* Brand — pulled from logo */
  --amber:        #D4870F;
  --amber-light:  #F0A830;
  --amber-dark:   #B56F0A;
  --amber-pale:   #FDF3E2;

  /* Dark */
  --dark:         #1A1628;
  --dark-mid:     #2E2A3D;

  /* Campus-energy accents */
  --purple:       #6D28D9;
  --purple-light: #8B5CF6;
  --purple-pale:  #EDE9FE;
  --coral:        #F06449;
  --coral-pale:   #FEF0ED;
  --teal:         #0D9488;
  --teal-pale:    #CCFBF1;

  /* Neutrals */
  --white:        #FFFFFF;
  --warm-white:   #FAFAF7;
  --cream:        #F5EFE5;
  --grey-100:     #F0EBE3;
  --grey-200:     #E2D9CF;
  --text:         #1A1628;
  --text-mid:     #4A4260;
  --text-light:   #8C85A8;

  /* University palette */
  --ncstate:      #CC0000;
  --ncstate-pale: #FFF0F0;
  --unc:          #4B9CD3;
  --unc-pale:     #EFF8FF;
  --duke:         #003087;
  --duke-pale:    #EEF3FC;

  /* Shape */
  --radius-xs:    0.375rem;
  --radius-sm:    0.625rem;
  --radius-md:    1rem;
  --radius-lg:    1.5rem;
  --radius-xl:    2rem;
  --radius-2xl:   3rem;
  --radius-full:  9999px;

  /* Shadows */
  --shadow-sm:    0 1px 4px rgba(26,22,40,.07), 0 1px 2px rgba(26,22,40,.05);
  --shadow-md:    0 4px 18px rgba(26,22,40,.10), 0 2px 5px rgba(26,22,40,.06);
  --shadow-lg:    0 12px 40px rgba(26,22,40,.13), 0 4px 12px rgba(26,22,40,.07);
  --shadow-amber: 0 8px 24px rgba(212,135,15,.28);

  /* Motion */
  --ease:         cubic-bezier(.4,0,.2,1);
  --t:            .2s var(--ease);
  --t-slow:       .4s var(--ease);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.12;
  color: var(--dark);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-mid); }

.eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: .5rem;
}

/* ---- Layout ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section      { padding: 5rem 0; }
.section--sm  { padding: 3rem 0; }
.section--lg  { padding: 7rem 0; }
.section--dark { background: var(--dark); }
.section--cream { background: var(--cream); }
.section--purple-pale { background: var(--purple-pale); }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,250,247,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--grey-200);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1.5rem;
}

/* Logo wordmark */
.nav__logo { display: flex; align-items: center; gap: .625rem; flex-shrink: 0; }

.logo-icon {
  width: 38px;
  height: 32px;
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1; }

.logo-wordmark {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.logo-wordmark .haus { color: var(--amber); }
.logo-wordmark .andco { color: var(--dark); }

.logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 1px;
}

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: .125rem;
  flex: 1;
  justify-content: center;
}

.nav__link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: .5rem .875rem;
  border-radius: var(--radius-full);
  transition: var(--t);
  white-space: nowrap;
}

.nav__link:hover, .nav__link.active {
  color: var(--dark);
  background: var(--cream);
}

.nav__actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 9999px;
  transition: var(--t);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-full);
  transition: var(--t);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--amber);
  color: #fff;
  box-shadow: var(--shadow-amber);
}
.btn--primary:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212,135,15,.38);
}

.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: var(--dark-mid); transform: translateY(-2px); }

.btn--outline { border-color: var(--dark); color: var(--dark); background: transparent; }
.btn--outline:hover { background: var(--dark); color: #fff; }

.btn--outline-amber { border-color: var(--amber); color: var(--amber); background: transparent; }
.btn--outline-amber:hover { background: var(--amber); color: #fff; }

.btn--outline-light { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }

.btn--sm { font-size: .82rem; padding: .5rem 1.1rem; }
.btn--lg { font-size: 1.05rem; padding: 1rem 2rem; }

/* ---- University Badges ---- */
.uni-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-family: 'Outfit', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  padding: .28rem .75rem;
  border-radius: var(--radius-full);
  border: 1.5px solid currentColor;
  white-space: nowrap;
}
.uni-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.uni-badge--ncstate { color: var(--ncstate); background: var(--ncstate-pale); }
.uni-badge--unc     { color: var(--unc);     background: var(--unc-pale); }
.uni-badge--duke    { color: var(--duke);    background: var(--duke-pale); }

/* ---- University Tab Selector ---- */
.uni-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }

.uni-tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--t);
  background: var(--grey-100);
  color: var(--text-mid);
}
.uni-tab:hover { background: var(--cream); color: var(--dark); }
.uni-tab.active--ncstate { background: var(--ncstate-pale); border-color: var(--ncstate); color: var(--ncstate); }
.uni-tab.active--unc     { background: var(--unc-pale);     border-color: var(--unc);     color: var(--unc); }
.uni-tab.active--duke    { background: var(--duke-pale);    border-color: var(--duke);    color: var(--duke); }
.uni-tab.active--all     { background: var(--amber-pale);   border-color: var(--amber);   color: var(--amber-dark); }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
  transition: var(--t-slow);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.card__icon--amber  { background: var(--amber-pale); }
.card__icon--purple { background: var(--purple-pale); }
.card__icon--coral  { background: var(--coral-pale); }
.card__icon--teal   { background: var(--teal-pale); }

/* ---- Hero Floating Doodles ---- */
.doodle {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.doodle--1 { animation: doodle-float-a 6.5s ease-in-out infinite; }
.doodle--2 { animation: doodle-float-b 8s ease-in-out infinite; }
.doodle--3 { animation: doodle-float-c 7s ease-in-out infinite 1s; }
.doodle--4 { animation: doodle-float-a 9s ease-in-out infinite 2s; }
.doodle--5 { animation: doodle-float-b 7.5s ease-in-out infinite .5s; }
.doodle--6 { animation: doodle-float-c 6s ease-in-out infinite 1.5s; }
.doodle--7 { animation: doodle-float-a 8.5s ease-in-out infinite .75s; }

@keyframes doodle-float-a {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}
@keyframes doodle-float-b {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(14px) rotate(-8deg); }
}
@keyframes doodle-float-c {
  0%,100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-10px) rotate(12deg) scale(1.04); }
}

/* ---- Text Highlight ---- */
.highlight {
  position: relative;
  display: inline-block;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: -4px; right: -4px; height: 12px;
  background: var(--amber);
  opacity: .22;
  border-radius: 4px;
  z-index: -1;
}

/* ---- Stats Bar ---- */
.stats-bar { background: var(--dark); padding: 1.1rem 0; }
.stats-bar__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
  max-width: 1180px; margin: 0 auto; padding: 0 1.5rem;
}
.stat { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.65); font-size: .9rem; }
.stat strong { color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; }
.stat-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); }

/* ---- Section Heading ---- */
.section-heading { margin-bottom: 3rem; }
.section-heading--center { text-align: center; }
.section-heading p { max-width: 560px; margin-top: .6rem; }
.section-heading--center p { margin-left: auto; margin-right: auto; }

/* ---- Feature List ---- */
.feature-item {
  display: flex; align-items: flex-start; gap: .875rem; margin-bottom: .875rem;
}
.feature-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.feature-check svg { width: 11px; height: 11px; stroke: white; stroke-width: 2.5; fill: none; }
.feature-item p { font-size: .95rem; }

/* ---- Testimonials ---- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
}
.testimonial__stars { color: var(--amber); font-size: .9rem; letter-spacing: 2px; margin-bottom: .75rem; }
.testimonial__text { font-size: .93rem; line-height: 1.7; margin-bottom: 1rem; }
.testimonial__author { display: flex; align-items: center; gap: .75rem; }
.testimonial__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--purple-pale);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: .9rem; color: var(--purple); flex-shrink: 0;
}
.testimonial__name { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .88rem; }
.testimonial__meta { font-size: .78rem; color: var(--text-light); }

/* ---- Listing Cards ---- */
.listing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
  transition: var(--t-slow);
  display: flex; flex-direction: column;
}
.listing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.listing-card__img {
  height: 195px;
  background: linear-gradient(135deg, var(--cream), var(--purple-pale));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  position: relative;
  overflow: hidden;
}
.listing-card__img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.listing-card:hover .listing-card__img img { transform: scale(1.05); }
.listing-card__badge { position: absolute; top: .875rem; left: .875rem; z-index: 2; }
.listing-card__tag {
  position: absolute; top: .875rem; right: .875rem;
  background: var(--dark); color: #fff;
  font-family: 'Outfit', sans-serif; font-size: .7rem; font-weight: 700;
  padding: .25rem .65rem; border-radius: var(--radius-full);
  letter-spacing: .04em;
}

.listing-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.listing-card__price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem; font-weight: 800; color: var(--dark); margin-bottom: .2rem;
}
.listing-card__price span { font-size: .82rem; font-weight: 400; color: var(--text-light); }
.listing-card__address { font-size: .88rem; margin-bottom: .875rem; }
.listing-card__meta { display: flex; gap: .875rem; font-size: .8rem; color: var(--text-light); }
.listing-card__meta span { display: flex; align-items: center; gap: .3rem; }
.listing-card__footer {
  padding: .875rem 1.25rem;
  border-top: 1px solid var(--grey-100);
  display: flex; align-items: center; justify-content: space-between;
}

/* ---- City Cards ---- */
.city-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--t-slow);
}
.city-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.city-card__hero {
  height: 210px;
  display: flex; align-items: flex-end;
  padding: 1.5rem;
  position: relative;
  font-size: 4rem;
}
.city-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,22,40,.82) 0%, rgba(26,22,40,.1) 60%, transparent 100%);
}
.city-card__label {
  position: relative;
  font-family: 'Outfit', sans-serif;
}
.city-card__name { font-size: 1.45rem; font-weight: 800; color: #fff; }
.city-card__uni  { font-size: .78rem; color: rgba(255,255,255,.7); font-weight: 400; margin-top: .1rem; }
.city-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.city-card__body p { font-size: .9rem; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -50%; left: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(212,135,15,.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: .6rem; }
.cta-banner p  { color: rgba(255,255,255,.6); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Forms ---- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: 'Outfit', sans-serif; font-size: .875rem; font-weight: 600;
  color: var(--dark); margin-bottom: .4rem;
}
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif; font-size: .95rem;
  color: var(--dark); background: var(--white);
  transition: var(--t); outline: none; appearance: none;
}
.form-control:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(212,135,15,.12); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239C96A0' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ---- Notice Banner ---- */
.notice-banner {
  background: var(--amber-pale);
  border: 1.5px solid rgba(212,135,15,.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: .875rem; color: var(--amber-dark);
  display: flex; align-items: flex-start; gap: .75rem;
}
.notice-banner svg { flex-shrink: 0; margin-top: 1px; }

/* ---- Footer ---- */
.footer { background: var(--dark); padding: 4rem 0 2rem; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
  max-width: 1180px; margin-left: auto; margin-right: auto; padding: 0 1.5rem;
  margin-bottom: 2.5rem;
}
.footer .logo-wordmark .haus  { color: var(--amber); }
.footer .logo-wordmark .andco { color: #fff; }
.footer .logo-sub { color: rgba(255,255,255,.35); }
.footer__brand-desc {
  color: rgba(255,255,255,.45); font-size: .88rem; margin-top: 1rem;
  max-width: 250px; line-height: 1.75;
}
.footer__col-title {
  font-family: 'Outfit', sans-serif; font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer__col a { font-size: .88rem; color: rgba(255,255,255,.55); transition: var(--t); }
.footer__col a:hover { color: var(--amber); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 1.5rem 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  max-width: 1180px; margin: 0 auto;
}
.footer__disclaimer { font-size: .78rem; color: rgba(255,255,255,.28); max-width: 580px; line-height: 1.6; }
.footer__copy { font-size: .82rem; color: rgba(255,255,255,.28); white-space: nowrap; }

/* ---- Scroll Reveal ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--grey-200);
    padding: 1rem; gap: .25rem; z-index: 199;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .cta-banner { padding: 2.5rem 1.5rem; border-radius: var(--radius-lg); }
  .footer__inner { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
  .stats-bar__inner { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .btn--lg { font-size: .95rem; padding: .875rem 1.6rem; }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Utilities ---- */
.text-amber   { color: var(--amber); }
.text-white   { color: #fff; }
.text-center  { text-align: center; }
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-sm       { gap: .5rem; }
.gap-md       { gap: 1rem; }
.gap-lg       { gap: 1.5rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
