/* ==========================================================================
   OPTIMAL POWER - CONTACT PAGE ARCHITECTURE (EDITORIAL DARK)
   ========================================================================== */

.contact-page {
    background: #fff;
    color: #000;
}

/* GLOBAL UI TOKENS */
.meta-label {
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(0,0,0,0.3);
    display: block;
    margin-bottom: 10px;
}

:root {
    --inner-px: clamp(20px, 10vw, 200px);
}

/* 1. CONTACT HERO */
.contact-hero {
    height: 70vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 0 var(--inner-px, 50px);
    background: #000;
    color: #fff;
    border-radius: 0 0 50px 50px;
    position: relative;
    overflow: hidden;
}

.contact-hero-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.monumental-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(4rem, 12vw, 12rem);
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -6px;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero-subheader {
    font-size: 18px;
    color: #fff;
    opacity: 0.6;
    max-width: 600px; /* Increased to avoid bad breaks */
    line-height: 1.6;
}

/* 2. CONTACT GRID */
.contact-grid-section {
    padding: 12vh var(--inner-px, 50px);
    background: #fff;
}

.contact-main-grid {
    display: grid !important;
    grid-template-columns: 1fr 1.2fr !important;
    gap: 100px !important;
    align-items: start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 100%;
    margin-left: 15%; /* Indent to the right as requested */
    margin-top: 50px;
}

.info-block {
    border-left: 2px solid #000;
    padding-left: 30px;
}

.block-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #000;
    opacity: 0.25;
    display: block;
    margin-bottom: 20px;
}

.block-data {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    color: #000;
    margin: 0;
}

/* Form Styles */
.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(0,0,0,0.5);
}

.form-group input, 
.form-group textarea {
    background: #f7f7f7;
    border: 1px solid transparent;
    padding: 22px 25px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #000;
    background: #fff;
}

.form-group textarea {
    min-height: 140px;
    resize: none;
}

.submit-btn-clinical {
    background: #000;
    color: #fff;
    border: none;
    padding: 22px 50px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    transition: 0.4s;
}

.submit-btn-clinical:hover {
    background: var(--accent);
    color: #000;
}

/* 3. STRATEGIC NODES (UNIQUE TECH TAGS) */
.nodes-section {
    padding: 12vh var(--inner-px);
}

.nodes-header {
    margin-bottom: 50px;
}

.nodes-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: -2px;
    color: #000;
}

.nodes-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.node-tag {
    height: 75px;
    display: flex;
    align-items: center;
    padding: 0 45px;
    position: relative;
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    clip-path: polygon(0 0, 96% 0, 100% 100%, 0 100%);
}

.node-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

