/* ════════════════════════════════════════════════════════
   ESPAIEGARENSE — Stylesheet
   Colors: cream #F5EFE6 · dark #1C1C1C · gold #C9A96E
   Fonts:  Cormorant Garamond (headings) · Raleway (body)
════════════════════════════════════════════════════════ */

:root {
  --cream:       #FCF3EA;
  --cream-d:     #EDE0CE;
  --dark:        #1C1C1C;
  --dark-l:      #252525;
  --dark-ll:     #2E2E2E;
  --gold:        #C9A96E;
  --gold-l:      #D9BC8E;
  --gold-d:      #A8864A;
  --white:       #FFFFFF;
  --txt-dark:    #1C1C1C;
  --txt-mid:     #5C5248;
  --txt-muted:   #9A9188;
  --transition:  all .35s cubic-bezier(.4, 0, .2, 1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Raleway', sans-serif;
  background: var(--cream);
  color: var(--txt-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { color: inherit; }

/* ─── Typography ─── */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.12;
}
h4 {
  font-family: 'Raleway', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem);     letter-spacing: -.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }

.eyebrow {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .85rem;
}
.eyebrow.gold-light { color: var(--gold-l); }
.txt-cream      { color: var(--cream); }
.txt-cream-soft { color: rgba(245,239,230,.6); }

/* ─── Layout ─── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-head {
  text-align: center;
  margin-bottom: 4rem;
}
.section-head p {
  max-width: 580px;
  margin: .9rem auto 0;
  font-size: .95rem;
  color: var(--txt-mid);
}

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease var(--delay, 0s),
              transform .75s ease var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-block;
  padding: .95rem 2.5rem;
  background: var(--gold);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--gold);
  transition: var(--transition);
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}


/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--dark);
  transition: box-shadow .4s ease;
}
#site-header.scrolled {
  box-shadow: 0 2px 30px rgba(0,0,0,.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
}

/* Logo circle (matches brand references) */
.header-logo { text-decoration: none; flex-shrink: 0; }
.logo-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid rgba(201,169,110,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color .3s;
}
.logo-circle:hover { border-color: var(--gold); }
.logo-circle img { width: 82%; height: 82%; object-fit: contain; }

/* Desktop nav */
.desktop-nav { display: flex; gap: 2.75rem; }
.desktop-nav a {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  position: relative;
  transition: color .25s;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s ease;
}
.desktop-nav a:hover,
.desktop-nav a.active { color: var(--gold); }
.desktop-nav a:hover::after,
.desktop-nav a.active::after { width: 100%; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 1rem; }

.lang-btn {
  background: none;
  border: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.75);
  font-family: 'Raleway', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: .32rem .72rem;
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: rgba(255,255,255,.8);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--dark);
  padding: 0 2rem 1.5rem;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--gold); }


/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 25%, rgba(201,169,110,.22) 0%, transparent 52%),
    radial-gradient(ellipse at 18% 78%, rgba(201,169,110,.13) 0%, transparent 45%),
    var(--cream);
}
/* Subtle bottom gold line leading into the dark about section */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(201,169,110,.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  padding: 2rem 2rem 6rem;
  animation: heroFadeUp .9s ease both;
}
.hero-content .eyebrow { color: var(--gold); margin-bottom: 1.2rem; }
.hero-content h1 { color: var(--txt-dark); margin-bottom: 1.4rem; font-weight: 300; }
.hero-content p {
  color: var(--txt-mid);
  font-size: 1rem;
  font-weight: 400;
  max-width: 480px;
  margin: 0 auto 2.8rem;
  line-height: 1.8;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  text-decoration: none;
  display: flex; align-items: center;
}
.hero-scroll span {
  display: block;
  width: 1px; height: 55px;
  background: linear-gradient(to bottom, rgba(201,169,110,.6), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0%   { transform: scaleY(0);   transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1);   transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1);   transform-origin: bottom; opacity: 0; }
}


/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.about { padding: 8rem 0; background: var(--dark); }

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-body h2   { color: var(--cream); margin-bottom: 1.1rem; }
.about-body > p  {
  color: rgba(245,239,230,.62);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 2.75rem;
  max-width: 500px;
}

.features { display: flex; flex-direction: column; gap: 1.75rem; }
.feature  { display: flex; gap: 1.35rem; align-items: flex-start; }

.feature-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  min-width: 36px;
  line-height: 1;
  padding-top: .1rem;
}
.feature h4 { color: var(--cream); margin-bottom: .3rem; }
.feature p  { font-size: .88rem; color: rgba(245,239,230,.42); line-height: 1.6; }

