/*
Theme Name: Flatlined SEO Theme
Theme URI: https://flatlinedseo.com
Author: Flatlined SEO
Author URI: https://flatlinedseo.com
Description: A modern, conversion-focused theme for Flatlined SEO - AI Search Optimization services. Features a dark medical/emergency room aesthetic with cyan and green accents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flatlined-seo
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.3
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --color-dark-100: #0a0a0f;
    --color-dark-200: #12121a;
    --color-dark-300: #1a1a25;
    --color-dark-400: #252533;
    --color-cyan-500: #00D9FF;
    --color-cyan-600: #00b8d9;
    --color-green-500: #00FF88;
    --color-green-600: #00cc6a;
    --color-yellow-500: #FFD700;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark-100);
    color: var(--color-gray-300);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-cyan-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-cyan-600);
}

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--color-gray-400);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-cyan-500), var(--color-green-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow-cyan {
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5), 0 0 40px rgba(0, 217, 255, 0.3);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

.section {
    padding: 6rem 0;
    position: relative;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-dark-300);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.site-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-link {
    color: var(--color-gray-400);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-cyan-500);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-dark-100);
    padding: 2rem;
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    color: var(--color-gray-300);
    font-size: 1.25rem;
    border-bottom: 1px solid var(--color-dark-300);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-cyan-500), var(--color-green-500));
    color: var(--color-dark-100);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
    color: var(--color-dark-100);
}

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

.btn-secondary:hover {
    background: var(--color-cyan-500);
    color: var(--color-dark-100);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
    background: var(--color-dark-200);
    border: 1px solid var(--color-dark-300);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--color-cyan-500);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-popular {
    border-color: var(--color-yellow-500);
    position: relative;
}

.card-popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-yellow-500);
    color: var(--color-dark-100);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 1rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--color-gray-300);
    margin-bottom: 2rem;
}

/* Heartbeat Animation */
.heartbeat-line {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    height: 100px;
    opacity: 0.3;
    overflow: hidden;
}

.heartbeat-svg {
    width: 200%;
    height: 100%;
    animation: heartbeat-scroll 4s linear infinite;
}

@keyframes heartbeat-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    text-align: center;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 255, 136, 0.1));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-cyan-500);
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.service-price .amount {
    background: linear-gradient(135deg, var(--color-cyan-500), var(--color-green-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-price .period {
    font-size: 1rem;
    color: var(--color-gray-400);
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.service-features li::before {
    content: '✓';
    color: var(--color-green-500);
    font-weight: 700;
}

/* ==========================================================================
   Problems Section
   ========================================================================== */
.problems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.problem-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-dark-200);
    border-radius: 0.75rem;
    border-left: 4px solid #ef4444;
}

.problem-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #ef4444;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--color-dark-200);
    border: 1px solid var(--color-dark-300);
    border-radius: 1rem;
    padding: 2rem;
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-gray-300);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-cyan-500), var(--color-green-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark-100);
    font-weight: 700;
}

.testimonial-name {
    color: #ffffff;
    font-weight: 600;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 255, 136, 0.1));
    border-top: 1px solid var(--color-cyan-500);
    border-bottom: 1px solid var(--color-green-500);
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--color-dark-200);
    border-top: 1px solid var(--color-dark-300);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.footer-brand p {
    margin-top: 1rem;
    color: var(--color-gray-500);
}

.footer-heading {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-gray-400);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-cyan-500);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-dark-300);
    text-align: center;
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-gray-300);
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--color-dark-300);
    border: 1px solid var(--color-dark-400);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-cyan-500);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-gray-500);
}

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

/* ==========================================================================
   Page Templates
   ========================================================================== */
.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--color-dark-200) 0%, var(--color-dark-100) 100%);
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-content {
    padding: 4rem 0;
}

.page-content h2 {
    margin-top: 2rem;
}

.page-content ul,
.page-content ol {
    margin: 1rem 0 1rem 2rem;
    color: var(--color-gray-400);
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--color-dark-300);
}

.comparison-table th {
    background: var(--color-dark-200);
    color: #ffffff;
    font-weight: 600;
}

.comparison-table td:first-child {
    text-align: left;
    color: var(--color-gray-300);
}

.check-icon {
    color: var(--color-green-500);
}

.x-icon {
    color: var(--color-gray-600);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-cyan-500), var(--color-green-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--color-gray-400);
    margin-top: 0.5rem;
}

/* Case Studies */
.case-study-card {
    background: var(--color-dark-200);
    border: 1px solid var(--color-dark-300);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.case-study-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 255, 136, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-content {
    padding: 2rem;
}

.case-study-stats {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.case-study-stat {
    text-align: center;
}

.case-study-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-green-500);
}

.case-study-stat-label {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 255, 136, 0.1));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-cyan-500);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #ffffff; }
.text-cyan { color: var(--color-cyan-500); }
.text-green { color: var(--color-green-500); }
.text-gray { color: var(--color-gray-400); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.py-section { padding-top: 6rem; padding-bottom: 6rem; }

.bg-dark-100 { background-color: var(--color-dark-100); }
.bg-dark-200 { background-color: var(--color-dark-200); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