/* Colors for Nodes */
.node-01 { background: var(--accent); color: #000; }
.node-01 .node-pattern { background-image: linear-gradient(#000 1px, transparent 1px), linear-gradient(90deg, #000 1px, transparent 1px); background-size: 15px 15px; }

.node-01:hover { background: #000; color: #fff; transform: translateX(10px); }
.node-01:hover .node-tag-city { color: #fff !important; }

.node-02 { background: #f2f2f2; color: #000; }
.node-02 .node-pattern { background: repeating-linear-gradient(45deg, rgba(0,0,0,0.06), rgba(0,0,0,0.06) 2px, transparent 2px, transparent 12px); }
.node-02:hover { background: #000; color: #fff; transform: translateX(10px); }

.node-03 { background: #111; color: #fff; }
.node-03 .node-pattern { background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px); background-size: 10px 10px; }
.node-03 .node-tag-status { color: var(--accent); }
.node-03:hover { background: var(--accent); color: #000; transform: translateX(10px); }
.node-03:hover .node-tag-city, .node-03:hover .node-tag-status { color: #000 !important; }


.node-tag-number {
    font-size: 13px;
    font-weight: 900;
    margin-right: 40px;
    z-index: 2;
}

.node-tag-content {
    display: flex;
    align-items: center;
    gap: 35px;
    flex: 1;
    z-index: 2;
}

.node-tag-city {
    font-family: 'Oswald', sans-serif;
    font-size: 21px;
    text-transform: uppercase;
    font-weight: 700;
}

.node-tag-spec {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.node-tag-status {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-right: 15%;
    z-index: 2;
}

/* 4. PERFORMANCE COMPONENTS (PRODUCT PREVIEW) */
.products-preview-section {
    padding: 12vh var(--inner-px);
    background: #fff;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.products-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-transform: uppercase;
    letter-spacing: -2px;
    color: #000;
}

.global-nav-btn {
    background: #f2f2f2;
    border: 1px solid rgba(0,0,0,0.1);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 10px;
    color: #000; /* Force icon color */
}

.global-nav-btn svg {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2.5px !important;
}

.global-nav-btn:hover {
    background: #000;
    color: #fff !important;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.product-item {
    display: flex;
    flex-direction: column;
}

.product-card {
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    border-radius: 40px; /* Slightly increased for softer premium feel */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

.product-card:hover {
    background: #e0e0e0;
}

.product-slider-nav {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 50;
    pointer-events: none;
}

.nav-btn {
    background: transparent;
    color: #000 !important;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    pointer-events: all;
    opacity: 0.8 !important;
}

.nav-btn svg {
    width: 28px !important;
    height: 28px !important;
    stroke-width: 3px !important;
}

.product-item:hover .nav-btn { opacity: 1 !important; transform: scale(1.2); }
.nav-btn:hover { color: var(--accent) !important; transform: scale(1.5); }

.product-visual {
    width: 85%;
    height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    mix-blend-mode: multiply;
    transition: 0.5s ease;
}

.product-card:hover .product-visual {
    mix-blend-mode: normal;
    transform: scale(1.1);
}

.product-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-meta-label {
    padding: 25px 10px 0;
}

.product-name {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 5px;
    transition: 0.3s;
}

.product-category {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.3;
}

.product-price {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-top: 12px;
    color: #000;
}

.product-item:hover .product-name { color: var(--accent); }

/* 5. CONTACT CTA BAR */
.contact-cta-bar {
    background: var(--accent);
    padding: 60px var(--inner-px);
    text-align: center;
    color: #000;
}

.cta-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.cta-bar-inner h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .contact-hero { padding: 0 40px; height: 60vh; }
    .contact-grid-section { padding: 80px 40px; }
    .contact-info-panel { margin-left: 0 !important; gap: 40px; }
    .node-tag { padding: 0 20px; height: auto; padding: 25px 20px; clip-path: none; border-radius: 15px; flex-direction: column; align-items: flex-start; }
    .node-tag-number { margin-bottom: 5px; }
    .node-tag-content { flex-direction: column; align-items: flex-start; gap: 5px; }
    .node-tag-status { margin: 10px 0 0; }
    .products-grid { grid-template-columns: 1fr; gap: 40px; }
    .product-card { padding: 30px; border-radius: 25px; }
    .products-preview-section { padding: 60px 20px; }
    .product-slider-nav, .header-nav { display: none !important; }

/* ==========================================================================
   GUTENBERG & TEMPLATE PRECISION FIXES
   ========================================================================== */

.blank-engineering-layout .entry-content {
    max-width: none !important;
    padding: 0 !important;
}

.wp-block-op-contact-hero,
.wp-block-op-contact-layout,
.wp-block-op-strategic-nodes,
.wp-block-op-product-inventory {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-width: none !important;
}

.contact-main-grid {
    display: grid !important;
    grid-template-columns: 1fr 1.2fr !important;
    gap: 100px !important;
}

/* Hide WP Default elements */
.contact-page .entry-title, .blank-engineering-layout .entry-title {
    display: none !important;
}

/* Fixes for Editor root container */
.is-root-container {
    padding: 0 !important;
}
