/**
 * About Page Styles
 * HB Power Tower - Kadence Child Theme
 */

/* ============================================================
   ABOUT PAGE - IMAGE INJECTION (Workshop photos)
   ============================================================ */

/* Hero section background with workshop image */
section.relative.bg-\[\#0F172A\].text-white {
    position: relative;
}

section.relative.bg-\[\#0F172A\].text-white::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, oklch(0.20 0.03 250 / 0.92) 0%, oklch(0.15 0.02 250 / 0.85) 100%),
        url('/wp-content/uploads/tower-images/workshop-001.jpg') center/cover no-repeat;
    z-index: 0;
    opacity: 1;
}

section.relative.bg-\[\#0F172A\].text-white > * {
    position: relative;
    z-index: 1;
}

/* Our Story section - inject workshop image as key content image */
section.bg-white.py-16:nth-of-type(2) {
    position: relative;
    overflow: hidden;
}

section.bg-white.py-16:nth-of-type(2) .max-w-4xl {
    position: relative;
}

/* Production Capacity section - add workshop image as inline img */
section.bg-\[\#F5F7FA\].py-16:nth-of-type(1) h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--hw-orange);
    margin: var(--space-4) auto 0;
    border-radius: 2px;
}

/* Quality Control section - add workshop-002 image as background */
section.bg-white.py-16:nth-of-type(3) {
    position: relative;
}

/* Visit Our Factory section - workshop hero image */
section.bg-\[\#F5F7FA\].py-16:nth-of-type(2) {
    position: relative;
    background:
        linear-gradient(135deg, oklch(0.96 0.006 250 / 0.95) 0%, oklch(0.96 0.006 250 / 0.9) 100%),
        url('/wp-content/uploads/tower-images/workshop-002.jpg') center/cover no-repeat !important;
    background-attachment: fixed !important;
}

section.bg-\[\#F5F7FA\].py-16:nth-of-type(2) h2,
section.bg-\[\#F5F7FA\].py-16:nth-of-type(2) p {
    color: var(--hw-navy);
}

@media (max-width: 768px) {
    section.bg-\[\#F5F7FA\].py-16:nth-of-type(2) {
        background-attachment: scroll !important;
    }
}

/* ============================================================
   IMAGE PLACEHOLDERS for content images (key - use <img> via JS)
   ============================================================ */

/* If page has [hw-factory-image] shortcode, render as figure */
.hw-factory-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    margin-bottom: var(--space-6);
    background: var(--hw-gray-100);
}

.hw-factory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out-quart);
}

.hw-factory-image:hover img {
    transform: scale(1.04);
}

/* ============================================================
   CONTAINER FIXES for Tailwind sections
   ============================================================ */
section.relative.bg-\[\#0F172A\] {
    width: 100%;
}

section.relative.bg-\[\#0F172A\] .max-w-6xl {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 72rem;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

/* ============================================================
   ABOUT HERO
   ============================================================ */
.hw-about-hero {
    background: var(--hw-navy);
    padding: var(--space-16) 0 var(--space-12);
    text-align: center;
}

.hw-about-hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, var(--text-5xl));
    color: var(--hw-white);
    margin-bottom: var(--space-4);
}

.hw-about-hero .hw-about-subtitle {
    font-size: var(--text-lg);
    color: var(--hw-gray-300);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   STATS ROW
   ============================================================ */
.hw-about-stats {
    background: var(--hw-navy-mid);
    padding: var(--space-8) 0;
}

.hw-about-stats .kt-row-column-wrap {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.hw-about-stat {
    text-align: center;
    padding: var(--space-6);
}

.hw-about-stat-number {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-4xl);
    color: var(--hw-orange);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.hw-about-stat-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-xs);
    color: var(--hw-gray-300);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
}

/* ============================================================
   OUR STORY
   ============================================================ */
.hw-our-story {
    padding: var(--space-20) 0;
    background: var(--hw-white);
}

.hw-our-story .kt-row-column-wrap {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.hw-our-story-content h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, var(--text-3xl));
    color: var(--hw-navy);
    margin-bottom: var(--space-6);
}

