:root {
  --bg: #f8f4ef;
  --fg: #0c0c0c;
  --muted: #68635c;
  --surface: #ffffff;
  --accent: #1a1a1a;
  --border: #e1d9ce;
  --shadow: 0 25px 60px rgba(13, 13, 13, 0.1);
  --max-width: 1100px;
  font-size: 15px;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1.5rem 6vw;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(248, 244, 239, 0.9), rgba(248, 244, 239, 0.95));
  border-bottom: 1px solid var(--border);
  position: relative;
  min-height: 90px;
}

.brand,
.brand:link,
.brand:visited,
.brand:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.brand-logo {
  width: 180px;
  height: auto;
  display: block;
}

.hero {
  margin: 1.5rem 6vw 2rem;
  min-height: 60vh;
  border-radius: 32px;
  background: transparent;
  display: flex;
  align-items: flex-end;
  padding: 4rem 4rem 1.2rem;
  color: #fdfaf7;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  border-radius: inherit;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.4), rgba(8, 8, 8, 0.65));
  z-index: 1;
}

.hero-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 1.5rem auto 1rem;
  color: var(--fg);
}

.hero-nav a {
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  padding: 0.45rem 1.4rem;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-nav a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: #fff;
}

.hero-inner {
  max-width: var(--max-width);
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: left;
}

@media (max-width: 1100px) {
  .hero-inner {
    text-align: center;
  }

  .hero h1 {
    transform: none;
  }
}

.hero h1 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(1.46rem, 2.14vw, 2.05rem);
  margin: 0.5rem 0;
  letter-spacing: 0.03em;
  transform: translateX(-0.4rem);
}

.hero p {
  max-width: 38rem;
  font-size: 1rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.78rem;
  margin: 0;
}

.about-hero {
  width: min(var(--max-width), 92vw);
  margin: 4rem auto 2rem;
  background: var(--surface);
  border-radius: 32px;
  border: 1px solid var(--border);
  padding: 3rem;
  box-shadow: var(--shadow);
}

.about-hero h1 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(2.1rem, 3.5vw, 2.8rem);
  margin: 0.5rem 0 1rem;
}

.about-hero p {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 1.4rem;
}

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

.about-grid {
  width: min(var(--max-width), 92vw);
  margin: 0 auto 4rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.about-grid h2 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  margin-top: 0;
}

.about-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.hero-actions {
  margin: 1.5rem auto 4rem;
  width: min(var(--max-width), 92vw);
}

.cta-panel {
  padding: 0;
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 1.2rem 3.6rem;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 10px 25px rgba(14, 14, 14, 0.25);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn:hover {
  transform: translateY(-2px);
}

.page-footer {
  margin-top: auto;
  padding: 1.5rem 6vw 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.page-footer small {
  display: block;
}

.footer-contact {
  margin: 0 auto 0.7rem;
  width: fit-content;
  max-width: 92vw;
  font-size: 0.9rem;
  color: var(--fg);
  text-align: left;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-contact-row + .footer-contact-row {
  margin-top: 0.35rem;
}

.footer-contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.footer-contact-icon * {
  stroke-width: 1.2;
}

.footer-contact-icon--phone {
  transform: none;
}

.footer-contact-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0.00001);
}


.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  color: inherit;
  margin-right: 0.6rem;
}

.social-link svg {
  width: 100%;
  height: 100%;
  display: block;
}

.form-section {
  padding: 4rem 6vw;
}

.hero-nav + .about-hero,
.hero-nav + .form-section {
  margin-top: 0.6rem;
}

.hero-nav + .about-hero {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
}

.hero-nav + .form-section {
  padding-top: 1.5rem;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 3rem;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.form-card h1 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin: 0.25rem 0 1rem;
}

.form-card p {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-grid.two-column {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.form-grid.two-column label {
  width: 100%;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  gap: 0.4rem;
}

.form-grid label .field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.required-indicator {
  color: #c1121f;
  font-size: 1rem;
  line-height: 1;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--fg);
}

.form-grid select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" stroke="%231a1a1a" stroke-width="2" fill="none" stroke-linecap="round" /></svg>');
  background-repeat: no-repeat;
  background-position: calc(100% - 16px) center;
  background-size: 12px;
}

