/*
Theme Name: Cornerstone Equipment
Theme URI: https://cornerstoneequip.com
Description: Professional equipment rental theme — dark theme with orange accent. Custom Post Type for equipment management with admin meta boxes for pricing, specs, availability, and image galleries.
Version: 1.0.0
Author: Cornerstone Equipment
Author URI: https://cornerstoneequip.com
Text Domain: cornerstone-equipment
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --accent: #E8751A;
  --accent-hover: #FF8C33;
  --accent-glow: rgba(232, 117, 26, 0.25);
  --accent-subtle: rgba(232, 117, 26, 0.08);

  --bg-primary: #0C0C10;
  --bg-secondary: #14141C;
  --bg-card: #1A1A26;
  --bg-card-hover: #22222E;
  --bg-elevated: #1E1E2A;

  --text-primary: #FFFFFF;
  --text-secondary: #B0B0C0;
  --text-muted: #6E6E80;

  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(232, 117, 26, 0.3);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--accent-glow);

  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --header-height: 100px;
  --max-width: 1200px;
  --gutter: 3vw;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ── Utility ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--bg-secondary);
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.section-description {
  max-width: 640px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
}

/* ── Page Transitions ──────────────────────────────────────── */
#main-content {
  padding-top: var(--header-height);
  min-height: 100vh;
}

.page {
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Scroll Animations ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Page Header (inner pages) ─────────────────────────────── */
.page-header {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 117, 26, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-header h1 {
  position: relative;
  margin-bottom: 12px;
}

.page-header .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
}

.page-header .breadcrumb a {
  color: var(--accent);
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ── Back Button ───────────────────────────────────────────── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color 0.3s;
}

.back-btn:hover {
  color: var(--accent);
}
