/*
Theme Name: Tik.Cards
Theme URI: https://tik.cards
Author: Tik.Cards Team
Author URI: https://tik.cards
Description: Modern, conversion-optimized theme for tik.cards — built for Elementor Pro and WooCommerce. Features TikTok-inspired branding with lime green accents, soft pastels, and clean typography. Includes 10+ custom Elementor widgets for hero sections, country selectors, comparison tables, FAQ accordions, and more.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
License URI: https://tik.cards
Text Domain: tikcards
Tags: e-commerce, elementor, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, threaded-comments, translation-ready

This theme is designed exclusively for tik.cards.
Built to work with Elementor Pro and WooCommerce.
*/

/* === CSS RESET (minimal) === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

/* === DESIGN TOKENS (CSS variables) === */
:root {
  /* Colors — match the design system from previous chat sessions */
  --tk-bg: #fafaf7;
  --tk-bg-soft: #f4f3ee;
  --tk-surface: #ffffff;
  --tk-ink: #0d0d0d;
  --tk-ink-soft: #3d3d3d;
  --tk-muted: #6b6b6b;
  --tk-border: #e8e6df;
  --tk-border-soft: #efece5;

  /* Brand accent */
  --tk-accent: #c8e87c;       /* Lime green */
  --tk-accent-hover: #b8d96b;
  --tk-accent-2: #fde68a;     /* Soft yellow */
  --tk-accent-3: #bfdbfe;     /* Soft blue */
  --tk-accent-4: #fbcfe8;     /* Soft pink */

  /* Functional */
  --tk-success: #16a34a;
  --tk-success-soft: #dcfce7;
  --tk-error: #dc2626;
  --tk-error-soft: #fee2e2;
  --tk-warning: #ca8a04;
  --tk-warning-soft: #fef3c7;

  /* TikTok brand (used sparingly) */
  --tk-tiktok-pink: #fe2c55;
  --tk-tiktok-cyan: #25f4ee;

  /* Typography */
  --tk-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tk-font-serif: 'Instrument Serif', Georgia, serif;

  /* Radii */
  --tk-radius-sm: 10px;
  --tk-radius: 14px;
  --tk-radius-lg: 24px;
  --tk-radius-pill: 999px;

  /* Shadows */
  --tk-shadow-sm: 0 1px 2px rgba(13, 13, 13, 0.04);
  --tk-shadow: 0 4px 16px rgba(13, 13, 13, 0.06);
  --tk-shadow-lg: 0 12px 40px rgba(13, 13, 13, 0.08);

  /* Spacing scale */
  --tk-space-xs: 4px;
  --tk-space-sm: 8px;
  --tk-space-md: 16px;
  --tk-space-lg: 24px;
  --tk-space-xl: 48px;
  --tk-space-2xl: 80px;

  /* Container */
  --tk-container-max: 1200px;
  --tk-container-padding: 24px;
}

/* === BASE TYPOGRAPHY === */
body {
  font-family: var(--tk-font-body);
  background: var(--tk-bg);
  color: var(--tk-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tk-font-body);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--tk-ink);
  margin: 0;
}

h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.5vw, 28px); letter-spacing: -0.02em; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p { margin: 0 0 1em 0; line-height: 1.6; }
p:last-child { margin-bottom: 0; }

/* The italic serif accent — used in headlines like "Reach <em>any</em> audience" */
.tk-serif,
em.tk-serif {
  font-family: var(--tk-font-serif);
  font-style: italic;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

/* === LAYOUT HELPERS === */
.tk-container {
  max-width: var(--tk-container-max);
  margin: 0 auto;
  padding-left: var(--tk-container-padding);
  padding-right: var(--tk-container-padding);
}

.tk-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding-left: var(--tk-container-padding);
  padding-right: var(--tk-container-padding);
}

/* === BUTTONS === */
.tk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--tk-radius-pill);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.tk-btn-primary {
  background: var(--tk-accent);
  color: var(--tk-ink);
}

.tk-btn-primary:hover {
  background: var(--tk-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--tk-shadow);
  color: var(--tk-ink);
}

.tk-btn-secondary {
  background: var(--tk-surface);
  border-color: var(--tk-border);
  color: var(--tk-ink);
}

.tk-btn-secondary:hover {
  border-color: var(--tk-ink);
  color: var(--tk-ink);
}

.tk-btn-dark {
  background: var(--tk-ink);
  color: var(--tk-bg);
}

.tk-btn-dark:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  color: var(--tk-bg);
}

.tk-btn-large {
  padding: 14px 26px;
  font-size: 15px;
}

.tk-btn-block {
  width: 100%;
  padding: 18px 24px;
  font-size: 16px;
}

/* === COMMON COMPONENTS (utility classes) === */
.tk-eyebrow {
  display: inline-block;
  background: var(--tk-accent);
  color: var(--tk-ink);
  padding: 5px 12px;
  border-radius: var(--tk-radius-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tk-bg-soft);
  color: var(--tk-ink-soft);
  padding: 4px 10px;
  border-radius: var(--tk-radius-pill);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tk-badge-green { background: var(--tk-accent); color: var(--tk-ink); }
.tk-badge-blue  { background: var(--tk-accent-3); color: var(--tk-ink); }
.tk-badge-pink  { background: var(--tk-accent-4); color: var(--tk-ink); }
.tk-badge-yellow{ background: var(--tk-accent-2); color: var(--tk-ink); }

/* === ANIMATIONS === */
@keyframes tk-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.tk-fade-in {
  opacity: 0;
  animation: tk-fade-in 0.6s ease forwards;
}

.tk-fade-in-1 { animation-delay: 0.1s; }
.tk-fade-in-2 { animation-delay: 0.2s; }
.tk-fade-in-3 { animation-delay: 0.3s; }
.tk-fade-in-4 { animation-delay: 0.4s; }

/* === ACCESSIBILITY === */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--tk-surface);
  border-radius: 4px;
  box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
  clip: auto !important;
  clip-path: none;
  color: var(--tk-ink);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* === DEFAULT WORDPRESS STYLES === */
.alignleft  { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide   { max-width: 100%; }
.alignfull   { max-width: 100%; }

.wp-caption-text { font-size: 14px; color: var(--tk-muted); margin-top: 8px; }

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 12px 16px;
  background: var(--tk-ink);
  color: var(--tk-accent);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus { left: 6px; top: 6px; }

/* === ELEMENTOR OVERRIDES === */
/* Make Elementor's default container respect our theme */
.elementor-section-wrap > .elementor-section { max-width: 100%; }

/* Reset Elementor button styles when our classes are used */
.elementor-button.tk-btn { line-height: 1.2; }

/* Default stack on mobile */
@media (max-width: 767px) {
  :root {
    --tk-container-padding: 20px;
  }
}
