/* Lúcia Lima — static site styles.
   Palette from the Canva presentation and the Lovable draft:
   sage greens, deep burgundy for type and buttons, soft lavender/rose/gold/peach glows. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --bg: #f5f8f0;
  --sage: #e0ebd6;
  --sage-deep: #c9dbbd;
  --muted: #edf3e4;
  --text: #47322e;
  --text-soft: #6b5954;
  --primary: #662533;
  --primary-hover: #521b28;
  --on-primary: #fbfbf3;
  --leaf: #41582e;
  --border: rgba(99, 120, 80, 0.25);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.8);

  --rose: #f4bdc9;
  --gold: #f1dca9;
  --lavender: #c7b0db;
  --peach: #f5cdb0;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 0.5rem;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 12px 40px rgba(60, 80, 45, 0.1);
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--primary); color: var(--on-primary);
  padding: 0.6rem 1rem; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--leaf);
  font-weight: 500;
  margin-bottom: 0.9rem;
}

h1, h2 { font-family: var(--font-display); color: var(--primary); }
h1 em, h2 em { font-style: italic; font-weight: 400; display: block; }

h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.5rem; }

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--primary);
  line-height: 1.3;
}

.section { padding-block: clamp(4.5rem, 10vw, 7.5rem); position: relative; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 18px rgba(102, 37, 51, 0.22); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--glass); color: var(--primary); border-color: rgba(102, 37, 51, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; border-color: var(--primary); }
.btn-sm { min-height: 2.5rem; padding: 0.5rem 1.15rem; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 248, 240, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(60, 80, 45, 0.06); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--primary); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: 0.97rem; color: var(--text);
  position: relative; padding-block: 0.25rem;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: var(--radius);
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--primary);
  border-radius: 2px; transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(245, 248, 240, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(60, 80, 45, 0.08);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 1rem; }
  /* Without JS the menu can't open, so show the links inline instead. */
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.75rem; background: none; box-shadow: none; border: 0; padding: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid; place-items: center;
  text-align: center;
  /* Plain sage sky behind the text; the flowers live in a separate strip along the bottom
     (::after), so they never end up behind the headline however wide the screen is. */
  background: #dfe8cf url("images/bg-hero-sky.webp") center top / cover no-repeat;
  padding-block: 3rem clamp(160px, 32vh, 340px);
  overflow: hidden;
}
.hero::before {
  /* soften the centre so the headline always reads cleanly */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(245, 248, 240, 0.5), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: clamp(200px, 48vh, 480px);
  /* tall enough on wide screens to show the whole row of flowers, not just the leaves */
  background: url("images/bg-hero-flowers.webp") center 45% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%);
  mask-image: linear-gradient(to bottom, transparent, #000 25%);
  pointer-events: none;
}
@media (max-width: 760px) {
  /* on narrow screens a shorter strip keeps the daisies in frame instead of zooming in */
  .hero { padding-bottom: clamp(150px, 30vh, 300px); }
  .hero::after {
    height: clamp(180px, 40vh, 400px);
    background-position: center 30%;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%);
    mask-image: linear-gradient(to bottom, transparent, #000 30%);
  }
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: clamp(96px, 14vw, 132px); height: auto; margin-bottom: 0.75rem; animation: float-in 1s ease-out both; }
.hero-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--primary); margin-bottom: 0.4rem; }
.hero .eyebrow { margin-bottom: 1.5rem; }
.hero h1 {
  font-size: clamp(2.9rem, 8.5vw, 5.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  animation: float-in 1s 0.15s ease-out both;
}
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--primary); max-width: 34rem; margin-bottom: 2.25rem; animation: float-in 1s 0.3s ease-out both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; animation: float-in 1s 0.45s ease-out both; }

@keyframes float-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sobre ---------- */
.about { background: #eef3e2 url("images/bg-bokeh.webp") center / cover no-repeat; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about-text { max-width: 40rem; }
.about-text > p { text-align: left; }

.journey {
  list-style: none; margin: 1.75rem 0 2rem; padding: 0;
  position: relative;
}
.journey::before {
  content: ""; position: absolute; left: 0.55rem; top: 0.6rem; bottom: 0.6rem; width: 1.5px;
  background: linear-gradient(var(--lavender), var(--sage-deep), var(--peach));
}
.journey li { position: relative; padding-left: 2.5rem; margin-bottom: 1.25rem; }
.journey li:last-child { margin-bottom: 0; }
.journey li::before {
  content: ""; position: absolute; left: 0; top: 0.45rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--leaf);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6);
}

