:root {
    --pr-primary: #1b2e6e;
    --pr-primary-light: #23378d;
    --pr-accent: #09bcc6;
    --pr-accent-dark: #088e96;
    --pr-dark: #1a1a2e;
    --pr-gray: #5a6a80;
    --pr-light: #f4f7fa;
    --pr-white: #ffffff;
    --pr-border: #e2e8f0;
}

/* Force ALL Astra wrappers to full width on pages */
#page,
#content,
.site-content,
.ast-container,
#primary,
.content-area,
.site-main,
.pra-fullwidth {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Keep header container constrained for readability */
.main-header-bar .ast-container,
.ast-primary-header-bar .ast-container,
.site-primary-header-wrap.ast-container {
    max-width: 1400px !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
}

/* Keep footer container constrained */
.site-footer .ast-container {
    max-width: 1200px !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
}

/* Hide Astra default page title */
.entry-header, .ast-archive-description, .page-header {
    display: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2d3748;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--pr-primary);
    line-height: 1.3;
}

/* ========== HEADER / LOGO ========== */
#masthead, .site-header {
    overflow: visible !important;
    position: relative;
    z-index: 100;
}

.main-header-bar,
.ast-primary-header-bar {
    overflow: visible !important;
    background: #fff !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    padding: 0 !important;
}

.main-header-bar .ast-container,
.ast-primary-header-bar .ast-container {
    padding: 0 20px !important;
    max-width: 1400px !important;
}

.ast-site-identity {
    position: relative;
    z-index: 200;
    overflow: visible !important;
    padding: 5px 0 !important;
    height: 50px;
}

.custom-logo-link {
    display: block !important;
    position: absolute;
    top: -5px;
    left: 0;
    z-index: 200;
}

.custom-logo-link img, .custom-logo {
    height: 160px !important;
    width: auto !important;
    max-height: none !important;
    max-width: none !important;
}

.site-title, .site-description, .ast-site-title-wrap {
    display: none !important;
}

/* Nav clean text */
.main-navigation .menu-item > a,
.main-header-menu > .menu-item > a {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--pr-primary) !important;
    padding: 0 16px !important;
    line-height: 60px !important;
}

.main-navigation .menu-item > a:hover,
.main-header-menu > .menu-item > a:hover {
    color: var(--pr-accent) !important;
}

/* Fix Astra header row height */
.ast-builder-grid-row,
.site-primary-header-wrap .ast-builder-grid-row {
    min-height: 60px !important;
}

.main-header-bar .main-header-bar-navigation {
    height: auto !important;
}

/* Request Quote CTA button */
.pra-nav-cta > a {
    background: var(--pr-accent) !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 10px 22px !important;
    line-height: 1.4 !important;
}

.pra-nav-cta > a:hover {
    background: var(--pr-accent-dark) !important;
}

/* Dropdown styling */
.main-navigation .sub-menu {
    min-width: 320px !important;
    padding: 8px 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
    border: 1px solid var(--pr-border) !important;
    background: #fff !important;
    top: 100% !important;
}

.main-navigation .sub-menu .menu-item {
    border-bottom: none !important;
}

.main-navigation .sub-menu .menu-item > a {
    padding: 10px 16px !important;
    line-height: 1.4 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin: 2px 8px !important;
    border-radius: 8px !important;
    white-space: normal !important;
    font-size: 0.88rem !important;
    transition: background 0.15s !important;
}

.main-navigation .sub-menu .menu-item > a:hover {
    background: var(--pr-light) !important;
}

/* Dropdown icon + text layout */
.pra-dd-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: var(--pr-light);
    border-radius: 10px;
    margin-top: 2px;
}

.pra-dd-icon img { width: 20px; height: 20px; }

.pra-dd-text { flex: 1; }

.pra-dd-label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--pr-primary);
}

.pra-dd-desc {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--pr-gray);
    margin-top: 3px;
    line-height: 1.4;
}

/* ========== HERO ========== */
.pr-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(27,46,110,0.92) 0%, rgba(9,188,198,0.85) 100%);
    overflow: hidden;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.pr-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.pr-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: overlay;
    opacity: 0.4;
}

.pr-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 80px 40px;
    color: var(--pr-white);
}

