/*
  Minimal Apple-style landing page
  - Clean typography
  - Generous whitespace
  - Subtle shadows
  - Smooth transitions
*/

:root {
  --bg: #0b0b0b;
  --fg: #f5f5f7;
  --muted: #a1a1aa; /* zinc-400 */
  --border: #262626; /* neutral-800 */
  --accent: #25D366; /* WhatsApp green */
  --transition: 200ms ease; /* used by whatsapp-button */
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* prevent horizontal scroll on mobile */
}

.site-header { height: 24px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Left column: Reels-style video */
.media-column {
  display: flex;
  justify-content: center;
}

.reel {
  position: relative;
  width: auto;
  height: 80vh;            /* up to 80% of viewport height */
  max-height: 80vh;        /* do not exceed 80% of viewport height */
  max-width: 100%;         /* do not overflow the column width */
  aspect-ratio: 9 / 16;     /* reels format */
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.3);
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-btn {
  position: absolute;
  bottom: 30px;
  right: 30px;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;  /* +50% size */
  height: 66px; /* +50% size */
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.play-btn:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.3); box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.play-btn:active { background: rgba(255,255,255,0.16); }
.play-btn .icon { pointer-events: none; width: 30px; height: 30px; }

/* Show play button when hovering the reel */
.reel:hover .play-btn { opacity: 1; pointer-events: auto; }

/* On touch devices (no hover), keep play button visible for accessibility */
@media (hover: none) {
  .play-btn { opacity: 1; pointer-events: auto; }
}

/* Right column: Copy + CTA */
.content-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.headline {
  margin: 0;
  font-size: 50px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.subhead {
  margin: 0 0 8px 0;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 18px);
  overflow-wrap: anywhere;
}

.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.cta-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(37,211,102,0.32); filter: saturate(1.05); }
.cta-whatsapp:active { transform: translateY(0); }

.wa-icon { display: inline-flex; }

/* Fugaz One font utility class (for H1) */
.fugaz-one-regular {
  font-family: "Fugaz One", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 49px;
}

/* New WhatsApp button styles (provided) */
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white !important;
  padding: 0.9rem 1.4rem;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;        /* allow text to wrap on small screens */
  white-space: normal;    /* don't force a single line */
}

.whatsapp-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.whatsapp-button:hover::before {
  left: 100%;
}

.whatsapp-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Slightly larger spacing on wider screens */
@media (min-width: 768px) {
  .whatsapp-button {
    padding: 1.2rem 2rem;
    gap: 0.8rem;
    font-size: 18px;
  }
  .whatsapp-icon { width: 1.5rem; height: 1.5rem; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner p { margin: 4px 0; }

/* Responsive */
@media (max-width: 960px) {
  .container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 24px;
  }
  /* On mobile, show content (headline + CTA) before the video */
  .content-column { order: -1; }
  .reel {
    width: 100%;            /* mobile: fit width */
    max-width: 100%;        /* respect container padding; avoid horizontal scroll */
    height: auto;           /* height derives from aspect-ratio */
    max-height: 80vh;       /* cap to 80% of viewport height on mobile too */
  }

  /* Center all content on mobile */
  .content-column {
    align-items: center;
    text-align: center;
  }
  .headline {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.15;
    overflow-wrap: anywhere; /* prevent words from causing overflow */
  }
  .headline,
  .subhead { text-align: center; }
  .whatsapp-button {
    margin: 0 auto;
    font-size: clamp(11px, 3.2vw, 13px); /* even smaller on mobile to avoid wrap */
    letter-spacing: 0.03em;              /* slightly tighter to fit */
    padding: 0.7rem 1rem;                /* reduce padding further to save width */
    white-space: nowrap;                  /* keep text on one line */
    flex-wrap: nowrap;                    /* override wrap from desktop */
  }
  .footer-inner { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
