/* VARIABLES I RESET BÀSIC */

:root {
  --color-bg: #f7f1eb;
  --color-bg-alt: #f2e6dd;
  --color-surface: #fffaf6;
  --color-accent: #d4a58a;
  --color-accent-soft: #f0d3c3;
  --color-text: #3f3330;
  --color-muted: #8a7b74;
  --color-line: rgba(0, 0, 0, 0.06);

  --radius-lg: 1.8rem;
  --radius-md: 1.2rem;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.06);

  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
}

/* ENLLAÇOS I TEXT */

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

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

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

p {
  margin: 0 0 1rem;
}

/* DISPOSICIÓ GENERAL */

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

main {
  padding-top: var(--header-height);
}

/* CAPÇALERA */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--header-height);
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 241, 235, 0.9);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Marca */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-soft));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  color: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-muted);
}

/* Navegació */

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  position: relative;
  padding-block: 0.25rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width 0.24s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* HERO AMB VÍDEO */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(29, 18, 15, 0.65), rgba(108, 84, 71, 0.3)),
    linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent 40%);
  z-index: -1;
}

.hero-content {
  padding-block: 5rem;
  max-width: 640px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #fdf9f5;
}

.hero h1 span {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.6);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.hero-text {
  font-size: 1rem;
  max-width: 34rem;
  margin-bottom: 2rem;
  opacity: 0.94;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* BOTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn.primary {
  background: #f8f0e8;
  color: #2d2420;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.btn.ghost {
  background: transparent;
  color: #fdf9f5;
  border-color: rgba(250, 243, 237, 0.6);
}

.btn.ghost:hover {
  background: rgba(250, 243, 237, 0.12);
}

/* SECCIONS GENERALS */

.section {
  padding-block: 5rem;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  max-width: 540px;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

/* QUI SOC */

.about {
  background-color: var(--color-bg);
}

.about-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about-photo {
  max-width: 420px;
  justify-self: center;
}

.about-photo img {
  border-radius: 2rem;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.about-text {
  font-size: 0.98rem;
}

.about-text p {
  max-width: 560px;
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1rem;
}

.about-highlights li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.about-highlights li::before {
  content: "◦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
}

.about-note {
  font-style: italic;
  color: var(--color-muted);
  margin-top: 1rem;
}

/* SERVEIS */

.services {
  background: radial-gradient(circle at top left, #f7e5da 0, #f7f1eb 45%, #f7f1eb 100%);
}

.services-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  border-color: rgba(212, 165, 138, 0.4);
}

.service-image-wrap {
  border-radius: 1.4rem;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.service-image-wrap img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.service-card:hover .service-image-wrap img {
  transform: scale(1.06);
}

.service-card h3 {
  font-size: 1.4rem;
  margin: 0.4rem 0 0.2rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

.service-list li {
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.service-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
}

/* CONTACTE */

.contact {
  background-color: #fff;
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.contact-info {
  max-width: 480px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 1.5rem;
  display: grid;
  gap: 0.7rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  margin-bottom: 0.1rem;
}

.contact-value {
  font-size: 0.95rem;
}

.contact-value:hover {
  text-decoration: underline;
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact-media {
  max-width: 480px;
  justify-self: center;
}

.contact-photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-line);
}

.contact-photo-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* FOOTER */

.site-footer {
  padding-block: 1.8rem;
  border-top: 1px solid var(--color-line);
  background-color: #f9f3ed;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-small {
  opacity: 0.9;
}

/* RESPONSIVE */

@media (min-width: 720px) {
  .about-layout {
    grid-template-columns: 1fr 1.1fr;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1.1fr 1fr;
  }
}

@media (max-width: 719px) {
  .site-header {
    height: auto;
  }

  main {
    padding-top: calc(var(--header-height) + 12px);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 0.6rem;
  }

  .main-nav ul {
    gap: 1.1rem;
    font-size: 0.8rem;
  }

  .hero-content {
    padding-block: 4rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .service-image-wrap img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 0.95rem;
  }
}
