/* ===========================
   TL NextWave Merchant Services
   Shared Stylesheet
=========================== */

:root {
    --primary-color: #0b132b;
    --primary-light: #1e293b;
    --secondary-color: #1c64f2;
    --secondary-dark: #1d4ed8;
    --accent-color: #f59e0b;
    --accent-dark: #d97706;
    --text-color: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

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

/* ===== Navigation ===== */
nav {
    background-color: var(--primary-color);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    height: 42px;
    width: auto;
    border-radius: 4px;
}

.nav-logo-text {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-logo-text span {
    color: var(--accent-color);
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-toggle .caret {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.has-dropdown.open .dropdown-toggle .caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    list-style: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.has-dropdown.open .dropdown-menu,
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--primary-color) !important;
    font-size: 0.9rem;
    font-weight: 500 !important;
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--secondary-color) !important;
}

@media (max-width: 900px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease;
        background: rgba(255,255,255,0.03);
    }

    .has-dropdown.open .dropdown-menu {
        max-height: 400px;
        padding: 6px 0 6px 14px;
    }

    .dropdown-menu li a {
        color: #cbd5e1 !important;
    }

    .dropdown-menu li a:hover {
        background: rgba(255,255,255,0.06);
        color: var(--white) !important;
    }
}

.nav-btn {
    background: linear-gradient(135deg, #1c64f2, #2563eb);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    white-space: nowrap;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

/* ===== Page Header (sub-pages) ===== */
.page-header {
    background: radial-gradient(circle at top, #1e293b 0%, #0b132b 100%);
    color: var(--white);
    text-align: center;
    padding: 70px 20px;
}

.page-header .eyebrow {
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.page-header p {
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.breadcrumb {
    margin-top: 18px;
    font-size: 0.85rem;
    color: #64748b;
}

.breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
}

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

/* ===== Hero (home) ===== */
.hero {
    background: radial-gradient(circle at top, #1e293b 0%, #0b132b 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 20px 80px;
}

.hero-logo {
    max-width: 240px;
    width: 100%;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.industries {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.industry-pill {
    background: rgba(28, 100, 242, 0.15);
    border: 1px solid rgba(28, 100, 242, 0.35);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.industry-pill:hover {
    background: rgba(28, 100, 242, 0.28);
    transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
    padding: 70px 20px;
}

.section.alt {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Cards / Grids ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--secondary-color);
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.card .icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
}

.card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.card .link-arrow {
    display: inline-block;
    margin-top: 14px;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Feature list with checkmarks */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding: 9px 0;
    color: #475569;
    padding-left: 28px;
    position: relative;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* Two-column layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 800px) {
    .two-col { grid-template-columns: 1fr; }
}

.stat-strip {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 40px 20px;
    background: var(--primary-color);
}

.stat {
    text-align: center;
    color: var(--white);
}

.stat .num {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat .label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== Contact Section (shared) ===== */
.contact-section {
    background-color: var(--primary-color);
    padding: 70px 20px;
    text-align: center;
}

.contact-box h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 10px;
}

.contact-box p {
    color: #94a3b8;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.contact-item {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.contact-item:hover {
    color: var(--accent-color);
}

/* ===== Contact Form ===== */
.form-card {
    background: var(--white);
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(28, 100, 242, 0.15);
}

.form-error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.form-status {
    margin-top: 18px;
    padding: 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    background: #dcfce7;
    color: #166534;
    display: block;
}

/* ===== FAQ Accordion ===== */
.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-question .icon {
    font-size: 1.3rem;
    color: var(--secondary-color);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

/* ===== Footer ===== */
footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 45px 20px 20px;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}

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

/* ===== Scroll Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== Responsive Nav ===== */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 5%;
        gap: 0;
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
    }

    .nav-links .nav-btn {
        margin: 14px 0;
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .hero h1, .page-header h1 { font-size: 2rem; }
    .hero p.subtitle { font-size: 1rem; }
    .hero-logo { max-width: 180px; }
    .section-title { font-size: 1.6rem; }
}

/* ===== SVG Icons ===== */
.icon-svg {
    width: 34px;
    height: 34px;
    color: var(--secondary-color);
    margin-bottom: 14px;
}

.icon-svg.accent { color: var(--accent-color); }

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(28, 100, 242, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.icon-circle .icon-svg {
    margin-bottom: 0;
    width: 26px;
    height: 26px;
}

/* ===== Testimonials ===== */
.testimonial-card {
    background: var(--white);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card .icon-svg {
    color: var(--accent-color);
    width: 28px;
    height: 28px;
    margin-bottom: 14px;
}

.testimonial-card p.quote-text {
    color: var(--text-color);
    font-size: 0.98rem;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.testimonial-author .name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.testimonial-author .role {
    color: var(--text-light);
    font-size: 0.82rem;
}

.stars {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

/* ===== Google Map ===== */
.map-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    line-height: 0;
}

.map-wrap iframe {
    width: 100%;
    height: 340px;
    border: 0;
    display: block;
}

/* ===== Floating Call Now Button ===== */
.floating-call {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
    z-index: 900;
    text-decoration: none;
    transition: transform 0.2s;
}

.floating-call:hover {
    transform: scale(1.08);
}

.floating-call .icon-svg {
    width: 24px;
    height: 24px;
    margin: 0;
    color: var(--white);
}

@media (max-width: 768px) {
    .floating-call { bottom: 16px; right: 16px; width: 52px; height: 52px; }
}

/* ===== Legal pages ===== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
}

.legal-content h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 32px 0 12px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p, .legal-content li {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 0.97rem;
}

.legal-content ul {
    padding-left: 22px;
}

.legal-updated {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Footer legal row */
.footer-legal {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.8rem;
}

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

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}
