﻿/*
 * NML Center - Main Stylesheet
 * Version: 1.3 (Final)
 * Description: A futuristic, professional theme for a merchant services website.
*/

/* 1. CSS Variables & Root Styles */
:root {
    --primary-color: #6366f1; /* Indigo */
    --secondary-color: #8b5cf6; /* Violet */
    --accent-color: #38bdf8; /* Light Blue */
    --dark-bg-primary: #020617; /* Slate 950 - Very Dark Blue */
    --dark-bg-secondary: #0f172a; /* Slate 900 - Dark Blue */
    --text-primary: #e2e8f0; /* Slate 200 - Light Gray */
    --text-secondary: #94a3b8; /* Slate 400 - Gray */
    --border-color: #1e293b; /* Slate 800 - Darker Border */
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow-light: 0 4px 10px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 2. Base & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--dark-bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.25rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* 3. Header & Navigation */
.header {
    background: rgba(15, 23, 42, 0.8); /* Slate 900 with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.header-contact {
    display: block;
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger .bar {
    width: 28px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg);
}

/* 4. Buttons & Forms */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--dark-bg-secondary);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

#formLoader {
    text-align: center;
    margin-top: 1rem;
}

/* 5. Footer */
.footer {
    background: var(--dark-bg-primary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul a {
    color: var(--text-secondary);
}
.footer-section ul a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 6. Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: -150px; /* Initially hidden */
    left: 0;
    right: 0;
    background: var(--dark-bg-secondary);
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
    box-shadow: var(--shadow-medium);
}

.cookie-notice.visible {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cookie-content p {
    margin: 0;
    flex-grow: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-accept {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* 7. Page Specific & Sections */
.page-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title h2 {
    font-size: 2.5rem;
}
.section-title p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.hero {
    padding: 6rem 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 1.5rem 0 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--dark-bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--dark-bg-primary);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.cta-section {
    background: var(--gradient-main);
    padding: 5rem 0;
    text-align: center;
    border-radius: 16px;
    margin: 5rem 0;
}
.cta-content {
    max-width: 650px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
}
.cta-content p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}


/* 8. Legal Pages */
.legal-hero {
    padding: 4rem 0;
    text-align: center;
}

.legal-title {
    font-size: 3rem;
}

.legal-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.legal-content {
    padding: 3rem 0 5rem 0;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
}

.legal-text h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-text h2:first-of-type {
    margin-top: 0;
}

.legal-text ul {
    list-style: none;
    padding-left: 0;
}
.legal-text ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.legal-text ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.legal-text a {
    font-weight: 500;
}

.legal-text .contact-block {
    background: var(--dark-bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    margin-top: 2rem;
}

/* 9. Services Page Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--dark-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    flex-grow: 1; /* Pushes button to bottom */
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.service-features li svg {
    flex-shrink: 0;
    margin-top: 5px;
    color: var(--accent-color);
}

.service-card .btn {
    margin-top: 2rem;
    width: fit-content;
}

/* 10. About Page Styles */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.value-card {
    background: var(--dark-bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.value-card h3 {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* 11. Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background: var(--dark-bg-secondary);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.contact-form-section h2 {
    font-size: 2rem;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--dark-bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.info-card p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-card a {
    word-break: break-all;
}

/* 12. Thank You Page */
.thank-you-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thank-you-content {
    max-width: 650px;
}

.success-icon {
    margin-bottom: 2rem;
    color: var(--primary-color);
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* 13. Responsive Design */
@media (max-width: 992px) {
    .header-contact {
        display: none;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1, .hero-title, .legal-title { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Initially off-screen */
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--dark-bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease-in-out;
        box-shadow: var(--shadow-medium);
        padding-top: 60px; /* Space for header */
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-grid {
        padding: 2rem;
    }
}
