/* ============================================
   SERIDEO AI — LAYOUT & COMPONENTS
   ============================================ */

/* ---------- Hero sky (scoped to hero only) ---------- */
.hero {
  position: relative;
  padding: clamp(2rem, 6vw, var(--space-xl)) 0 var(--space-2xl);
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-peach) 0%, var(--sky-peach-soft) 45%, var(--sky-cream) 100%);
}
.hero-sky {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.hero-sky::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(30,42,60,0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
  opacity: 0.4;
}
.cloud { position: absolute; opacity: 0.9; will-change: transform, opacity; }
.cloud svg { width: 100%; height: 100%; display: block; }
.hero .container { position: relative; z-index: 2; }

/* fade to paper at the bottom edge of the hero */
.hero::before {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(180deg, transparent, var(--paper-cream));
  z-index: 1;
  pointer-events: none;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(251, 248, 241, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--paper-line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.nav-brand { display: flex; align-items: center; gap: 0.65rem; }
.nav-brand img { height: 42px; width: auto; }
.nav-brand .wordmark { height: 20px; width: auto; margin-top: 2px; }

.nav-center { display: flex; align-items: center; gap: var(--space-lg); }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); list-style: none; }
.nav-links a { font-size: var(--fs-small); font-weight: 500; color: var(--text-primary); position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px;
  background: var(--ink-navy); transition: width var(--dur-fast) var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }

.nav-enterprise-link {
  font-size: var(--fs-tiny);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  border-bottom: 1px dotted var(--accent-blue);
  padding-bottom: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink-navy); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-links, .nav-enterprise-link { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-ghost { display: none; }
}

.mobile-drawer {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--paper-cream); z-index: 99;
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease-out);
  padding: var(--space-lg) var(--space-md);
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-md); }
.mobile-drawer a { font-family: var(--font-display); font-size: 1.5rem; }
.mobile-drawer .btn { margin-top: var(--space-md); }

/* ---------- Hero content ---------- */
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border: 1px solid var(--paper-line-strong);
  border-radius: var(--radius-pill); font-size: var(--fs-tiny); font-family: var(--font-mono);
  background: rgba(255,253,249,0.55); margin-bottom: var(--space-md);
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sky-peach-deep); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-family: var(--font-display); font-size: var(--fs-hero); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.05; max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--sky-peach-deep); }
.hero-sub { margin-top: var(--space-md); font-size: clamp(1rem, 2vw, 1.2rem); color: var(--navy-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: var(--space-lg); }

/* ---------- Section shell ---------- */
section { position: relative; padding: var(--space-2xl) 0; }
section.tint-yellow { background: var(--paper-yellow); }
.section-head { max-width: 640px; margin-bottom: var(--space-xl); }
.section-head h2 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 600; letter-spacing: -0.01em; margin-top: 0.6rem; }
.section-head p { margin-top: 0.8rem; color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Our Work carousel ---------- */
.work-carousel { position: relative; }
.work-slides { position: relative; min-height: 460px; }
.work-slide {
  display: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}
.work-slide.active { display: grid; animation: slideIn 0.5s var(--ease-out); }
@keyframes slideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.work-slide-text {
  padding: var(--space-xl) var(--space-lg);
  display: flex; flex-direction: column; justify-content: center;
}
.work-slide-tag {
  font-family: var(--font-mono); font-size: var(--fs-tiny); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 0.8rem; opacity: 0.75;
}
.work-slide-text h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; margin-bottom: 0.5rem; }
.work-slide-text .subhead { font-weight: 600; margin-bottom: 1rem; opacity: 0.85; }
.work-slide-text p.body-copy { line-height: 1.7; opacity: 0.9; max-width: 52ch; }
.work-slide-metric {
  margin-top: 1.5rem; display: inline-flex; align-items: baseline; gap: 0.6rem;
  padding: 0.7rem 1.1rem; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.35); width: fit-content;
}
.work-slide-metric .val { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.work-slide-metric .lbl { font-size: var(--fs-tiny); opacity: 0.8; }

.work-slide-art { display: flex; align-items: center; justify-content: center; padding: var(--space-lg); }
.work-slide-art svg { width: 100%; max-width: 340px; height: auto; }

.work-nav {
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem;
}
.work-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--paper-line-strong);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  transition: all var(--dur-fast) var(--ease-out);
}
.work-arrow:hover { background: var(--ink-navy); color: var(--paper-white); border-color: var(--ink-navy); }
.work-dots { display: flex; gap: 0.5rem; }
.work-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--paper-line-strong); transition: background var(--dur-fast); }
.work-dot.active { background: var(--ink-navy); }

