: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;
}

/* Override Kadence page wrapper to allow full-width sections */
.site-container .site-main .entry-content-wrap,
.site-container .content-wrap {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.entry-content > section,
.entry-content > .pr-section,
.entry-content > .pr-hero {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
}

/* Remove Kadence default page title/padding */
.entry-hero-layout-default {
    display: none !important;
}

body.page .content-wrap {
    padding-top: 0 !important;
}

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

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

/* Header */
#masthead,
.site-header {
    position: relative;
    z-index: 100;
    margin-bottom: 0;
    overflow: visible !important;
}

.site-header .site-main-header-wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: #fff !important;
    overflow: visible !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.site-header .site-main-header-inner-wrap {
    align-items: center !important;
    min-height: 60px !important;
    overflow: visible !important;
}

/* Logo: far left, extends below header into hero */
.site-branding {
    position: relative;
    z-index: 200;
    overflow: visible !important;
    height: 50px;
}

.site-branding .custom-logo-link {
    display: block;
    position: absolute;
    top: -8px;
    left: -30px;
    z-index: 200;
}

.site-branding .custom-logo {
    height: 170px !important;
    width: auto !important;
    max-height: none !important;
}

/* Hide the default site title text - we show it in hero */
.site-branding .site-title {
    display: none !important;
}

/* Nav items - clean text style */
.site-header .header-navigation .menu > li > a {
    padding: 8px 16px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--pr-primary) !important;
    transition: color 0.2s ease !important;
}

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

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

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

/* Mega dropdown with icons + descriptions */
.header-navigation .header-menu-container ul ul.sub-menu {
    min-width: 320px !important;
    padding: 12px 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;
}

.header-navigation .header-menu-container ul ul li.menu-item {
    border-bottom: none !important;
}

.header-navigation .header-menu-container ul ul li.menu-item > a {
    width: auto !important;
    padding: 12px 20px !important;
    color: var(--pr-primary) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    border-radius: 8px !important;
    margin: 2px 8px !important;
    transition: background 0.15s ease !important;
    line-height: 1.4 !important;
    white-space: normal !important;
}

.header-navigation .header-menu-container ul ul li.menu-item > a:hover {
    background: var(--pr-light) !important;
    color: var(--pr-primary) !important;
}

/* Dropdown menu item: icon + title + description layout */
.header-navigation .header-menu-container ul ul li.menu-item > a {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    white-space: normal !important;
    line-height: 1.4 !important;
}

.prk-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--pr-light);
    border-radius: 10px;
    margin-top: 2px;
}

.prk-menu-icon img {
    width: 22px;
    height: 22px;
}

.prk-menu-text {
    flex: 1;
}

.prk-menu-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--pr-primary);
}

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

/* Hero: flush under header, logo overlaps on top */
.pr-hero {
    position: relative;
    z-index: 10;
    margin-top: 0;
    padding-top: 0;
}

.pr-hero-content {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* Nav CTA button styling */
.pr-nav-cta > a {
    background: var(--pr-accent) !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 8px 20px !important;
}

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

/* Hero section */
.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;
}

.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-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--pr-white);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.pr-hero-company {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    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 .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 inline - wpautop wraps them in <p> with <br> */
.pr-hero-content p > .pr-btn,
.pr-cta p > .pr-btn {
    display: inline-block !important;
}

/* Hide the <br> that wpautop inserts between buttons */
.pr-hero-content p > .pr-btn + br,
.pr-cta p > .pr-btn + br {
    display: none !important;
}

/* The <p> containing buttons should flow inline */
.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 + .pr-btn {
    margin-left: 12px;
}

@media (max-width: 480px) {
    .pr-btn + .pr-btn {
        margin-left: 0;
        margin-top: 10px;
    }
}

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

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

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

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

/* Section spacing */
.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);
}

/* Section titles */
.pr-section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.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;
}

.pr-section-title {
    margin-bottom: 36px;
}

/* Service 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 bar */
.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 banner */
.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 section */
.pr-contact-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.pr-contact-grid > div {
    min-width: 0;
}

.pr-contact-grid iframe {
    display: block;
    width: 100% !important;
    min-height: 350px;
    border: 0;
    border-radius: 12px;
}

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

.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;
}

/* Footer */
.pr-footer {
    background: var(--pr-dark);
    color: #94a3b8;
    padding: 60px 0 30px;
}

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

.pr-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.pr-footer a:hover {
    color: var(--pr-accent);
}

.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-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* ISO / trust badges */
.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);
}

.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-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.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);
}

/* Utilities */
.pr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.pr-mb-0 { margin-bottom: 0; }
.pr-mt-40 { margin-top: 40px; }
.pr-mb-40 { margin-bottom: 40px; }

/* In-page footer section */
.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;
}

/* Override Kadence's built-in footer to be minimal */
.site-footer {
    background: #111827 !important;
    padding: 15px 0 !important;
}

.site-footer .footer-widget-area {
    display: none !important;
}

/* Inner page header breadcrumb links */
.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);
}

/* Page content section inside Kadence full-width */
.pr-page-header + .pr-page-content {
    padding-top: 50px;
    padding-bottom: 60px;
}

.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;
}
