/* ═══════════════════════════════════════════════════════════
   Turner Drive Apartments — Custom Styles
   Palette: plum (#7B2D8B) + amber (#F5C518)
   Fonts: Playfair Display + Outfit
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: #FFFAF5;
  color: #2D1033;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── Utility ─────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section--light { background: #FFFAF5; }
.section--plum { background: linear-gradient(135deg, #5e1f65 0%, #7B2D8B 50%, #8a2474 100%); }
.section--amber { background: linear-gradient(135deg, #fff8d6 0%, #ffefaa 100%); }

.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a53490;
  margin-bottom: 0.75rem;
}
.section__eyebrow--light { color: #f3d8f1; }
.section__eyebrow--dark { color: #7a4e00; }

.section__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #2D1033;
  margin-bottom: 1rem;
}
.section__title--light { color: #fff; }
.section__title--dark { color: #5e1f65; }

.section__lead {
  font-size: 1.05rem;
  color: #5a2d6b;
  max-width: 640px;
  line-height: 1.75;
}
.section__lead--light { color: #f3d8f1; }
.section__lead--dark { color: #7a4e00; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.8rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: #7B2D8B;
  color: #fff;
  box-shadow: 0 4px 16px rgba(123,45,139,0.3);
}
.btn--primary:hover {
  background: #5e1f65;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123,45,139,0.4);
}
.btn--ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}
.btn--dark {
  background: #2D1033;
  color: #fff;
}
.btn--dark:hover {
  background: #4a174f;
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: #7B2D8B;
  border: 1.5px solid #7B2D8B;
}
.btn--outline:hover {
  background: #7B2D8B;
  color: #fff;
  transform: translateY(-2px);
}
.btn--lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── Navbar ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 250, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(123,45,139,0.08);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(123,45,139,0.1); }
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #2D1033;
}
.nav__logo { width: 32px; height: 32px; color: #7B2D8B; flex-shrink: 0; }
.nav__accent { color: #a53490; }
.nav__links { display: flex; align-items: center; gap: 0.25rem; }
.nav__link {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #5a2d6b;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.nav__link:hover { background: rgba(123,45,139,0.08); color: #7B2D8B; }
.nav__link--cta {
  background: #7B2D8B;
  color: #fff !important;
  border-radius: 9999px;
  margin-left: 0.5rem;
}
.nav__link--cta:hover { background: #5e1f65; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: #2D1033;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #FFFAF5 0%, #faf0fb 50%, #fff8d6 100%);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a53490;
  margin-bottom: 1rem;
}
.hero__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #2D1033;
  margin-bottom: 1.25rem;
}
.hero__highlight {
  color: #7B2D8B;
  position: relative;
}
.hero__highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(245,197,24,0.4);
  z-index: -1;
  border-radius: 2px;
}
.hero__lead {
  font-size: 1.1rem;
  color: #5a2d6b;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #2D1033;
}
.hero__stat-label {
  font-size: 0.78rem;
  color: #8a6098;
  letter-spacing: 0.04em;
}
.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(123,45,139,0.2);
}

/* Hero visual */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero__img {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(123,45,139,0.15);
}
.hero__img--main {
  order: 1;
  aspect-ratio: 640/800;
}
.hero__img--main img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--accent {
  order: 2;
  margin-top: -3rem;
  margin-left: 2rem;
  aspect-ratio: 400/300;
  box-shadow: 0 12px 40px rgba(123,45,139,0.2);
  border: 4px solid rgba(255,250,245,0.8);
}
.hero__img--accent img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  order: 3;
  margin-left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #F5C518;
  color: #5e1f65;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  width: fit-content;
  box-shadow: 0 4px 16px rgba(245,197,24,0.35);
}
.hero__badge svg { width: 16px; height: 16px; }

/* Hero blobs */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}
.hero__blob--plum {
  width: 500px; height: 500px;
  background: #a53490;
  top: -10%; right: -5%;
}
.hero__blob--amber {
  width: 350px; height: 350px;
  background: #F5C518;
  bottom: 5%; left: 30%;
}

/* ── Cards ───────────────────────────────────────────────── */
.living__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(123,45,139,0.07);
  transition: all 0.3s ease;
  border: 1px solid rgba(123,45,139,0.06);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(123,45,139,0.14);
}
.card__img {
  aspect-ratio: 560/360;
  overflow: hidden;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 1.5rem; }
