/* Vivi Morales — static site stylesheet
   Colors and type match the original site design. */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
}

:root {
  --text: #212121;
  --muted: #707070;
  --soft: #6b6b6b;
  --cyan: #00bcd4;
  --cyan-light: #6fd0e2;
  --coral: #e65959;
  --dark-btn: #474747;
  --band: #fafafa;
  --line: #dddddd;
  --footer: #212121;
  --whatsapp: #25d366;
  --container: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 500; line-height: 1.3; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 10px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- Top bar ---------- */
.topbar { border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 16px; }
.topbar ul { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; list-style: none; }
.topbar li { display: flex; align-items: center; gap: 8px; }
.topbar svg { width: 14px; height: 14px; color: var(--cyan-light); flex: none; }
.topbar a { color: inherit; }
.topbar a:hover { color: var(--cyan); }
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-switch img { width: 18px; height: 12px; object-fit: cover; }

/* ---------- Header ---------- */
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 110px; }
.logo img { width: 210px; }
.nav ul { display: flex; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block;
  padding: 34px 14px 30px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--cyan-light); }
.nav a[aria-current="page"] { border-bottom-color: var(--cyan-light); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero slider ---------- */
.slider {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  aspect-ratio: 1160 / 620;
  overflow: hidden;
  container-type: inline-size;
}
.slider .slide {
  position: absolute; inset: 0;
  /* Slightly oversized, anchored bottom-right: crops a dotted edge baked into the photos. */
  background: #fff right bottom / calc(100% + 24px) auto no-repeat;
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility 0s linear .8s;
}
.slider .slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; }

