/**
 * Tower Pages Styles (cathead, wine-glass, monopole, lattice)
 * HB Power Tower - Kadence Child Theme
 */

/* ============================================================
   TOWER HERO BACKGROUNDS (per tower type)
   ============================================================ */

/* Cathead Tower - Navy with cathead image */
body.page-id-110 .entry-hero,
body.page-id-110 section.relative.bg-\[\#0F172A\] {
    position: relative;
}

body.page-id-110 section.relative.bg-\[\#0F172A\]::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/cathead-02.jpg') center/cover no-repeat;
    z-index: 0;
}

/* Wine Glass Tower */
body.page-id-112 section.relative.bg-\[\#0F172A\] {
    position: relative;
}

body.page-id-112 section.relative.bg-\[\#0F172A\]::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/wineglass.jpg') center/cover no-repeat;
    z-index: 0;
}

/* Monopole Tower */
body.page-id-114 section.relative.bg-\[\#0F172A\] {
    position: relative;
}

body.page-id-114 section.relative.bg-\[\#0F172A\]::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/monopole-02.jpg') center/cover no-repeat;
    z-index: 0;
}

/* Lattice Tower */
body.page-id-116 section.relative.bg-\[\#0F172A\] {
    position: relative;
}

body.page-id-116 section.relative.bg-\[\#0F172A\]::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/lattice-02.jpg') center/cover no-repeat;
    z-index: 0;
}

/* Ensure content is above background */
section.relative.bg-\[\#0F172A\] > * {
    position: relative;
    z-index: 1;
}

/* ============================================================
   CONTAINER FIXES
   ============================================================ */
section.bg-slate-50,
section.bg-slate-900,
section.bg-\[\#0F172A\],
section.bg-\[\#F5F7FA\],
section.bg-white {
    width: 100%;
}

section .max-w-6xl,
section .max-w-5xl,
section .max-w-4xl,
section .max-w-3xl,
section .max-w-2xl {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ============================================================
   ENGINEERING PANELS
   ============================================================ */
.hw-engineering-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .hw-engineering-panel {
        grid-template-columns: 1fr;
    }
}

.hw-engineering-card {
    border: 1px solid var(--hw-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    background: var(--hw-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-base) var(--ease-out-quart);
}

.hw-engineering-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.hw-engineering-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--hw-navy);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.hw-engineering-card p {
    font-size: var(--text-sm);
    color: var(--hw-gray-600);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ============================================================
   BADGE TAGS
   ============================================================ */
.hw-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    background: oklch(0.65 0.15 50 / 0.1);
    color: var(--hw-orange);
    border: 1px solid oklch(0.65 0.15 50 / 0.2);
}

/* ============================================================
   COMPLIANCE GRID
   ============================================================ */
.hw-compliance-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: var(--content-width);
    margin: 0 auto;
}

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

.hw-compliance-item:hover {
    border-color: oklch(0.65 0.15 50 / 0.3);
    transform: translateY(-2px);
}

.hw-compliance-item h3 {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--hw-white);
}

.hw-compliance-item p {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin: 0;
    color: var(--hw-gray-300);
}

/* ============================================================
   PRODUCT SPECIFICATIONS
   ============================================================ */
.hw-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.hw-spec-item {
    padding: var(--space-4);
    background: var(--hw-gray-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--hw-orange);
}

.hw-spec-label {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--hw-gray-500);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-1);
}

.hw-spec-value {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--hw-navy);
}

/* ============================================================
   TOWER TYPE HEADER
   ============================================================ */
.hw-tower-header {
    background: var(--hw-navy);
    padding: var(--space-16) 0 var(--space-12);
    text-align: center;
}

.hw-tower-header 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-tower-header p {
    font-size: var(--text-lg);
    color: var(--hw-gray-300);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================================
   TOWER IMAGE GALLERY
   ============================================================ */
.hw-tower-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

.hw-tower-gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-base) var(--ease-out-quart);
}

.hw-tower-gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.hw-tower-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out-quart);
}

.hw-tower-gallery-item:hover img {
    transform: scale(1.05);
}

/* ============================================================
   FEATURES LIST
   ============================================================ */
.hw-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hw-features-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--hw-gray-100);
}

.hw-features-list li:last-child {
    border-bottom: none;
}

.hw-features-list li::before {
    content: '✓';
    color: var(--hw-orange);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.hw-features-list li span {
    font-size: var(--text-base);
    color: var(--hw-gray-700);
    line-height: var(--leading-relaxed);
}
/* ============================================================
   PROJECT GALLERY
   ============================================================ */
.hw-gallery {
    padding: 3rem 0;
    background: #f8fafc;
}

.hw-gallery-wrap {
    max-width: var(--content-width, 72rem);
    margin: 0 auto;
    padding: 0 1rem;
}

.hw-gallery-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl, 1.5rem);
    font-weight: 900;
    color: var(--hw-navy, #0f172a);
    margin-bottom: var(--space-2, .5rem);
}

.hw-gallery-sub {
    font-size: var(--text-sm, .875rem);
    color: var(--hw-gray-500, #64748b);
    margin-bottom: var(--space-6, 1.5rem);
}

.hw-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4, 1rem);
}

@media (max-width: 768px) {
    .hw-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hw-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.hw-gallery-item {
    border-radius: var(--radius-lg, .75rem);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.1));
    aspect-ratio: 4 / 3;
    background: var(--hw-gray-200, #e2e8f0);
    transition: all var(--duration-base) var(--ease-out-quart);
}

.hw-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.hw-gallery-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.hw-gallery-item:hover img {
    transform: scale(1.05);
}
