/*
Theme Name: Swa Marketing
Template: breakdance-zero
Theme URI: https://swa-ai.com
Author: Swa Technology LLC
Author URI: https://swa-ai.com
Description: Child theme of Breakdance Zero for the Swa marketing website. Apple-inspired white design with frosted glass nav, pill-shaped CTAs, and scroll reveal animations.
Version: 1.0.0
License: Proprietary
Text Domain: swa

*/

/* ── CSS Variables ── */
:root {
    --accent: #4845d2;
    --accent-hover: #3b38b8;
    --accent-gradient: linear-gradient(135deg, #4845d2 0%, #764ba2 100%);
    --accent-light: rgba(72, 69, 210, 0.08);
    --accent-glow: rgba(72, 69, 210, 0.15);
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --bg-primary: #ffffff;
    --bg-alt: #f5f5f7;
    --border: #e8e8ed;
    --border-light: #d2d2d7;
    --green: #16a34a;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #FFFFFF;
    color: #1d1d1f;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

code {
    font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', monospace;
}

/* ── Navigation ── */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    height: 64px;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.nav-logo { height: 34px; width: 34px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: #1d1d1f; text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 600; }

.nav-auth { display: flex; align-items: center; gap: 8px; }

.nav-signin {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-light);
    padding: 8px 20px;
    border-radius: 980px;
    text-decoration: none;
    transition: all 0.2s;
}
.nav-signin:hover { border-color: var(--accent); color: var(--accent); }

.nav-cta {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: var(--accent);
    padding: 8px 20px;
    border-radius: 980px;
    text-decoration: none;
    transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
}

.nav-hamburger span { display: block; width: 18px; height: 2px; background: #1d1d1f; margin: 4px 0; transition: all 0.3s; }

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.nav-mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px 32px 24px;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu a {
    display: block;
    padding: 12px 0;
    font-size: 17px;
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.nav-mobile-menu a:last-child { border-bottom: none; }

.nav-mobile-section {
    font-size: 11px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 0 2px;
    border-bottom: none !important;
}

/* ── Nav Dropdowns ── */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 5px;
    margin-bottom: 2px;
    transition: transform 0.2s;
    opacity: 0.5;
}
.nav-dropdown:hover > a::after { transform: rotate(-135deg); }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 16px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-panel {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.nav-dropdown-panel a {
    display: block;
    padding: 10px 20px;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1d1d1f;
    text-decoration: none;
    transition: background 0.2s;
    opacity: 1 !important;
}
.nav-dropdown-panel a:hover { background: #f5f5f7; opacity: 1 !important; }

/* ── Sections ── */
.section {
    padding: 120px 24px;
}

.section-grey {
    background: var(--bg-alt);
}

.section-headline {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-align: center;
}

.section-sub {
    font-size: 19px;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 12px auto 0;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    border-radius: 980px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-demo { min-width: 180px; }

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #1d1d1f;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    border-radius: 980px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-dark:hover { background: #000; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: transparent;
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 500;
    border-radius: 980px;
    text-decoration: none;
    border: 1px solid #1d1d1f;
    transition: background 0.3s;
}
.btn-outline:hover { background: #f5f5f7; }

.link-arrow {
    color: var(--accent);
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s;
}
.link-arrow:hover { gap: 8px; }

/* ── CTA Section ── */
.cta-section {
    text-align: center;
    padding: 120px 24px;
    background: var(--bg-alt);
}

/* ── Footer ── */
.footer {
    background: #f5f5f7;
    padding: 48px 24px 32px;
    border-top: 1px solid #e8e8ed;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-col a {
    display: block;
    font-size: 12px;
    color: #6e6e73;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-col a:hover { color: #1d1d1f; }

.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 16px;
    border-top: 1px solid #e8e8ed;
    font-size: 12px;
    color: #86868b;
}

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

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

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── WP Content Styling ── */
.wp-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
}

.wp-content h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.wp-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.wp-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 8px;
}

.wp-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.wp-content a {
    color: var(--accent);
    text-decoration: none;
}
.wp-content a:hover { text-decoration: underline; }

.wp-content ul, .wp-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.wp-content li { margin-bottom: 8px; }

.wp-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.wp-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--accent-light);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* ── Page Header (for inner pages) ── */
.page-header {
    padding: 140px 24px 60px;
    text-align: center;
    background: var(--bg-primary);
}

.page-header h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.page-header p {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 12px auto 0;
    line-height: 1.5;
}

/* ── Blog ── */
.blog-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 120px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-alt);
}

.blog-card-body {
    padding: 24px;
}

.blog-card-meta {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.blog-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.blog-single-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.blog-single-meta {
    font-size: 15px;
    color: var(--text-tertiary);
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.blog-single-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-single-content h2 { font-size: 28px; font-weight: 700; color: var(--text-primary); margin: 48px 0 16px; }
.blog-single-content h3 { font-size: 22px; font-weight: 600; color: var(--text-primary); margin: 36px 0 12px; }
.blog-single-content p { margin-bottom: 20px; }
.blog-single-content a { color: var(--accent); }
.blog-single-content img { max-width: 100%; border-radius: 12px; margin: 24px 0; }
.blog-single-content ul, .blog-single-content ol { margin: 16px 0; padding-left: 24px; }
.blog-single-content li { margin-bottom: 8px; }
.blog-single-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--accent-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* ── Pagination ── */
.pagination {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a {
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }

.pagination .current {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-auth { display: none; }
    .nav-hamburger { display: flex; }

    .section { padding: 80px 20px; }
    .page-header { padding: 110px 20px 40px; }

    .blog-grid { grid-template-columns: 1fr; padding: 40px 20px 80px; }
    .blog-single { padding: 100px 20px 60px; }
    .wp-content { padding: 100px 20px 60px; }
}
