/*!
 * Theme Name: Chesterton 2030
 * Theme URI: https://github.com/swelt/chesterton-2030-theme
 * Description: Modern Child Theme for aw-chesterton.eu - Twenty 25 + Gutenberg + WPML
 * Author: schönereWelt! design studio münchen
 * Author URI: https://swelt.com
 * Version: 0.1.7
 * License: GPL v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Template: twentytwentyfive
 * Text Domain: chesterton
 * Domain Path: /languages
 * Requires at least: 6.4
 * Requires PHP: 8.0
 */

/* ============================================
   1. RESET & BASE STYLES
   ============================================ */

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--color-text, #53565A);
  background-color: var(--color-bg, #ffffff);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   2. VARIABLES & COLOR SCHEME
   ============================================ */

:root {
  /* Chesterton.com EXACT Brand Colors (from .awc-* Swift theme definitions) */
    --color-primary: #FEDB00;          /* Chesterton Gold/Yellow — awc button-primary-background */
    --color-primary-dark: #1E1E1E;     /* Dark/Black — awc-dark accent-color */
    --color-primary-light: #FEDB00;    /* Same Gold */

  /* Neutral Colors */
  --color-text: #53565A;             /* AWC Dark Grey — awc-dark foreground-color */
  --color-text-light: #666666;       /* Medium Gray */
  --color-text-lighter: #999999;     /* Light Gray */

  --color-bg: #ffffff;               /* White - Main Background */
  --color-bg-light: #f5f5f5;         /* Light Gray - Content Areas */
  --color-bg-lighter: #E8E8E8;       /* awc-light background-color */
  --color-bg-footer: #E8E8E8;        /* Footer — matches awc-light */

  /* Brand Accent Colors */
    --color-accent-red: #C8102E;       /* Chesterton Red - EXACT .awc-dark secondary button */
    --color-accent-red-dark: #DE1709;  /* Red Hover - EXACT .awc-dark secondary hover */

  /* Semantic Colors */
  --color-success: #27ae60;
  --color-warning: #f39c12;
  --color-error: #e74c3c;
  --color-info: #3498db;

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

  /* Typography */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Border Radius - IMPORTANT: NEVER ROUNDED! */
  --border-radius: 0;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

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

/* ============================================
   3. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5, h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

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

a:hover {
  color: var(--color-accent-red-dark);
  text-decoration: underline;
}

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

em, .italic {
  font-style: italic;
}

/* ============================================
   4. CONTAINER & LAYOUT
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ============================================
   5. BUTTONS
   ============================================ */

.btn, button, input[type="submit"] {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}

.btn-primary, button.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-accent-red);
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary, button.btn-secondary {
  background-color: var(--color-bg-light);
  color: var(--color-text);
  border: 1px solid var(--color-bg-lighter);
}

.btn-secondary:hover {
  background-color: var(--color-bg-lighter);
  color: var(--color-text);
  text-decoration: none;
}

.btn-small {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-sm);
}

.btn-large {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
}

/* ============================================
   6. FORMS
   ============================================ */

input, textarea, select {
  width: 100%;
  padding: var(--spacing-sm);
  font-size: var(--font-size-base);
  border: 1px solid var(--color-bg-lighter);
  border-radius: var(--border-radius);
  background-color: var(--color-bg);
  transition: border-color var(--transition-base);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--color-text);
}

/* ============================================
   7. IMAGES
   ============================================ */

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

.img-responsive {
  width: 100%;
  height: auto;
}

.img-square {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.img-hero {
  width: 100%;
  min-height: 400px;
  object-fit: cover;
}

/* ============================================
   8. UTILITIES
   ============================================ */

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

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

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

.text-primary {
  color: var(--color-primary);
}

.text-light {
  color: var(--color-text-light);
}

.bg-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

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

.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }

.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-lg { padding-bottom: var(--spacing-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   9. RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  h1 {
    font-size: var(--font-size-3xl);
  }

  h2 {
    font-size: var(--font-size-2xl);
  }

  .container {
    padding: 0 var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: var(--font-size-2xl);
  }

  h2 {
    font-size: var(--font-size-xl);
  }

  .btn, button {
    width: 100%;
    padding: var(--spacing-md);
  }
}

/* ============================================
   10. PRINT STYLES
   ============================================ */

@media print {
  body {
    background: white;
    color: black;
  }

  a {
    color: black;
  }

  .no-print {
    display: none;
  }

   /* ==========================================================================
      OPTION C — HOMEPAGE SECTIONS
      ========================================================================== */

   /* --------------------------------------------------------------------------
      HERO VIDEO SECTION
      -------------------------------------------------------------------------- */

   .chesterton-hero-video {
        position: relative;
        width: 100%;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background-color: #1a1a1a;
   }

   .chesterton-hero-video__bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        z-index: 0;
   }

   .chesterton-hero-video__overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(
               135deg,
               rgba(0, 0, 0, 0.72) 0%,
               rgba(0, 0, 0, 0.45) 60%,
               rgba(0, 0, 0, 0.25) 100%
             );
        z-index: 1;
   }

   .chesterton-hero-video__inner {
        position: relative;
        z-index: 2;
        max-width: 900px;
        padding: 6rem 2rem;
        text-align: center;
   }

   .chesterton-hero-video__headline {
        font-size: clamp(2.5rem, 6vw, 5rem);
        font-weight: 900;
        line-height: 1.05;
        color: #ffffff;
        letter-spacing: -0.02em;
        margin: 0 0 0.75rem;
        text-transform: none;
   }

   .chesterton-hero-video__accent {
        display: block;
        color: #FFD100;
   }

   .chesterton-hero-video__subheadline {
        font-size: clamp(1rem, 2vw, 1.25rem);
        font-weight: 400;
        color: rgba(255, 255, 255, 0.82);
        margin: 0 0 2.5rem;
        letter-spacing: 0.01em;
   }

   .chesterton-hero-video__cta-row {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
   }

   .chesterton-hero-video__btn {
        display: inline-block;
        padding: 0.875rem 2.25rem;
        font-size: 1rem;
        font-weight: 700;
        text-decoration: none;
        letter-spacing: 0.03em;
        transition: background-color 0.2s, color 0.2s, transform 0.15s;
   }

   .chesterton-hero-video__btn:hover {
        transform: translateY(-2px);
   }

   .chesterton-hero-video__btn--primary {
        background-color: #FFD100;
        color: #1a1a1a;
   }

   .chesterton-hero-video__btn--primary:hover {
        background-color: #e6bc00;
        color: #1a1a1a;
   }

   .chesterton-hero-video__btn--secondary {
        background-color: transparent;
        color: #ffffff;
        border: 2px solid rgba(255, 255, 255, 0.6);
   }

   .chesterton-hero-video__btn--secondary:hover {
        background-color: rgba(255, 255, 255, 0.12);
        border-color: #ffffff;
   }

   /* --------------------------------------------------------------------------
      EMPOWERING SECTION — Light Grey with Animated Stats Counter
      -------------------------------------------------------------------------- */

   .chesterton-empowering-section {
        background-color: #f2f2f2 !important;
   }

   .chesterton-empowering-text {
        font-size: 1.125rem;
        line-height: 1.75;
        color: #444444;
        max-width: 820px;
        margin: 0 auto;
   }

   .chesterton-stat-row {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem 3rem;
        justify-content: center;
        padding-top: 2.5rem;
   }

   .chesterton-stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 140px;
   }

   .chesterton-stat-number {
        font-size: clamp(2.5rem, 5vw, 4rem);
        font-weight: 900;
        color: #FFD100;
        line-height: 1;
        letter-spacing: -0.03em;
   }

   .chesterton-stat-plus {
        font-size: 2rem;
        font-weight: 900;
        color: #FFD100;
        vertical-align: super;
        line-height: 1;
   }

   .chesterton-stat-label {
        font-size: 0.875rem;
        font-weight: 600;
        color: #666666;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-top: 0.5rem;
        text-align: center;
   }

   /* --------------------------------------------------------------------------
      140 YEARS SECTION — Yellow Background, Typographic Number
      -------------------------------------------------------------------------- */

   .chesterton-years-section {
        background-color: #FEDB00 !important;
   }

   .chesterton-years-display {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        line-height: 1;
   }

   .chesterton-years-number {
        font-size: clamp(6rem, 14vw, 12rem);
        font-weight: 900;
        color: #1a1a1a;
        line-height: 0.85;
        letter-spacing: -0.05em;
        display: block;
   }

   .chesterton-years-label {
        font-size: 1.25rem;
        font-weight: 700;
        color: #333333;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        margin-top: 0.75rem;
        display: block;
   }

   /* --------------------------------------------------------------------------
      NEW PRODUCT SPOTLIGHT — White Background, Carousel
      -------------------------------------------------------------------------- */

   .chesterton-spotlight-section {
        background-color: #ffffff !important;
   }

   /* Carousel base */
   .chesterton-carousel {
        position: relative;
        overflow: hidden;
   }

   .chesterton-carousel--empty p {
        color: #999999;
        font-style: italic;
   }

   .chesterton-carousel__track {
        display: flex;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   }

   .chesterton-carousel__slide {
        min-width: 100%;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        display: none;
   }

   .chesterton-carousel__slide--active {
        opacity: 1;
        pointer-events: auto;
        display: block;
   }

   .chesterton-carousel__slide-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
   }

   .chesterton-carousel__image-wrap img {
        width: 100%;
        height: auto;
        display: block;
   }

   .chesterton-carousel__image-placeholder {
        width: 100%;
        aspect-ratio: 4/3;
        background-color: #f5f5f5;
   }

   .chesterton-carousel__content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
   }

   .chesterton-carousel__title a {
        font-size: clamp(1.5rem, 2.5vw, 2rem);
        font-weight: 800;
        color: #1a1a1a;
        text-decoration: none;
   }

   .chesterton-carousel__title a:hover {
        color: #B8860B;
   }

   .chesterton-carousel__excerpt {
        font-size: 1rem;
        line-height: 1.7;
        color: #555555;
   }

   .chesterton-carousel__cta {
        display: inline-block;
        padding: 0.75rem 1.75rem;
        background-color: #FFD100;
        color: #1a1a1a;
        font-weight: 700;
        font-size: 0.9375rem;
        text-decoration: none;
        align-self: flex-start;
        transition: background-color 0.2s;
   }

   .chesterton-carousel__cta:hover {
        background-color: #e6bc00;
        color: #1a1a1a;
   }

   /* Arrows */
   .chesterton-carousel__arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #1a1a1a;
        color: #ffffff;
        border: none;
        cursor: pointer;
        transition: background-color 0.2s;
   }

   .chesterton-carousel__arrow:hover {
        background-color: #FFD100;
        color: #1a1a1a;
   }

   .chesterton-carousel__arrow--prev {
        left: -1rem;
   }

   .chesterton-carousel__arrow--next {
        right: -1rem;
   }

   /* Dots */
   .chesterton-carousel__dots {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
        padding-top: 2rem;
   }

   .chesterton-carousel__dot {
        width: 10px;
        height: 10px;
        border-radius: 0;
        background-color: #cccccc;
        border: none;
        cursor: pointer;
        padding: 0;
        transition: background-color 0.2s, transform 0.2s;
   }

   .chesterton-carousel__dot--active,
   .chesterton-carousel__dot:hover {
        background-color: #FFD100;
        transform: scale(1.3);
   }

   /* --------------------------------------------------------------------------
      GLOBAL SOLUTIONS SECTION — Dark Charcoal (Option C)
      -------------------------------------------------------------------------- */

   .chesterton-global-section {
        background-color: #1a1a1a !important;
   }

   /* --------------------------------------------------------------------------
      RESPONSIVE ADJUSTMENTS — Option C Sections
      -------------------------------------------------------------------------- */

   @media (max-width: 900px) {
        .chesterton-hero-video__inner {
               padding: 4rem 1.5rem;
        }

        .chesterton-years-number {
               font-size: clamp(5rem, 18vw, 9rem);
        }

        .chesterton-carousel__slide-inner {
               grid-template-columns: 1fr;
               gap: 2rem;
        }

        .chesterton-carousel__arrow--prev {
               left: 0.25rem;
        }

        .chesterton-carousel__arrow--next {
               right: 0.25rem;
        }
   }

   @media (max-width: 600px) {
        .chesterton-hero-video__cta-row {
               flex-direction: column;
               align-items: center;
        }

        .chesterton-hero-video__btn {
               width: 100%;
               max-width: 300px;
               text-align: center;
        }

        .chesterton-stat-row {
               gap: 1.5rem 2rem;
        }

        .chesterton-years-display {
               align-items: center;
               text-align: center;
        }
   }

   /* ==========================================================================
      EXACT BRAND COLOR CORRECTIONS — Based on .awc-dark CSS variables
      #FEDB00 = Gold Primary  (was #FFD100 / #FFD700)
      #1E1E1E = Dark Accent   (was #1a1a1a)
      #53565A = Dark Grey BG  (.awc-dark background-color)
      #C8102E = Red Secondary (was #C41E3A)
      ========================================================================== */

   /* Hero Video — corrected colors */
   .chesterton-hero-video { background-color: #53565A; }
   .chesterton-hero-video__accent { color: #FEDB00; }
   .chesterton-hero-video__btn--primary { background-color: #FEDB00; color: #1E1E1E; }
   .chesterton-hero-video__btn--primary:hover { background-color: #e6c800; color: #1E1E1E; }
   .chesterton-hero-video__btn--secondary:hover { background-color: rgba(255,255,255,0.15); }

   /* Stats Counter — corrected gold */
   .chesterton-stat-number,
   .chesterton-stat-plus { color: #FEDB00; }

   /* Years Section — corrected */
   .chesterton-years-section { background-color: #FEDB00 !important; }
   .chesterton-years-number { color: #1E1E1E; }
   .chesterton-years-label { color: #1E1E1E; }

   /* Carousel CTA — corrected */
   .chesterton-carousel__cta { background-color: #FEDB00; color: #1E1E1E; }
   .chesterton-carousel__cta:hover { background-color: #e6c800; }
   .chesterton-carousel__arrow { background-color: #1E1E1E; }
   .chesterton-carousel__arrow:hover { background-color: #FEDB00; color: #1E1E1E; }
   .chesterton-carousel__dot--active,
   .chesterton-carousel__dot:hover { background-color: #FEDB00; }

   /* Global Section — corrected dark */
   .chesterton-global-section { background-color: #53565A !important; }
   .chesterton-global-section h2 { color: #FEDB00 !important; }
   .chesterton-global-section p { color: rgba(255,255,255,0.85) !important; }
   .chesterton-global-section .wp-block-button__link {
        background-color: #FEDB00 !important;
        color: #1E1E1E !important;
   }
   .chesterton-global-section .wp-block-button__link:hover {
        background-color: #e6c800 !important;
   }

   /* Years Section — dark button */
   .chesterton-years-section .chesterton-btn-dark,
   .chesterton-years-section .wp-block-button__link[style*="#1a1a1a"],
   .chesterton-years-section .wp-block-button__link[style*="1E1E1E"] {
        background-color: #1E1E1E !important;
        color: #FEDB00 !important;
   }
   .chesterton-years-section .wp-block-button__link[style*="#1a1a1a"]:hover,
   .chesterton-years-section .wp-block-button__link[style*="1E1E1E"]:hover {
        background-color: #C8102E !important;
        color: #FFFFFF !important;
   }
}