@media (max-width: 820px) {
  .work-slide { grid-template-columns: 1fr; }
  .work-slide-art { order: -1; padding: var(--space-md); }
  .work-slides { min-height: 620px; }
}

/* ---------- Why people stay ---------- */
.stay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.stay-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: var(--space-lg) var(--space-md); border: 1px solid var(--paper-line); }
.stay-card .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--sky-peach-deep); }
.stay-card h3 { font-size: var(--fs-h3); margin-top: 0.5rem; }
.stay-card p { margin-top: 0.5rem; color: var(--text-muted); font-size: var(--fs-small); }
.stay-cta {
  margin-top: var(--space-lg); background: var(--ink-navy); border-radius: var(--radius-lg);
  padding: var(--space-lg); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-md); color: var(--paper-white);
}
.stay-cta h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; }
.stay-cta p { color: rgba(255,255,255,0.7); margin-top: 0.3rem; font-size: var(--fs-small); }

@media (max-width: 780px) { .stay-grid { grid-template-columns: 1fr; } }

/* ---------- Team marquee ---------- */
.team-wrap { overflow: hidden; position: relative; margin-top: var(--space-xl); padding: var(--space-md) 0; }
.team-wrap::before, .team-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
}
.team-wrap::before { left: 0; background: linear-gradient(90deg, var(--paper-yellow), transparent); }
.team-wrap::after { right: 0; background: linear-gradient(-90deg, var(--paper-yellow), transparent); }
.team-track {
  display: flex; gap: 5rem; width: max-content; align-items: center;
  animation: teamMarquee 45s linear infinite;
  will-change: transform;
}
@keyframes teamMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.team-logo {
  font-family: var(--font-mono); font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-navy);
  white-space: nowrap; opacity: 0.88; flex-shrink: 0;
}

/* ---------- Testimonials ---------- */
.testi-wrap { overflow: hidden; position: relative; }
.testi-wrap::before, .testi-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; }
.testi-wrap::before { left: 0; background: linear-gradient(90deg, var(--paper-cream), transparent); }
.testi-wrap::after { right: 0; background: linear-gradient(-90deg, var(--paper-cream), transparent); }
.testi-track { display: flex; gap: 1.25rem; width: max-content; animation: marquee 42s linear infinite; }
.testi-wrap:hover .testi-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.testi-card { width: 340px; flex-shrink: 0; background: var(--bg-card); border: 1px solid var(--paper-line); border-radius: var(--radius-md); padding: var(--space-md); }
.testi-stars { display: flex; align-items: center; gap: 0.4rem; }
.testi-stars svg { width: 14px; height: 14px; }
.testi-stars .val { font-size: var(--fs-tiny); color: var(--text-muted); margin-left: 0.2rem; }
.testi-quote { margin-top: 0.6rem; font-size: 0.95rem; color: var(--text-primary); }
.testi-person { display: flex; align-items: center; gap: 0.7rem; margin-top: var(--space-md); }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.testi-name { font-weight: 600; font-size: var(--fs-small); }
.testi-role { font-size: var(--fs-tiny); color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; cursor: pointer; font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-med) var(--ease-out); }
.faq-a-inner { padding-bottom: 1.4rem; color: var(--text-muted); max-width: 65ch; }

.plus-icon {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--paper-line-strong);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
  position: relative;
}
.plus-icon::before, .plus-icon::after { content: ''; position: absolute; background: var(--ink-navy); transition: transform var(--dur-fast); }
.plus-icon::before { width: 12px; height: 1.5px; }
.plus-icon::after { width: 1.5px; height: 12px; }
.open .plus-icon { background: var(--ink-navy); }
.open .plus-icon::before, .open .plus-icon::after { background: var(--paper-white); }
.open .plus-icon::after { transform: rotate(90deg) scaleY(0); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-xl); align-items: start; }
.contact-form { background: var(--bg-card); border: 1px solid var(--paper-line); border-radius: var(--radius-lg); padding: var(--space-lg); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: var(--fs-tiny); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--paper-line-strong);
  border-radius: var(--radius-sm); background: var(--paper-cream); transition: border-color var(--dur-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-navy); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: var(--fs-tiny); color: var(--text-muted); margin-top: 0.75rem; }
.form-success { display: none; background: rgba(232,147,95,0.12); border: 1px solid var(--sky-peach-deep); border-radius: var(--radius-sm); padding: 1rem; font-size: var(--fs-small); margin-bottom: 1rem; }
.form-success.show { display: block; }

