/* ===========================
   Reset & Base
   =========================== */

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

:root {
  --color-bg: #FAF7F2;
  --color-text: #2C2C2C;
  --color-accent: #7A5B8A;
  --color-slate: #6E8FAD;
  --color-white: #FFFFFF;
  --color-light: #F3EDE4;
  --color-muted: #6B6B6B;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1100px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-slate);
}

/* ===========================
   Utilities
   =========================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.section__title--center {
  text-align: center;
}

.section__divider {
  width: 48px;
  height: 2px;
  background-color: var(--color-slate);
  margin-bottom: 40px;
}

.section__divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Navigation
   =========================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.nav--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.5px;
}

.nav__logo:hover {
  color: var(--color-accent);
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-slate);
  transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-text);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   Hero
   =========================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    #F3EDE4 0%,
    #FAF7F2 40%,
    #F0E6D6 100%
  );
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(122, 91, 138, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(110, 143, 173, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-muted);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-white);
  background-color: var(--color-accent);
  padding: 16px 40px;
  border: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero__cta:hover {
  background-color: #5E4570;
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ===========================
   About
   =========================== */

.about {
  background-color: var(--color-white);
}

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

.about__photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--color-light);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about__photo-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.about__text p {
  margin-bottom: 16px;
  color: var(--color-muted);
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__text strong {
  color: var(--color-text);
}

/* ===========================
   Expertise
   =========================== */

.expertise {
  background-color: var(--color-bg);
}

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.expertise__card {
  background-color: var(--color-white);
  padding: 48px 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.expertise__card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.expertise__icon {
  color: var(--color-accent);
  margin-bottom: 24px;
}

.expertise__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.expertise__card p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ===========================
   Properties
   =========================== */

.properties {
  background-color: var(--color-white);
}

.properties__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.properties__card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.properties__card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.properties__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.properties__info {
  padding: 24px;
}

.properties__address {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.properties__neighborhood {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.properties__description {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ===========================
   Contact
   =========================== */

.contact {
  background-color: var(--color-white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
}

.contact__field {
  margin-bottom: 24px;
}

.contact__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: var(--color-slate);
  box-shadow: 0 0 0 3px rgba(110, 143, 173, 0.15);
}

.contact__textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__submit {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-white);
  background-color: var(--color-accent);
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact__submit:hover {
  background-color: #5E4570;
  transform: translateY(-2px);
}

.contact__info {
  padding-top: 8px;
}

.contact__info-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 32px;
}

.contact__detail {
  margin-bottom: 24px;
}

.contact__detail strong {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.contact__detail a,
.contact__detail p {
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.contact__detail a:hover {
  color: var(--color-accent);
}

/* ===========================
   Footer
   =========================== */

.footer {
  background-color: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer__tagline {
  font-size: 0.8125rem;
  margin-top: 4px;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.footer__social-link:hover {
  color: var(--color-slate);
}

.footer__preservation {
  font-size: 0.8125rem;
  text-align: right;
}

.footer__preservation strong {
  color: var(--color-slate);
}

.footer__bottom {
  text-align: center;
  font-size: 0.8125rem;
}

/* ===========================
   Responsive — Tablet (768px)
   =========================== */

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    display: block;
    padding: 12px 24px;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__tagline {
    font-size: 1.125rem;
  }

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

  .about__photo-placeholder,
  .about__photo-img {
    max-width: 400px;
    margin: 0 auto;
  }

  .expertise__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .properties__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__grid {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer__preservation {
    text-align: center;
  }
}

/* ===========================
   Responsive — Large Tablet / Small Desktop (1024px)
   =========================== */

@media (max-width: 1024px) and (min-width: 769px) {
  .expertise__grid {
    gap: 24px;
  }

  .properties__grid {
    gap: 24px;
  }

  .about__grid {
    gap: 40px;
  }

  .contact__grid {
    gap: 40px;
  }
}

/* ===========================
   Responsive — Small Mobile (480px)
   =========================== */

/* ===========================
   Page Header (subpages)
   =========================== */

.page-header {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(
    135deg,
    #F3EDE4 0%,
    #FAF7F2 40%,
    #F0E6D6 100%
  );
}

.page-header__subtitle {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.page-header__title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.page-header__description {
  font-size: 1.0625rem;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===========================
   Service Cards
   =========================== */

.service-card {
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 40px;
  margin-bottom: 24px;
}

.service-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}

.service-card__body p {
  color: var(--color-muted);
  margin-bottom: 16px;
}

.service-card__body strong {
  color: var(--color-text);
}

.service-card__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.service-card__list li {
  font-size: 0.9375rem;
  color: var(--color-muted);
  padding-left: 20px;
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 2px;
  background-color: var(--color-slate);
}

/* ===========================
   CTA Section
   =========================== */

.cta-section {
  background-color: var(--color-light);
}

/* ===========================
   Neighborhood Cards
   =========================== */

.neighborhoods__grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.neighborhood-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.neighborhood-card__image {
  width: 100%;
  min-height: 240px;
  background-color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.neighborhood-card__content {
  padding: 32px 32px 32px 0;
}

.neighborhood-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.neighborhood-card__subtitle {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.neighborhood-card__content > p:not(.neighborhood-card__subtitle) {
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.neighborhood-card__details {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.neighborhood-card__details strong {
  color: var(--color-text);
}

/* ===========================
   Newsletter
   =========================== */

.newsletter {
  background-color: var(--color-light);
}

.newsletter__form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter__input:focus {
  border-color: var(--color-slate);
  box-shadow: 0 0 0 3px rgba(110, 143, 173, 0.15);
}

.newsletter__button {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-white);
  background-color: var(--color-accent);
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.newsletter__button:hover {
  background-color: #5E4570;
}

/* ===========================
   Services Teaser (homepage)
   =========================== */

.services-teaser {
  background-color: var(--color-bg);
}

.services-teaser__intro {
  text-align: center;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.services-teaser__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.services-teaser__item {
  background-color: var(--color-white);
  padding: 32px 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}

.services-teaser__item h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.services-teaser__item p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ===========================
   Responsive — Tablet (768px) — New Components
   =========================== */

@media (max-width: 768px) {
  .page-header {
    padding: 120px 0 60px;
  }

  .page-header__title {
    font-size: 2.25rem;
  }

  .service-card__list {
    grid-template-columns: 1fr;
  }

  .neighborhood-card {
    grid-template-columns: 1fr;
  }

  .neighborhood-card__content {
    padding: 24px;
  }

  .neighborhood-card__details {
    flex-direction: column;
    gap: 8px;
  }

  .services-teaser__grid {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter__form {
    flex-direction: column;
  }
}

/* ===========================
   Responsive — Small Mobile (480px) — Original
   =========================== */

@media (max-width: 480px) {
  .section {
    padding: 64px 0;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 0.75rem;
    letter-spacing: 3px;
  }

  .section__title {
    font-size: 1.75rem;
  }

  .expertise__card {
    padding: 32px 24px;
  }

  .service-card {
    padding: 24px;
  }

  .service-card__header {
    flex-direction: column;
  }

  .services-teaser__grid {
    grid-template-columns: 1fr;
  }

  .page-header__title {
    font-size: 2rem;
  }
}