.hw-our-story-content p {
    font-size: var(--text-base);
    color: var(--hw-gray-600);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.hw-our-story-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hw-our-story-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   PRODUCTION CAPACITY
   ============================================================ */
.hw-capacity {
    padding: var(--space-20) 0;
    background: var(--hw-gray-50);
}

.hw-capacity .kt-row-column-wrap {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hw-capacity h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, var(--text-3xl));
    color: var(--hw-navy);
    text-align: center;
    margin-bottom: var(--space-12);
}

.hw-capacity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.hw-capacity-card {
    background: var(--hw-white);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-base) var(--ease-out-quart);
}

.hw-capacity-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.hw-capacity-card-icon {
    width: 48px;
    height: 48px;
    background: oklch(0.65 0.15 50 / 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    font-size: var(--text-xl);
    color: var(--hw-orange);
}

.hw-capacity-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--hw-navy);
    margin-bottom: var(--space-3);
}

.hw-capacity-card-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-2xl);
    color: var(--hw-orange);
    margin-bottom: var(--space-2);
}

.hw-capacity-card-desc {
    font-size: var(--text-sm);
    color: var(--hw-gray-600);
    line-height: var(--leading-relaxed);
}

/* ============================================================
   QUALITY CONTROL
   ============================================================ */
.hw-quality {
    padding: var(--space-20) 0;
    background: var(--hw-white);
}

.hw-quality .kt-row-column-wrap {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hw-quality h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, var(--text-3xl));
    color: var(--hw-navy);
    text-align: center;
    margin-bottom: var(--space-12);
}

.hw-quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.hw-quality-card {
    background: var(--hw-gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    border-top: 3px solid var(--hw-orange);
    transition: all var(--duration-base) var(--ease-out-quart);
}

.hw-quality-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.hw-quality-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: oklch(0.65 0.15 50 / 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--hw-orange);
}

.hw-quality-card-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--hw-navy);
    margin-bottom: var(--space-2);
}

.hw-quality-card-desc {
    font-size: var(--text-sm);
    color: var(--hw-gray-600);
    line-height: var(--leading-relaxed);
}

/* ============================================================
   GLOBAL EXPORT MAP
   ============================================================ */
.hw-export {
    padding: var(--space-20) 0;
    background: var(--hw-navy);
}

.hw-export .kt-row-column-wrap {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hw-export h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, var(--text-3xl));
    color: var(--hw-white);
    text-align: center;
    margin-bottom: var(--space-4);
}

.hw-export > p {
    font-size: var(--text-base);
    color: var(--hw-gray-300);
    text-align: center;
    margin-bottom: var(--space-12);
}

.hw-export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

.hw-export-region {
    padding: var(--space-6);
    background: oklch(0.25 0.03 250);
    border-radius: var(--radius-lg);
    border: 1px solid oklch(0.30 0.03 250);
    transition: all var(--duration-base) var(--ease-out-quart);
}

.hw-export-region:hover {
    border-color: oklch(0.65 0.15 50 / 0.3);
    background: oklch(0.28 0.03 250);
}

.hw-export-region-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--hw-white);
    margin-bottom: var(--space-3);
}

.hw-export-region-countries {
    font-size: var(--text-sm);
    color: var(--hw-gray-400);
    line-height: var(--leading-relaxed);
}

/* ============================================================
   CTA - VISIT FACTORY
   ============================================================ */
.hw-visit-cta {
    padding: var(--space-20) 0;
    background: var(--hw-gray-50);
    text-align: center;
}

.hw-visit-cta .kt-row-column-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hw-visit-cta h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, var(--text-3xl));
    color: var(--hw-navy);
    margin-bottom: var(--space-4);
}

.hw-visit-cta p {
    font-size: var(--text-lg);
    color: var(--hw-gray-500);
    margin-bottom: var(--space-8);
}

/* ============================================================
   RESPONSIVE - ABOUT
   ============================================================ */
@media (max-width: 1024px) {
    .hw-about-stats .kt-row-column-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .hw-our-story .kt-row-column-wrap {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    .hw-about-stats .kt-row-column-wrap {
        grid-template-columns: 1fr;
    }

    .hw-export-grid {
        grid-template-columns: 1fr;
    }
}