.contact-side { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-card { background: var(--ink-navy); color: var(--paper-white); border-radius: var(--radius-lg); padding: var(--space-lg); }
.contact-card .eyebrow { color: var(--sky-peach-soft); }
.contact-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-top: 0.5rem; }
.contact-card p.desc { margin-top: 0.5rem; color: rgba(255,255,255,0.75); font-size: var(--fs-small); }
.contact-card a.email { display: inline-block; margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 2px; }
.contact-card a.email:hover { border-color: var(--paper-white); }
.contact-card.light { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--paper-line); }
.contact-card.light .eyebrow { color: var(--accent-blue); }
.contact-card.light p.desc { color: var(--text-muted); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { background: var(--ink-navy); color: rgba(255,255,255,0.7); padding: var(--space-xl) 0 var(--space-lg); position: relative; overflow: hidden; }
.footer-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.footer-top { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-lg); padding-bottom: var(--space-lg); border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-brand { max-width: 340px; }
.footer-logo-wrap { width: 130px; height: 130px; margin-bottom: 1rem; }
.footer-logo-wrap img { width: 100%; height: 100%; object-fit: contain; opacity: 0; filter: blur(6px); transform: scale(0.85); transition: opacity 1s var(--ease-out), filter 1s var(--ease-out), transform 1s var(--ease-out); }
.footer-logo-wrap.in-view img { opacity: 1; filter: blur(0); transform: scale(1); }
.footer-cols { position: relative; z-index: 1; display: flex; gap: var(--space-xl); flex-wrap: wrap; }
.footer-col h4 { color: var(--paper-white); font-size: var(--fs-small); margin-bottom: 0.9rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; font-size: var(--fs-small); }
.footer-col a:hover { color: var(--paper-white); }
.footer-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: var(--space-md); font-size: var(--fs-tiny); }

/* ---------- Mascot chatbot ---------- */
.mascot-fab {
  position: fixed; right: var(--space-md); bottom: var(--space-md); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--sky-peach-deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(232,147,95,0.7);
  transition: transform var(--dur-fast) var(--ease-out);
}
.mascot-fab:hover { transform: scale(1.06) rotate(-4deg); }
.mascot-fab svg { width: 34px; height: 34px; }

.mascot-panel {
  position: fixed; right: var(--space-md); bottom: calc(var(--space-md) + 76px); z-index: 61;
  width: min(360px, calc(100vw - 2rem)); max-height: 60vh;
  background: var(--bg-card); border: 1px solid var(--paper-line); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(30,42,60,0.4);
  display: flex; flex-direction: column;
  transform: translateY(16px) scale(0.96); opacity: 0; pointer-events: none;
  transition: all var(--dur-fast) var(--ease-out);
}
.mascot-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }
.mascot-head { display: flex; align-items: center; gap: 0.6rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--paper-line); background: var(--paper-cream); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.mascot-head img { width: 32px; height: 32px; border-radius: 50%; background: var(--paper-white); }
.mascot-head strong { font-family: var(--font-display); }
.mascot-head span { display: block; font-size: var(--fs-tiny); color: var(--text-muted); }
.mascot-close { margin-left: auto; font-size: 1.2rem; color: var(--text-muted); }
.mascot-body { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.7rem; }
.mascot-msg { max-width: 85%; padding: 0.65rem 0.9rem; border-radius: var(--radius-md); font-size: 0.88rem; line-height: 1.4; }
.mascot-msg.bot { background: var(--paper-cream); border-bottom-left-radius: 4px; }
.mascot-msg.user { background: var(--ink-navy); color: var(--paper-white); align-self: flex-end; border-bottom-right-radius: 4px; }
.mascot-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.2rem 1rem; }
.mascot-chip { font-size: var(--fs-tiny); padding: 0.45rem 0.8rem; border: 1px solid var(--paper-line-strong); border-radius: var(--radius-pill); background: var(--paper-cream); transition: background var(--dur-fast); }
.mascot-chip:hover { background: var(--sky-peach-soft); }

/* ---------- Info FAB (framer link, floating) ---------- */
.info-fab {
  position: fixed; right: var(--space-md); bottom: 6.4rem; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; background: var(--bg-card);
  border: 1.5px solid var(--paper-line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  box-shadow: 0 10px 24px -10px rgba(30,42,60,0.4);
  transition: transform var(--dur-fast) var(--ease-out);
}
.info-fab:hover { transform: scale(1.08); }

/* ---------- Utility reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: all 0.8s var(--ease-out); }

/* ---------- Notice banner (used inside apply flow, not globally) ---------- */
.notice-banner {
  background: var(--paper-yellow); border: 1px solid var(--paper-line-strong);
  border-left: 4px solid var(--sky-peach-deep); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; font-size: var(--fs-small); margin-bottom: var(--space-md);
}
.notice-banner strong { color: var(--ink-navy); }
.notice-banner a { text-decoration: underline; font-weight: 600; }

@media (max-width: 780px) { .hero-stats { gap: var(--space-md); } }
