/* webstack-shared.css — Webstack Design System */

:root {
  /* Core palette */
  --cream:          #FFFAF5;
  --cream-alt:      #FFF3E8;
  --cream-border:   rgba(244, 132, 95, 0.15);
  --sunset-orange:  #F4845F;
  --sunset-orange-dk:#E85F35;
  --sunset-pink:    #F0A5A0;
  --sunset-glow:    #FAD4C4;
  --teal:           #1A7A8A;
  --teal-dark:      #0D5A68;
  --teal-light:     #2A9DB5;
  --teal-pale:      #E6F5F7;
  --teal-pale-dk:   #CCE9ED;
  --text:           #0D3B45;
  --text-soft:      #507A85;
  --white:          #FFFFFF;

  /* Shadows */
  --shadow-sm:  0 2px 12px rgba(13, 59, 69, 0.08);
  --shadow-md:  0 8px 28px rgba(13, 59, 69, 0.10);
  --shadow-lg:  0 18px 52px rgba(13, 59, 69, 0.13);
  --shadow-warm:0 8px 28px rgba(244, 132, 95, 0.18);

  /* Layout */
  --max: 1200px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Container ─── */
.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ─── Section Header ─── */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--cream-border);
  color: var(--sunset-orange-dk);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.section-title {
  margin-top: 16px;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--teal-dark);
}

.section-subtitle {
  margin-top: 14px;
  font-size: 1.08rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(26, 122, 138, 0.28);
  transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26, 122, 138, 0.36);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline:hover {
  background: var(--teal-pale);
  transform: translateY(-2px);
}

.btn-warm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--sunset-orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-warm);
  transition: all 0.22s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-warm:hover {
  background: var(--sunset-orange-dk);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(244, 132, 95, 0.35);
}

/* ─── Floating Navbar ─── */
.navbar-wrap {
  position: sticky;
  top: 14px;
  z-index: 200;
  padding: 14px 0 0;
}

.navbar {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-placeholder-icon {
  color: white;
  font-weight: 900;
  font-size: 1rem;
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.05em;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: -0.02em;
}

.logo-text span {
  font-size: 0.72rem;
  color: var(--text-soft);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-link {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: all 0.18s ease;
  text-decoration: none;
}
.mini-link:hover {
  color: var(--teal);
  background: var(--teal-pale);
}

.nav-cta {
  margin-left: 6px;
  padding: 10px 20px;
  background: var(--teal);
  color: white;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  box-shadow: 0 4px 14px rgba(26, 122, 138, 0.26);
  transition: all 0.2s ease;
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

/* ─── Mobile nav ─── */
.mobile-call-btn { display: none; }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

.menu-toggle {
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--cream-border);
  background: var(--cream);
  cursor: pointer;
  transition: 0.18s ease;
}
.menu-toggle:hover {
  background: var(--teal-pale);
  border-color: var(--teal-pale-dk);
}

.menu-toggle-box { display: grid; gap: 5px; }
.menu-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(13, 59, 69, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 92vw);
  height: 100%;
  background: var(--white);
  padding: 28px 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -8px 0 40px rgba(13,59,69,0.18);
  overflow-y: auto;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mobile-menu-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--teal-dark);
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid var(--cream-border);
  background: var(--cream);
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mobile-menu-link {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.18s ease;
  text-decoration: none;
}
.mobile-menu-link:hover {
  background: var(--teal-pale);
  color: var(--teal);
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.mobile-menu-actions .btn-primary,
.mobile-menu-actions .btn-outline {
  width: 100%;
  justify-content: center;
  padding: 15px 20px;
  font-size: 1rem;
}

/* ─── Toast ─── */
.toast-bubble {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  max-width: 680px;
  width: calc(100% - 32px);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  font-size: 0.98rem;
  line-height: 1.5;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--cream-border);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
}
.toast-bubble.warn { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
.toast-bubble.error { background: #fef2f2; color: #b91c1c; border-color: #fca5a5; }
.toast-bubble.info { background: var(--teal-pale); color: var(--teal-dark); border-color: var(--teal-pale-dk); }
.toast-bubble.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-close { margin-left: auto; cursor: pointer; font-weight: 700; color: var(--text-soft); font-size: 1.2rem; flex-shrink: 0; }

/* ─── Cards ─── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(244, 132, 95, 0.1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--cream);
  color: var(--teal-dark);
  padding: 56px 0 36px;
  border-top: 1px solid var(--cream-border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo-text strong,
.footer-brand .logo-text span {
  color: var(--teal-dark);
}
.footer-brand .logo-img-wrap {
  background: transparent;
}
.footer-brand .logo-placeholder-icon { color: var(--teal); }

.footer-tagline {
  margin-top: 14px;
  font-size: 0.92rem;
  color: rgba(13, 90, 104, 0.65);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.footer-links a {
  color: rgba(13, 90, 104, 0.75);
  font-size: 0.92rem;
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--teal); }

.footer-divider {
  border: none;
  border-top: 1px solid var(--cream-border);
  margin: 40px 0 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(13, 90, 104, 0.55);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .section { padding: 68px 0; }

  .nav-actions, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu.is-open { display: block; }
  .mobile-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    background: linear-gradient(135deg, var(--sunset-orange), var(--sunset-orange-dk));
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--shadow-warm);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
