/* ============================================================
   DESIGN V2 - Bar Estació Berga
   Redisseny complet 2024/2025
   Fonts: Inter (body) + Raleway (headings)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:       #e9540d;
  --orange-dark:  #c7440a;
  --black:        #0f0f0f;
  --dark:         #1a1a1a;
  --dark-2:       #252525;
  --gray:         #6b6b6b;
  --light:        #f7f5f2;
  --white:        #ffffff;
  --font-body:    'Inter', sans-serif;
  --font-heading: 'Raleway', sans-serif;
  --transition:   0.3s ease;
  --nav-h:        68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }
address { font-style: normal; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
.v2-section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.v2-section-title {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 20px;
}
.v2-section-title em { font-style: normal; font-weight: 800; color: var(--orange); }
.v2-section-subtitle {
  font-size: 17px;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ---------- Bottons ---------- */
.v2-btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.v2-btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.v2-btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
}
.v2-btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.v2-btn-outline:hover {
  background: var(--white);
  color: var(--orange);
}
.v2-btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.v2-btn-outline-dark:hover {
  background: var(--dark);
  color: var(--white);
}

/* ============================================================
   NAVEGACIÓ
   ============================================================ */
.v2-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 40px;
  transition: background var(--transition), box-shadow var(--transition);
}
.v2-nav.scrolled {
  background: var(--black);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.v2-nav-logo img { height: 44px; width: auto; }
.v2-nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0 0 0 auto;
}
.v2-nav-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}
.v2-nav-links a:hover, .v2-nav-links a.active { color: var(--orange); }

/* Hamburger */
.v2-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.v2-nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}
.v2-nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.v2-nav-mobile.open { display: flex; }
.v2-nav-mobile a {
  font-size: 28px;
  font-family: var(--font-heading);
  color: var(--white);
  letter-spacing: 1px;
}
.v2-nav-mobile a:hover { color: var(--orange); }
.v2-nav-mobile-close {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 32px;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.v2-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--black);
}
.v2-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/header-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.65;
  transition: opacity 0.6s;
}
.v2-hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 20px 60px;
  max-width: 760px;
}
.v2-hero-logo {
  width: 400px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}
.v2-hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.v2-hero h1 em { color: var(--orange); font-style: normal; font-weight: 800; }
.v2-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  line-height: 1.6;
}
.v2-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.v2-hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}
.v2-hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SECCIONS GENÈRIQUES
   ============================================================ */
.v2-section { padding: 100px 20px; }
.v2-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.v2-section-header { text-align: center; }

/* ============================================================
   QUI SÓM
   ============================================================ */
.v2-about { background: var(--white); }
.v2-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}
.v2-about-text p {
  font-size: 17px;
  color: #444;
  margin-bottom: 20px;
}
.v2-about-text .v2-section-title { text-align: left; margin-bottom: 24px; }
.v2-about-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.v2-about-image img { width: 100%; height: 100%; object-fit: cover; }
.v2-about-image::after {
  content: '';
  position: absolute;
  bottom: -8px; right: -8px;
  width: 60%;
  height: 60%;
  border: 3px solid var(--orange);
  border-radius: 4px;
  z-index: -1;
}

/* ============================================================
   HORARI
   ============================================================ */
.v2-hours {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
}
.v2-hours .v2-section-label { color: rgba(255,255,255,0.7); }
.v2-hours .v2-section-title { color: var(--white); }
.v2-hours-card {
  background: rgba(0,0,0,0.15);
  display: inline-block;
  padding: 48px 80px;
  margin-top: 40px;
  border-radius: 4px;
  min-width: 340px;
}
.v2-hours-row { margin-bottom: 24px; }
.v2-hours-row:last-child { margin-bottom: 0; }
.v2-hours-day {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.v2-hours-time {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
}
.v2-hours-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 20px auto;
}

/* ============================================================
   SOBRE NOSALTRES
   ============================================================ */
.v2-services { background: var(--dark); padding: 100px 0; }
.v2-services .v2-section-header { padding: 0 20px; margin-bottom: 60px; }
.v2-services .v2-section-label { color: var(--orange); }
.v2-services .v2-section-title { color: var(--white); }
.v2-services .v2-section-subtitle { color: rgba(255,255,255,0.55); }