.card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2D1033;
  margin-bottom: 0.5rem;
}
.card__text { font-size: 0.92rem; color: #5a2d6b; line-height: 1.7; }

/* ── Amenities ───────────────────────────────────────────── */
.amenities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.amenity {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 1rem;
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.amenity:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-4px);
}
.amenity__icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(245,197,24,0.2);
  color: #F5C518;
  margin-bottom: 1rem;
}
.amenity__icon svg { width: 24px; height: 24px; }
.amenity__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}
.amenity__text { font-size: 0.88rem; color: #f3d8f1; line-height: 1.7; }

/* ── Location ────────────────────────────────────────────── */
.location__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.location__list {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.location__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #5a2d6b;
}
.location__list svg { width: 18px; height: 18px; color: #7B2D8B; flex-shrink: 0; }
.location__map { border-radius: 1rem; overflow: hidden; box-shadow: 0 12px 40px rgba(123,45,139,0.12); }

/* ── CTA ─────────────────────────────────────────────────── */
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta__text { flex: 1; min-width: 280px; }
.cta__actions { display: flex; gap: 1rem; flex-shrink: 0; }

/* ── Contact ─────────────────────────────────────────────── */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact__details { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #5a2d6b;
}
.contact__detail svg { width: 18px; height: 18px; color: #7B2D8B; flex-shrink: 0; }
.contact__detail a { color: #7B2D8B; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.contact__detail a:hover { color: #5e1f65; }

.contact__form-wrap {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(123,45,139,0.08);
  border: 1px solid rgba(123,45,139,0.06);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #5a2d6b;
  letter-spacing: 0.04em;
}
.form__input {
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(123,45,139,0.18);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: #2D1033;
  background: #FFFAF5;
  transition: all 0.2s ease;
  outline: none;
}
.form__input::placeholder { color: #b08aaa; }
.form__input:focus { border-color: #7B2D8B; background: #fff; box-shadow: 0 0 0 3px rgba(123,45,139,0.1); }
.form__textarea { resize: vertical; min-height: 120px; }
.form__success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(123,45,139,0.06);
  border: 1px solid rgba(123,45,139,0.15);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #5e1f65;
}
.form__success svg { width: 18px; height: 18px; color: #7B2D8B; flex-shrink: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: #2D1033;
  color: #f3d8f1;
  padding: 3rem 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer__logo-icon { width: 28px; height: 28px; color: #F5C518; }
.footer__tagline { font-size: 0.88rem; color: #c090b8; line-height: 1.6; }
.footer__info p { font-size: 0.88rem; color: #c090b8; margin-bottom: 0.4rem; line-height: 1.7; }
.footer__info strong { color: #fff; }
.footer__link { color: #F5C518; text-decoration: underline; text-underline-offset: 3px; }
.footer__link:hover { color: #ffefaa; }
.footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a {
  font-size: 0.88rem;
  color: #c090b8;
  transition: color 0.2s;
}
.footer__links a:hover { color: #F5C518; }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  text-align: center;
}
.footer__bar p { font-size: 0.8rem; color: #8a6098; }

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__visual { order: -1; max-width: 500px; margin: 0 auto; }
  .hero__img--accent { margin-left: 1rem; }
  .living__grid { grid-template-columns: repeat(2, 1fr); }
  .amenities__grid { grid-template-columns: repeat(2, 1fr); }
  .location__layout { grid-template-columns: 1fr; }
  .location__map { order: -1; }
  .contact__layout { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,250,245,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(123,45,139,0.1);
    box-shadow: 0 12px 32px rgba(123,45,139,0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav__link { width: 100%; padding: 0.7rem 0.9rem; }
  .nav__link--cta { margin-left: 0; text-align: center; }
  .nav__burger { display: flex; }

  .hero { padding: 5rem 0 3rem; min-height: auto; }
  .hero__headline { font-size: clamp(2rem, 8vw, 2.75rem); }
  .hero__stats { flex-wrap: wrap; }
  .hero__img--main { aspect-ratio: 4/3; }
  .hero__img--accent { display: none; }

  .living__grid { grid-template-columns: 1fr; }
  .amenities__grid { grid-template-columns: 1fr; }
  .cta__inner { flex-direction: column; text-align: center; }
  .cta__actions { justify-content: center; flex-wrap: wrap; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