/* About logo */
.about-logo-wrap { display: flex; justify-content: center; }
.about-logo-circle {
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(201,169,110,.2);
  box-shadow: 0 16px 60px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-logo-circle img { width: 72%; height: 72%; object-fit: contain; }


/* ══════════════════════════════════════
   PISOS
══════════════════════════════════════ */
.pisos { padding: 8rem 0; background: var(--cream); }

/* Section head overrides for cream background */
.pisos .section-head .eyebrow { color: var(--gold); }
.pisos .section-head h2       { color: var(--txt-dark); }
.pisos .section-head p        { color: var(--txt-mid); }

.pisos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Card */
.piso-card {
  background: var(--dark-l);
  border: 1px solid rgba(201,169,110,.12);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.piso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  border-color: rgba(201,169,110,.3);
}

/* Media / video area */
.piso-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark);
}
.piso-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.video-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #232323 0%, #1A1A1A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-inner { text-align: center; }
.vp-icon {
  width: 54px; height: 54px;
  color: rgba(201,169,110,.35);
  margin-bottom: .8rem;
}
.vp-inner p {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(201,169,110,.3);
}

/* Card body */
.piso-body { padding: 1.75rem 1.75rem 2rem; }

.piso-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .65rem;
}
.ref {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(201,169,110,.4);
}
.price-badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,169,110,.3);
  padding: .28rem .75rem;
}

.piso-body h3 { color: var(--cream); margin-bottom: .45rem; }

.piso-loc {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: rgba(245,239,230,.35);
  margin-bottom: 1.25rem;
}
.piso-loc svg { color: var(--gold); flex-shrink: 0; }

/* Specs bar */
.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.055);
  border-bottom: 1px solid rgba(255,255,255,.055);
  padding: .9rem 0;
  margin-bottom: 1.25rem;
  gap: .5rem;
}
.spec { text-align: center; }
.spec-val {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
}
.spec-key {
  display: block;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245,239,230,.35);
  margin-top: .2rem;
}

.piso-desc {
  font-size: .88rem;
  color: rgba(245,239,230,.55);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.6rem; }
.tags span {
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(201,169,110,.6);
  border: 1px solid rgba(201,169,110,.2);
  padding: .22rem .65rem;
}

.btn-card {
  display: block;
  text-align: center;
  padding: .88rem;
  background: transparent;
  border: 1px solid rgba(201,169,110,.45);
  color: var(--gold);
  font-family: 'Raleway', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
}
.btn-card:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}


/* ══════════════════════════════════════
   CONTACTE
══════════════════════════════════════ */
.contacte { padding: 8rem 0; background: var(--dark); }

/* Section head overrides for dark background */
.contacte .section-head h2 { color: var(--cream); }
.contacte .section-head p  { color: rgba(245,239,230,.6); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 5rem;
  align-items: start;
}

/* Contact info */
.contact-info { display: flex; flex-direction: column; gap: 2rem; }

.ci-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.ci-icon {
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 17px; height: 17px; color: var(--gold); }
.ci-item h4  { color: var(--cream); margin-bottom: .3rem; }
.ci-item p   { font-size: .88rem; color: rgba(245,239,230,.55); line-height: 1.65; }
.ci-item a   { font-size: .88rem; color: rgba(245,239,230,.55); text-decoration: none; transition: color .2s; }
.ci-item a:hover { color: var(--gold); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245,239,230,.55);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: .85rem 1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-family: 'Raleway', sans-serif;
  font-size: .9rem;
  color: var(--cream);
  outline: none;
  width: 100%;
  transition: border-color .25s;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(245,239,230,.28); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--gold); }
.form-field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23C9A96E' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
/* Select options need a legible background */
.form-field select option { background: var(--dark-l); color: var(--cream); }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 2.2rem;
  background: var(--gold);
  border: none;
  color: var(--dark);
  font-family: 'Raleway', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-start;
}
.btn-submit:hover  { background: var(--gold-l); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.btn-submit svg { transition: transform .25s; flex-shrink: 0; }
.btn-submit:hover svg { transform: translateX(4px); }

.form-notice {
  font-size: .85rem;
  line-height: 1.5;
  padding: .85rem 1.1rem;
  border-left: 3px solid transparent;
}
.form-notice.success {
  background: rgba(201,169,110,.12);
  border-color: var(--gold);
  color: var(--gold-l);
}
.form-notice.error {
  background: rgba(200,80,80,.1);
  border-color: #c06060;
  color: #e08080;
}
.hidden { display: none !important; }


/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: var(--dark);
  padding: 4rem 2rem 3rem;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}
.footer-logo-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(201,169,110,.2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.footer-logo { width: 78%; height: 78%; object-fit: contain; }

.footer-nav { display: flex; gap: 2.5rem; }
.footer-nav a {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-copy { font-size: .78rem; color: rgba(255,255,255,.3); }
.footer-addr { font-size: .72rem; color: rgba(255,255,255,.2); }

/* Thin gold divider above footer */
footer::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(201,169,110,.3);
  margin: 0 auto 3rem;
}


/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-logo-wrap { order: -1; }
  .about-logo-circle { width: 200px; height: 200px; }
  .about-body > p { max-width: 100%; }

  .pisos-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  .desktop-nav { display: none; }
  .hamburger   { display: flex; }
}

@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .header-inner { padding: 1rem 1.25rem; }

  .about    { padding: 5.5rem 0; }
  .pisos    { padding: 5.5rem 0; }
  .contacte { padding: 5.5rem 0; }

  .form-row { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; justify-content: center; }

  .specs { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }

  .footer-nav { flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
}
