/**
 * ============================================================
 * SCOTT-TECH STUDIOS
 * BASE STYLE ENGINE
 * V20 CLEAN EDITION
 * ============================================================
 *
 * Handles:
 *  - CSS Variables / Design Tokens
 *  - CSS Reset & Base HTML
 *  - Typography
 *  - Containers & Grid Layouts
 *  - Button Utilities
 *
 */

:root {
    /* Color Palette */
    --background: #000000;
    --surface: #0f0f11;
    --surface-light: #16161a;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);
    --white: #ffffff;
    --text: #e4e4e7;
    --muted: #a1a1aa;
    --accent: #ff5405;
    --accent-color: var(--accent); 
    --accent-hover: #ff5c1a;
    --accent-glow: rgba(255, 69, 0, 0.15);

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);

    /* Spacing Scale */
    --space-xs: clamp(0.5rem, 1vw, 0.75rem);
    --space-sm: clamp(0.75rem, 1.5vw, 1.125rem);
    --space-md: clamp(1.25rem, 2.5vw, 1.75rem);
    --space-lg: clamp(2rem, 4vw, 3.5rem);
    --space-xl: clamp(4rem, 8vw, 7rem);

    /* Layout Parameters */
    --max-width: 1320px;
    --radius-lg: 16px;
    --radius-md: 8px;

    /* Transition Curves */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out-expo);
    --transition-smooth: 0.4s var(--ease-out-expo);
}


/* ============================================================
   RESET & BASE
   ============================================================ */

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

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

body {
    overflow-x: hidden;
    background-color: var(--background);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle cinematic noise overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    mask-image: linear-gradient(to bottom right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.2) 100%);
    background-image: 
    radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%),
    url("/assets/images/textures/real-carbon-fibre.png");
    z-index: 1;
}

::selection {
    background-color: var(--accent);
    color: var(--white);
}

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


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
    font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* This applies the color to any paragraph inside a div with the class 'page-title' */
.page-header .page-title p {
  color: var(--accent);
  text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.3);
  -webkit-text-stroke: .6px #080808;
  font-weight: bold;
  text-align: center;
}

h2 {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
    color: var(--text);
}


/* ============================================================
   LAYOUT & CONTAINERS
   ============================================================ */

main {
    width: 100%;
    padding: var(--space-xl) 0;
}

section {
    margin-bottom: var(--space-xl);
}

section:last-of-type {
    margin-bottom: 0;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: max(5%, 1.5rem);
}

.grid-2, .grid-3 {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}


/* ============================================================
   UTILITIES
   ============================================================ */

.section-title {
    position: relative;
    padding-bottom: var(--space-xs);
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin-top: var(--space-sm);
}

.text-center {
    text-align: center;
}

.text-center.section-title::after {
    margin-inline: auto;
}

.accent {
    color: var(--accent) !important;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.hero-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.button, .button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2.25rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    white-space: nowrap;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    cursor: pointer;
}

.button {
    background-color: var(--accent);
    color: var(--white);
    border: 1px solid transparent;
}

.button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 8px 24px var(--accent-glow);
}

.button-outline {
    border: 1px solid var(--border-hover);
    color: var(--white);
    background-color: transparent;
}

.button-outline:hover {
    background-color: var(--white);
    color: var(--background);
    border-color: var(--white);
    transform: translateY(-2px);
}


/* so theres no quick jumps*/

html {
    scroll-behavior: smooth;
}

/* Hide Netlify honeypot field from humans */
.form-honeypot{
  position:absolute;
  height:1px;
  width:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  margin:-1px;
  border:0;
  padding:0;
}