/* =========================================================
   choice.marketing — Full Design System
   ========================================================= */

/* ---------------------------------------------------------
   1. Custom Properties (Design Tokens)
   --------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg:          #FFFFFF;
  --color-surface:     #F8F7FA;
  --color-dark:        #2B2B3C;
  --color-text:        #1A1A2E;
  --color-muted:       #6B6B80;
  --color-accent:      #FF71FD;
  --color-accent-hover:#E560E3;
  --color-success:     #22C55E;
  --color-border:      #E5E4EC;

  /* Typography */
  --font-heading: 'Heading', 'Poppins', system-ui, sans-serif;
  --font-body:    'Poppins', system-ui, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-pill:999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --shadow-accent: 0 0 0 3px rgba(255,113,253,.25);

  /* Transitions */
  --transition: 0.18s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-accent-hover); }

ul, ol { list-style: none; }

/* ---------------------------------------------------------
   3. Typography
   --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem,   5vw,   3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem,2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }
em     { font-style: italic; }

/* ---------------------------------------------------------
   4. Layout — Container
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--narrow {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* ---------------------------------------------------------
   5. Layout — Sections
   --------------------------------------------------------- */
.section {
  padding-block: var(--space-8);
}

.section--surface {
  background: var(--color-surface);
}

.section--dark {
  background: var(--color-dark);
  color: #fff;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}
.section--dark p {
  color: rgba(255,255,255,.80);
}

/* ---------------------------------------------------------
   6. Layout — Grid
   --------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------------------------------------------------
   7. Navigation
   --------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-4);
  height: 64px;
}

.nav__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav__logo:hover { color: var(--color-accent); }

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-5);
}

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--color-accent); }

/* hamburger toggle */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* mobile nav drawer */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.nav__mobile.is-open {
  display: flex;
}
.nav__mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--color-accent); }

@media (min-width: 768px) {
  .nav__links  { display: flex; }
  .nav__toggle { display: none; }
}

/* ---------------------------------------------------------
   8. Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn--ghost:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn--dark {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}
.btn--dark:hover {
  background: #3a3a50;
  border-color: #3a3a50;
  color: #fff;
}

.btn--sm {
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

/* ---------------------------------------------------------
   9. Hero
   --------------------------------------------------------- */
.hero {
  padding-block: 6rem;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-muted);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ---------------------------------------------------------
   10. Card
   --------------------------------------------------------- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255,113,253,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

/* ---------------------------------------------------------
   11. Proof / Stats
   --------------------------------------------------------- */
.proof {
  border-left: 4px solid var(--color-accent);
  padding-left: 1.25rem;
}

.proof__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.proof__label {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.125rem;
}

.proof__context {
  display: block;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* ---------------------------------------------------------
   12. Testimonial Band
   --------------------------------------------------------- */
.testimonial-band {
  background: var(--color-dark);
  color: #fff;
  padding-block: var(--space-8);
}

.testimonial__quote {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-style: italic;
  line-height: 1.5;
  color: rgba(255,255,255,.90);
  margin-bottom: 1.25rem;
}
.testimonial__quote::before { content: '\201C'; }
.testimonial__quote::after  { content: '\201D'; }

.testimonial__attribution {
  font-size: 0.9375rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* ---------------------------------------------------------
   13. Service Table
   --------------------------------------------------------- */
.service-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.9375rem;
}

.service-table thead tr {
  background: var(--color-accent);
  color: #fff;
}

.service-table th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-family: var(--font-heading);
}

.service-table td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.service-table tbody tr:nth-child(even) {
  background: var(--color-surface);
}

.service-table tbody tr:hover {
  background: rgba(255,113,253,.06);
}

/* ---------------------------------------------------------
   14. Post Card (Blog)
   --------------------------------------------------------- */
.post-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.post-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.post-card:hover .post-card__title {
  color: var(--color-accent);
}

.post-card__excerpt {
  font-size: 0.9375rem;
  color: var(--color-muted);
  flex: 1;
}

.post-card__date {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

/* ---------------------------------------------------------
   15. Study Card (Case Studies)
   --------------------------------------------------------- */
.study-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.study-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.study-card__industry {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.study-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.study-card__client {
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.study-card__metric {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

/* ---------------------------------------------------------
   16. Breadcrumbs
   --------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--color-muted);
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--color-accent); }

.breadcrumbs__sep {
  color: var(--color-border);
  user-select: none;
}

/* ---------------------------------------------------------
   17. Footer
   --------------------------------------------------------- */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.70);
  padding-block: var(--space-8) var(--space-5);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__brand .nav__logo {
  color: #fff;
  font-size: 1.375rem;
}

.footer h4 {
  color: #fff;
  font-size: 0.9375rem;
  margin-bottom: var(--space-3);
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer a {
  color: rgba(255,255,255,.65);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer a:hover { color: var(--color-accent); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: var(--space-4);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  color: rgba(255,255,255,.45);
}

/* ---------------------------------------------------------
   18. Page Header
   --------------------------------------------------------- */
.page-header {
  background: var(--color-surface);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-content {
  padding-block: var(--space-8);
}

/* ---------------------------------------------------------
   19. Article (Blog Post Body)
   --------------------------------------------------------- */
.article {
  max-width: 720px;
  margin-inline: auto;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* Article prose styles */
.article h2,
.article h3,
.article h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article p,
.article ul,
.article ol {
  margin-bottom: 1.25rem;
}

.article ul,
.article ol {
  padding-left: 1.5rem;
}
.article ul { list-style: disc; }
.article ol { list-style: decimal; }

.article li { margin-bottom: 0.375rem; }

.article blockquote {
  border-left: 4px solid var(--color-accent);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: rgba(255,113,253,.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-muted);
}

.article pre {
  background: var(--color-dark);
  color: #e8e8f0;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.article code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.875em;
  background: var(--color-surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.article pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

/* ---------------------------------------------------------
   20. Tag Pill
   --------------------------------------------------------- */
.tag-pill {
  display: inline-block;
  padding: 0.2em 0.75em;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(255,113,253,.12);
  color: var(--color-accent);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.tag-pill:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ---------------------------------------------------------
   21. Form Elements
   --------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-muted);
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* ---------------------------------------------------------
   22. CTA Band
   --------------------------------------------------------- */
.cta-band {
  background: var(--color-surface);
  padding-block: var(--space-8);
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: var(--color-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

/* ---------------------------------------------------------
   23. FAQ
   --------------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-block: 1.25rem;
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-item summary,
.faq-item__question {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-accent);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: '−';
}

.faq-item__answer,
.faq-item p {
  margin-top: 0.75rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ---------------------------------------------------------
   24. Two-Column Layout
   --------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.two-col--sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col--sidebar { grid-template-columns: 1fr 320px; }
}

/* ---------------------------------------------------------
   25. Utility Classes
   --------------------------------------------------------- */
.text-muted   { color: var(--color-muted); }
.text-accent  { color: var(--color-accent); }
.text-center  { text-align: center; }
.text-white   { color: #fff; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ---------------------------------------------------------
   26. Responsive Media Queries (shared overrides)
   --------------------------------------------------------- */
@media (max-width: 767px) {
  .section { padding-block: var(--space-6); }
  .hero     { padding-block: 3.5rem; }
}
