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

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #FDFCF8;
  color: #1c1917;
}

.page {
  min-height: 100vh;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.italic {
  font-style: italic;
}

.hidden {
  display: none !important;
}

/* Hero */
.hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  text-align: center;
  background-color: #022c22;
  /* emerald-950 */
  color: #FDFCF8;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1484504110495-939e9baca603?q=80&w=3269&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(253, 252, 248, 0.2);
  background-color: rgba(253, 252, 248, 0.04);
  backdrop-filter: blur(6px);
}

.hero-logo svg {
  color: #FDFCF8;
}

.hero-title {
  margin: 0 0 0.75rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  opacity: 0.85;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* Navigation */
.nav-wrapper {
  position: relative;
  margin-top: -2rem;
  margin-bottom: 2rem;
  z-index: 20;
}

.nav-sticky {
  position: sticky;
  top: 1.5rem;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 162, 158, 0.5);
  /* stone-400/50 */
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(168, 162, 158, 0.2);
}

.nav-button {
  position: relative;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 0.55rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #78716c;
  /* stone-500 */
  cursor: pointer;
  transition: color 0.25s ease, transform 0.15s ease;
}

.nav-button span {
  position: relative;
  z-index: 1;
}

.nav-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: transparent;
  box-shadow: 0 4px 10px rgba(22, 101, 52, 0.2);
  opacity: 0;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

.nav-button:hover {
  color: #1c1917;
}

.nav-button.is-active {
  color: #fff;
}

.nav-button.is-active::before {
  background-color: #022c22;
  opacity: 1;
}

/* Sections */
.section {
  padding: 1rem 1.5rem;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-inner-narrow {
  max-width: 768px;
}

.section-title {
  margin: 0 0 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #022c22;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.8rem;
  }
}

.section-about {
  text-align: center;
}

.section-about .section-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #57534e;
  font-weight: 300;
}

@media (min-width: 768px) {
  .section-about .section-lead {
    font-size: 1.45rem;
  }
}

.section-divider {
  width: 6rem;
  height: 4px;
  border-radius: 999px;
  background-color: rgba(6, 78, 59, 0.18);
  margin: 3rem auto 0;
}

/* Members */
.section-members {
  background-color: #ffffff;
}

.members-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .members-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .members-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.member-card {
  background-color: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.35);
  border: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.5);
}

.member-image-wrapper {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.member-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.7s ease;
}

.member-card:hover .member-image {
  transform: scale(1.05);
}

.member-image-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(6, 95, 70, 0.18);
  transition: background-color 0.5s ease;
  z-index: 1;
}

.member-card:hover .member-image-overlay {
  background-color: transparent;
}

.member-body {
  position: relative;
  padding: 1.5rem;
}

.badge {
  position: absolute;
  right: 1.5rem;
  top: -0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background-color: #022c22;
  color: #fff;
}

.member-name {
  margin: 0 0 0.35rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #022c22;
}

.member-social {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #a8a29e;
  margin-bottom: 1.5rem;
}

.member-social .icon-instagram {
  width: 16px;
  height: 16px;
}

.member-quote-wrapper {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(6, 95, 70, 0.3);
}

.member-quote-wrapper .icon-quote {
  position: absolute;
  left: -0.2rem;
  top: -0.4rem;
  width: 16px;
  height: 16px;
  color: rgba(6, 95, 70, 0.4);
}

.member-quote {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #57534e;
}

/* Icons base */
.icon {
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
}

/* Gallery */
.section-gallery {
  background-color: #e7e5e4;
  /* stone-200-ish */
}

.gallery-grid {
  margin-top: 3rem;
  column-count: 1;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.6);
  cursor: pointer;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    column-count: 3;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 90vh;
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* Contact */
.section-contact {
  background-color: #ffffff;
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #78716c;
}

/* Form */
.contact-form {
  background-color: #ffffff;
  border-radius: 1.7rem;
  padding: 2rem;
  border: 1px solid #f5f5f4;
  box-shadow: 0 24px 60px rgba(148, 163, 184, 0.55);
  display: grid;
  gap: 1.5rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #78716c;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.field-input,
.field-textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid #e7e5e4;
  background-color: #f5f5f4;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  font-family: inherit;
}

.field-input:focus,
.field-textarea:focus {
  border-color: #022c22;
  box-shadow: 0 0 0 1px rgba(6, 95, 70, 0.2);
  background-color: #f9fafb;
}

.field-textarea {
  min-height: 150px;
  resize: none;
}

/* Primary button */
.button-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 0.9rem;
  border: none;
  background-color: #022c22;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.button-primary:hover {
  background-color: #064e3b;
  box-shadow: 0 14px 30px rgba(6, 95, 70, 0.5);
  transform: translateY(-1px);
}

.button-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.button-primary .icon-send {
  width: 18px;
  height: 18px;
}

.button-text-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.45);
  border-top-color: #f9fafb;
  margin-right: 0.6rem;
  animation: spin 0.9s linear infinite;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.button-primary.is-loading .spinner {
  opacity: 1;
  transform: scale(1);
}

.button-primary.is-loading .button-text {
  opacity: 0.6;
}

.button-primary:disabled {
  cursor: default;
  opacity: 0.85;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Contact success */
.contact-success {
  background-color: #ecfdf5;
  color: #064e3b;
  border-radius: 1.7rem;
  border: 1px solid #bbf7d0;
  padding: 2.3rem 2rem;
  text-align: center;
}

.success-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-check {
  width: 46px;
  height: 46px;
  color: #16a34a;
}

.success-title {
  margin: 0 0 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
}

.success-text {
  margin: 0;
  font-size: 0.95rem;
}

.link-button {
  margin-top: 1.1rem;
  border: none;
  background: none;
  color: #047857;
  padding: 0;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Scroll animation */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

.intro-video {
  width: 240px;
  aspect-ratio: 9 / 16;
  margin: 0 auto 2rem;
  border-radius: 16px;
  overflow: hidden;
}

.intro-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
