/* =========================================
   XFSOUND — CSS Principal
   ========================================= */

:root {
  --bg:        #0d0d0d;
  --bg2:       #141414;
  --bg3:       #1c1c1c;
  --bg4:       #242424;
  --gold:      #f59e0b;
  --gold-dark: #d97706;
  --white:     #f0f0f0;
  --gray:      #999;
  --gray-dark: #555;
  --border:    rgba(255,255,255,0.09);
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius:    5px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* =========================================
   UTILITATS
   ========================================= */
.container { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
.section-header { margin-bottom: 3rem; }
.section-label {
  font-size: 11px; letter-spacing: 4px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: 2px; color: var(--white);
  line-height: 1; margin-bottom: 0.8rem;
}
.section-sub { font-size: 15px; color: var(--gray); max-width: 480px; }

.btn {
  display: inline-block; padding: 13px 28px;
  font-family: var(--font-body); font-size: 13px;
  font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; border-radius: var(--radius);
  cursor: pointer; border: none; transition: all var(--transition);
}
.btn-primary { background: var(--gold); color: #080808; }
.btn-primary:hover { background: var(--gold-dark); }
.btn-outline {
  background: transparent; color: var(--gold);
  border: 1px solid rgba(245,158,11,0.45);
}
.btn-outline:hover { background: rgba(245,158,11,0.1); border-color: var(--gold); }

/* =========================================
   NAVEGACIÓ
   ========================================= */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding: 0.75rem 2rem; transition: all var(--transition);
}
#navbar.scrolled {
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.logo-img {
  height: 60px;
  width: auto;
  display: block;
}
.nav-links { list-style: none; display: flex; gap: 2.5rem; }
.nav-links a {
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  color: #ccc; transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: all var(--transition); }

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 8rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero-img-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(0.55) saturate(0.9); }
.hero-img-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0.4) 55%, transparent 100%),
    linear-gradient(to top, rgba(13,13,13,0.75) 0%, transparent 45%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1000px; margin: 0 auto; width: 100%;
}
.hero-badge {
  font-size: 11px; letter-spacing: 4px; color: var(--gold);
  text-transform: uppercase; border: 1px solid rgba(245,158,11,0.3);
  padding: 6px 18px; border-radius: 20px; margin-bottom: 1.75rem;
  display: inline-block; animation: fadeUp 0.8s ease both; position: relative; z-index: 1;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 9vw, 7rem);
  letter-spacing: 3px; line-height: 0.95;
  color: var(--white); margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.1s ease both; position: relative; z-index: 1;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub {
  font-size: 16px; color: #bbb; max-width: 480px;
  margin-bottom: 2.25rem;
  animation: fadeUp 0.8s 0.2s ease both; position: relative; z-index: 1;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both; position: relative; z-index: 1;
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 2rem;
  display: flex; align-items: center; gap: 1rem;
  animation: fadeUp 0.8s 0.5s ease both; z-index: 1;
}
.hero-scroll span { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--gray-dark); }
.scroll-line { width: 40px; height: 1px; background: var(--gray-dark); position: relative; overflow: hidden; }
.scroll-line::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%; background: var(--gold);
  animation: scrollAnim 1.8s ease infinite;
}

/* =========================================
   PRESENTACIÓ
   ========================================= */
.about {
  padding: 5rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.about-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: 2px;
  line-height: 1.05;
  color: var(--white);
  margin-top: 0.75rem;
}
.about-title em { font-style: normal; color: var(--gold); }
.about-right p { font-size: 15px; color: #aaa; line-height: 1.85; }

@media (max-width: 768px) {
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* =========================================
   SERVEIS
   ========================================= */
.services {
  padding: 6rem 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services .section-header { text-align: left; margin-bottom: 3.5rem; }
.services .section-sub { margin: 0; }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem 1.75rem;
  text-align: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  background: var(--bg4);
  border-color: rgba(245,158,11,0.25);
  transform: translateY(-4px);
}
.service-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--gold);
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: rgba(245,158,11,0.08); }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-size: 14px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--white); margin-bottom: 1rem;
}
.service-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* =========================================
   GALERIA
   ========================================= */
.gallery { padding: 6rem 0; background: var(--bg); }
.gallery .section-header { padding: 0 2rem; max-width: 1000px; margin: 0 auto 2.5rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 240px 280px;
  gap: 5px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Primera foto (vertical): ocupa 2 files */
.gallery-item:nth-child(1) { grid-row: span 2; }

.gallery-item {
  position: relative; overflow: hidden;
  background: var(--bg3); cursor: pointer;
}
.gallery-item img { transition: transform 0.55s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; padding: 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }

/* =========================================
   CONTACTE
   ========================================= */
.contact {
  padding: 6rem 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 4rem; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  font-size: 18px; width: 42px; height: 42px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item h4 {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray); margin-bottom: 4px; font-weight: 400;
}
.contact-item p { font-size: 15px; color: var(--white); }
.contact-item a { color: var(--white); transition: color var(--transition); }
.contact-item a:hover { color: var(--gold); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); }
.form-group input,
.form-group textarea {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--white); padding: 12px 16px; font-size: 14px;
  font-family: var(--font-body); border-radius: var(--radius);
  transition: border-color var(--transition); resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-dark); }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: rgba(245,158,11,0.45); }

/* =========================================
   FOOTER
   ========================================= */
footer { padding: 2rem; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
footer p { font-size: 13px; color: var(--gray-dark); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 12px; letter-spacing: 1px; color: var(--gray-dark);
  text-transform: uppercase; transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

/* =========================================
   ANIMACIONS
   ========================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollAnim {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; inset: 0;
    background: var(--bg); flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2.5rem; z-index: 998;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 14px; }
  .nav-toggle { display: flex; z-index: 1000; }

  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }

  .services-grid { grid-template-columns: 1fr 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item { height: 200px; }
  .gallery-item:nth-child(1) { grid-row: span 1; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { height: 220px; }
}
