/* ============================================
   Metcalf Inclusive Living — Splash Page
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --color-terracotta: #b3530d;
  --color-terracotta-light: #d67a37;
  --color-sage-light: #c5cabf;
  --color-sage: #6b755e;
  --color-lime-light: #d0d57d;
  --color-black: #1e1e1e;
  --color-white: #ffffff;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Radii */
  --radius-full: 999px;
  --radius-card: 30px;
  --radius-input: 6px;

  /* Spacing */
  --section-padding: 100px 80px;
  --max-width: 1440px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.33;
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 12px 24px;
  background: var(--color-terracotta);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 16px;
}

.skip-link:focus {
  top: 16px;
}

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 12px 16px;
  min-width: 218px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 3px;
}

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

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 670px;
}

.hero__content {
  padding: 80px 40px 80px 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  z-index: 1;
}

.hero__logo img {
  width: 260px;
  height: 260px;
  border-radius: var(--radius-card);
  object-fit: cover;
  background: var(--color-sage);
}

.hero__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
  color: var(--color-terracotta);
  max-width: 576px;
  margin-top: 16px;
}

.hero__subheading {
  font-size: 20px;
  line-height: 28px;
  color: var(--color-black);
  max-width: 429px;
}

.hero__image {
  position: relative;
  overflow: hidden;
  padding: 80px 80px 0 0;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
  max-height: 590px;
}

/* ============================================
   Mission Banner
   ============================================ */
.mission {
  background: var(--color-terracotta);
  padding: 60px 80px;
}

.mission__inner {
  max-width: calc(var(--max-width) - 160px);
  margin: 0 auto;
  position: relative;
}

.mission__accent {
  width: 60px;
  height: 6px;
  background: var(--color-terracotta-light);
  margin-bottom: 24px;
}

.mission__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  color: var(--color-white);
  max-width: 1180px;
}

/* ============================================
   About
   ============================================ */
.about {
  padding: 100px 80px;
}

.about__inner {
  max-width: calc(var(--max-width) - 160px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__image {
  position: relative;
}

.about__image img {
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
  aspect-ratio: 632 / 428;
}

.about__content {
  position: relative;
  padding-left: 40px;
}

.about__accent {
  width: 40px;
  height: 6px;
  background: var(--color-terracotta-light);
  position: absolute;
  left: -24px;
  top: 20px;
}

.about__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  color: var(--color-terracotta);
  margin-bottom: 24px;
}

.about__content p {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 12px;
}

/* ============================================
   Stats
   ============================================ */
.stats {
  background: var(--color-terracotta-light);
  padding: 80px;
}

.stats__inner {
  max-width: calc(var(--max-width) - 160px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stats__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  line-height: 56px;
  color: var(--color-black);
}

.stats__label {
  display: block;
  font-size: 18px;
  line-height: 24px;
  color: var(--color-black);
  margin-top: 8px;
  max-width: 178px;
}

/* ============================================
   Dwellings / Coming Soon
   ============================================ */
.dwellings {
  padding: 100px 80px;
}

.dwellings__inner {
  max-width: calc(var(--max-width) - 160px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.dwellings__content {
  position: relative;
  padding-left: 64px;
}

.dwellings__accent {
  width: 40px;
  height: 6px;
  background: var(--color-terracotta-light);
  position: absolute;
  left: 0;
  top: 16px;
}

.dwellings__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: var(--color-black);
  margin-bottom: 24px;
}

.dwellings__subtitle {
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 12px;
}

.dwellings__description {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 32px;
}

/* --- Property Card --- */
.property-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 416px;
}

.property-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-lime-light);
  color: var(--color-black);
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  padding: 6px 24px;
  border-radius: var(--radius-full);
}

.property-card__body {
  padding: 20px 24px 24px;
}

.property-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 12px;
}

.property-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.property-card__features li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-black);
}

.property-card__features svg {
  flex-shrink: 0;
}

/* --- Carousel (image slides within a single card) --- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.carousel__track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel__slide {
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

.carousel__slide img {
  width: 100%;
  aspect-ratio: 416 / 277;
  object-fit: cover;
  display: block;
}

.carousel__controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}

.carousel__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-terracotta);
  background: var(--color-white);
  color: var(--color-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.carousel__btn:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
}

.carousel__btn:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 3px;
}

.carousel__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  background: var(--color-sage-light);
  padding: 100px 80px 0;
}

.contact__inner {
  max-width: calc(var(--max-width) - 160px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.contact__content {
  position: relative;
  padding-left: 64px;
  display: flex;
  flex-direction: column;
}

.contact__accent {
  width: 40px;
  height: 6px;
  background: var(--color-sage);
  position: absolute;
  left: 0;
  top: 16px;
}

.contact__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: var(--color-black);
  margin-bottom: 24px;
}

.contact__description {
  font-size: 18px;
  line-height: 24px;
  max-width: 504px;
}

.contact__decor {
  margin-top: auto;
  max-width: 480px;
}

.contact__decor svg {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Form --- */
.contact__form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 48px;
  margin-bottom: 100px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 16px;
  line-height: 22px;
  color: var(--color-black);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 22px;
  padding: 12px 16px;
  height: 48px;
  border: 1px solid var(--color-black);
  border-radius: var(--radius-input);
  background: var(--color-white);
  color: var(--color-black);
  transition: border-color 0.2s ease;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(179, 83, 13, 0.15);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #d32f2f;
}

