/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MediaMixt — Design System
   Light · Cream · Orange Signature · Multi-page
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* ── Palette ── */
  --cream:        #FAF7F2;
  --cream-2:      #F2EDE3;
  --cream-3:      #EDE7DC;
  --ink:          #0D0D0D;
  --ink-2:        #1E1E1B;
  --orange:       #FF5C2B;
  --orange-dark:  #E54A1F;
  --orange-soft:  #FFE4D8;
  --gray:         #9B9892;
  --gray-2:       #6B6863;
  --border:       #D4D0C8;

  /* ── Type ── */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* ── Layout ── */
  --max-w:        1320px;
  --gutter:       clamp(20px, 4vw, 48px);
  --radius:       14px;
  --radius-lg:    24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.4rem, 8vw, 7rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 5vw, 4.2rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 500; }
h4 { font-size: 1.3rem; font-weight: 500; }

p { font-size: 1.02rem; color: var(--gray-2); }

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gray-2);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--ink);
}

.accent { color: var(--orange); }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(64px, 10vw, 140px) 0; }

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.3s;
}
.nav.scrolled .nav-inner { padding: 12px var(--gutter); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.nav-logo-img {
  height: 30px;
  width: auto;
  display: block;
  transition: opacity 0.25s, transform 0.25s;
}
.nav-logo:hover .nav-logo-img { opacity: 0.82; transform: scale(1.02); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 0.94rem;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }

.nav-links a.active {
  color: var(--orange);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.nav-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 11px 22px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta:hover {
  background: var(--orange);
  transform: translateY(-1px);
}
.nav-cta::after {
  content: "→";
  transition: transform 0.25s;
}
.nav-cta:hover::after { transform: translateX(3px); }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
  display: block;
}
/* Burger animates to X when menu is open */
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 92, 43, 0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn::after {
  content: "→";
  transition: transform 0.25s;
  font-size: 1.1em;
}
.btn:hover::after { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS — scroll reveal
   ═══════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1),
              transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.cursor-blink {
  display: inline-block;
  width: 0.55em;
  height: 0.95em;
  background: var(--orange);
  vertical-align: -0.08em;
  margin-left: 4px;
  animation: blink 1s steps(1) infinite;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}
.footer-logo-img {
  height: 34px;
  width: auto;
  margin-bottom: 18px;
  display: block;
}
.footer-brand p {
  color: var(--gray);
  max-width: 320px;
  font-size: 0.95rem;
}
.footer-col h5 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.94rem;
  opacity: 0.85;
  transition: all 0.2s;
}
.footer-col a:hover {
  color: var(--orange);
  opacity: 1;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  color: var(--gray);
  font-size: 0.86rem;
}
.footer-socials {
  display: flex;
  gap: 14px;
}
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  text-decoration: none;
  transition: all 0.25s;
  font-size: 0.9rem;
}
.footer-socials a:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px var(--gutter);
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(13,13,13,0.08);
  }
  .nav-links.open li a {
    display: block;
    padding: 6px 0;
    font-size: 1.05rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: span 2; }
}

/* Small mobile — tighten spacing, increase tap targets */
@media (max-width: 600px) {
  :root { --gutter: 18px; }
  section { padding: clamp(48px, 9vw, 90px) 0; }
  .btn { padding: 14px 26px; min-height: 48px; }  /* iOS tap target */
  .nav { padding: 14px 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: span 1; }
  /* Prevent any element from causing horizontal scroll */
  body { overflow-x: hidden; }
}

/* Improve form elements on mobile (font-size:16px stops iOS auto-zoom on focus) */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON  (injected by script.js on every page)
   ═══════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0,0,0,0.15);
  z-index: 200;
  text-decoration: none;
  opacity: 0;
  animation: wa-enter 0.5s 0.9s ease forwards;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s, background 0.25s;
}
.wa-float:hover {
  transform: scale(1.08);
  background: #20BD5A;
  box-shadow: 0 14px 38px rgba(37, 211, 102, 0.5), 0 6px 16px rgba(0,0,0,0.18);
}
.wa-float svg {
  width: 32px;
  height: 32px;
  fill: white;
  position: relative;
  z-index: 1;
}
/* Subtle outward ping to draw attention */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: 0;
  animation: wa-ping 3s cubic-bezier(0, 0, 0.2, 1) 1.5s infinite;
}
@keyframes wa-ping {
  0%   { transform: scale(1);   opacity: 0.45; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}
@keyframes wa-enter {
  to { opacity: 1; }
}
/* Tooltip on hover (desktop only) */
.wa-float::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--ink, #0D0D0D);
  color: var(--cream, #FAF7F2);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.wa-float:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 600px) {
  .wa-float {
    width: 56px;
    height: 56px;
    bottom: 18px;
    right: 18px;
  }
  .wa-float svg { width: 28px; height: 28px; }
  .wa-float::after { display: none; }  /* no tooltip on mobile */
}
