/* =========================================================
   BOLBORETA ESTUDIO — bdebolboreta.com
   ========================================================= */

/* ---------- Fonts allotjades a /fonts ---------- */
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anton";
  src: url("../fonts/Anton-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mrs Saint Delafield";
  src: url("../fonts/MrsSaintDelafield-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables de marca (colors extrets del disseny) ---------- */
:root {
  /* Colors */
  --lila:         #D7BFE5;   /* capçalera, hero, títols lila */
  --lila-clar:    #EADDF2;   /* caixes suaus */
  --lila-fosc:    #9D38D8;   /* "moments" i accents */
  --crema:        #FFFBF2;   /* fons clar i text sobre lila */
  --salvia:       #93A67C;   /* botons i números */
  --salvia-fosc:  #7E9268;
  --gris-fosc:    #4B4B4D;
  --text:         #3A3A3A;
  --negre:        #000000;
  --blanc:        #FFFFFF;

  /* Tipografia */
  --font-titol:  "Boska", Georgia, serif;
  --font-text:   "Lato", system-ui, sans-serif;
  --font-menu:   "Anton", "Arial Narrow", sans-serif;
  --font-script: "Mrs Saint Delafield", "Brush Script MT", cursive;

  /* Espais */
  --container: 1200px;
  --gutter: clamp(16px, 5vw, 56px);
  --header-h: 92px;
  --radius: 10px;
}

/* ---------- Reset bàsic ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-text);
  color: var(--text);
  background: var(--crema);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

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

.script { font-family: var(--font-script); font-style: normal; font-weight: 400; }

/* ---------- Botó genèric ---------- */
.btn {
  display: inline-block;
  padding: .85em 1.3em;
  background: var(--salvia);
  color: var(--blanc);
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color .2s, transform .2s;
}
.btn:hover,
.btn:focus-visible { background: var(--salvia-fosc); transform: translateY(-2px); }

/* =========================================================
   1. CAPÇALERA
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--lila);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  max-width: 1360px;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--crema);
  line-height: 1;
  margin-left: clamp(0px, 8vw, 110px);
}
.logo-name {
  font-family: var(--font-titol);
  font-size: clamp(1.5rem, 2.9vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -.01em;
}
.logo-tagline {
  display: flex;
  align-items: baseline;
  gap: .4em;
  margin-top: .35rem;
  font-family: var(--font-menu);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.logo-tagline .script {
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--lila-fosc);
}

/* Menú escriptori */
.main-nav ul {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}
.main-nav a {
  font-family: var(--font-menu);
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--crema);
  text-decoration: none;
  transition: opacity .2s;
}
.main-nav a:hover,
.main-nav a:focus-visible { opacity: .7; }

/* Botó hamburguesa (només mòbil) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--crema);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle-bar:nth-child(1) { top: 14px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 28px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mòbil ---------- */
@media (max-width: 860px) {
  :root { --header-h: 76px; }
  .logo { margin-left: 0; }
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--lila);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .main-nav.is-open { max-height: 340px; }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: .5rem 0 1.5rem;
  }
  .main-nav li { width: 100%; text-align: center; }
  .main-nav a {
    display: block;
    padding: .9rem var(--gutter);
    font-size: 1.1rem;
  }
}

/* =========================================================
   2. BANDA DE FLORS
   ========================================================= */
.flower-band {
  width: 100%;
  height: clamp(110px, 18vw, 260px);
  background: #E9734E; /* color de reserva mentre carrega la imatge */
  overflow: hidden;
}
.flower-band picture,
.flower-band img {
  width: 100%;
  height: 100%;
}
.flower-band img {
  object-fit: cover;
  object-position: center 50%;
}

/* =========================================================
   3. HERO
   ========================================================= */
.hero {
  background: var(--lila);
  color: var(--crema);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-title {
  font-family: var(--font-titol);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--crema);
}
.hero-script {
  display: inline-block;
  font-size: 1.55em;
  line-height: 0;
  color: var(--lila-fosc);
  margin-left: .1em;
  transform: translateY(-.08em);
}

.hero-lead {
  margin-top: 1.75rem;
  max-width: 48ch;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--crema);
}

.hero .btn { margin-top: 1.5rem; }

.hero-image {
  border: 1.5px solid var(--negre);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { max-width: 460px; width: 100%; justify-self: center; }
}

/* =========================================================
   SECCIONS — estils comuns
   ========================================================= */
.section {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-title {
  font-family: var(--font-titol);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--lila);
}
.section-sub {
  margin-top: 1rem;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--lila);
}

/* =========================================================
   4. EL QUE IL·LUSTRO
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(2rem, 9vw, 9rem);
  row-gap: clamp(3rem, 6vw, 5rem);
  padding-inline: clamp(0px, 2vw, 1.75rem);
}

.card-media {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--lila-clar);
}
.card-media picture,
.card-media img {
  width: 100%;
  height: 100%;
}
.card-media img {
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-media img { transform: scale(1.04); }

/* Mascotes: làmina blanca sobre fons salvia */
.card-media--sage {
  position: relative;
  background: var(--salvia);
}
.card-media--sage picture { display: contents; }
.card-media--sage img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: 83%;
  object-fit: contain;
}

/* Retrats: sense fons, directament sobre crema */
.card-media--plain { background: transparent; border-radius: 0; }

