/* ============================================
   THE MAFÉ ENSEMBLE — Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0A0A0A;
  --white: #FFFFFF;
  --terracotta: #C75B2E;
  --terracotta-light: #d4724a;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-400: #999999;
  --gray-600: #666666;
  --gray-800: #333333;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: 120px 0;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background: var(--terracotta);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--terracotta-light);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--full {
  width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition);
}

.nav--scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px 0;
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav__links a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__cta {
  padding: 10px 24px;
  background: var(--terracotta) !important;
  color: var(--white) !important;
}

.nav__cta:hover {
  background: var(--terracotta-light) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  /* Replace hero-group.jpg with your actual photo filename */
  background-image: url('./images/hero-group.jpg');
  background-size: cover;
  background-position: center 70%;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Minimal overlay - maximum photo visibility */
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.05) 0%, rgba(10, 10, 10, 0.15) 100%);
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  white-space: nowrap;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  margin-bottom: 48px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--white);
}

.about__layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about__image {
  width: 100%;
}

.about__image img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
}

.about__text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.about__text p {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__text em {
  font-style: italic;
  color: var(--gray-800);
}

/* ============================================
   MEMBERS
   ============================================ */
.members {
  background: var(--gray-100);
}

.members__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 64px;
  letter-spacing: -0.01em;
}

/* Featured Members - Masonry Layout */
.members__founding {
  margin-bottom: 48px;
}

.members__founding img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.members__masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-bottom: 48px;
  align-items: stretch;
}

.member-masonry {
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.member-masonry--tall {
  grid-row: span 2;
}

.member-masonry__image {
  overflow: hidden;
  height: 500px;
}

.member-masonry__image {
  overflow: hidden;
  height: auto;
  max-height: 600px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--gray-100);
}

.member-masonry__image img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
}

.member-masonry--tall,
.member-masonry--sal,
.member-masonry--shannon {
  min-height: 950px;
}

.member-masonry__info {
  padding: 32px;
}

.member-masonry__name {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.member-masonry__bio p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.member-masonry__quote {
  font-style: italic;
  border-left: 3px solid var(--terracotta);
  padding-left: 20px;
  margin-top: 24px;
  color: var(--gray-800);
}

/* Secondary Members - 2 Column Grid */
.members__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.members__grid--secondary {
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(2, 1fr);
}

.member-card {
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.member-card__image {
  overflow: hidden;
  height: 550px;
}

.member-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card__info {
  padding: 32px;
}

.member-card__name {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  text-align: center;
}

.member-card__bio {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-600);
  text-align: center;
}

@media (max-width: 968px) {
  .members__masonry {
    grid-template-columns: 1fr;
  }
  
  .member-masonry--tall {
    grid-row: span 1;
  }
  
  .members__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--gray-100);
}

.services__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 64px;
  letter-spacing: -0.01em;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--white);
  padding: 48px 40px;
  transition: var(--transition);
}

.service-card:hover {
  background: var(--black);
  color: var(--white);
}

.service-card:hover .service-card__desc {
  color: rgba(255, 255, 255, 0.85);
}

.service-card:hover .service-card__number {
  color: var(--terracotta);
}

.service-card__number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.service-card__title {
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.service-card__desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-600);
  transition: var(--transition);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  background: var(--white);
}

.gallery__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 64px;
  letter-spacing: -0.01em;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.gallery__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* Placeholder images */
.placeholder-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px dashed var(--gray-400);
}

.placeholder-image--gallery {
  min-height: unset;
  height: 100%;
  border: 1px dashed var(--gray-400);
}

/* Gallery image hover effect - works when real images are added */
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--black);
  color: var(--white);
}

.contact .section__label {
  color: var(--terracotta);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.contact__text {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 48px;
}

.contact__details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__details li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact__detail-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.contact__details a,
.contact__details span:not(.contact__detail-label) {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.contact__details a:hover {
  color: var(--white);
}

/* Form */
.form__group {
  margin-bottom: 24px;
}

.form__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.form__input {
  width: 100%;
  padding: 14px 0;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  outline: none;
  transition: var(--transition);
}

.form__input:focus {
  border-bottom-color: var(--terracotta);
}

.form__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form__select {
  appearance: none;
  cursor: pointer;
}

.form__select option {
  background: var(--black);
  color: var(--white);
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__form-success {
  padding: 40px;
  text-align: center;
  color: var(--terracotta);
  font-size: 1.125rem;
  font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--white);
}

/* ============================================
   ANIMATIONS (Intersection Observer)
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .section {
    padding: 80px 0;
  }

  .about__layout {
    gap: 40px;
  }

  .about__image img {
    max-height: 60vh;
  }

  .about__text {
    text-align: left;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__links a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
  }

  .hero__scroll {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .service-card {
    padding: 32px 24px;
  }
}

/* Ensure consistent card heights */
.member-card {
  min-height: 100%;
}

/* Adjust gallery image positioning to show more heads */
.gallery__item img {
  object-position: center 20%;
}

/* Show full image without cropping for photo L */
.gallery__img--contain {
  object-fit: contain;
  object-position: center;
  background: var(--black);
}