.purpose {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.6rem);
  line-height: 1.45;
  color: var(--primary);
  border-left: 2px solid var(--lavender);
  padding-left: 1.25rem;
  margin-top: 2rem;
}

.portrait { margin: 0; position: sticky; top: calc(var(--header-h) + 2rem); text-align: center; }
.portrait-frame {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(199, 176, 219, 0.5), 0 20px 60px rgba(120, 90, 150, 0.22);
  max-width: 26rem; margin-inline: auto;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.portrait figcaption { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--primary); margin-top: 1.25rem; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { position: static; order: -1; }
  .portrait-frame { max-width: 18rem; }
  .about-text { max-width: none; }
}

/* ---------- Serviços ---------- */
.services { background: #dfe9d9 url("images/bg-wave.webp") center / cover no-repeat; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: 3rem;
}
.service {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.4rem 1.75rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(60, 80, 45, 0.14); }
.service img {
  width: 9.5rem; height: 9.5rem; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8), 0 0 34px 10px var(--glow, var(--gold));
  margin-bottom: 1.6rem;
}
.glow-rose { --glow: var(--rose); }
.glow-gold { --glow: var(--gold); }
.glow-lavender { --glow: var(--lavender); }
.glow-peach { --glow: var(--peach); }
.service h3 { margin-bottom: 0.4rem; }
.service-tag { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; line-height: 1.35; color: var(--leaf); margin-bottom: 0.9rem; }
.service p:not(.service-tag) { font-size: 0.96rem; line-height: 1.65; color: var(--text-soft); }
.service-link {
  margin-top: auto; padding-top: 1.25rem;
  font-weight: 600; font-size: 0.92rem; color: var(--primary);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem;
}
.service-link::after { content: "→"; transition: transform 0.2s; }
.service-link:hover::after { transform: translateX(3px); }

@media (max-width: 1080px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Como funciona ---------- */
.steps { background: var(--muted); }
.step-list {
  list-style: none; margin: 0 0 3.5rem; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem);
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}
.step-num { display: block; font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--lavender); margin-bottom: 1rem; font-weight: 500; }
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--text-soft); font-size: 0.98rem; }
@media (max-width: 860px) { .step-list { grid-template-columns: 1fr; max-width: 32rem; margin-inline: auto; } }

.breathe { margin: 0; text-align: center; }
.breathe p { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.25; color: var(--primary); }
.breathe em { color: var(--leaf); }

/* ---------- Contacto ---------- */
.contact { background: linear-gradient(160deg, var(--bg) 0%, #ece6f2 100%); }
.contact-intro > p:not(.eyebrow) { font-size: 1.15rem; color: var(--text-soft); max-width: 32rem; margin-inline: auto; }

.contact-links {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 60rem;
}
.contact-links a {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  padding: 2rem 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-decoration: none; transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
  word-break: break-word;
}
.contact-links a:hover { background: #fff; border-color: var(--lavender); transform: translateY(-3px); }
.contact-links svg {
  width: 3.25rem; height: 3.25rem; flex: none; padding: 0.8rem;
  border-radius: 50%; background: var(--leaf); fill: #fff;
}
.contact-links span { display: flex; flex-direction: column; gap: 0.2rem; line-height: 1.4; font-size: 0.97rem; color: var(--text-soft); }
.contact-links strong { color: var(--primary); font-weight: 600; font-size: 1.1rem; }

@media (max-width: 760px) {
  .contact-links { grid-template-columns: 1fr; max-width: 26rem; }
  .contact-links a { flex-direction: row; text-align: left; padding: 1rem 1.25rem; }
  .contact-links svg { width: 2.75rem; height: 2.75rem; padding: 0.65rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sage) url("images/bg-floral.webp") center / cover no-repeat;
  padding-block: 4.5rem 3rem;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-logo { width: clamp(150px, 22vw, 200px); height: auto; margin-bottom: 1.25rem; }
.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  line-height: 1.2;
  color: var(--leaf);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
.footer-social { display: flex; gap: 0.9rem; margin-bottom: 2rem; }
.footer-social a {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--leaf); transition: background-color 0.2s, transform 0.2s;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-social svg { width: 1.35rem; height: 1.35rem; fill: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; margin-bottom: 1.75rem; }
.footer-nav a { text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.footer-note { font-size: 0.88rem; color: var(--text-soft); max-width: 36rem; margin-bottom: 0.4rem; }
.footer-copy { font-size: 0.85rem; color: var(--text-soft); margin-top: 1rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 1.7rem; height: 1.7rem; fill: #fff; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo, .hero h1, .hero-sub, .hero-actions { animation: none; }
}