.form-group textarea {
  resize: vertical;
  min-height: 180px;
  height: auto;
}

.form-group textarea::placeholder {
  font-style: italic;
  color: #999;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.form-status {
  font-size: 16px;
  line-height: 22px;
  text-align: center;
}

.form-status--success {
  color: #2e7d32;
}

.form-status--error {
  color: #d32f2f;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-black);
  padding: 40px 80px;
}

.footer__inner {
  max-width: calc(var(--max-width) - 160px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

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

.footer__logo {
  width: 100px;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.footer__details p {
  font-size: 16px;
  line-height: 22px;
  color: var(--color-white);
}

.footer__partners {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer__partners img:first-child {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.footer__partners img:last-child {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px 40px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding: 40px 40px 0;
  }

  .hero__logo img {
    width: 180px;
    height: 180px;
  }

  .hero__heading {
    font-size: 40px;
    line-height: 48px;
  }

  .hero__image {
    padding: 24px 40px 0 40px;
  }

  .hero__image img {
    max-height: 400px;
    border-radius: var(--radius-card);
  }

  .mission {
    padding: 48px 40px;
  }

  .mission__text {
    font-size: 32px;
    line-height: 40px;
  }

  .about {
    padding: 60px 40px;
  }

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

  .about__accent {
    position: static;
    margin-bottom: 16px;
  }

  .stats {
    padding: 48px 40px;
  }

  .stats__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .dwellings {
    padding: 60px 40px;
  }

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

  .dwellings__content {
    padding-left: 64px;
  }

  .property-card {
    max-width: 100%;
  }

  .contact {
    padding: 60px 40px;
  }

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

  .contact__decor {
    display: none;
  }

  .contact__form-wrap {
    margin-bottom: 0;
  }

  .footer {
    padding: 40px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .footer__partners {
    gap: 24px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero__content {
    padding: 24px 24px 0;
  }

  .hero__logo img {
    width: 140px;
    height: 140px;
  }

  .hero__heading {
    font-size: 32px;
    line-height: 40px;
  }

  .hero__subheading {
    font-size: 18px;
    line-height: 26px;
  }

  .hero__image {
    padding: 16px 24px 0 24px;
  }

  .hero__image img {
    max-height: 300px;
    border-radius: 20px;
    margin-bottom: 24px;
  }

  .mission {
    padding: 36px 24px;
  }

  .mission__text {
    font-size: 24px;
    line-height: 32px;
  }

  .about {
    padding: 48px 24px;
  }

  .about__heading {
    font-size: 28px;
    line-height: 36px;
  }

  .about__content p {
    font-size: 16px;
    line-height: 22px;
  }

  .stats {
    padding: 36px 24px;
  }

  .stats__inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .stats__number {
    font-size: 36px;
    line-height: 44px;
  }

  .stats__label {
    font-size: 16px;
  }

  .dwellings {
    padding: 48px 24px;
  }

  .dwellings__content {
    padding-left: 0;
  }

  .dwellings__accent {
    position: static;
    margin-bottom: 16px;
  }

  .dwellings__heading {
    font-size: 26px;
    line-height: 34px;
  }

  .property-card {
    max-width: 100%;
  }

  .contact {
    padding: 48px 24px;
  }

  .contact__content {
    padding-left: 0;
  }

  .contact__accent {
    position: static;
    margin-bottom: 16px;
  }

  .contact__heading {
    font-size: 26px;
    line-height: 34px;
  }

  .contact__form-wrap {
    padding: 24px;
    border-radius: 20px;
  }

  .form-row--half {
    grid-template-columns: 1fr;
  }

  .btn {
    min-width: 180px;
  }

  .footer {
    padding: 32px 24px;
  }

  .footer__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer__logo {
    width: 80px;
  }

  .footer__details p {
    font-size: 14px;
    line-height: 20px;
  }

  .footer__partners {
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: flex-start;
    padding: 0;
  }

  .footer__partners img:first-child {
    height: 40px;
  }

  .footer__partners img:last-child {
    height: 24px;
  }
}
