/**
 * QEDIC marketing site — layout polish, spacing, and visual hierarchy
 * Loaded after style.css
 */

:root {
    --qedic-navy: #0b1f33;
    --qedic-blue: #0a4c8b;
    --qedic-blue-soft: #e8f1fa;
    --qedic-accent: #1a7fd4;
    --qedic-text: #1f2933;
    --qedic-muted: #5c6b7a;
    --qedic-radius: 14px;
    --qedic-shadow: 0 12px 40px rgba(11, 31, 51, 0.1);
    --qedic-shadow-hover: 0 20px 50px rgba(11, 31, 51, 0.14);
}

/* Typography */
body {
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--qedic-text);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand {
    font-family: "DM Sans", system-ui, sans-serif;
    letter-spacing: -0.02em;
}

/* Tame legacy global section padding from style.css */
.page > section:not(.hero-section) {
    padding-top: 3.75rem !important;
    padding-bottom: 3.75rem !important;
}

@media (min-width: 992px) {
    .page > section:not(.hero-section) {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* Top announcement — replaces marquee */
.qedic-topbar {
    background: linear-gradient(90deg, var(--qedic-navy) 0%, var(--qedic-blue) 100%);
    color: #e8f1fa;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.55rem 0;
    text-align: center;
    letter-spacing: 0.02em;
}

.qedic-topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    line-height: 1.45;
}

@media (min-width: 768px) {
    .qedic-topbar {
        font-size: 0.9375rem;
    }
}

/* Navbar */
.qedic-navbar {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
    border-bottom: 1px solid rgba(11, 31, 51, 0.06);
}

.qedic-navbar .nav-link {
    font-weight: 500;
    color: var(--qedic-text) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.qedic-navbar .nav-link:hover {
    color: var(--qedic-blue) !important;
    background: rgba(10, 76, 139, 0.06);
}

.qedic-navbar .dropdown-item {
    font-size: 0.9375rem;
    padding: 0.5rem 1.15rem;
}

.qedic-navbar .dropdown-item:hover {
    background: var(--qedic-blue-soft);
    color: var(--qedic-blue);
}

.qedic-navbar .btn-primary {
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(10, 76, 139, 0.35);
}

/* Hero */
.hero-section {
    position: relative;
    isolation: isolate;
    min-height: 82vh;
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        105deg,
        rgba(11, 31, 51, 0.88) 0%,
        rgba(11, 31, 51, 0.55) 45%,
        rgba(10, 76, 139, 0.35) 100%
    );
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem !important;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-section .lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92) !important;
    max-width: 34rem;
    margin-bottom: 1.75rem !important;
}

.qedic-hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero-section .btn-lg {
    border-radius: 10px;
    padding: 0.75rem 1.35rem;
    font-weight: 600;
}

.hero-section .btn-outline-light {
    border-width: 2px;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.65);
    background: transparent;
}

.hero-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

@media (max-width: 576px) {
    .hero-section .btn-lg {
        display: block;
        width: 100%;
        margin: 0 0 0.75rem 0 !important;
    }
}

/* Section headings */
.qedic-section-head {
    margin-bottom: 2.5rem;
}

.qedic-section-head .qedic-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--qedic-blue);
    margin-bottom: 0.5rem;
}

.qedic-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--qedic-text);
    margin-bottom: 0.65rem;
}

.qedic-section-head .lead,
.qedic-section-head .text-muted {
    font-size: 1.0625rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Service cards */
.qedic-service-card {
    display: block;
    height: 100%;
    border-radius: var(--qedic-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--qedic-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-decoration: none !important;
    color: inherit !important;
}

.qedic-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--qedic-shadow-hover);
    color: inherit !important;
}

.qedic-service-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--qedic-navy);
}

.qedic-service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.qedic-service-card:hover .qedic-service-card__media img {
    transform: scale(1.05);
}

.qedic-service-card__body {
    padding: 1.35rem 1.25rem 1.5rem;
    text-align: center;
}

.qedic-service-card__body h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--qedic-text);
}

.qedic-service-card__body p {
    font-size: 0.9rem;
    color: var(--qedic-muted);
    margin-bottom: 0.65rem;
    line-height: 1.5;
}

.qedic-service-card__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--qedic-blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.qedic-service-card:hover .qedic-service-card__link {
    text-decoration: underline;
}

/* Why us */
.qedic-why-card {
    border-radius: var(--qedic-radius);
    padding: 2rem 1.5rem !important;
    height: 100%;
    border: 1px solid rgba(11, 31, 51, 0.06);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.qedic-why-card:hover {
    box-shadow: var(--qedic-shadow);
    border-color: rgba(10, 76, 139, 0.15);
}

.qedic-why-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--qedic-blue-soft), #fff);
    color: var(--qedic-blue);
    font-size: 1.35rem;
}

.qedic-why-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--qedic-text);
}

.qedic-why-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* CTA band — complements .cta-section from style.css */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 60% at 70% 50%,
        rgba(26, 127, 212, 0.25),
        transparent 55%
    );
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.cta-section .btn-lg {
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* Inner pages */
.qedic-page-prose {
    font-size: 1.0625rem;
    line-height: 1.75;
}

.qedic-page-prose p {
    margin-bottom: 1.15rem;
}

.qedic-page-prose h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.qedic-lead-card {
    border-radius: var(--qedic-radius);
    border: 1px solid rgba(11, 31, 51, 0.08);
    box-shadow: var(--qedic-shadow);
}

.page-header h1 {
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
    font-weight: 700;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.page-header .breadcrumb {
    font-size: 0.9rem;
}

.page-header .breadcrumb a:hover {
    text-decoration: underline;
    color: #fff !important;
}

/* Footer */
.qedic-footer {
    padding-top: 3.5rem !important;
}

.qedic-footer .footer-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
}

.qedic-footer .footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.qedic-footer .footer-social:hover {
    background: var(--qedic-accent);
    color: #fff;
    transform: translateY(-2px);
}

.qedic-footer .form-control {
    border-radius: 8px 0 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.qedic-footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.qedic-footer .input-group .btn-primary {
    border-radius: 0 8px 8px 0;
}

.qedic-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
}

/* Contact form card */
.contact-form-clean {
    border-radius: var(--qedic-radius);
}

.page section.qedic-map-embed {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.qedic-map-embed iframe {
    display: block;
    vertical-align: top;
}

/* Product listing pages */
.qedic-product-grid .pro-img {
    margin-bottom: 1.75rem;
}

.qedic-product-grid .pro-img img {
    border-radius: 12px;
    box-shadow: var(--qedic-shadow);
    width: 100%;
    height: auto;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.qedic-product-grid .pro-img:hover img {
    transform: translateY(-4px);
    box-shadow: var(--qedic-shadow-hover);
}

.qedic-product-grid .pro-img p {
    margin-top: 0.65rem;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--qedic-text);
}
