/* tdcommercial.co.com - Design System 2026 */
:root {
    --td-green: #008a00;
    --td-green-dark: #007000;
    --td-green-light: #e6f4e6;
    --bg-white: #ffffff;
    --bg-grey: #f9f9f9;
    --text-main: #333333;
    --text-muted: #666666;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--td-green);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Main Content Area */
.main-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    padding-top: 48px;
}

/* Sticky TOC */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.toc {
    background: var(--bg-grey);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.toc h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 12px;
}

.toc a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition-base);
    display: block;
}

.toc a:hover {
    color: var(--td-green);
    transform: translateX(4px);
}

/* Content Typography */
article h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--td-green);
    letter-spacing: -1px;
}

.ai-summary {
    background: var(--td-green-light);
    padding: 32px;
    border-radius: var(--border-radius);
    margin-bottom: 48px;
    border-left: 6px solid var(--td-green);
}

.ai-summary h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--td-green-dark);
}

.ai-summary ul {
    list-style: none;
}

.ai-summary li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--td-green-dark);
}

.ai-summary li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--td-green);
}

article h2 {
    font-size: 2rem;
    margin: 64px 0 24px;
    color: var(--text-main);
}

.zero-click-snippet {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 2px solid var(--td-green-light);
    display: inline;
}

article p {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Data Shift Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.data-table th {
    background: var(--td-green);
    color: white;
    text-align: left;
    padding: 16px;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Footer */
footer {
    background: var(--bg-grey);
    padding: 64px 0;
    margin-top: 120px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--td-green);
}

/* Enhanced Navbar */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-main {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.nav-links a:hover {
    color: var(--td-green);
}

.lang-switch {
    display: flex;
    gap: 8px;
    background: var(--bg-grey);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}

.lang-switch a {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 16px;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.lang-switch a.active {
    background: var(--td-green);
    color: white;
}

/* Enhanced Footer */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 64px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.footer-section a:hover {
    color: var(--td-green);
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

/* Landing Page Styles */
.hero {
    background: linear-gradient(135deg, var(--td-green-light) 0%, #ffffff 100%);
    padding: 80px 24px;
    border-radius: var(--border-radius);
    margin-bottom: 64px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--td-green-dark);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-cta {
    display: inline-block;
    background: var(--td-green);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 138, 0, 0.2);
}

.hero-cta:hover {
    background: var(--td-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 138, 0, 0.3);
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 48px;
    color: var(--text-main);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.feature-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition-base);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(0, 138, 0, 0.2);
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--td-green-dark);
    margin-bottom: 16px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.feature-card a {
    text-decoration: none;
    color: var(--td-green);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-base);
}

.feature-card a:hover {
    color: var(--td-green-dark);
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }
    .hero-image {
        text-align: center;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .main-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
    }
    article h1 {
        font-size: 2.25rem;
    }
}
