/* ============================================================
   Raquel Turull · Psicòloga a Vilassar de Mar
   Full d'estils principal
   ============================================================ */

:root {
  /* Paleta càlida i natural */
  --sand-50:  #FBF8F4;
  --sand-100: #F5EFE6;
  --sand-200: #EDE3D6;
  --sand-300: #DCCDBA;

  --green-900: #22322A;
  --green-800: #2E4237;
  --green-600: #4F6B58;
  --green-500: #6E8B74;
  --green-100: #DCE6DD;

  --clay-500: #C4795A;
  --clay-300: #E3B79F;
  --clay-100: #F3E1D6;

  --ink:      #2A332D;
  --ink-soft: #5B6660;

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(42, 51, 45, .05);
  --shadow:    0 12px 32px -12px rgba(42, 51, 45, .16);
  --shadow-lg: 0 30px 60px -28px rgba(42, 51, 45, .3);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--green-600); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--green-900);
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.35rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; letter-spacing: -.005em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; color: var(--green-600); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap-narrow { max-width: 800px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-800);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ── Capçalera ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 244, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--sand-200);
  box-shadow: var(--shadow-sm);
}

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

.brand { text-decoration: none; display: grid; line-height: 1.25; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green-900);
  letter-spacing: -.01em;
}
.brand-role {
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: .93rem;
  font-weight: 500;
  transition: color .2s ease;
}
.nav a:hover { color: var(--green-900); }
.nav a.btn { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--green-900);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Botons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: .97rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease;
}
.btn-sm { padding: 9px 20px; font-size: .88rem; }

.btn-primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(79, 107, 88, .8);
}
.btn-primary:hover {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(46, 66, 55, .85);
}

.btn-ghost {
  border-color: var(--sand-300);
  color: var(--green-900);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--green-500); background: var(--sand-100); transform: translateY(-2px); }

.ico { width: 19px; height: 19px; fill: currentColor; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  color: var(--green-600);
}
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── Hero ──────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -280px; right: -180px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, var(--green-100) 0%, rgba(220, 230, 221, 0) 68%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -300px; left: -220px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, var(--clay-100) 0%, rgba(243, 225, 214, 0) 68%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay-500);
  margin-bottom: 1.1em;
}

.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.19rem);
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 20px;
}

.hero-micro {
  font-size: .89rem;
  color: var(--ink-soft);
  letter-spacing: .01em;
}

.hero-media {
  position: relative;
  justify-self: center;
  width: min(420px, 100%);
}

.photo-frame {
  position: relative;
  border-radius: 50% 50% 46% 54% / 52% 48% 52% 48%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--sand-200);
  max-width: 420px;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(110, 139, 116, .06), rgba(196, 121, 90, .1));
  pointer-events: none;
}
.photo-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.photo-badge {
  position: absolute;
  bottom: 4%;
  left: -26px;
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow);
  display: grid;
  line-height: 1.3;
}
.photo-badge strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--green-800);
  white-space: nowrap;
}
.photo-badge span { font-size: .8rem; color: var(--ink-soft); }

/* ── Franja de confiança ───────────────────────────────── */

.trust {
  background: var(--green-800);
  color: var(--sand-100);
  padding: 34px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 32px;
}
.trust-item { display: grid; gap: 3px; align-content: start; }

.trust-link {
  text-decoration: none;
  transition: opacity .2s ease;
}
.trust-link:hover { opacity: .78; }
.trust-link .stars { color: var(--clay-300); letter-spacing: .04em; }
.trust-item strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
}
.trust-item span { font-size: .85rem; color: rgba(245, 239, 230, .72); line-height: 1.45; }

/* ── Seccions ──────────────────────────────────────────── */

.section { padding: clamp(64px, 8.5vw, 116px) 0; }
.section-alt { background: var(--sand-100); }

.section-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay-500);
  margin-bottom: .9em;
}

.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 60px); }
.section-intro { color: var(--ink-soft); font-size: 1.07rem; }

/* Sobre mi */
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.list-label {
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 36px 0 14px;
}

.credentials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.credentials li {
  position: relative;
  padding-left: 30px;
  font-size: .97rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.credentials li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 16px; height: 2px;
  background: var(--clay-300);
}

