/* ============================================
   Ca l'Anglada – Shared Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  --green-dark:  #2d4a2d;
  --green-mid:   #4a7c4a;
  --green-light: #8ab88a;
  --cream:       #f5f0e8;
  --warm-white:  #faf8f4;
  --earth:       #8b6f47;
  --text-dark:   #1a2e1a;
  --text-mid:    #3d5c3d;
}

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

body {
  font-family: 'Lato', sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(245,240,232,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74,124,74,0.15);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--green-dark);
  text-decoration: none;
  font-style: italic;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-dark); }
.nav-links a.active { border-bottom: 1px solid var(--green-mid); padding-bottom: 2px; }

.nav-lang {
  display: flex;
  gap: .4rem;
  font-size: .75rem;
  letter-spacing: .08em;
}
.nav-lang a {
  color: var(--text-mid);
  text-decoration: none;
  padding: .2rem .5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all .2s;
}
.nav-lang a.active, .nav-lang a:hover {
  border-color: var(--green-mid);
  color: var(--green-dark);
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--green-dark);
  transition: all .3s;
}

/* ---- PAGE HERO (interior pages) ---- */
.page-hero {
  padding: 9rem 3rem 4rem;
  background: var(--green-dark);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/CIMG05221-1340x500_c.jpg') center/cover no-repeat;
  opacity: .18;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 700px; }
.page-hero-tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: .8rem;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
}

/* ---- SECTIONS ---- */
.section { padding: 5.5rem 3rem; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--green-dark); }

.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: .8rem;
}
.section--dark .section-label { color: var(--green-light); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1.4rem;
}
.section--dark .section-title { color: #fff; }

.section-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-mid);
  max-width: 580px;
}
.section--dark .section-body { color: rgba(255,255,255,.75); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  background: var(--green-mid);
  color: #fff;
  text-decoration: none;
  padding: .9rem 2rem;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  font-family: 'Lato', sans-serif;
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--green-light);
  color: var(--green-light);
  text-decoration: none;
  padding: .9rem 2.5rem;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: all .2s;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  background: transparent;
}
.btn-outline:hover { background: var(--green-light); color: var(--green-dark); }

/* ---- INTRO STRIP ---- */
.intro-strip {
  background: var(--green-dark);
  color: var(--cream);
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 2.2rem 3rem;
  flex-wrap: wrap;
}
.intro-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .85rem;
  letter-spacing: .06em;
}
.intro-item svg { width: 22px; height: 22px; color: var(--green-light); flex-shrink: 0; }

/* ---- CTA BANNER ---- */
.cta-banner { background: var(--green-dark); color: #fff; text-align: center; padding: 5rem 3rem; }
.cta-banner .section-label { color: var(--green-light); }
.cta-banner .section-title { color: #fff; margin: 0 auto 1.2rem; max-width: 600px; }
.cta-banner p { font-size: 1rem; font-weight: 300; color: rgba(255,255,255,.72); margin-bottom: 2.5rem; }

/* ---- FOOTER ---- */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 2rem;
  font-size: .78rem;
  letter-spacing: .06em;
  line-height: 1.8;
}
footer a { color: var(--green-light); text-decoration: none; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---- MOBILE ---- */
@media (max-width: 1100px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    border-bottom: 2px solid var(--green-mid);
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: .9rem 1.5rem;
    border-bottom: 1px solid rgba(74,124,74,.1);
  }
  .nav-burger { display: flex; }
  .page-hero { padding: 7rem 1.5rem 3rem; }
  .section { padding: 4rem 1.5rem; }
  .intro-strip { gap: 1.5rem; padding: 2rem 1.5rem; }
}
