/* thinksnappy.com — style.css */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;700;900&family=Barlow:wght@300;400;500&display=swap');

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

:root {
  --white:      #ffffff;
  --black:      #06070b;
  --overlay:    rgba(0,0,0,0.75);

  /* Section 2 — blue-gray frosted wash (matches Image 1) */
  --s2-bg:      rgba(125, 150, 188, 0.52);
  --s2-text:    #f0f4fc;   /* white + 10% blue tint */
  --s2-muted:   rgba(210, 225, 248, 0.80); /* muted white-blue */

  /* Section 3 — white/light top, fades to transparent (matches Image 2) */
  --s3-light:   rgba(232, 237, 246, 0.97);
  --s3-text:    #1a2d4a;

  --nav-h:      64px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --font-h:     'Raleway', sans-serif;
  --font-b:     'Barlow', sans-serif;
}

html {
  background: var(--black);
  color: var(--white);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { font-family: var(--font-b); font-weight: 300; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; }

/* ── Background ──────────────────────────────────── */
.bg-layer {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; background: var(--black);
}
.bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.bg-fade {
  position: absolute; inset: 0;
  background: #000; opacity: 0;
  pointer-events: none; z-index: 1;
}
.bg-overlay {
  position: fixed; inset: 0; z-index: 2;
  background: var(--overlay); pointer-events: none;
}

/* ── Nav ─────────────────────────────────────────── */
.site-wrap { position: relative; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h); padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, transparent 100%);
}
.header-logo-link { display: flex; align-items: center; height: var(--nav-h); }
.header-logo { height: 60px; width: auto; display: block; }
.header-nav  { display: flex; gap: 28px; }
.nav-link {
  font-family: var(--font-b); font-size: 11px; font-weight: 400;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.60); transition: color 0.2s;
}
.nav-link:hover { color: #fff; }

/* ══════════════════════════════════════════════════
   SECTION 1 — sticky hero (clock + logo)
   ══════════════════════════════════════════════════ */
.s1-hero {
  position: sticky; top: 0; height: 100vh; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  padding: var(--nav-h) 0 0;
}
.s1-inner {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; will-change: transform;
}
.clock-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-50px);
}
#clock-canvas { display: block; }
.clock-logo-center {
  position: absolute; left: 50%; bottom: 50%;
  transform: translateX(-9.5%) translateY(25%);
  display: flex; align-items: flex-end; pointer-events: none;
}
.clock-logo { width: 180px; height: auto; display: block; }

/* Scroll indicator — boxed style matching Wix reference */
.scroll-indicator {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.70);
  cursor: pointer;
  transition: opacity 0.5s, color 0.2s, border-color 0.2s;
  z-index: 10;
}
.scroll-indicator:hover { color: #fff; border-color: rgba(255,255,255,0.85); }
.scroll-indicator.hidden { opacity: 0; pointer-events: none; }
/* Hide old text label — just the icon in box */
.scroll-label { display: none; }
.scroll-arrow { animation: bounce 2s ease-in-out infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ══════════════════════════════════════════════════
   SECTION 2 — blue-gray frosted wash (Image 1)
   Video shows clearly through. Dark navy text.
   ══════════════════════════════════════════════════ */
.s2-tagline {
  position: relative; z-index: 4;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 24px;
  background: var(--s2-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Seamless fade-in from transparent at top */
.s2-tagline::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 140px;
  background: linear-gradient(to bottom,
    rgba(125,150,188,0.00) 0%,
    rgba(125,150,188,0.52) 100%
  );
  pointer-events: none; z-index: 0;
}

.s2-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  max-width: 600px; gap: 18px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.85s var(--ease) 0.1s, transform 0.85s var(--ease) 0.1s;
}
.s2-inner.visible { opacity: 1; transform: translateY(0); }

/* Dark navy text on light blue-gray wash — matches Image 1 */
.s2-company {
  font-family: var(--font-h); font-weight: 300; font-size: 13px;
  letter-spacing: 0.40em; text-transform: uppercase;
  color: var(--s2-muted);
}
.s2-tagline-text {
  font-family: var(--font-b); font-weight: 500;
  font-size: clamp(16px, 2.2vw, 21px); line-height: 1.75;
  color: var(--s2-text);
}
.br-desktop { display: block; }
.s2-cta-hint {
  font-family: var(--font-b); font-weight: 300; font-size: 13px;
  color: var(--s2-muted);
}
.s2-scroll-cue {
  margin-top: 8px;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(20,40,80,0.35);
  color: rgba(20,40,80,0.55);
  transition: color 0.2s, border-color 0.2s;
  animation: bounce 2.2s ease-in-out infinite;
}
.s2-scroll-cue:hover { color: var(--s2-text); border-color: rgba(20,40,80,0.7); }

/* ══════════════════════════════════════════════════
   SECTION 3 — white/light top, video at bottom (Image 2)
   Form on clean white background.
   Bottom half transparent → video parallax shows through.
   ══════════════════════════════════════════════════ */
.s3-contact {
  position: relative; z-index: 5;
  min-height: 150vh;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 100px 24px 0;
  /* White at top → fully transparent at bottom (video shows through) */
  background: linear-gradient(
    to bottom,
    var(--s3-light)           0%,
    var(--s3-light)          52%,
    rgba(232,237,246,0.55)   68%,
    rgba(10,18,40,0.40)      82%,
    transparent             100%
  );
}
/* Seamless top fade-in from section 2 */
.s3-contact::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom,
    rgba(125,150,188,0.52) 0%,
    var(--s3-light)         100%
  );
  pointer-events: none; z-index: 0;
}