.quote-card {
  background: var(--green-100);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  position: sticky;
  top: calc(var(--header-h) + 28px);
}
.quote-card blockquote { margin: 0 0 18px; }
.quote-card blockquote p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--green-900);
  font-style: italic;
}
.quote-note { font-size: .93rem; color: var(--green-600); }

/* Targetes de motius */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 20px;
}
.card {
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--sand-300);
}
.card-ico {
  display: block;
  color: var(--clay-500);
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.card p { font-size: .95rem; color: var(--ink-soft); }

.card-cta {
  background: var(--green-800);
  border-color: var(--green-800);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-cta h3 { color: #fff; }
.card-cta p { color: rgba(245, 239, 230, .78); }
.card-cta .link-arrow { color: var(--clay-300); margin-top: 6px; }

/* A qui acompanyo */
.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.who {
  border-top: 2px solid var(--clay-300);
  padding-top: 26px;
}
.who h3 { font-size: 1.45rem; }
.who p { color: var(--ink-soft); font-size: .97rem; }

/* Com treballo */
.section-dark {
  background: var(--green-900);
  color: rgba(245, 239, 230, .82);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark strong { color: var(--sand-100); }
.section-dark .section-label { color: var(--clay-300); }

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(245, 239, 230, .14);
}
.steps li:last-child { border-bottom: none; }
.step-num {
  grid-row: span 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(227, 183, 159, .5);
  color: var(--clay-300);
  font-family: var(--font-display);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}
.steps h3 { margin: 0 0 6px; font-size: 1.12rem; align-self: center; }
.steps p { font-size: .95rem; margin: 0; }

/* FAQ */
.faq { display: grid; gap: 2px; }
.faq details {
  border-bottom: 1px solid var(--sand-200);
  padding: 6px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
  color: var(--green-900);
  position: relative;
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--clay-500);
  font-family: var(--font-body);
  font-weight: 300;
  transition: transform .3s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--green-600); }
.faq details p {
  padding: 0 40px 22px 0;
  color: var(--ink-soft);
  font-size: .98rem;
  margin: 0;
}

/* Contacte */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.contact-card {
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.contact-card h3 { font-size: 1.2rem; margin-bottom: 16px; }
.contact-card address { font-style: normal; color: var(--ink-soft); margin-bottom: 18px; line-height: 1.7; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--sand-300);
  padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}
.contact-list a:hover { color: var(--green-600); border-color: var(--green-500); }

.contact-cta {
  background: var(--green-100);
  border-color: var(--green-100);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.contact-cta p { color: var(--green-600); font-size: .95rem; }
.contact-cta .btn { margin-top: 12px; }

.urgency-note {
  margin-top: 34px;
  font-size: .88rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--clay-300);
  padding-left: 18px;
  max-width: 760px;
}

/* ── Peu ───────────────────────────────────────────────── */

.site-footer {
  background: var(--green-900);
  color: rgba(245, 239, 230, .7);
  padding: 56px 0 28px;
  font-size: .92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(245, 239, 230, .14);
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 6px;
}
.footer-meta { line-height: 1.6; font-size: .87rem; margin: 0; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a {
  color: rgba(245, 239, 230, .78);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-nav a:hover { color: #fff; }

.copy {
  max-width: var(--wrap);
  margin: 22px auto 0;
  padding-inline: 24px;
  font-size: .8rem;
  color: rgba(245, 239, 230, .45);
}

/* ── Botó flotant de WhatsApp ──────────────────────────── */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px -8px rgba(37, 211, 102, .75);
  transition: transform .25s ease;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float:hover { transform: scale(1.07); }

/* ── Animacions d'entrada ──────────────────────────────── */

/* Només s'amaga si hi ha JS disponible per tornar-ho a mostrar */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-media { order: -1; max-width: 320px; justify-self: start; }
  .photo-badge { left: auto; right: -10px; bottom: 4%; }
  .about-grid, .approach-grid { grid-template-columns: 1fr; }
  .quote-card { position: static; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--sand-50);
    border-bottom: 1px solid var(--sand-200);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 22px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--sand-200);
    font-size: 1rem;
  }
  .nav a.btn {
    border-bottom: none;
    margin-top: 16px;
    justify-content: center;
    padding: 14px 20px;
  }
  .hero-actions .btn { width: 100%; }
  .trust-grid { grid-template-columns: 1fr; gap: 18px; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .wa-float, .hero-actions, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