/* Layers are placed on the original 1160×620 canvas; cqw keeps them in scale. */
.layer {
  position: absolute;
  margin: 0;
  white-space: nowrap;
  line-height: 1.2;
  opacity: 0;
  transform: translateX(80px);
  transition: opacity .6s ease, transform .6s ease;
}
.slide.is-active .layer { opacity: 1; transform: none; }
.slide.is-leaving .layer { opacity: 0; transform: translateX(-80px); transition-duration: .4s; }
.slide.is-active .layer:nth-child(2) { transition-delay: .1s; }
.slide.is-active .layer:nth-child(3) { transition-delay: .2s; }
.slide.is-active .layer:nth-child(4) { transition-delay: .3s; }
.slide.is-active .layer:nth-child(5) { transition-delay: .4s; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.2;
  transition: filter .2s;
}
.btn:hover { color: #fff; filter: brightness(1.1); }
.btn--dark { background: var(--dark-btn); }
.btn--cyan { background: var(--cyan); }
.btn--coral { background: var(--coral); }

.slide-1 .kicker   { top: 17.7%; left: 6.6%; font-size: 1.55cqw; font-weight: 600; color: #575757; }
.slide-1 .title    { top: 24.4%; left: 6.5%; font-size: 9.22cqw; line-height: .92; font-weight: 600; letter-spacing: -.17cqw; color: var(--cyan); }
.slide-1 .subtitle { top: 65.3%; left: 7.8%; font-size: 3.1cqw; font-weight: 300; color: #7a7a7a; }
.slide-1 .cta      { top: 75.6%; left: 7.7%; }
.slide-1 .btn      { font-size: max(12px, 1.38cqw); padding: 1.12cqw 2.41cqw; }

/* Slide 2 is centred over the left two-thirds, like the original. */
.slide-2 .stack {
  position: absolute; top: 27%; left: 14.5%; width: 55%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.slide-2 .layer { position: static; }
.slide-2 .kicker   { font-size: 1.72cqw; font-weight: 600; color: var(--soft); }
.slide-2 .title    { font-size: 11.2cqw; line-height: 1; font-weight: 500; letter-spacing: -.26cqw; color: #423d3d; }
.slide-2 .title--long { font-size: 8.4cqw; letter-spacing: -.15cqw; }
.slide-2 .subtitle { margin-top: 1.4cqw; font-size: 2.3cqw; font-weight: 300; color: var(--soft); white-space: normal; }
.slide-2 .cta      { margin-top: 2cqw; display: flex; gap: 2.8cqw; }
.slide-2 .btn      { font-size: max(12px, 1.29cqw); padding: 1.12cqw 2.41cqw; }

.slider-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.slider-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 50%;
  border: 1px solid var(--cyan); background: transparent; cursor: pointer;
}
.slider-dots button[aria-current="true"] { background: var(--cyan); }

/* ---------- Section headings with long divider lines ---------- */
.band { background: var(--band); }
.section-heading {
  display: flex; align-items: center; gap: 24px;
  padding: 26px 0;
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.section-heading::before,
.section-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-heading--normal { text-transform: none; }

/* ---------- Demo reel ---------- */
.reel { padding: 20px 0 30px; }
.reel .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 90px; align-items: start; }
.reel-text h2 { font-size: 18px; font-weight: 500; margin-bottom: 1em; }

.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 0; background: #000 center / cover no-repeat; cursor: pointer;
}
.yt::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 68px; height: 48px;
  transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.5 7.7a8.5 8.5 0 0 0-6-6C55.2.3 34 .3 34 .3s-21.2 0-26.5 1.4a8.5 8.5 0 0 0-6 6C.1 13 .1 24 .1 24s0 11 1.4 16.3a8.5 8.5 0 0 0 6 6C12.8 47.7 34 47.7 34 47.7s21.2 0 26.5-1.4a8.5 8.5 0 0 0 6-6C67.9 35 67.9 24 67.9 24s0-11-1.4-16.3z' fill='%23f00'/%3E%3Cpath d='M45 24 27 14v20' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.is-playing::after { display: none; }

/* ---------- Audio examples ---------- */
.examples-intro { text-align: center; font-size: 14px; font-weight: 500; padding: 0 20px 26px; margin: 0; }
.audio-band { background: var(--cyan); padding: 50px 0; }
.audio-band .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 40px; }
.audio-band figure { margin: 0; }
.audio-band figcaption { color: #fff; font-weight: 500; font-size: 13px; margin-bottom: 8px; }
.audio-band audio { width: 100%; display: block; }

/* ---------- Features ---------- */
.features { padding: 70px 0 50px; }
.features .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature { display: grid; grid-template-columns: 36px 1fr; gap: 0 26px; }
.feature svg { width: 36px; height: 36px; color: var(--cyan-light); }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.read-more { font-size: 12px; font-weight: 700; text-transform: uppercase; }

/* ---------- Partners marquee ---------- */
.partners { padding: 10px 0 60px; overflow: hidden; }
.marquee {
  display: flex; width: max-content;
  animation: marquee 40s linear infinite;
}
.partners:hover .marquee { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.marquee li { width: 232px; padding: 20px 30px; }
.marquee img { max-height: 70px; width: auto; margin: 0 auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Page header (inner pages) ---------- */
.page-title { background: var(--band); border-bottom: 1px solid var(--line); }
.page-title .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; min-height: 80px; }
.page-title h1 { margin: 0; font-size: 24px; text-transform: uppercase; }
.breadcrumbs ol { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 12px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #aaa; }
.breadcrumbs a { color: #888; }

/* ---------- About ---------- */
.page-band { background: var(--band); }
.about-intro { padding: 76px 0 40px; }
.about-intro .container { display: grid; grid-template-columns: 440px 1fr; gap: 70px; align-items: center; }
.about-intro img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.about-intro p { font-size: 15.5px; line-height: 1.8; color: #444; margin: 0 0 1.3em; max-width: 62ch; }
.about-intro .lead { font-size: 20px; font-weight: 500; line-height: 1.5; color: var(--text); margin-top: 1.6em; padding-left: 18px; border-left: 3px solid var(--cyan-light); }
.about-intro .lead + .lead { font-size: 18px; margin-top: 1.2em; }

.services { padding: 0 0 60px; }
.services .section-heading { text-transform: none; font-weight: 400; font-size: 24px; padding: 30px 0 46px; }
.services .section-heading::before,
.services .section-heading::after { flex: 0 1 232px; background: #333; }
.services .section-heading { justify-content: center; }
.services ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; margin: 0; padding: 0; list-style: none; }
.services li { display: flex; align-items: center; gap: 26px; font-size: 16px; font-weight: 500; }
.services svg { width: 30px; height: 30px; flex: none; color: var(--cyan-light); }

/* ---------- Testimonials ---------- */
.quotes { background: var(--cyan); color: #fff; }
.quotes .carousel { position: relative; min-height: 340px; }
.quote {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 80px;
  max-width: var(--container); margin: 0 auto; padding: 60px 20px;
  opacity: 0; visibility: hidden; transform: translateX(40px);
  transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s;
}
.quote.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease, transform .6s ease; }
.quote.is-leaving { transform: translateX(-40px); }
.quote img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.quote blockquote { margin: 0; max-width: 760px; }
.quote p { font-size: 24px; font-weight: 300; line-height: 1.4; margin: 0 0 22px; }
.quote footer strong { display: block; font-size: 16px; font-weight: 500; }
.quote footer span { font-size: 12px; }
.carousel-arrows { background: #1ec3d8; }
.carousel-arrows { display: flex; justify-content: space-between; max-width: none; padding: 0 calc((100% - var(--container)) / 2 + 80px); }
.carousel-arrows button { background: none; border: 0; color: #fff; padding: 18px 20px; cursor: pointer; }
.carousel-arrows .next svg { transform: scaleX(-1); }
.carousel-arrows svg { width: 22px; height: 22px; display: block; }

/* ---------- Portfolio ---------- */
.portfolio { padding: 50px 0 70px; }
.portfolio .intro { text-align: center; font-size: 20px; font-weight: 500; margin: 0 0 60px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 40px; margin: 0; padding: 0 20px; list-style: none; }
.video-grid figure { margin: 0; }
.video-grid figcaption { margin-top: 12px; font-size: 14px; font-weight: 500; }

/* ---------- Contact ---------- */
.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.contact-form-wrap { padding: 76px 0 70px; }
.contact-form-wrap h1 { font-size: 24px; margin-bottom: 22px; }
.contact-form-wrap h1::after { content: ""; display: block; width: 80px; height: 2px; margin-top: 22px; background: var(--cyan); }
.contact-form label { display: block; margin-top: 26px; font-size: 13px; }
.contact-form input,
.contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 8px 0;
  font: inherit; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-bottom-color: var(--cyan); }
.contact-form .botcheck { display: none; }
.contact-form button {
  margin-top: 34px; padding: 11px 25px; border: 0; border-radius: 2px;
  background: var(--cyan-light); color: #fff; font: inherit; font-weight: 500; text-transform: uppercase; cursor: pointer;
}
.contact-form button:hover { background: var(--cyan); }
.contact-form button:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 16px 0 0; font-weight: 500; }
.form-status.is-ok { color: #2e7d32; }
.form-status.is-error { color: #c62828; }
.contact-info { background: #fff; padding: 110px 0 100px 76px; margin: 0; list-style: none; align-self: start; }
.contact-info li { display: grid; grid-template-columns: 26px 1fr; gap: 4px 26px; margin-bottom: 40px; }
.contact-info svg { width: 26px; height: 26px; color: var(--cyan-light); grid-row: span 2; }
.contact-info strong { font-size: 20px; font-weight: 500; }
.contact-info span,
.contact-info a { font-size: 13px; color: var(--muted); }
.contact-info a:hover { color: var(--cyan); }

/* ---------- 404 ---------- */
.not-found { padding: 100px 20px 120px; text-align: center; }
.not-found h1 { font-size: 64px; color: var(--cyan); margin-bottom: 0; }
.not-found p { font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #8a8a8a; font-size: 12px; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; min-height: 72px; }
.site-footer a { color: #8a8a8a; }
.site-footer a:hover { color: #fff; }

/* ---------- WhatsApp button ---------- */
.whatsapp {
  position: fixed; left: 26px; bottom: 26px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.whatsapp:hover { color: #fff; transform: scale(1.08); }
.whatsapp svg { width: 32px; height: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .reel .container,
  .features .container,
  .audio-band .container { grid-template-columns: 1fr; }
  .features .container { max-width: 520px; }
  .about-intro .container,
  .contact .container { grid-template-columns: 1fr; }
  .about-intro { padding-top: 40px; }
  .about-intro img { max-width: 440px; }
  .services ul,
  .video-grid { grid-template-columns: 1fr 1fr; }
  .contact-info { padding: 40px 30px 10px; }
  .contact-form-wrap { padding: 40px 0 20px; }
  .carousel-arrows { padding: 0 20px; }
}

@media (max-width: 760px) {
  .topbar .container { justify-content: center; padding-top: 8px; padding-bottom: 8px; }
  .topbar ul { justify-content: center; }
  .site-header .container { min-height: 80px; flex-wrap: wrap; }
  .logo img { width: 160px; }
  .nav-toggle { display: block; }
  .nav { flex-basis: 100%; display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding-bottom: 12px; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }

  /* On phones the slider stacks its text instead of shrinking it. */
  .slider { aspect-ratio: auto; height: 440px; }
  .slider .slide { background-position: 78% top; background-size: auto 100%; }
  .slider .slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.95) 45%, rgba(255,255,255,.4)); }
  .slide .stack,
  .slide-1 .layer { position: relative; top: auto; left: auto; }
  .slide-1, .slide-2 { display: flex; flex-direction: column; justify-content: center; padding: 0 22px; }
  .slide-2 .stack { width: auto; align-items: flex-start; text-align: left; }
  .slide .kicker   { font-size: 14px; }
  .slide-1 .title  { font-size: 54px; letter-spacing: -1px; margin: 4px 0 10px; }
  .slide-2 .title  { font-size: 54px; letter-spacing: -1px; }
  .slide .subtitle { font-size: 17px; white-space: normal; margin: 6px 0 0; }
  .slide .cta      { margin-top: 20px; gap: 12px; }
  .slide .btn      { font-size: 14px; padding: 12px 22px; }
  .slide-1 .cta    { position: relative; top: auto; left: auto; }

  .section-heading { font-size: 19px; gap: 14px; }
  .marquee li { width: 170px; padding: 14px 20px; }
  .services ul,
  .video-grid { grid-template-columns: 1fr; padding: 0; }
  .services .section-heading::before,
  .services .section-heading::after { flex-basis: 60px; }
  .about-intro .lead { font-size: 19px; }
  .about-intro .lead + .lead { font-size: 17px; }
  .quotes .carousel { min-height: 430px; }
  .quote { flex-direction: column; gap: 24px; text-align: center; padding: 40px 22px; }
  .quote img { width: 90px; height: 90px; }
  .quote p { font-size: 19px; }
  .portfolio .intro { font-size: 17px; margin-bottom: 36px; }
  .whatsapp { left: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .layer, .slide { transition: none !important; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; }
}
