/* SunMarc App Labs — Main Stylesheet */
:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --accent2: #0f3460;
    --gold: #f1c40f;
    --text: #333;
    --text-light: #666;
    --bg: #f8f9fa;
    --white: #fff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
.nav {
    background: var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    color: var(--white);
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links a {
    color: #ccc;
    font-size: 0.95em;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.5em; cursor: pointer; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent2) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.hero h1 {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}
.hero h1 span { color: var(--accent); }
.hero .tagline {
    font-size: 1.3em;
    color: #aab;
    max-width: 600px;
    margin: 0 auto 30px;
}
.hero-cta {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233,69,96,0.4);
    color: white;
}

/* Section */
.section { padding: 60px 0; }
.section-dark { background: var(--white); }
.section-title {
    text-align: center;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1em;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}
.app-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.app-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent2), var(--primary));
}
.app-card-body { padding: 20px; }
.app-card-body h3 { margin-bottom: 8px; color: var(--primary); }
.app-card-body p { color: var(--text-light); font-size: 0.95em; margin-bottom: 12px; }
.app-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
}
.app-card-meta .badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.app-card-meta a {
    color: var(--accent);
    font-weight: 600;
}

/* Properties / Websites */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.property-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--accent);
    transition: transform 0.2s;
}
.property-card:hover { transform: translateY(-3px); }
.property-card h3 { color: var(--primary); margin-bottom: 8px; }
.property-card p { color: var(--text-light); margin-bottom: 15px; font-size: 0.95em; }
.property-card a.visit-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95em;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}
.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.blog-card-body { padding: 20px; }
.blog-card-body .date { color: var(--accent); font-size: 0.85em; font-weight: 600; margin-bottom: 5px; }
.blog-card-body h3 { margin-bottom: 8px; color: var(--primary); font-size: 1.1em; }
.blog-card-body p { color: var(--text-light); font-size: 0.9em; }

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-text h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.4em; }
.about-text p { color: var(--text-light); margin-bottom: 15px; }
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.stat-box {
    background: linear-gradient(135deg, var(--primary), var(--accent2));
    color: var(--white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}
.stat-box .number { font-size: 2em; font-weight: 800; display: block; }
.stat-box .label { font-size: 0.85em; color: #aab; margin-top: 5px; display: block; }

/* Footer */
.footer {
    background: var(--primary);
    color: #aab;
    padding: 40px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.footer h4 { color: var(--white); margin-bottom: 15px; }
.footer p { font-size: 0.9em; line-height: 1.7; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #aab; font-size: 0.9em; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85em;
}

/* Blog article page */
.article-header {
    background: linear-gradient(135deg, var(--primary), var(--accent2));
    color: white;
    padding: 60px 0;
    text-align: center;
}
.article-header h1 { font-size: 2.2em; margin-bottom: 10px; }
.article-header .meta { color: #aab; }
.article-content {
    background: var(--white);
    max-width: 750px;
    margin: -30px auto 40px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-size: 1.05em;
    line-height: 1.8;
}
.article-content p { margin-bottom: 1.3em; }
.article-content h2 { color: var(--primary); margin: 30px 0 15px; }
.article-content img { max-width: 100%; border-radius: 8px; margin: 20px 0; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 20px;
        gap: 15px;
    }
    .hero h1 { font-size: 2em; }
    .hero .tagline { font-size: 1em; }
    .about-content { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .apps-grid, .blog-grid { grid-template-columns: 1fr; }
}
