/* ========================================
   TMLC - Target Marketing List Corporation
   Navy Executive Color Scheme
   ======================================== */

/* --- Custom Properties --- */
:root {
    --primary: #1B365D;
    --secondary: #2E5090;
    --dark: #0F1F33;
    --white: #FFFFFF;
    --light: #F4F7FB;
    --accent: #C8102E;
    --accent-hover: #A00D24;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-500: #64748B;
    --gray-700: #334155;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-max: 1140px;
    --header-height: 72px;
    --radius: 8px;
    --shadow-sm: 0 1px 3px rgba(15, 31, 51, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 31, 51, 0.1);
    --shadow-lg: 0 8px 30px rgba(15, 31, 51, 0.12);
    --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition);
}

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

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.btn-block {
    width: 100%;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 36px;
    width: auto;
}

/* Nav Toggle (mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    position: relative;
    transition: background-color var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    transition: transform var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--light);
}

.btn-nav {
    background-color: var(--primary);
    color: var(--white) !important;
    font-weight: 600;
}

.btn-nav:hover {
    background-color: var(--secondary);
    color: var(--white) !important;
}

/* --- Hero --- */
.hero {
    margin-top: var(--header-height);
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: radial-gradient(ellipse at 70% 50%, rgba(46, 80, 144, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 680px;
}

.text-accent {
    color: #F4F7FB;
    position: relative;
}

.text-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 560px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    opacity: 0.7;
    margin-top: 4px;
}

/* --- Sections --- */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
}

/* --- Services --- */
.services {
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light);
    border-radius: var(--radius);
    color: var(--primary);
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* --- Why Us --- */
.why-us {
    background-color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.why-card {
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.why-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.why-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.why-card p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* --- Contact / Lead Form --- */
.contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info p {
    font-size: 1.0625rem;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.7;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
}

.contact-features svg {
    color: #4ADE80;
    flex-shrink: 0;
}

.contact-form-wrap {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.lead-form .form-group {
    margin-bottom: 16px;
}

.lead-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 6px;
}

.req {
    color: var(--accent);
}

.lead-form input,
.lead-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-family);
    font-size: 0.9375rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--dark);
    background-color: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.lead-form input:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(46, 80, 144, 0.15);
}

.lead-form input.error,
.lead-form textarea.error {
    border-color: var(--accent);
}

.field-error {
    display: block;
    font-size: 0.8125rem;
    color: var(--accent);
    margin-top: 4px;
    min-height: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lead-form textarea {
    resize: vertical;
    min-height: 100px;
}

.lead-form .btn-block {
    margin-top: 8px;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 12px;
}

/* Form success state */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success .checkmark {
    width: 64px;
    height: 64px;
    background-color: #4ADE80;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.form-success h3 {
    color: var(--dark);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--gray-500);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 48px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 12px;
    opacity: 0.9;
}

.footer-tagline {
    font-size: 0.875rem;
    max-width: 300px;
    line-height: 1.6;
}

.site-footer h4 {
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.8125rem;
    text-align: center;
    opacity: 0.6;
}

/* --- Fade-in Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        padding: 80px 24px 24px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
        z-index: 999;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .btn-nav {
        text-align: center;
        margin-top: 8px;
    }

    .hero {
        padding: 60px 0 48px;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .stat-item {
        text-align: left;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.625rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 16px;
    }

    .service-card {
        padding: 24px 20px;
    }

    .contact-form-wrap {
        padding: 24px 20px;
    }
}
