/* ==========================================================
   WINSLOW AGENCY — v2 Global Styles
   Warm, bright, people-first theme
   ========================================================== */

:root {
  --bg: #fffaf4;
  --bg-2: #fff3e6;
  --bg-3: #ffffff;
  --surface: #ffffff;
  --border: #f0e2d2;
  --border-bright: #ffc9a8;
  --text: #2d2a26;
  --text-dim: #6f675e;
  --coral: #ff6b4a;
  --orange: #ff9f43;
  --teal: #00b8a9;
  --yellow: #ffd166;
  --gradient: linear-gradient(100deg, var(--coral), var(--orange));
  --radius: 20px;
  --shadow: 0 8px 30px rgba(255, 107, 74, 0.10);
  --shadow-lg: 0 20px 50px rgba(45, 42, 38, 0.12);
  --font-head: 'Nunito', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: rgba(255, 159, 67, 0.35); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.18; letter-spacing: -0.01em; }

a { color: var(--coral); text-decoration: none; }

img { max-width: 100%; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Soft background blobs ---------- */
.blob {
  position: fixed; border-radius: 50%; filter: blur(90px);
  z-index: -2; pointer-events: none; opacity: 0.55;
  animation: blobFloat 16s ease-in-out infinite alternate;
}
.blob-1 { width: 480px; height: 480px; background: rgba(255, 209, 102, 0.4); top: -160px; left: -140px; }
.blob-2 { width: 420px; height: 420px; background: rgba(255, 107, 74, 0.18); top: 34%; right: -170px; animation-delay: -6s; }
.blob-3 { width: 400px; height: 400px; background: rgba(0, 184, 169, 0.16); bottom: -140px; left: 30%; animation-delay: -11s; }

@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(46px, 36px) scale(1.1); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 244, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.logo {
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
  color: var(--text); display: flex; align-items: center; gap: 10px;
}
.logo-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gradient);
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.12); }
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--coral); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); font-size: 1.6rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  cursor: pointer; border: none; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 10px 26px rgba(255, 107, 74, 0.35);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 38px rgba(255, 107, 74, 0.45); }
.btn-ghost {
  background: #fff; color: var(--text);
  border: 2px solid var(--border-bright);
  box-shadow: var(--shadow);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--coral); color: var(--coral); }
.btn-sm { padding: 11px 24px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; text-align: center;
  padding: 150px 0 80px;
}
.hero-content { position: relative; z-index: 1; width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 999px;
  background: #fff; border: 2px solid var(--border-bright);
  color: var(--coral); font-size: 0.85rem; font-weight: 800;
  font-family: var(--font-head);
  letter-spacing: 0.04em; margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); margin-bottom: 24px; }
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.teal-text { color: var(--teal); }
.hero .tagline {
  max-width: 640px; margin: 0 auto 40px;
  color: var(--text-dim); font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.type-cursor {
  display: inline-block; width: 3px; height: 1em;
  background: var(--coral); vertical-align: -0.1em; margin-left: 4px;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* floating doodles in hero */
.floaty {
  position: absolute; font-size: 2rem; opacity: 0.85;
  animation: floaty 6s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(45, 42, 38, 0.15));
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-16px) rotate(5deg); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-top: 2px dashed var(--border-bright); border-bottom: 2px dashed var(--border-bright);
  padding: 16px 0; background: #fff;
}
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span {
  color: var(--text-dim); font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  white-space: nowrap; display: flex; align-items: center; gap: 44px;
}
.marquee b { color: var(--orange); font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-head .kicker {
  color: var(--teal); font-family: var(--font-head); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 1.1rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-8px) rotate(-0.5deg); box-shadow: var(--shadow-lg); border-color: var(--border-bright); }

.card .icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; margin-bottom: 20px;
  background: var(--bg-2); border: 2px solid var(--border-bright);
  transition: transform 0.3s;
}
.card:hover .icon { transform: rotate(-8deg) scale(1.1); }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.98rem; }
.card ul { list-style: none; margin-top: 14px; }
.card ul li { color: var(--text-dim); font-size: 0.95rem; padding: 7px 0 7px 28px; position: relative; }
.card ul li::before { content: '✓'; position: absolute; left: 2px; color: var(--teal); font-weight: 800; }

