/*
Theme Name: ReklaMetrics
Theme URI: https://reklametrics.com
Author: ReklaMetrics Team
Author URI: https://reklametrics.com
Description: A precision-focused WordPress theme for performance-driven advertising solutions with warm, energetic design that stands out from typical blue-heavy tech brands.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reklametrics
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, performance, marketing, analytics

This theme, like WordPress, is licensed under the GPL.
*/

/* ==========================================================================
   CSS Variables - ReklaMetrics Warm Data-Driven Palette
   ========================================================================== */

:root {
  /* Primary Colors */
  --color-kinetic-coral: #ff6b4a;
  --color-deep-teal: #0d7377;

  /* Secondary Colors */
  --color-warm-charcoal: #2d3142;
  --color-amber-accent: #ffb627;
  --color-midnight-plum: #4a4063;

  /* Neutral Palette */
  --color-cream-white: #fffef9;
  --color-soft-sand: #f7f4ed;
  --color-warm-gray: #e8e4dc;
  --color-rich-espresso: #1a1a1d;

  /* Functional Colors */
  --color-success: var(--color-amber-accent);
  --color-warning: #ff8c42;
  --color-error: #d64545;
  --color-info: var(--color-deep-teal);

  /* Typography */
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Spacing System (8px base) */
  --space-xs: 0.5rem; /* 8px */
  --space-sm: 1rem; /* 16px */
  --space-md: 1.5rem; /* 24px */
  --space-lg: 2rem; /* 32px */
  --space-xl: 3rem; /* 48px */
  --space-2xl: 4rem; /* 64px */
  --space-3xl: 6rem; /* 96px */
  --space-4xl: 8rem; /* 128px */

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(29, 33, 66, 0.1);
  --shadow-md: 0 4px 12px rgba(29, 33, 66, 0.12);
  --shadow-lg: 0 8px 24px rgba(29, 33, 66, 0.15);
  --shadow-xl: 0 16px 48px rgba(29, 33, 66, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-warm-charcoal);
  background-color: var(--color-cream-white);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-rich-espresso);
  margin-bottom: var(--space-md);
}

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

p {
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

a {
  color: var(--color-kinetic-coral);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--color-deep-teal);
}

strong,
b {
  font-weight: 700;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
}

.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  line-height: 1.5;
}

.btn-primary {
  background-color: var(--color-kinetic-coral);
  color: white;
  border-color: var(--color-kinetic-coral);
}

.btn-primary:hover {
  background-color: #ff5530;
  border-color: #ff5530;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-deep-teal);
  color: white;
  border-color: var(--color-deep-teal);
}

.btn-secondary:hover {
  background-color: #0a5c5f;
  border-color: #0a5c5f;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-kinetic-coral);
  border-color: var(--color-kinetic-coral);
}

.btn-outline:hover {
  background-color: var(--color-kinetic-coral);
  color: white;
}

/* ==========================================================================
   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;
  width: 1px;
  word-wrap: normal;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: var(--color-kinetic-coral);
  color: white;
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Responsive Images
   ========================================================================== */

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

/* ==========================================================================
   WordPress Core Alignment Classes
   ========================================================================== */

.alignleft {
  float: left;
  margin-right: var(--space-md);
  margin-bottom: var(--space-md);
}

.alignright {
  float: right;
  margin-left: var(--space-md);
  margin-bottom: var(--space-md);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
