/*---------------------------------------------------------------------
File Name: marketing.css
Shared conversion / lead-gen components: CTAs, hero copy, feature cards,
comparison blocks, trust strips. Colors come from css/tokens.css:
  --navy    deep brand blue (headings / large fills)
  --accent  pure logo blue (links, borders, highlights)
  --cta     logo red (primary call-to-action buttons)
  --charcoal logo charcoal (dark sections / strips)
---------------------------------------------------------------------*/

/* ---------- Call-to-action buttons ----------
   Primary = brand red action color. Secondary = deep-blue outline. */
.cta-btn {
    display: inline-block;
    background: var(--cta);
    color: #fff !important;
    font-size: 17px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--cta);
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}

.cta-btn:hover {
    background: var(--cta-700);
    border-color: var(--cta-700);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.28);
}

.cta-btn.cta-secondary {
    background: transparent;
    color: var(--navy) !important;
    border-color: var(--navy);
}

.cta-btn.cta-secondary:hover {
    background: var(--navy);
    color: #fff !important;
}

.cta-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 2rem 0;
}

/* ---------- Home: value-prop section below the fold ---------- */
.home-section {
    padding: 6vh 10vw;
}

.home-section.alt {
    background: var(--grad-wash);
}

.home-section .section-lead {
    max-width: 820px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
}

.home-section .section-lead p {
    text-align: center;
    font-size: 19px;
    line-height: 31px;
    color: #444;
}

.home-section h2 {
    text-align: center;
    border-bottom: none;
    margin-bottom: 1rem !important;
}

/* ---------- Feature / capability cards ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--accent);
    border-radius: 12px;
    padding: 28px 26px;
    box-shadow: 0 4px 14px rgba(10, 26, 140, 0.08);
    transition: all 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(10, 26, 140, 0.15);
}

.feature-card .metric {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}

.feature-card .metric small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
}

.feature-card h3 {
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 10px 0 8px 0;
}

.feature-card p {
    font-size: 15px;
    line-height: 24px;
    color: #555;
    text-align: left;
}

/* ---------- Application / audience chips ---------- */
.application-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 1.5rem auto 0 auto;
    max-width: 900px;
    padding-left: 0 !important;
}

.application-list li {
    background: #fff;
    border: 1px solid var(--accent);
    color: var(--navy) !important;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 500;
    list-style: none;
}

.application-list li::before {
    content: "" !important;
    margin: 0 !important;
}

/* ---------- "Why Quantum Components" comparison ---------- */
.why-list {
    max-width: 820px;
    margin: 1.5rem auto 0 auto;
    padding-left: 0 !important;
}

.why-list li {
    background: #fff;
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 16px 22px !important;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 16px !important;
    line-height: 26px !important;
    list-style: none;
    text-indent: 0 !important;
}

.why-list li::before {
    content: "" !important;
    margin: 0 !important;
}

.why-list li strong {
    color: var(--navy);
}

/* ---------- Trust / final CTA strip ---------- */
.cta-strip {
    background: var(--grad-charcoal);
    color: #fff;
    text-align: center;
    padding: 5vh 10vw;
}

.cta-strip h2 {
    color: #fff !important;
    border-bottom: none;
    margin-bottom: 1rem !important;
}

.cta-strip p {
    text-align: center;
    color: var(--on-dark-soft);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}

/* Primary button in the strip = brand red action color. */
.cta-strip .cta-btn {
    background: var(--cta);
    color: #fff !important;
    border-color: var(--cta);
}

.cta-strip .cta-btn:hover {
    background: var(--cta-700);
    border-color: var(--cta-700);
    color: #fff !important;
}

/* Secondary button in the strip stays a light outline on the dark bg. */
.cta-strip .cta-btn.cta-secondary {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.6);
}

.cta-strip .cta-btn.cta-secondary:hover {
    background: #fff;
    color: var(--charcoal) !important;
    border-color: #fff;
}

/* ---------- "Other free tools" cross-link strip ---------- */
.tools-nav {
    margin: 3.5rem 0 1rem 0;
}

.tools-nav-title {
    text-align: center;
    border-bottom: none !important;
    margin-bottom: 1.5rem !important;
}

.tools-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.tools-nav-card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--r-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tools-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--navy);
}

.tools-nav-name {
    display: block;
    color: var(--navy);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.tools-nav-desc {
    display: block;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 20px;
}

/* ---------- Inline CTA banner for tool pages ---------- */
.tool-cta-banner {
    background: var(--grad-wash);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 3rem 0 1rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 255, 0.15);
}

