/* --- GLOBAL LOGO CONSISTENCY --- */
.logo-container img {
    height: 35px !important;
    width: auto !important;
}

header.scrolled .logo-container img {
    height: 28px !important;
}

.footer-logo img {
    height: 30px !important;
    width: auto !important;
}

/* --- GLOBAL GLASS BUTTON CONSISTENCY --- */
.btn-primary, 
button.wpforms-submit, 
input[type="submit"] {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    padding: 1.2rem 3.5rem !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    backdrop-filter: blur(10px) !important;
    cursor: pointer !important;
}

.btn-primary:hover, 
button.wpforms-submit:hover, 
input[type="submit"]:hover {
    transform: translateY(-3px) scale(1.05) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #fff !important;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2) !important;
}

/* --- FORM FIELD CONSISTENCY --- */
.wpforms-field input, 
.wpforms-field textarea, 
.wpforms-field select {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(61, 90, 128, 0.2) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 14px !important;
}

:root {
    --primary: #3d5a80;
    --accent: #5a7fa0;
    --dark: #020617;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(61, 90, 128, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark);
    color: #f8fafc;
    overflow-x: hidden;
    line-height: 1.6;
}

.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 0% 0%, rgba(61, 90, 128, 0.15) 0%, transparent 35%),
            radial-gradient(circle at 100% 100%, rgba(90, 127, 160, 0.1) 0%, transparent 35%);
    z-index: -1;
}

header {
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: padding 1.3s ease, background 1.3s ease;
}

header.scrolled {
    padding: 0.7rem 0;
    background: rgba(2, 6, 23, 0.8);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header menu output from wp_nav_menu */
.header-links-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-links-right li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-links-right a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.9rem;
}

.header-links-right a:hover {
    color: #fff;
}

.header-links-right ul { gap: 1rem; }

section {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s all ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: transparent;
    padding: 4rem 1.5rem 2rem;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.footer-links li {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    color: #64748b;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .logo-container img {
        height: 24px !important;
    }

    header.scrolled .logo-container img {
        height: 22px !important;
    }

    .footer-links {
        gap: 1rem 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

.logo-container a {
    display: inline-flex;
    align-items: center;
}

.logo-container .custom-logo {
    height: 35px !important;
    width: auto !important;
}

header.scrolled .logo-container .custom-logo {
    height: 28px !important;
    width: auto !important;
}

@media (max-width: 767px) {
    .logo-container .custom-logo {
        height: 24px !important;
    }

    header.scrolled .logo-container .custom-logo {
        height: 22px !important;
    }
}

.text-center {
    text-align: center !important;
}



/* =========================
   Homepage Master (index.php)
   ========================= */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 1.1;
    font-weight: 700;
    background: linear-gradient(to bottom, #fff 40%, rgba(255,255,255,0.4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.features {
    max-width: 1300px;
    margin: 0 auto;
    padding: 8rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--accent);
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.8;
}

.testimonial-section {
    padding: 8rem 1.5rem;
    background: rgba(61, 90, 128, 0.05);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonial-container {
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 1.5rem;
    transition: 0.5s;
}

.testimonial-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--accent);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.testimonial-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.testimonial-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 4px;
}

.testimonial-text {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
    font-style: italic;
}

.industries {
    padding: 8rem 1.5rem;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.industry-card {
    background: var(--glass);
    border: 1px solid var(--border);
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    transition: 0.5s;
}

.industry-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--accent);
    transform: translateY(-10px);
}

.industry-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.industry-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.industry-card p {
    color: #94a3b8;
}

.marquee {
    padding: 4rem 0;
    overflow: hidden;
    white-space: nowrap;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee-content {
    display: inline-block;
    animation: scroll 50s linear infinite;
}

.marquee-content span {
    font-size: 1.5rem;
    font-weight: 800;
    color: #334155;
    margin: 0 3rem;
    text-transform: uppercase;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.wms-driveby {
    padding: 4rem 1.5rem;
}

.wms-border-wrap {
    max-width: 900px;
    margin: 0 auto;
    border: 1px dashed rgba(90, 127, 160, 0.4);
    border-radius: 2rem;
    padding: 3rem 2rem;
    background: rgba(90, 127, 160, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wms-badge {
    display: inline-block;
    background: rgba(90, 127, 160, 0.1);
    border: 1px solid rgba(90, 127, 160, 0.3);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.wms-icon-branded {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
}

.cta {
    text-align: center;
    padding: 10rem 1.5rem;
}

.cta h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

.cta p {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 3rem;
}

/* =========================
   Default Page Template (page.php)
   ========================= */

.content-area {
    padding: 180px 1.5rem 100px;
    max-width: 700px;
    margin: 0 auto;
    min-height: 70vh;
}

.content-area h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    color: #fff;
    text-align: left;
}

/* WPForms polish specific to content pages */
.wpforms-field-label {
    color: #94a3b8 !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
}

.wpforms-field select {
    height: auto !important;
    line-height: 1.5 !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 18px !important;
}

/* =========================
   404 Page Styling
   ========================= */

.error404 .content-area {
    padding-top: 240px;
}

.pharmver-404 {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.pharmver-404-icon {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.pharmver-404-icon i {
    font-size: 3rem;
    color: var(--accent);
}

.pharmver-404 h1 {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    margin-bottom: 1.25rem;
}

.pharmver-404-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 620px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.pharmver-404-bullets {
    margin: 0 auto 3.5rem;
    max-width: 620px;
    display: grid;
    gap: 1.25rem;
    text-align: left;
}

.pharmver-404-bullet {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.4rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.pharmver-404-bullet i {
    color: var(--accent);
    font-size: 1.25rem;
    margin-top: 3px;
}

.pharmver-404-bullet span {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.7;
}

.pharmver-404-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Secondary button variant */
.btn-secondary {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #e5e7eb !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #ffffff !important;
}

/* Mobile tuning */
@media (max-width: 767px) {
    .pharmver-404-icon {
        width: 96px;
        height: 96px;
        margin-bottom: 2rem;
    }

    .pharmver-404-icon i {
        font-size: 2.4rem;
    }

    .pharmver-404-bullets {
        margin-bottom: 3rem;
    }
}