/* Your Butterfly Journey — soft periwinkle palette carried over from the original site */
:root {
  --ink: #1b1b1b;
  --muted: #5e5e5e;
  --slate: #6a7691;
  --accent: #6192db;
  --mist: #e8edf9;
  --mist-deep: #dbe3f5;
  --paper: #ffffff;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --script: "Dancing Script", "Brush Script MT", cursive;
  --wrap: 1080px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.75;
}

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

a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
.site-header { padding-block: 2rem 1rem; text-align: center; }

.brand {
  display: inline-block;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.nav a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.25rem;
}

.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.hero::before {
  content: "your butterfly journey";
  position: absolute;
  inset: 0;
  font-family: var(--script);
  font-size: clamp(4rem, 14vw, 10rem);
  line-height: 0.95;
  color: var(--mist-deep);
  opacity: 0.9;
  padding: 1rem;
  pointer-events: none;
  word-break: break-word;
}

.hero-frame {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  background: var(--paper);
  padding: 14px;
  box-shadow: 0 10px 40px rgba(72, 79, 96, 0.15);
}

.hero-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section--tint { background: var(--mist); }

.section-title {
  margin: 0 0 2.5rem;
  text-align: center;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-wrap: balance;
  line-height: 1.35;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  text-wrap: balance;
}

.prose { max-width: 66ch; margin: 0 auto; }
.prose p { margin: 0 0 1.25rem; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.pillar { min-width: 0; padding: 2rem 1.75rem; background: var(--paper); }
.pillar p { margin: 0; color: var(--muted); }

/* ---------- Testimonials banner ---------- */
.banner {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: start center;
  padding-block: 2rem;
  background:
    linear-gradient(rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.24)),
    url("images/testimonials.jpg") center / cover no-repeat;
}

.banner h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding-block: clamp(3rem, 7vw, 5rem);
  background:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
    url("images/testimonials.jpg") center / cover no-repeat;
}

.testimonials h2 {
  margin: 0 0 2.5rem;
  color: #fff;
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.t-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.t-card {
  flex: 0 1 330px;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem 1.75rem;
  background: var(--paper);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.t-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.t-initial {
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--accent);
  font-size: 2.4rem;
}

.t-stars { color: #e8b923; letter-spacing: 0.15em; font-size: 1.15rem; }

.t-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-wrap: balance;
}

.t-quote { margin: 0; flex: 1; }
.t-quote p { margin: 0; color: var(--muted); line-height: 1.7; }

.t-name { font-size: 0.9rem; font-weight: 700; color: var(--ink); }

/* ---------- My Journey ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.story-photo {
  background: var(--paper);
  padding: 12px;
  box-shadow: 0 10px 40px rgba(72, 79, 96, 0.15);
}

.story h2 { margin: 0 0 1.25rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.story .hello { font-family: var(--script); font-size: 2.2rem; color: var(--accent); margin: 0 0 1rem; line-height: 1.2; }
.story p { margin: 0 0 1.2rem; }
.story .closing { font-style: italic; color: var(--slate); }

@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; }
  .story-photo { max-width: 420px; margin: 0 auto; }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery a { display: block; background: var(--paper); padding: 8px; box-shadow: 0 4px 18px rgba(72, 79, 96, 0.12); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 1.25rem; max-width: 640px; margin: 0 auto; }

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

.field label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--mist-deep);
  border-radius: 2px;
  padding: 0.8rem 0.9rem;
}

.field textarea { min-height: 180px; resize: vertical; }
.field .hint { font-size: 0.9rem; color: var(--muted); }
.hidden-field { display: none; }

.button {
  justify-self: start;
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 0;
  padding: 0.9rem 2.4rem;
  cursor: pointer;
  text-decoration: none;
}

.button:hover { background: #4c7ec9; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--mist);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.t-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.t-result { margin: 0; flex: 1; color: var(--muted); line-height: 1.7; }