.v2-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.v2-service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.v2-service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.v2-service-card:hover img { transform: scale(1.08); }
.v2-service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  transition: background var(--transition);
}
.v2-service-card:hover .v2-service-overlay {
  background: linear-gradient(to top, rgba(233,84,13,0.88) 0%, rgba(0,0,0,0.2) 60%);
}
.v2-service-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.v2-service-card:hover .v2-service-number { color: rgba(255,255,255,0.7); }
.v2-service-overlay h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}
.v2-service-overlay p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.v2-service-card:hover .v2-service-overlay p { max-height: 80px; }

/* ============================================================
   GALERIA
   ============================================================ */
.v2-gallery { background: var(--light); }
.v2-gallery-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.v2-gallery-filter-btn {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 2px solid #ddd;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  transition: all var(--transition);
}
.v2-gallery-filter-btn.active,
.v2-gallery-filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: transparent;
}
.v2-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.v2-gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #ddd;
  cursor: pointer;
}
.v2-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.v2-gallery-item:hover img { transform: scale(1.06); }
.v2-gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(233,84,13,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.v2-gallery-item:hover .v2-gallery-item-overlay { opacity: 1; }
.v2-gallery-item-overlay span {
  font-size: 28px;
  color: var(--white);
  line-height: 1;
}

/* ============================================================
   CONTACTE
   ============================================================ */
.v2-contact { background: var(--white); }
.v2-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
  margin-top: 60px;
}
.v2-contact-info h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
  margin-top: 32px;
  font-family: var(--font-body);
}
.v2-contact-info h3:first-child { margin-top: 0; }
.v2-contact-info p, .v2-contact-info a {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
}
.v2-contact-info a:hover { color: var(--orange); }
.v2-social-links { display: flex; gap: 12px; margin-top: 32px; }
.v2-social-link {
  width: 44px;
  height: 44px;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 16px;
  transition: all var(--transition);
  text-decoration: none;
}
.v2-social-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: transparent;
}
.v2-contact-map {
  border-radius: 4px;
  overflow: hidden;
  height: 400px;
}
.v2-contact-map iframe { width: 100%; height: 100%; border: none; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.v2-footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 40px 20px;
  text-align: center;
}
.v2-footer-logo { margin: 0 auto 20px; height: 40px; width: auto; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); opacity: 0.9; }
.v2-footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.v2-footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
}
.v2-footer-links a:hover { color: var(--orange); }
.v2-footer p { font-size: 13px; }


/* ============================================================
   COOKIE BANNER
   ============================================================ */
#v2-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #111;
  color: #ddd;
  padding: 20px 24px;
  display: none;
  border-top: 3px solid var(--orange);
}
#v2-cookie-banner.visible { display: block; }
.v2-cookie-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.v2-cookie-inner p { margin: 0; flex: 1; font-size: 14px; min-width: 200px; }
.v2-cookie-inner a { color: var(--orange); }
.v2-cookie-btns { display: flex; gap: 10px; }
.v2-btn-cookie-accept {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}
.v2-btn-cookie-reject {
  background: transparent;
  color: #888;
  border: 1px solid #444;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
}
.v2-btn-cookie-reject:hover { border-color: #888; color: #ccc; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .v2-services-grid { grid-template-columns: repeat(2, 1fr); }
  .v2-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .v2-about-grid { gap: 48px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .v2-nav { padding: 0 20px; }
  .v2-nav-links { display: none; }
  .v2-nav-toggle { display: flex; }

  .v2-hero h1 { font-size: 40px; }
  .v2-hero p { font-size: 16px; }

  .v2-about-grid { grid-template-columns: 1fr; gap: 40px; }
  .v2-about-image::after { display: none; }
  .v2-about-text .v2-section-title { text-align: center; }

  .v2-hours-card { padding: 32px 28px; min-width: 0; width: 100%; max-width: 340px; }
  .v2-hours-time { font-size: 28px; }

  .v2-services-grid { grid-template-columns: 1fr 1fr; }
  .v2-service-card { aspect-ratio: 1/1; }

  .v2-gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .v2-contact-grid { grid-template-columns: 1fr; }
  .v2-contact-map { height: 280px; }


  .v2-cookie-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .v2-services-grid { grid-template-columns: 1fr; }
  .v2-gallery-grid { grid-template-columns: 1fr 1fr; }
  .v2-section { padding: 70px 20px; }
}