.tool-cta-banner .tool-cta-text {
    flex: 1 1 340px;
}

.tool-cta-banner .tool-cta-text h3 {
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.tool-cta-banner .tool-cta-text p {
    margin: 0;
    font-size: 15px;
    line-height: 23px;
    text-align: left;
    color: #444;
}

.tool-cta-banner .cta-btn {
    flex: 0 0 auto;
}

/* ---------- Contact / Quote two-column layout ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}

.contact-aside {
    background: var(--grad-wash);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px 30px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
}

.contact-aside h2 {
    border-bottom: none !important;
    margin: 0 0 0.75rem 0 !important;
    font-size: 24px !important;
}

.contact-aside .contact-intro {
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-soft);
    text-align: left;
    margin-bottom: 1.5rem;
}

.contact-details {
    list-style: none;
    padding-left: 0 !important;
    margin: 0 0 1.5rem 0;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    line-height: 1.4;
}

.contact-details li::before { content: none !important; }

.contact-details i {
    color: var(--accent);
    font-size: 18px;
    width: 22px;
    text-align: center;
    margin-top: 3px;
    flex: 0 0 auto;
}

.contact-details .contact-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink-faint);
    font-weight: 600;
}

.contact-details a,
.contact-details div > span:last-child {
    color: var(--navy);
    font-weight: 500;
    font-size: 15px;
}

.contact-details a:hover { color: var(--accent-600); }

.contact-cta .cta-btn { width: 100%; }

@media (max-width: 860px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .contact-aside {
        position: static;
        order: -1;   /* show contact info above the form on small screens */
    }
}

/* ---------- Simple quote form ---------- */
.quote-form-wrap {
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px 34px;
    box-shadow: var(--shadow-md);
}

.quote-form-wrap label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin: 16px 0 6px 0;
    font-size: 15px;
}

.quote-form-wrap input,
.quote-form-wrap select,
.quote-form-wrap textarea {
    width: 100%;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 15px;
    text-align: left;
}

.quote-form-wrap textarea {
    min-height: 130px;
    resize: vertical;
}

.quote-form-wrap .cta-btn {
    width: 100%;
    margin-top: 24px;
    border: none;
}

.quote-form-wrap .required-star {
    color: #dc3545;
}

.form-note {
    text-align: center;
    font-size: 14px;
    color: var(--ink-faint);
    margin-top: 18px;
}

/* ---------- Detailed custom-photodetector form ---------- */
.custom-form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 18px 28px 28px;
    margin-top: 1rem;
}

/* Each row of the spec table becomes a label + control on one line. */
.custom-form-card table {
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    overflow: visible;
}

.custom-form-card tr {
    border-bottom: 1px solid var(--line);
}

.custom-form-card tbody tr:hover { background: transparent; }

.custom-form-card td {
    border: none !important;
    text-align: left;
    padding: 11px 6px;
    vertical-align: middle;
}

.custom-form-card td:first-child {
    width: 55%;
}

.custom-form-card td p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
    text-align: left;
}

.custom-form-card td p small {
    color: var(--ink-faint);
    font-weight: 400;
}

/* Full-width, consistently styled inputs (overrides legacy .form sizing). */
.custom-form-card input,
.custom-form-card select,
.custom-form-card textarea {
    width: 100% !important;
    height: auto;
    border: 2px solid #cbd5e1 !important;
    border-radius: var(--r-sm);
    padding: 9px 11px;
    font-size: 15px;
    text-align: left;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-form-card input:focus,
.custom-form-card select:focus,
.custom-form-card textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(79, 108, 247, 0.18);
    outline: none;
}

.custom-form-card .col-lg-6:last-child td:first-child {
    width: auto;
}

.custom-form-card textarea {
    min-height: 320px;
    resize: vertical;
}

.custom-form-card button {
    background: var(--navy);
    color: #fff;
    width: 100%;
    margin: 14px 0 0 0;
    padding: 13px 28px;
    border-radius: var(--r-sm);
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.custom-form-card button:hover {
    background: var(--navy-700);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .home-section,
    .cta-strip { padding-left: 6vw; padding-right: 6vw; }
    .tool-cta-banner { flex-direction: column; align-items: flex-start; }
    .custom-form-card td:first-child { width: 48%; }
}
