/* ===== Design tokens ===== */
:root {
  --background: #f7f5f0;      /* warm off-white */
  --foreground: #363c47;      /* deep slate */
  --card: #efece5;            /* deeper off-white */
  --muted-foreground: #6b7280;
  --primary: #2b7c7e;         /* calm teal */
  --primary-hover: #256a6c;
  --primary-foreground: #ffffff;
  --secondary: #e7e3da;
  --border: #ded9cf;
  --input-border: #d3cec3;
  --fb: #1877f2;

  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 64rem;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--background);
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
  background-color: var(--background);
}

.section--card {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }
}

/* ===== Typography helpers ===== */
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.eyebrow--block {
  display: block;
  margin-bottom: 0.75rem;
}

.heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.875rem;
  line-height: 1.25;
  color: var(--foreground);
  text-wrap: balance;
}

.heading--mb {
  margin-bottom: 3rem;
}

.heading--mb-sm {
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .heading {
    font-size: 2.25rem;
  }
}

.prose p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}

.btn--sm {
  padding: 0.4rem 1rem;
}

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

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

.btn--outline {
  border-color: var(--border);
  color: var(--foreground);
  background-color: transparent;
}

.btn--outline:hover {
  background-color: var(--secondary);
}

.btn--block {
  display: block;
  width: 100%;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.5rem;
  text-align: center;
}

.btn--block:active {
  transform: scale(0.99);
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.nav__links a:not(.btn):hover {
  color: var(--foreground);
}

.nav__cta-mobile {
  display: inline-block;
}

@media (min-width: 640px) {
  .nav__links {
    display: flex;
  }
  .nav__cta-mobile {
    display: none;
  }
}

/* ===== Hero ===== */
.hero {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  padding-top: 4rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}

.hero__photo {
  width: 12rem;
  height: 12rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 4px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 0.75rem 0 1.25rem;
  text-wrap: balance;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 32rem;
  text-wrap: pretty;
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero__inner {
    flex-direction: row;
    gap: 4rem;
    text-align: left;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  .hero__photo {
    width: 16rem;
    height: 16rem;
  }
  .hero__title {
    font-size: 3.5rem;
  }
  .hero__lead {
    font-size: 1.25rem;
  }
  .hero__actions {
    justify-content: flex-start;
  }
}

/* ===== Two column ===== */
.two-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.two-col__lead,
.two-col__body {
  flex: 1;
}

@media (min-width: 768px) {
  .two-col {
    flex-direction: row;
    gap: 5rem;
  }
}

/* ===== Cards (services) ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(43, 124, 126, 0.4);
}

.card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card__text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* Intro video */
.video {
  position: relative;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background-color: var(--background);
}

.video__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== Links ===== */
.links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.link-card {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  border-color: rgba(43, 124, 126, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.link-card__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.link-card__icon--preply {
  background-color: var(--primary);
}

.link-card__icon--fb {
  background-color: var(--fb);
}

.link-card__body {
  display: flex;
  flex-direction: column;
}

.link-card__name {
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.link-card:hover .link-card__name {
  color: var(--primary);
}

.link-card__desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.link-card__arrow {
  width: 1rem;
  height: 1rem;
  margin-left: auto;
  margin-top: 0.25rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.link-card:hover .link-card__arrow {
  color: var(--primary);
}

@media (min-width: 640px) {
  .links {
    flex-direction: row;
  }
}

/* ===== Payment ===== */
.pay {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.pay__intro {
  flex-shrink: 0;
}

.pay__text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pay__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pay__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pay__list li::before {
  content: '';
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  background-color: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pay__form-wrap {
  flex: 1;
}

.pay__form {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pay__secure {
  font-size: 0.75rem;
  text-align: center;
  color: var(--muted-foreground);
}

.pay__secure strong {
  color: var(--foreground);
}

@media (min-width: 768px) {
  .pay {
    flex-direction: row;
    gap: 5rem;
  }
  .pay__intro {
    width: 40%;
  }
  .pay__form {
    padding: 2rem;
  }
}

/* ===== Form fields ===== */
.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

.field__optional {
  color: var(--muted-foreground);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--foreground);
  background-color: var(--background);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.field textarea {
  resize: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-foreground);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 124, 126, 0.25);
}

.field__money {
  position: relative;
}

.field__prefix {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  font-weight: 500;
  user-select: none;
}

.field__money input {
  padding-left: 2rem;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--background);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer__legal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer__legal p,
.footer__legal address {
  line-height: 1.6;
  font-style: normal;
}

.footer__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--foreground);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer__divider {
  border-top: 1px solid var(--border);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer__bottom strong {
  color: var(--foreground);
  font-weight: 500;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer__links a:hover {
  color: var(--foreground);
}

@media (min-width: 640px) {
  .footer__legal {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
