/* ─── VARIABLES ─── */
:root {
  --beige:    #F5F0E8;
  --beige2:   #EDE6D6;
  --terra:    #8B6F5E;
  --terra-d:  #5C4033;
  --sage:     #7C8C6E;
  --ink:      #1E1A16;
  --ink-soft: #4A4038;
  --white:    #FDFAF5;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 60px;
  background: rgba(253, 250, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 111, 94, 0.12);
  transition: padding var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  max-width: 70px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--terra); }

.nav-cta {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 26px;
  border: 1px solid var(--terra);
  color: var(--terra);
  border-radius: 2px;
  transition: background var(--transition), color var(--transition);
}

.nav-cta:hover {
  background: var(--terra);
  color: var(--white);
}

.nav-lang {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
  background: none;
  font-family: var(--font-body);
}

.nav-lang:hover {
  border-color: var(--terra);
  color: var(--terra);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ─── HAMBURGER ─── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink-soft);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE PANEL ─── */
.nav-mobile-panel { display: none; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  padding-top: 90px;
  display: flex;
  align-items: stretch;
}

.hero-inner {
  display: flex;
  width: 100%;
}

.hero-left {
  flex: 0 0 58%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 70px 80px 60px;
  background: var(--white);
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--sage);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 5.5vw, 74px);
  font-weight: 300;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 32px;
}

.hero-title em {
  font-style: italic;
  color: var(--terra);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 420px;
  margin-bottom: 52px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 18px 42px;
  background: var(--terra-d);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--terra);
  transform: translateY(-2px);
}

.btn-secondary {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color var(--transition);
}

.btn-secondary::after {
  content: '\2192';
  transition: transform var(--transition);
}

.btn-secondary:hover { color: var(--terra); }
.btn-secondary:hover::after { transform: translateX(4px); }

.hero-brand {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(124, 140, 110, 0.25);
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.hero-brand-logo {
  flex-shrink: 0;
  width: 150px;
  height: auto;
  margin-top: 2px;
  margin-right: 24px;
  opacity: 0.9;
}

.hero-quote {
  flex: 1;
  border-left: 1px solid rgba(124, 140, 110, 0.3);
  padding-left: 24px;
}

.hero-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.8;
}

.hero-right {
  flex: 0 0 42%;
  position: relative;
  background: var(--beige2);
  overflow: hidden;
}

.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--terra);
  opacity: 0.5;
}

.img-placeholder svg {
  width: 56px;
  height: 56px;
}

.img-placeholder span {
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-right::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(92, 64, 51, 0.08), transparent);
  pointer-events: none;
}

/* ─── BARRA DE CREDENCIALS ─── */
.credentials {
  background: var(--terra-d);
  color: rgba(255,255,255,0.75);
  padding: 22px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.credentials-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.credentials-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* ─── SOBRE MI (mini) ─── */
.about {
  padding: 120px 60px;
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text { flex: 1; }

.section-label {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--sage);
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 24px;
}

.about-text h2 em {
  font-style: italic;
  color: var(--terra);
}

.about-text p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 500px;
  margin-bottom: 16px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  border-bottom: 1px solid var(--terra);
  padding-bottom: 3px;
  transition: gap var(--transition);
}

.about-link:hover { gap: 16px; }

.about-visual {
  flex: 0 0 340px;
  aspect-ratio: 3 / 4;
  background: var(--beige2);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.about-visual .img-placeholder {
  opacity: 0.4;
}

.about-visual::before {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 80px;
  height: 80px;
  border: 1px solid var(--terra);
  opacity: 0.3;
  z-index: -1;
}

/* ─── SERVEIS ─── */
.services {
  background: var(--beige);
  padding: 120px 60px;
}

.services-header {
  max-width: 1200px;
  margin: 0 auto 64px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.services-header h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
}

.services-header h2 em {
  font-style: italic;
  color: var(--terra);
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 2px;
}

.service-card {
  flex: 1;
  background: var(--white);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
  cursor: default;
}

.service-card:hover {
  background: var(--terra-d);
}

.service-card:hover .service-num,
.service-card:hover .service-title,
.service-card:hover .service-desc {
  color: rgba(255,255,255,0.9);
}

.service-card:hover .service-line {
  background: rgba(255,255,255,0.3);
}

.service-num {
  font-family: var(--font-body);
  font-size: 52px;
  font-weight: 200;
  letter-spacing: 0.05em;
  color: rgba(139, 111, 94, 0.45);
  line-height: 1;
  margin-bottom: 32px;
  transition: color var(--transition);
}

.service-line {
  width: 32px;
  height: 1px;
  background: var(--terra);
  margin-bottom: 20px;
  transition: background var(--transition);
}

.service-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.3;
  transition: color var(--transition);
}

.service-desc {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  transition: color var(--transition);
}

/* ─── CITA/QUOTE ─── */
.quote-section {
  padding: 100px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

blockquote {
  max-width: 720px;
  text-align: center;
}

blockquote p {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 28px;
}

blockquote cite {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-style: normal;
}

/* ─── CTA FINAL ─── */
.cta-section {
  background: var(--terra-d);
  padding: 100px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-text h2 em {
  font-style: italic;
  color: var(--beige2);
}

.cta-text p {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  max-width: 440px;
}

.btn-light {
  display: inline-block;
  padding: 20px 48px;
  background: var(--white);
  color: var(--terra-d);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.btn-light:hover {
  background: var(--beige2);
  transform: translateY(-2px);
}

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 48px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.8);
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-links a:hover { color: rgba(255,255,255,0.8); }

.footer-copy {
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ─── ANIMACIÓ D'ENTRADA ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.25s; }
.fade-up:nth-child(3) { animation-delay: 0.4s; }
.fade-up:nth-child(4) { animation-delay: 0.55s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .nav-links  { display: none; }
  .nav-actions { display: none; }
  .nav-burger  { display: flex; }

  .nav-mobile-panel {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253, 250, 245, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 111, 94, 0.12);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-mobile-panel.is-open { max-height: 520px; }

  .nav-mobile-links {
    list-style: none;
    padding: 16px 24px;
  }

  .nav-mobile-links li a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 1px solid rgba(139, 111, 94, 0.1);
    transition: color var(--transition);
  }

  .nav-mobile-links li:first-child a {
    border-top: 1px solid rgba(139, 111, 94, 0.1);
  }

  .nav-mobile-links li a:hover { color: var(--terra); }

  .nav-mobile-langs {
    display: flex;
    gap: 8px;
    padding: 12px 24px 16px;
  }

  .nav-mobile-cta {
    display: block;
    text-align: center;
    margin: 0 24px 28px;
  }

  .hero-inner { flex-direction: column; }
  .hero-left  { flex: none; padding: 60px 24px; }
  .hero-right { flex: none; min-height: 55vw; }

  .credentials { padding: 20px 24px; gap: 28px; }

  .about { flex-direction: column; padding: 80px 24px; gap: 48px; }
  .about-visual { flex: none; width: 100%; aspect-ratio: 4/3; }

  .services { padding: 80px 24px; }
  .services-grid { flex-direction: column; }
  .service-row-img { order: 2 !important; width: 100% !important; flex: none !important; aspect-ratio: 4/3; }

  .quote-section { padding: 80px 24px; }
  .cta-section   { padding: 80px 24px; }
  footer         { padding: 40px 24px; flex-direction: column; align-items: flex-start; }
}