/* Live art: properament */
.card-media--soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  background: var(--gris-fosc);
  color: var(--crema);
}
.soon-icon { width: 3rem; height: auto; margin-top: 1rem; }
.soon-label {
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.card-title {
  margin-top: 1.4rem;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.2;
  color: var(--text);
}
.card-text {
  margin-top: .45rem;
  max-width: 24ch;
  text-wrap: balance;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.35;
  color: var(--text);
}

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); column-gap: 1.5rem; padding-inline: 0; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; row-gap: 2.75rem; }
  .card-media { max-width: 420px; }
}

/* Variants per a seccions amb fons lila */
.section-title--light,
.section-sub--light { color: var(--crema); }

/* =========================================================
   5. COM ENCARREGAR
   ========================================================= */
.how { background: var(--lila); color: var(--crema); }
.how .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  list-style: none;
}

.step-num {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--salvia);
  color: var(--crema);
  font-weight: 700;
  font-size: 1.15rem;
}

.step-title {
  margin-top: 1.75rem;
  max-width: 12ch;
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.25;
}

.step-text {
  margin-top: 1rem;
  max-width: 17ch;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.75vw, 1.4rem);
  line-height: 1.25;
}

.price-box {
  max-width: 1050px;
  margin: clamp(3rem, 7vw, 5.5rem) auto 0;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 6vw, 4.5rem);
  background: #EBDDEB;
}
.price-text {
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.75vw, 1.4rem);
  line-height: 1.3;
  color: var(--lila-fosc);
}
.price-text strong { font-weight: 700; }
.price-box .btn { margin-top: 1.5rem; }

.btn--small {
  font-size: .95rem;
  padding: .85em 1em;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.75rem; }
  .step-text { max-width: 24ch; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; row-gap: 2rem; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; }
  .step-num { grid-row: span 2; width: 3rem; height: 3rem; }
  .step-title { margin-top: .6rem; max-width: none; }
  .step-text { margin-top: .4rem; max-width: none; }
}

/* =========================================================
   6. TESTIMONIS
   ========================================================= */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  list-style: none;
}
/* Disposició esglaonada com al disseny */
.quote:nth-child(1) { margin-top: 0; }
.quote:nth-child(2) { margin-top: clamp(0px, 9vw, 7rem); }
.quote:nth-child(3) { margin-top: clamp(-9rem, -10vw, 0px); }

.quote {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--blanc);
  border-radius: 8px;
  box-shadow: 0 10px 30px -18px rgba(75, 75, 77, .35);
}
.quote--accent { background: var(--gris-fosc); color: var(--crema); }

.quote-mark {
  display: block;
  height: 2.6rem;
  font-family: var(--font-titol);
  font-size: 5rem;
  line-height: 1;
  color: var(--lila);
}
.quote-text p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.45;
}
.quote-author {
  margin-top: 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .quotes { grid-template-columns: 1fr; max-width: 520px; }
  .quote:nth-child(n) { margin-top: 0; }
}

/* =========================================================
   7. SOBRE MÍ
   ========================================================= */
.about {
  position: relative;
  display: grid;
  grid-template-columns: 59% 1fr;
  align-items: center;
  background: var(--crema);
}
.about-photo {
  height: 100%;
  min-height: clamp(420px, 55vw, 760px);
}
.about-photo picture,
.about-photo img {
  width: 100%;
  height: 100%;
}
.about-photo img {
  object-fit: cover;
  object-position: 55% 55%;
}

.about-card {
  position: relative;
  z-index: 1;
  margin-left: -12vw;
  margin-right: clamp(16px, 5vw, 4rem);
  padding: clamp(2rem, 4.5vw, 3.75rem);
  background: var(--lila);
  color: var(--crema);
  border-radius: 12px;
}
.about-title {
  font-family: var(--font-titol);
  font-weight: 500;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.75rem);
}
.about-card p {
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.4;
}
.about-card p + p { margin-top: 1.25rem; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { min-height: 0; height: auto; aspect-ratio: 4 / 5; }
  .about-card { margin: -4rem var(--gutter) clamp(2.5rem, 8vw, 3.5rem); }
}

/* =========================================================
   8. CONTACTE
   ========================================================= */
.contact { background: var(--lila); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.contact .section-sub { margin-top: 1rem; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem clamp(1.25rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.btn--case { text-transform: none; font-size: 1.15rem; }
.btn--outline {
  background: transparent;
  border: 2px solid var(--crema);
  color: var(--crema);
  text-transform: none;
  font-size: 1.15rem;
}
.btn--outline:hover,
.btn--outline:focus-visible { background: var(--crema); color: var(--lila-fosc); }

/* =========================================================
   PEU
   ========================================================= */
.site-footer {
  background: var(--gris-fosc);
  color: var(--crema);
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-block: 1.25rem;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }

/* =========================================================
   PÀGINES LEGALS
   ========================================================= */
.legal { padding-block: clamp(3rem, 6vw, 5rem); }
.legal-inner { max-width: 820px; }
.legal .section-title { color: var(--lila-fosc); }
.legal-updated { margin-top: .75rem; font-size: .95rem; color: var(--gris-fosc); }
.legal h2 {
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  font-family: var(--font-titol);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  color: var(--text);
}
.legal p,
.legal li { font-size: 1.05rem; line-height: 1.65; }
.legal p + p { margin-top: .9rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-block: .75rem; }
.legal .legal-data {
  list-style: none;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  background: var(--lila-clar);
  border-radius: 8px;
}
.legal a { color: var(--lila-fosc); }

/* ---------- Menys moviment si l'usuari ho prefereix ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
