/* ============================================================
   shared.css — Deco Redesign Design System
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-dark:    oklch(28% 0.08 240);
  --c-primary: oklch(48% 0.18 240);
  --c-mid:     oklch(55% 0.17 238);
  --c-light:   oklch(62% 0.16 235);
  --c-accent:  oklch(72% 0.19 200);
  --c-surface: oklch(98% 0.005 240);
  --c-border:  oklch(90% 0.02 240);
  --c-text:    oklch(15% 0.04 240);
  --c-muted:   oklch(45% 0.06 240);
  --c-white:   oklch(99% 0.003 240);

  --font-display: 'Sora', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 4px oklch(0% 0 0 / 0.08);
  --shadow-md: 0 4px 20px oklch(0% 0 0 / 0.10);
  --shadow-lg: 0 12px 48px oklch(0% 0 0 / 0.14);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.4s var(--ease-out);

  --nav-h: 68px;
  --max-w: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }

.t-display  { font-size: clamp(2.6rem, 5.5vw, 4.8rem); font-weight: 800; letter-spacing: -0.02em; }
.t-h1       { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
.t-h2       { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
.t-h3       { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
.t-lead     { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--c-muted); line-height: 1.7; }
.t-label    { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-accent); }

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section    { padding: clamp(64px, 8vw, 120px) 0; }
.section-sm { padding: clamp(40px, 5vw, 72px) 0; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--c-dark);
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--c-primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-white);
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex: 1;
}
.nav-links a {
  color: oklch(80% 0.04 240);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--c-white);
}
.nav-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--c-mid);
  transform: translateY(-1px);
}
.nav-hamburger { display: none; }

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.trust-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
}
.trust-item svg { color: var(--c-primary); flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: 0 4px 16px oklch(48% 0.18 240 / 0.35);
}
.btn-primary:hover {
  background: var(--c-mid);
  box-shadow: 0 8px 24px oklch(48% 0.18 240 / 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}
.btn-outline:hover {
  background: var(--c-primary);
  color: var(--c-white);
}
.btn-white {
  background: var(--c-white);
  color: var(--c-dark);
}
.btn-white:hover {
  background: var(--c-surface);
}
.btn-accent {
  background: var(--c-accent);
  color: var(--c-dark);
  box-shadow: 0 4px 16px oklch(72% 0.19 200 / 0.3);
}
.btn-accent:hover {
  box-shadow: 0 8px 24px oklch(72% 0.19 200 / 0.4);
}
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-body { padding: 24px; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: oklch(48% 0.18 240 / 0.1);
  color: var(--c-primary);
}
.badge-accent {
  background: oklch(72% 0.19 200 / 0.15);
  color: oklch(50% 0.19 200);
}
.badge-dark {
  background: var(--c-dark);
  color: var(--c-white);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--c-dark);
  color: oklch(75% 0.04 240);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid oklch(40% 0.06 240);
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 16px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--c-white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.8rem;
  color: oklch(55% 0.05 240);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up[data-delay="1"] { transition-delay: 0.1s; }
.fade-up[data-delay="2"] { transition-delay: 0.2s; }
.fade-up[data-delay="3"] { transition-delay: 0.3s; }
.fade-up[data-delay="4"] { transition-delay: 0.4s; }
.fade-up[data-delay="5"] { transition-delay: 0.5s; }

/* ---------- Section Headings ---------- */
.section-heading {
  margin-bottom: 56px;
}
.section-heading.centered { text-align: center; }
.section-heading .t-label { margin-bottom: 12px; display: block; }
.section-heading p { margin-top: 16px; }

/* ---------- Divider ---------- */
hr.divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 0;
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--c-primary);
  color: var(--c-white);
  padding: 64px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 2rem); }
.cta-band p { opacity: 0.85; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    padding: 8px;
  }
  .nav-hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--c-white);
    border-radius: 2px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust-bar-inner { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta { padding: 8px 16px; font-size: 0.8rem; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
