/*
Theme Name: Khan Coaching
Theme URI: https://khancoaching.co.uk
Author: Khan Coaching
Author URI: https://khancoaching.co.uk
Description: Professional sim racing coaching WordPress theme with a modern, motorsport-inspired design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: khan-coaching
Tags: dark, racing, motorsport, coaching, one-column, custom-header, custom-menu, featured-images, full-width-template, theme-options

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

/**
 * Table of Contents:
 *
 * 1.0 - CSS Variables & Reset
 * 2.0 - Typography
 * 3.0 - Layout
 * 4.0 - Components
 * 5.0 - Sections
 * 6.0 - Utilities
 * 7.0 - Responsive
 */

/* 1.0 - CSS Variables & Reset */
:root {
  /* Colors */
  --racing-orange: #ff5f1f;
  --racing-dark: #050505;
  --racing-carbon: #0a0a0a;
  --racing-panel: #121214;
  --racing-accent: #fb923c;

  /* Zinc Scale */
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;

  /* Typography */
  --font-display: 'Exo 2', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Container */
  --container-max: 1280px;
  --container-padding: 1rem;

  /* Transitions */
  --transition-base: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--zinc-100);
  background-color: var(--racing-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 2.0 - Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-style: italic;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  font-style: italic;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--racing-orange);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--racing-accent);
}

strong, b {
  font-weight: 700;
  color: white;
}

em, i {
  font-style: italic;
}

/* 3.0 - Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.section {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
}

/* 4.0 - Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--racing-orange);
  color: #fff;
}

.btn-primary:hover {
  background-color: #e55519;
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 1px solid var(--zinc-700);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #fff;
  color: #fff;
}

/* 5.0 - Sections */
section {
  position: relative;
  overflow: hidden;
}

.bg-dark {
  background-color: var(--racing-dark);
}

.bg-carbon {
  background-color: var(--racing-carbon);
}

.bg-black {
  background-color: #000;
}

.bg-zinc-950 {
  background-color: var(--zinc-950);
}

/* 6.0 - Utilities */
.text-orange {
  color: var(--racing-orange);
}

.text-white {
  color: #fff;
}

.text-zinc-300 {
  color: var(--zinc-300);
}

.text-zinc-400 {
  color: var(--zinc-400);
}

.text-zinc-500 {
  color: var(--zinc-500);
}

.uppercase {
  text-transform: uppercase;
}

.italic {
  font-style: italic;
}

.font-bold {
  font-weight: 700;
}

.font-black {
  font-weight: 900;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 4rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }

/* 7.0 - Responsive */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}
