/* SailWP — shared design system
   Loaded by every page. Page-specific styles stay inline per page.
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }

:root {
  --coral: #e8845c;
  --coral-hover: #d4714a;
  --coral-dark: #c96740;
  --coral-shadow: #b55a38;
  --coral-glow: rgba(232,132,92,.25);
  --accent: #e8b87a;
  --plum: #6a5a7a;
  --plum-dark: #4a3a5e;
  --plum-shadow: #3a2a4e;
  --heading: #1a1a2e;
  --body: #2d3748;
  --secondary: #4a5568;
  --muted: #718096;
  --bg: #faf8f6;
  --bg-alt: #f5f0eb;
  --dark: #1a1a2e;
  --dark-card: #242440;
  --border: #e8e0d8;
  --green: #09bb03;
  --radius: 20px;
  --shadow-card: 0 2px 8px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}

.sailwp {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ============================================
   LAYOUT
   ============================================ */
.sw-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.sw-container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

.sw-container--wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.sw-section {
  padding: 96px 0;
  position: relative;
}

.sw-section--alt {
  background: var(--bg-alt);
}

.sw-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.sw-section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.sw-section-sub {
  font-size: 18px;
  color: var(--secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   NAVIGATION — Floating island pill
   ============================================ */
.sw-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 1040px;
  transition: transform .3s cubic-bezier(.4,0,.2,1), top .25s;
}

.sw-nav.is-scrolled {
  top: 10px;
}

.sw-nav.is-hidden {
  transform: translate(-50%, calc(-100% - 24px));
}

.sw-nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 8px 8px 20px;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 10px 28px rgba(0,0,0,.07);
}

.sw-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--heading);
  letter-spacing: .05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.sw-nav-brand:hover { color: var(--heading); }

.sw-nav-brand img {
  height: 22px;
  width: auto;
}

.sw-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sw-nav-item {
  position: relative;
}

.sailwp .sw-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  border-radius: 100px;
  transition: background .15s, color .15s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  text-decoration: none;
}

.sailwp .sw-nav-link:hover,
.sailwp .sw-nav-link.is-active {
  color: var(--heading);
  background: rgba(0,0,0,.05);
}

.sw-nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform .2s;
}

.sw-nav-item.is-open .sw-nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown panel */
.sw-nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s;
}

.sw-nav-item.is-open .sw-nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sw-nav-dropdown-item {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--body);
  transition: background .15s;
}

.sw-nav-dropdown-item:hover {
  background: var(--bg-alt);
  color: var(--heading);
}

.sw-nav-dropdown-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 2px;
}

.sw-nav-dropdown-item span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.sw-nav-spacer {
  flex: 1;
}

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

.sailwp .sw-nav-login {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  border-radius: 100px;
  transition: background .15s, color .15s;
  text-decoration: none;
}

.sailwp .sw-nav-login:hover {
  color: var(--heading);
  background: rgba(0,0,0,.05);
}

.sailwp .sw-nav-cta,
.sailwp .sw-nav-cta:hover {
  color: #fff !important;
}

.sw-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--dark);
  border-radius: 100px;
  transition: transform .15s, background .15s;
  letter-spacing: .01em;
}

.sw-nav-cta:hover {
  background: #0f0f24;
  transform: translateY(-1px);
}

/* Mobile nav */
.sw-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  color: var(--heading);
}

.sw-nav-toggle:hover { background: rgba(0,0,0,.04); }

.sw-nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .sw-nav { top: 12px; }
  .sw-nav-inner { gap: 12px; padding: 8px 8px 8px 16px; border-radius: 22px; }
  .sw-nav-links, .sw-nav-actions { display: none; }
  .sw-nav-spacer { display: none; }
  .sw-nav-toggle { display: inline-flex; }
  .sw-nav-mobile {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s;
  }
  .sw-nav.is-mobile-open .sw-nav-mobile { display: block; max-height: 500px; }
  .sw-nav-mobile-item {
    display: block;
    padding: 14px 16px;
    color: var(--body);
    font-weight: 500;
    border-radius: 6px;
  }
  .sw-nav-mobile-item:hover { background: var(--bg-alt); color: var(--heading); }
  .sw-nav-mobile-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
  }
  .sw-nav-mobile-cta {
    display: block;
    margin: 8px;
    padding: 14px 20px;
    background: var(--dark);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    font-weight: 700;
  }
  .sw-nav-mobile-cta:hover { color: #fff; }
}

.sw-nav-mobile { display: none; }

/* ============================================
   BUTTONS — Reusable
   ============================================ */
.sw-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--coral);
  border: 3px solid var(--coral-dark);
  border-radius: 4px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 0 var(--coral-shadow);
  letter-spacing: .02em;
  cursor: pointer;
}

.sailwp .sw-btn-primary,
.sailwp .sw-btn-primary:hover { color: #fff !important; }

.sw-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--coral-shadow);
}

.sw-btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--coral-shadow);
}

.sw-btn-primary svg { width: 18px; height: 18px; }

.sw-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  background: #fff;
  border: 3px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .2s;
  box-shadow: 0 4px 0 rgba(0,0,0,.08);
  letter-spacing: .02em;
}

.sw-btn-secondary:hover {
  color: var(--heading);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0,0,0,.08);
  border-color: var(--coral);
}

.sw-btn-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.sw-btn-secondary svg { width: 18px; height: 18px; }

/* Dark-theme variant for CTAs on dark bg */
.sw-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 3px solid rgba(255,255,255,.25);
  border-radius: 4px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .2s;
  box-shadow: 0 4px 0 rgba(0,0,0,.15);
  letter-spacing: .02em;
  white-space: nowrap;
}

.sailwp .sw-btn-ghost,
.sailwp .sw-btn-ghost:hover { color: #fff !important; }

.sw-btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0,0,0,.15);
  border-color: rgba(255,255,255,.4);
}

.sw-btn-ghost:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}

.sw-btn-ghost svg { width: 18px; height: 18px; }

/* ============================================
   FOOTER
   ============================================ */
.sw-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 72px 0 40px;
  font-size: 15px;
}

.sw-footer a { color: rgba(255,255,255,.7); }
.sw-footer a:hover { color: #fff; }

.sw-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.sw-footer-brand img {
  height: 28px;
  margin-bottom: 16px;
}

.sw-footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  max-width: 300px;
}

.sw-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.sw-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sw-footer-col li a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color .15s;
}

.sw-footer-col li a:hover { color: #fff; }

.sw-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}

@media (max-width: 820px) {
  .sw-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
  .sw-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .sw-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