.pr-hero-company {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pr-hero-company span {
    font-family: 'Inter', sans-serif;
    font-size: 0.5em;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 2px;
    opacity: 0.8;
    text-transform: none;
}

.pr-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--pr-white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.pr-hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.pr-hero-content .pr-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

/* Force buttons side-by-side */
.pr-btn-row { display: flex !important; flex-wrap: wrap; gap: 12px; align-items: center; }
.pr-btn-row br { display: none !important; }
.pr-cta .pr-btn-row { justify-content: center; }

/* Fallback for wpautop wrapping */
.pr-hero-content p > .pr-btn + br,
.pr-cta p > .pr-btn + br { display: none !important; }

.pr-hero-content p:has(.pr-btn),
.pr-cta p:has(.pr-btn) { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.pr-cta p:has(.pr-btn) { justify-content: center; }

/* ========== BUTTONS ========== */
.pr-btn {
    display: inline-block !important;
    padding: 14px 36px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    cursor: pointer;
    vertical-align: middle;
}

.pr-btn-primary {
    background: var(--pr-accent);
    color: var(--pr-white) !important;
    border: 2px solid var(--pr-accent);
}

.pr-btn-primary:hover {
    background: var(--pr-accent-dark);
    border-color: var(--pr-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(9,188,198,0.3);
}

.pr-btn-outline {
    background: transparent;
    color: var(--pr-white) !important;
    border: 2px solid rgba(255,255,255,0.5);
}

.pr-btn-outline:hover {
    background: var(--pr-white);
    color: var(--pr-primary) !important;
}

/* ========== SECTIONS ========== */
.pr-section { padding: 60px 0; }
.pr-section + .pr-section { padding-top: 40px; }
.pr-section-gray { background: var(--pr-light); }
.pr-section-dark { background: var(--pr-dark); color: var(--pr-white); }
.pr-section-dark h2, .pr-section-dark h3 { color: var(--pr-white); }

.pr-section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 36px;
}

.pr-section-title .pr-overline {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--pr-accent);
    margin-bottom: 12px;
}

.pr-section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 12px;
}

.pr-section-title p { color: var(--pr-gray); font-size: 1.05rem; }

/* ========== CARDS ========== */
.pr-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pr-card {
    background: var(--pr-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--pr-border);
}

.pr-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.pr-card-img {
    height: 200px;
    overflow: hidden;
    background: var(--pr-light);
}

.pr-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.pr-card:hover .pr-card-img img { transform: scale(1.05); }

.pr-card-body { padding: 28px; }

.pr-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.pr-card-body p { color: var(--pr-gray); font-size: 0.95rem; margin-bottom: 16px; }

.pr-card-link {
    color: var(--pr-accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.pr-card-link:hover { gap: 12px; color: var(--pr-accent-dark); }

/* ========== STATS ========== */
.pr-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.pr-stat h3 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--pr-accent);
    margin-bottom: 4px;
}

.pr-stat p {
    font-size: 0.9rem;
    color: var(--pr-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ========== CTA ========== */
.pr-cta {
    background: linear-gradient(135deg, var(--pr-primary) 0%, var(--pr-primary-light) 100%);
    padding: 60px 40px;
    text-align: center;
    border-radius: 16px;
    max-width: 1000px;
    margin: 0 auto;
    color: var(--pr-white);
}

.pr-cta h2 { color: var(--pr-white); font-size: 2rem; margin-bottom: 16px; }
.pr-cta p { opacity: 0.85; max-width: 600px; margin: 0 auto 24px; font-size: 1.1rem; }

/* ========== CONTACT ========== */
.pr-contact-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) { .pr-contact-grid { grid-template-columns: 1fr !important; } }

.pr-contact-info h3 { font-family: 'Inter', sans-serif; font-size: 1.2rem; margin-bottom: 20px; }

.pr-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.pr-contact-icon {
    width: 44px;
    height: 44px;
    background: var(--pr-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--pr-accent);
    font-size: 1.2rem;
}

/* ========== IN-PAGE FOOTER ========== */
.pr-footer-custom { padding: 60px 0 40px; }

.pr-footer-custom h4 {
    color: var(--pr-white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.pr-footer-custom a { color: #94a3b8; text-decoration: none; }
.pr-footer-custom a:hover { color: var(--pr-accent); }
.pr-footer-custom p { margin-bottom: 6px; font-size: 0.9rem; color: #94a3b8; }

.pr-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) { .pr-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .pr-footer-grid { grid-template-columns: 1fr; } }

.pr-badges { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.pr-badges img { height: 50px; opacity: 0.8; transition: opacity 0.3s; }
.pr-badges img:hover { opacity: 1; }

/* ========== INNER PAGES ========== */
.pr-page-header {
    background: linear-gradient(135deg, var(--pr-primary) 0%, var(--pr-primary-light) 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: var(--pr-white);
    width: 100%;
    box-sizing: border-box;
}

.pr-page-header h1 { color: var(--pr-white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.pr-page-header .pr-breadcrumb { font-size: 0.9rem; opacity: 0.7; }
.pr-page-header .pr-breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.pr-page-header .pr-breadcrumb a:hover { color: var(--pr-accent); }

.pr-page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px 60px;
}

.pr-page-content p { margin-bottom: 1.2rem; font-size: 1.05rem; }
.pr-page-content a { color: var(--pr-accent); font-weight: 500; }
.pr-page-content a:hover { color: var(--pr-accent-dark); }
.pr-page-content h2 { margin-top: 40px; margin-bottom: 16px; }
.pr-page-content ul { padding-left: 24px; margin-bottom: 20px; }
.pr-page-content ul li { margin-bottom: 8px; }

/* ========== ASTRA FOOTER ========== */
.site-footer { background: #111827 !important; padding: 15px 0 !important; }

/* ========== UTILITIES ========== */
.pr-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.pr-text-center { text-align: center; }
.pr-mt-40 { margin-top: 40px; }
.pr-mb-40 { margin-bottom: 40px; }