.form-grid select[multiple] {
  background-image: none;
  min-height: 180px;
  padding-right: 0.75rem;
}

.form-grid textarea {
  min-height: 130px;
  resize: vertical;
}

.form-grid input[type='file'] {
  padding: 0.6rem 1rem;
  display: none;
}

.family-section {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.family-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.family-section .add-member-btn {
  align-self: center;
}

.family-header h2 {
  margin: 0.3rem 0;
  font-size: 1.5rem;
  font-family: 'Playfair Display', 'Times New Roman', serif;
}

.add-member-btn {
  min-width: 210px;
}

.family-members {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.family-members::before {
  content: attr(data-empty-text);
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  display: block;
}

.family-members.has-members::before {
  content: '';
  display: none;
}

.family-member {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.5rem;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(12, 12, 12, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.member-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.member-head p {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.member-head small {
  color: var(--muted);
}

.remove-member {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0;
}


.form-grid label.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.form-grid label.checkbox input {
  width: 1.1rem;
  height: 1.1rem;
}

.form-grid label.checkbox span {
  font-size: 0.78rem;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  flex: 1;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.required-star {
  color: #d62828;
  margin-left: 0.15rem;
}

.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.language-select {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.language-select-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.language-select-input {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 50px;
  cursor: pointer;
  position: relative;
}

.language-select-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1;
}

.language-select-tags:empty {
  display: none;
}

.language-select-placeholder {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.language-select .language-select-placeholder.is-hidden {
  display: none;
}

.language-tag {
  background: var(--bg);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
}

.language-tag button {
  border: none;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.language-select-arrow {
  width: 10px;
  height: 6px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" stroke="%231a1a1a" stroke-width="1.5" fill="none" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.language-select-menu {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.35rem;
  max-height: 260px;
  overflow-y: auto;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  display: none;
  z-index: 5;
}

.language-select-menu button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.language-select-menu button.is-selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.language-select.is-open .language-select-input {
  border-color: var(--accent);
}

.language-select.is-open .language-select-menu {
  display: grid;
}

.drop-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dropzone {
  border: 1.5px dashed var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone-text {
  color: var(--muted);
  font-size: 0.95rem;
}

.dropzone.is-dragover {
  border-color: var(--accent);
  background: rgba(26, 26, 26, 0.03);
}

.form-status {
  margin-top: 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  font-weight: 500;
  line-height: 1.4;
  background: rgba(26, 26, 26, 0.04);
  color: var(--fg);
}

.form-status[hidden] {
  display: none;
}

.form-status.is-info {
  background: rgba(26, 26, 26, 0.08);
}

.form-status.is-success {
  background: #e8f4ec;
  color: #0c5132;
}

.form-status.is-error {
  background: #fdeceb;
  color: #8a1c1c;
}

.form-footnote {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--muted);
}

.form-footnote a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

@media (max-width: 720px) {
  .top-nav {
    flex-direction: column;
    justify-content: center;
    padding: 1.2rem 1.5rem;
    min-height: auto;
  }

  .brand,
  .brand:link,
  .brand:visited,
  .brand:hover {
    position: static;
    transform: none;
    margin-bottom: 0.6rem;
  }

  .hero {
    margin: 2rem 1.5rem;
    padding: 5rem 2rem 2.2rem;
  }

  .hero h1 {
    font-size: clamp(1.24rem, 4.94vw, 1.62rem);
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-wrap: nowrap;
    text-align: center;
    transform: none;
    margin: 0;
  }

  .hero-inner {
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .hero-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 1rem auto 0.5rem;
    letter-spacing: 0.15em;
  }

  .hero-nav {
    position: static;
    transform: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
  }

  .form-section {
    padding: 2.5rem 1.5rem;
  }

  .form-card {
    padding: 2rem;
  }

  .hero-actions {
    width: 100%;
    padding: 0 1.5rem;
    margin-bottom: 3rem;
  }

  .cta-panel {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  nav {
    width: 100%;
    justify-content: center;
  }
}
