/*
Theme Name: Kadence Triple S
Theme URI: https://triplesperformancesaws.com
Description: Custom Kadence child theme for Triple S Performance Saws. Built by Frosted Digital.
Author: Liz / Frosted Digital
Author URI: https://frosteddigital.com
Template: kadence
Version: 1.0.0
Text Domain: kadence-triple-s
*/

/* Custom styles will go below this line */

/* ============================================================
   DESIGN SYSTEM — VARIABLES
   ============================================================ */

:root {
    /* Colors */
    --color-black: #0f0f0f;
    --color-off-black: #1a1a1a;
    --color-charcoal: #2a2a2a;
    --color-gray-dark: #4a4a4a;
    --color-gray: #808080;
    --color-gray-light: #d4d4d4;
    --color-off-white: #f5f5f0;
    --color-white: #ffffff;

    --color-orange: #ff6b1a;       /* Stihl-inspired accent */
    --color-orange-dark: #d9541a;
    --color-orange-light: #ff8c47;

    --color-text: var(--color-off-black);
    --color-text-muted: var(--color-gray-dark);
    --color-bg: var(--color-off-white);
    --color-bg-dark: var(--color-black);
    --color-accent: var(--color-orange);

    /* Typography */
    --font-heading: 'Barlow Condensed', 'Impact', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --fs-xs: 0.75rem;    /* 12px */
    --fs-sm: 0.875rem;   /* 14px */
    --fs-base: 1rem;     /* 16px */
    --fs-md: 1.125rem;   /* 18px */
    --fs-lg: 1.375rem;   /* 22px */
    --fs-xl: 1.75rem;    /* 28px */
    --fs-2xl: 2.5rem;    /* 40px */
    --fs-3xl: 3.5rem;    /* 56px */
    --fs-4xl: 5rem;      /* 80px */

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-black: 900;

    --lh-tight: 1.1;
    --lh-snug: 1.3;
    --lh-normal: 1.6;
    --lh-loose: 1.8;

    /* Spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Layout */
    --container-width: 1200px;
    --container-narrow: 800px;
    --container-padding: 1.5rem;

    /* Borders + radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

/* ============================================================
   FONT IMPORTS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   BASE ELEMENT STYLES
   ============================================================ */

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--color-off-black);
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p {
    margin: 0 0 var(--space-md);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-orange-dark);
}

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

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

.content-container.site-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--container-padding);
}

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

.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-heading);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--color-off-black);
    border-color: var(--color-off-black);
}

.btn-secondary:hover {
    background-color: var(--color-off-black);
    color: var(--color-white);
}

/* ============================================================
   SINGLE SAW / SINGLE COMPETITION LAYOUT
   ============================================================ */

.saw-single,
.competition-single {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.saw-hero,
.competition-hero {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.saw-hero-image,
.competition-hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.saw-header,
.competition-header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--color-gray-light);
}

.saw-title,
.competition-title {
    margin: 0 0 var(--space-md);
    font-size: var(--fs-3xl);
}

.saw-meta,
.competition-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.saw-meta strong,
.competition-meta strong {
    color: var(--color-off-black);
    font-weight: var(--fw-semibold);
    margin-right: var(--space-xs);
}

/* ============================================================
   TAXONOMY BADGES
   ============================================================ */

.saw-taxonomies,
.competition-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.tax-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    background-color: var(--color-off-black);
    color: var(--color-white);
}

.tax-badge.tax-brand {
    background-color: var(--color-accent);
}

.tax-badge.tax-work {
    background-color: var(--color-off-black);
}

/* ============================================================
   SAW CONTENT SECTIONS
   ============================================================ */

.saw-description,
.competition-description {
    font-size: var(--fs-md);
    line-height: var(--lh-loose);
    margin-bottom: var(--space-xl);
}

.saw-gallery,
.competition-gallery {
    margin-bottom: var(--space-xl);
}

.saw-gallery figure,
.competition-gallery figure {
    margin: 0 0 var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.saw-video,
.competition-video {
    margin-bottom: var(--space-xl);
}

.saw-video h2,
.competition-video h2 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-md);
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.saw-customer-location,
.competition-recap {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    text-align: center;
    padding: var(--space-md);
    background-color: var(--color-white);
    border-left: 3px solid var(--color-accent);
    margin-bottom: var(--space-xl);
}

.saw-footer,
.competition-footer {
    padding-top: var(--space-lg);
    border-top: 2px solid var(--color-gray-light);
}

.back-to-saws,
.back-to-competitions {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-off-black);
}

.back-to-saws:hover,
.back-to-competitions:hover {
    color: var(--color-accent);
}

/* ============================================================
   RESPONSIVE — MOBILE ADJUSTMENTS
   ============================================================ */

@media (max-width: 768px) {
    :root {
        --fs-3xl: 2.25rem;   /* Scale hero titles down */
        --fs-2xl: 1.75rem;
        --fs-xl: 1.375rem;
        --space-xl: 1.5rem;
        --space-2xl: 2.5rem;
        --space-3xl: 3.5rem;
    }

    .saw-meta,
    .competition-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
}