/* ============================================================
   POSTIQUE — Global Design System (Light Theme)
   Premium Email Design Studio | Nairobi, Kenya
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@300;400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Core palette - light */
  --ink:          #ffffff;
  --ink-soft:     #f7f8f9;
  --ink-muted:    #eef0f2;
  --surface:      #0a0c0f;
  --surface-2:    #1c2029;
  --white:        #ffffff;

  --green:        #1db954;
  --green-dim:    #17a349;
  --green-glow:   rgba(29, 185, 84, 0.2);
  --green-pale:   rgba(29, 185, 84, 0.08);

  --gold:         #c9a84c;
  --gold-dim:     rgba(201, 168, 76, 0.15);

  --text-primary:   #0a0c0f;
  --text-secondary: #4a5568;
  --text-muted:     #9aa3af;
  --text-dark:      #0a0c0f;
  --text-dark-2:    #2d3748;

  --border:         rgba(0,0,0,0.08);
  --border-light:   rgba(0,0,0,0.12);
  --border-surface: rgba(0,0,0,0.06);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;

  /* Radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   14px;
  --r-xl:   24px;
  --r-full: 999px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-base:   0.25s ease;
  --t-slow:   0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows - lighter for light theme */
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.12);
  --shadow-green: 0 0 30px rgba(29, 185, 84, 0.25);

  /* Layout */
  --max-w:  1200px;
  --nav-h:  72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.2; }

/* ── Typography Scale ──────────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
}
.text-lg   { font-size: 1.125rem; }
.text-base { font-size: 1rem; }
.text-sm   { font-size: 0.875rem; }
.text-xs   { font-size: 0.75rem; }

.italic { font-style: italic; }
.mono   { font-family: var(--font-mono); }

.text-green  { color: var(--green); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-secondary); }
.text-center { text-align: center; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.container-sm {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.section    { padding-block: var(--space-4xl); }
.section-sm { padding-block: var(--space-3xl); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--green-dim);
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding-inline: var(--space-md);
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-lg  { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm  { padding: 0.5rem 1.25rem; font-size: 0.8rem; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: rgba(29,185,84,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ── Tags / Badges ─────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag-green {
  background: var(--green-pale);
  color: var(--green);
  border: 1px solid rgba(29,185,84,0.2);
}
.tag-gold {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.2);
}
.tag-muted {
  background: rgba(0,0,0,0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.tag-free {
  background: rgba(29,185,84,0.08);
  color: var(--green);
  border: 1px solid rgba(29,185,84,0.2);
}
.tag-paid {
  background: rgba(201,168,76,0.08);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.2);
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: all var(--t-base);
}
.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--green);
  transition: width var(--t-base);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  width: 22px; height: 1.5px;
  background: var(--text-primary);
  display: block;
  transition: all var(--t-base);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile Nav ────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: var(--space-xl);
  flex-direction: column;
  gap: var(--space-lg);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-lg);
}
.mobile-nav a:hover { color: var(--text-primary); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: #0a0c0f;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-block: var(--space-4xl) var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: var(--space-xl);
}
.footer-brand p {
  color: #8a8f9a;
  font-size: 0.9rem;
  margin-top: var(--space-md);
  max-width: 300px;
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #525761;
  margin-bottom: var(--space-lg);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col a {
  color: #8a8f9a;
  font-size: 0.875rem;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-bottom p { color: #525761; font-size: 0.8rem; }

/* Footer logo override — keep white text on dark footer */
.footer .nav-logo { color: #f0ece4; }
.footer .nav-logo span { color: var(--green); }

.social-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}
.social-links a {
  color: #525761;
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
}
.social-links a:hover { color: var(--green); }

/* ── Section Labels ────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--green);
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin-block: var(--space-2xl);
}

/* ── Grid Helpers ──────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29,185,84,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(29,185,84,0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.anim-fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--ink-soft); }
::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ── Selection ─────────────────────────────────────────────── */
::selection { background: var(--green); color: #fff; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-3xl); }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