/* accent card variants */
.card-coral { border-top: 5px solid var(--coral); }
.card-orange { border-top: 5px solid var(--orange); }
.card-teal { border-top: 5px solid var(--teal); }
.card-yellow { border-top: 5px solid var(--yellow); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ---------- Process walkthrough (home) ---------- */
.process { max-width: 860px; margin: 0 auto; }
.p-step {
  display: flex; gap: 28px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; margin-bottom: 22px; box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.p-step:hover { transform: translateX(8px); box-shadow: var(--shadow-lg); }
.p-num {
  flex-shrink: 0; width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 20px rgba(255, 107, 74, 0.35);
}
.p-step:nth-child(2) .p-num { background: linear-gradient(120deg, var(--orange), var(--yellow)); }
.p-step:nth-child(3) .p-num { background: linear-gradient(120deg, var(--teal), #4dd7c8); box-shadow: 0 8px 20px rgba(0, 184, 169, 0.35); }
.p-step:nth-child(4) .p-num { background: linear-gradient(120deg, #7c5cff, #a58bff); box-shadow: 0 8px 20px rgba(124, 92, 255, 0.35); }
.p-step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.p-step p { color: var(--text-dim); }
.p-step .quote {
  margin-top: 14px; padding: 12px 18px; border-radius: 12px;
  background: var(--bg-2); border-left: 4px solid var(--orange);
  font-style: italic; color: var(--text); font-size: 0.95rem;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 20px; box-shadow: var(--shadow);
}
.stat h3 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat p { color: var(--text-dim); margin-top: 6px; }

/* ---------- Chat / diagnosis widget ---------- */
.chat-shell {
  max-width: 760px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.chat-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(255, 107, 74, 0.35);
}
.chat-header .meta h4 { font-size: 1rem; }
.chat-header .meta span { font-size: 0.8rem; color: #14a085; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.chat-header .meta span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #17c9a5; }

.chat-log {
  height: 380px; overflow-y: auto; padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  scroll-behavior: smooth; background: #fff;
}
.chat-log::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }

.msg {
  max-width: 82%; padding: 14px 18px; border-radius: 18px;
  font-size: 0.96rem; line-height: 1.55;
  animation: msgIn 0.35s ease both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.msg-bot {
  align-self: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
}
.msg-user {
  align-self: flex-end;
  background: var(--gradient); color: #fff;
  border-bottom-right-radius: 5px;
}
.msg-bot b { color: var(--coral); }
.msg-bot a { font-weight: 700; }

.typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-row {
  display: flex; gap: 12px; padding: 18px 24px;
  border-top: 1px solid var(--border); background: var(--bg-2);
}
.chat-input-row input {
  flex: 1; background: #fff;
  border: 2px solid var(--border); border-radius: 999px;
  padding: 13px 22px; color: var(--text); font-family: var(--font-body);
  font-size: 0.95rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-input-row input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.15); }
.chat-input-row button {
  background: var(--gradient); border: none; border-radius: 999px;
  width: 50px; height: 50px; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(255, 107, 74, 0.35);
}
.chat-input-row button:hover { transform: scale(1.1); }

.chat-suggestions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 0 24px 22px; background: #fff; }
.chip {
  padding: 9px 17px; border-radius: 999px; font-size: 0.83rem; font-weight: 600;
  border: 2px solid var(--border); background: #fff;
  color: var(--text-dim); cursor: pointer; transition: all 0.2s;
  font-family: var(--font-body);
}
.chip:hover { border-color: var(--orange); color: var(--coral); transform: translateY(-2px); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 780px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 29px; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(var(--coral), var(--orange), var(--teal));
  border-radius: 3px; opacity: 0.5;
}
.tl-item { position: relative; padding: 0 0 46px 88px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-num {
  position: absolute; left: 0; top: 0;
  width: 60px; height: 60px; border-radius: 50%;
  background: #fff; border: 3px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
  color: var(--coral); box-shadow: var(--shadow);
}
.tl-item h3 { font-size: 1.35rem; margin-bottom: 8px; }
.tl-item p { color: var(--text-dim); }

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center; padding: 76px 40px;
  border-radius: 28px; position: relative; overflow: hidden;
  background: var(--gradient);
  box-shadow: 0 24px 60px rgba(255, 107, 74, 0.35);
  color: #fff;
}
.cta-banner::before, .cta-banner::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.cta-banner::before { width: 300px; height: 300px; top: -140px; right: -80px; }
.cta-banner::after { width: 220px; height: 220px; bottom: -110px; left: -60px; }
.cta-banner h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: 16px; position: relative; z-index: 1; }
.cta-banner p { color: rgba(255, 255, 255, 0.92); max-width: 560px; margin: 0 auto 32px; position: relative; z-index: 1; }
.cta-banner .btn { position: relative; z-index: 1; }
.cta-banner .btn-white { background: #fff; color: var(--coral); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18); }
.cta-banner .btn-white:hover { transform: translateY(-3px) scale(1.03); }
.cta-banner .kicker-light {
  color: rgba(255,255,255,0.85); font-family: var(--font-head); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; margin-bottom: 12px;
  position: relative; z-index: 1;
}

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 46px 0 36px; margin-top: 40px; background: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
footer p { color: var(--text-dim); font-size: 0.9rem; }
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; font-weight: 600; transition: color 0.2s; }
.footer-links a:hover { color: var(--coral); }

/* ---------- Page hero ---------- */
.page-hero { padding: 165px 0 60px; text-align: center; }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.7rem); margin-bottom: 18px; }
.page-hero p { color: var(--text-dim); max-width: 660px; margin: 0 auto; font-size: 1.15rem; }

/* ---------- Big statement ---------- */
.big-statement {
  text-align: center; max-width: 820px; margin: 0 auto;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.4;
}
.big-statement .hl {
  background: linear-gradient(transparent 55%, var(--yellow) 55%, var(--yellow) 92%, transparent 92%);
  padding: 0 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; top: 62px; right: 0; left: 0;
    flex-direction: column; gap: 0;
    background: rgba(255, 250, 244, 0.98); border-bottom: 1px solid var(--border);
    padding: 12px 0; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px; }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .p-step { flex-direction: column; gap: 16px; }
  .floaty { display: none; }
}
