/* ================================================================
   DJ ARIK — Full Shared Stylesheet
   Fonts: Archivo + Archivo Expanded loaded in HTML via Google Fonts
   ================================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #FAFAF8;
  color: #0E0E0E;
  font-family: 'Archivo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.studios { background: #0E0E0E; color: #FAFAF8; }
main { display: block; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
::selection { background: #1438C8; color: #FAFAF8; }

/* ── Keyboard focus (WCAG 2.4.7) ── */
/* currentColor adapts to light/dark sections automatically */
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ── Animations ── */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bob { 0%,100% { transform: translateY(0); opacity:.9; } 50% { transform: translateY(7px); opacity:.4; } }

/* ── Header (light pages default) ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px,5vw,64px);
  background: rgba(250,250,248,0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(14,14,14,0.07);
}
/* Dark header override for studios page */
body.studios .header {
  background: rgba(14,14,14,0.62);
  border-bottom-color: rgba(250,250,248,0.1);
}
.header-logo {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Archivo Expanded', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: 0.04em;
}
body.studios .header-logo { color: #FAFAF8; }
.header-cta {
  display: inline-flex; align-items: center;
  background: #1438C8; color: #FAFAF8;
  padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
  transition: background .25s, transform .25s;
  white-space: nowrap;
}
.header-cta:hover { background: #0F2BA0; transform: translateY(-1px); }
body.studios .header-cta:hover { background: #3358E0; }

/* ── Site nav (header) ── */
.header-nav { display: flex; align-items: center; gap: clamp(12px,1.8vw,22px); }
.header-nav a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  opacity: .5; transition: opacity .2s;
}
.header-nav a:hover { opacity: 1; }
.header-nav a.active { opacity: 1; }
body.studios .header-nav a { color: #FAFAF8; }

/* ── Mobile menu toggle ── */
.menu-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 32px; height: 32px; background: none; border: none; padding: 6px; flex-shrink: 0;
}
.menu-toggle span {
  display: block; width: 20px; height: 2px; background: #0E0E0E;
  transition: transform .25s, opacity .25s;
}
body.studios .menu-toggle span { background: #FAFAF8; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
  .menu-toggle { display: flex; }
  .header-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #FAFAF8;
    border-bottom: 1px solid rgba(14,14,14,0.1);
    padding: 4px clamp(20px,5vw,64px) 12px;
  }
  body.studios .header-nav { background: #0E0E0E; border-bottom-color: rgba(250,250,248,0.1); }
  .header-nav.is-open { display: flex; }
  .header-nav a {
    font-size: 15px; opacity: 1; padding: 14px 0;
    border-top: 1px solid rgba(14,14,14,0.08);
  }
  .header-nav a:first-child { border-top: none; }
  body.studios .header-nav a { border-top-color: rgba(250,250,248,0.08); }
}

/* ── Language buttons ── */
.lang-btn { background: none; border: none; padding: 0; transition: opacity .2s; }
.lang-btn:hover { opacity: 1 !important; }
body.studios .lang-btn { color: #FAFAF8; }

/* ── Animations helpers ── */
.bob { animation: bob 1.8s ease-in-out infinite; }

/* ── Video watermark crop ──
   Scale up the video so the bottom-right corner (watermark) falls
   outside the overflow:hidden hero container on all screen sizes. */
.video-crop {
  transform: scale(1.12);
  transform-origin: 50% 38%;
}

/* ── Marquee (index page) ── */
.marquee-wrap {
  overflow: hidden;
  border-bottom: 1px solid rgba(14,14,14,0.1);
  padding: 13px 0; white-space: nowrap; background: #FAFAF8;
}
.marquee-track {
  display: inline-block;
  animation: marquee 30s linear infinite;
  font-family: 'Archivo Expanded', sans-serif;
  font-weight: 800; font-size: clamp(18px,2.6vw,30px); letter-spacing: 0.04em;
}

/* ── Service bifurcation cards (index) ── */
.svc-card { position: relative; display: block; min-height: clamp(380px,52vh,600px); overflow: hidden; background: #0E0E0E; }
.svc-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: transform .7s ease, opacity .4s; }
.svc-card:hover .svc-card-img { transform: scale(1.05); opacity: 1; }

/* ── Image blocks (index events/studio sections) ── */
.events-img { overflow: hidden; background: #eee; aspect-ratio: 4/3; }
.events-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.events-img:hover img { transform: scale(1.04); }

.studio-img { overflow: hidden; background: #222; aspect-ratio: 4/3; order: 2; }
.studio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.studio-img:hover img { transform: scale(1.04); }

/* ── Portfolio grid ── */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-item { display: flex; flex-direction: column; }
.photo-item.featured { grid-column: span 2; }
.photo-item .portfolio-wrap { flex: 1; aspect-ratio: 4/3; }
.photo-item.featured .portfolio-wrap { aspect-ratio: 16/9; }
.photo-caption { font-size: 13px; font-weight: 600; opacity: .45; padding: 9px 0 0; letter-spacing: 0.02em; margin: 0; }
.portfolio-wrap, .gallery-wrap { overflow: hidden; background: #111; }
.portfolio-wrap img, .gallery-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.portfolio-wrap:hover img, .gallery-wrap:hover img { transform: scale(1.04); }

/* ── Buttons ── */
.btn-blue {
  display: inline-flex; align-items: center; gap: 10px;
  background: #1438C8; color: #FAFAF8;
  padding: 16px 30px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: background .25s, transform .25s;
  border: none; cursor: pointer; white-space: nowrap;
}
.btn-blue:hover { background: #0F2BA0; transform: translateY(-2px); }
body.studios .btn-blue:hover { background: #3358E0; }

.btn-white {
  display: inline-flex; align-items: center; gap: 12px;
  background: #FAFAF8; color: #0E0E0E;
  padding: 18px 30px; border-radius: 999px;
  font-weight: 800; font-size: 16px;
  transition: transform .25s, box-shadow .25s; white-space: nowrap;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,0.4); }

.btn-blue-sm {
  background: rgba(250,250,248,0.14); color: #FAFAF8;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 32px; border-radius: 999px;
  font-weight: 700; font-size: 16px;
  border: 1px solid rgba(250,250,248,0.3); transition: background .25s; white-space: nowrap;
}
.btn-blue-sm:hover { background: rgba(250,250,248,0.24); }

.btn-cta-wa {
  display: inline-flex; align-items: center; gap: 12px;
  background: #FAFAF8; color: #0E0E0E;
  padding: 18px 32px; border-radius: 999px;
  font-weight: 800; font-size: 16px; transition: transform .25s; white-space: nowrap;
}
.btn-cta-wa:hover { transform: translateY(-2px); }

/* Studios CTA buttons */
.cta-wa {
  display: inline-flex; align-items: center; gap: 12px;
  background: #FAFAF8; color: #0E0E0E;
  padding: 18px 32px; border-radius: 999px;
  font-weight: 800; font-size: 16px; transition: transform .25s; white-space: nowrap;
}
.cta-wa:hover { transform: translateY(-2px); }
.cta-form {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(250,250,248,0.14); color: #FAFAF8;
  padding: 18px 32px; border-radius: 999px;
  font-weight: 700; font-size: 16px;
  border: 1px solid rgba(250,250,248,0.3); transition: background .25s; white-space: nowrap;
}
.cta-form:hover { background: rgba(250,250,248,0.24); }

/* ── Form fields ── */
/* Dark bg version (index contact section) */
.field {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(250,250,248,0.25);
  color: #FAFAF8; padding: 10px 0; font-size: 16px;
  outline: none; transition: border-color .25s;
}
.field:focus {
  border-bottom-color: #6E8BFF;
  outline: 2px solid #6E8BFF; outline-offset: 3px;
}
.field option { color: #0E0E0E; }

/* Light bg version (festes-majors form) */
.field-light {
  background: transparent; border: none;
  border-bottom: 1.5px solid rgba(14,14,14,0.3);
  padding: 10px 0; font-size: 17px; outline: none;
  width: 100%; transition: border-color .2s; color: #0E0E0E;
}
.field-light:focus {
  border-color: #1438C8;
  outline: 2px solid #1438C8; outline-offset: 3px;
}

/* ── FAQ (details/summary accordion) ── */
.faq-list { max-width: 860px; }
.faq-item { border-bottom: 1px solid rgba(14,14,14,0.12); }
body.studios .faq-item { border-bottom-color: rgba(250,250,248,0.14); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: clamp(18px,2.5vw,26px) 0;
  font-family: 'Archivo Expanded', sans-serif; font-weight: 700;
  font-size: clamp(16px,1.8vw,21px); line-height: 1.2;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: 'Archivo', sans-serif; font-weight: 500;
  font-size: 24px; opacity: .5; flex-shrink: 0; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 clamp(18px,2.5vw,26px); font-size: 15.5px; line-height: 1.6; opacity: .7; max-width: 70ch; }

/* ── Footer links ── */
.footer-link { font-size: 14px; font-weight: 600; opacity: .8; transition: opacity .2s; }
.footer-link:hover { opacity: 1; }

/* ── DJ Events page ── */
.svc-grid-item {
  background: #FAFAF8; padding: clamp(28px,3.5vw,44px);
  min-height: clamp(220px,24vw,280px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.event-card {
  position: relative; display: block;
  min-height: clamp(380px,46vw,520px); overflow: hidden; background: #161616;
}
.event-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .74; transition: transform .7s ease, opacity .4s;
}
.event-card:hover .event-card-img { transform: scale(1.05); opacity: .92; }
.proc-step {
  padding: clamp(24px,3vw,36px) clamp(20px,2.5vw,32px) clamp(24px,3vw,36px) 0;
  border-top: 2px solid #0E0E0E;
}

/* ── Arik Studios page ── */
.as-svc-card {
  background: #0E0E0E; padding: clamp(28px,3.5vw,44px);
  min-height: clamp(230px,25vw,290px);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background .25s;
}
.as-svc-card:hover { background: #161616; }
.as-track {
  display: flex; align-items: center; gap: 16px;
  background: #0E0E0E; color: #FAFAF8; border-radius: 14px; padding: 14px 16px;
}
.who-img-wrap { position: relative; overflow: hidden; background: #FAFAF8; min-height: clamp(360px,44vw,520px); }
.who-img-wrap::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 18%; background: #FAFAF8; pointer-events: none; }
.who-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.as-step {
  padding: clamp(24px,3vw,36px) clamp(20px,2.5vw,32px) clamp(24px,3vw,36px) 0;
  border-top: 2px solid #FAFAF8;
}
.spotify-link {
  align-self: flex-start; display: inline-flex; align-items: center;
  gap: 9px; margin-top: 6px; font-weight: 700; font-size: 14px; color: #1438C8;
}
.spotify-link:hover { text-decoration: underline; }

/* ── Festes Majors page ── */
.val-card {
  background: #FAFAF8; padding: clamp(30px,3.5vw,46px);
  min-height: clamp(260px,28vw,330px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.val-icon {
  width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid #1438C8; display: flex; align-items: center;
  justify-content: center; color: #1438C8; font-size: 24px; flex-shrink: 0;
}
.town-cell {
  background: #0E0E0E;
  padding: clamp(22px,2.6vw,34px) clamp(18px,2vw,26px);
  display: flex; align-items: center; min-height: 96px;
}
.how-step {
  padding: clamp(24px,3vw,38px) clamp(20px,2.5vw,32px) clamp(24px,3vw,38px) 0;
  border-top: 2px solid #0E0E0E;
}
.faq-item { border-bottom: 1px solid rgba(14,14,14,0.14); }
.faq-btn {
  width: 100%; text-align: left; background: none; border: none;
  padding: clamp(20px,2.6vw,30px) 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; cursor: pointer;
}
.faq-icon { font-size: 24px; line-height: 1; color: #1438C8; flex-shrink: 0; margin-top: 2px; transition: transform .35s ease; }
.faq-body { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .4s ease, opacity .3s ease, margin .4s ease; margin-top: 0; }
.faq-body.open { max-height: 300px; opacity: 1; margin-top: 12px; }
.faq-icon.open { transform: rotate(45deg); }
.rev-card { padding: clamp(28px,3.5vw,44px) clamp(28px,3.5vw,44px) clamp(28px,3.5vw,44px) 0; }

/* ── Footer WhatsApp CTA button ── */
.footer-wa-btn {
  display: inline-flex; align-items: center; gap: 13px;
  background: #25D366; color: #fff;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 700; font-size: clamp(14px,1.5vw,17px);
  box-shadow: 0 4px 18px rgba(37,211,102,0.35);
  transition: transform .25s, box-shadow .25s;
  white-space: nowrap;
}
.footer-wa-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(37,211,102,0.5); }

/* ── Floating WhatsApp button ── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 12px 20px 12px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform .25s, box-shadow .25s, opacity .25s;
  text-decoration: none;
  white-space: nowrap;
}
.wa-float.wa-float--hidden { opacity: 0; pointer-events: none; }
.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.55);
}
.wa-float__icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: rgba(255,255,255,0.22);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900;
}
@media (max-width: 480px) {
  .wa-float { padding: 14px; }
  .wa-float__label { display: none; }
}

/* ── Responsive ── */

/* Tablet: divider becomes horizontal rule */
@media (max-width: 768px) {
  .contact-divider-left {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid rgba(250,250,248,0.12);
    padding-top: clamp(24px,3vw,32px);
  }
}

/* Mobile */
@media (max-width: 640px) {
  /* Studio image: don't reorder on mobile — show it below text naturally */
  .studio-img { order: 0 !important; }

  /* Compact header CTA */
  .header-cta { font-size: 12px; padding: 9px 14px; }

  /* CTA band button row: stack vertically */
  .cta-btns-flex { flex-direction: column !important; align-items: center !important; }

  /* Photo grid: 2 cols on tablet */
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-item.featured { grid-column: span 2; }
}

@media (max-width: 420px) {
  /* Tighten header padding on very small phones */
  .header { padding: 12px 14px; }

  /* Photo grid: single column on small phones */
  .photo-grid { grid-template-columns: 1fr; }
  .photo-item.featured { grid-column: span 1; }
  .photo-item.featured .portfolio-wrap { aspect-ratio: 4/3; }

  /* Budget form two-column → single */
  .form-two-col { grid-template-columns: 1fr !important; }
}