.s3-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; max-width: 400px; width: 100%;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.85s var(--ease) 0.1s, transform 0.85s var(--ease) 0.1s;
}
.s3-inner.visible { opacity: 1; transform: translateY(0); }

.s3-heading {
  font-family: var(--font-b); font-weight: 300; font-size: 14px;
  letter-spacing: 0.10em; color: var(--s2-muted);
  margin-bottom: 28px; text-align: center;
}

/* ── Form — dark text on white/light background ── */
.contact-form { width: 100%; display: flex; flex-direction: column; gap: 0; }
.bot-trap { display: none; }

.form-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-label {
  font-family: var(--font-b); font-size: 11px; font-weight: 400;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(20,40,80,0.65); text-align: left;
}
.form-input {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(20,40,100,0.20);
  border-radius: 1px;
  color: var(--s3-text);
  font-family: var(--font-b); font-size: 14px; font-weight: 300;
  outline: none; -webkit-appearance: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-input::placeholder { color: rgba(20,40,80,0.35); }
.form-input:focus {
  border-color: rgba(20,40,100,0.50);
  background: rgba(255,255,255,0.96);
}
.form-input.invalid { border-color: rgba(200,60,60,0.65); }

/* Contact Us button — dark navy (matches Image 2) */
.form-btn {
  width: 100%; padding: 13px 16px; margin-top: 4px;
  background: #0e1f42;
  color: #ffffff;
  font-family: var(--font-b); font-size: 11px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  border: none; border-radius: 1px; cursor: pointer;
  transition: background 0.18s, transform 0.1s;
}
.form-btn:hover  { background: #1a3060; }
.form-btn:active { transform: scale(0.98); }
.form-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-loading { display: none; }
.form-btn.loading .btn-text    { display: none; }
.form-btn.loading .btn-loading { display: inline; }

.form-success {
  display: none; margin-top: 16px; padding: 16px 20px;
  background: rgba(14,31,66,0.08); border: 1px solid rgba(14,31,66,0.20);
  border-radius: 1px; font-family: var(--font-b); font-size: 13px;
  color: var(--s3-text); text-align: center; line-height: 1.6;
}
.form-success.visible { display: block; }
.form-error {
  display: none; margin-top: 10px; padding: 10px 14px;
  background: rgba(200,60,60,0.08); border: 1px solid rgba(200,60,60,0.25);
  border-radius: 1px; font-family: var(--font-b); font-size: 12px;
  color: rgba(180,40,40,0.90); text-align: center;
}
.form-error.visible { display: block; }

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  padding: 22px 40px; gap: 20px;
  background: rgba(232,237,246,0.15);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-copy {
  font-family: var(--font-b); font-size: 11px;
  color: rgba(255,255,255,0.50);
  letter-spacing: 0.5px;
}
/* Up-arrow button — boxed like scroll indicator, matching Image 2 */
.footer-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.40);
  color: rgba(255,255,255,0.65);
  font-size: 16px; transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.footer-link:hover { color: #fff; border-color: rgba(255,255,255,0.85); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 600px) {
  .site-header { padding: 0 20px; }
  .header-logo { height: 44px; }
  .clock-logo  { width: 120px; }
  .s3-contact  { min-height: 130vh; }
  .br-desktop  { display: none; }
  .site-footer { padding: 16px 20px; }
}
