/* assets/css/main.css */

/* CSS Variables for design system */
:root {
    --color-primary: #4F46E5;
    --color-secondary: #06B6D4;
    --color-accent: #EC4899;
    --color-dark: #0F172A;
    --color-gray: #64748B;
    --color-light: #F8FAFC;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--color-dark);
    line-height: 1.6;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

main {
    min-height: 60vh;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 100px;
    background: radial-gradient(circle at top left, #4F46E5 0%, #0F172A 45%, #020617 100%);
    color: white;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-pill {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 13px;
}

.hero-panel {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px 24px;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-card h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.hero-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hero-list h3 {
    font-size: 15px;
    margin-bottom: 2px;
}

.hero-list p {
    font-size: 14px;
    color: rgba(226, 232, 240, 0.8);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 6px;
}

.dot.web {
    background: #38BDF8;
}

.dot.software {
    background: #22C55E;
}

.dot.consulting {
    background: #F97316;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--color-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Services Grid */
.services-section {
    padding: 100px 0;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.section-intro {
    max-width: 640px;
    margin: 0 auto 32px;
    text-align: center;
    color: var(--color-gray);
}

.service-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
}

.service-link:hover {
    text-decoration: underline;
}

/* Portfolio / Work */
.portfolio-section {
    padding: 80px 0;
    background: var(--color-light);
}

.portfolio-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.portfolio-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.portfolio-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.portfolio-tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.portfolio-text {
    font-size: 14px;
    color: var(--color-gray);
}

/* Benefits / CTA */
.benefits-section {
    padding: 80px 0 100px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.benefits-list {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--color-gray);
}

.benefits-list li::before {
    content: '•';
    color: var(--color-primary);
    margin-right: 6px;
}

.benefits-panel {
    display: flex;
    justify-content: flex-end;
}

.benefit-card {
    max-width: 380px;
    width: 100%;
    background: var(--color-dark);
    color: white;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-lg);
}

.benefit-card h3 {
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 14px;
    margin-bottom: 16px;
    color: rgba(226, 232, 240, 0.9);
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-item a {
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-item a:hover {
    color: var(--color-primary);
}

/* Dropdown menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px 0;
    min-width: 200px;
    list-style: none;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
}

.logo img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    color: var(--color-dark);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-dark);
    margin-bottom: 4px;
}

/* Footer */
.site-footer {
    background: #020617;
    color: rgba(148, 163, 184, 0.9);
    padding: 56px 0 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 32px;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 8px;
}

.footer-links h4,
.footer-cta h4 {
    color: white;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(148, 163, 184, 0.9);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(30, 41, 59, 1);
    padding: 16px 0;
    font-size: 13px;
}

/* Page (generic CMS) */
.page-section {
    padding: 80px 0 100px;
}

.page-section h1 {
    margin-bottom: 24px;
}

.page-content {
    max-width: 720px;
    line-height: 1.7;
}

.page-content p,
.page-content ul,
.page-content ol {
    margin-bottom: 1em;
}

.container.narrow {
    max-width: 720px;
}

.no-content {
    text-align: center;
    color: var(--color-gray);
    padding: 48px 0;
}

/* Small hero (inner pages) */
.hero-section-small {
    padding: 72px 0 48px;
}

.hero-section-small h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

/* Services page */
.services-page .services-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.service-detail-card {
    padding: 32px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.service-detail-card:last-child {
    border-bottom: 0;
}

.service-detail-card h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.service-lead {
    font-size: 18px;
    color: var(--color-gray);
    margin-bottom: 16px;
}

.service-body {
    line-height: 1.7;
}

.service-body p {
    margin-bottom: 1em;
}

.benefit-card.centered {
    margin: 0 auto;
    text-align: center;
}

/* Blog */
.blog-section {
    padding: 48px 0 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(148, 163, 184, 0.2);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
}

.blog-card-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-body time {
    font-size: 13px;
    color: var(--color-gray);
}

.blog-card-body h2 {
    font-size: 20px;
    margin: 8px 0 12px;
}

.blog-card-body h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-card-body h2 a:hover {
    color: var(--color-primary);
}

.single-post {
    padding: 48px 0 80px;
}

.single-post-header {
    margin-bottom: 24px;
}

.single-post-header time {
    font-size: 14px;
    color: var(--color-gray);
}

.single-post-image {
    margin: 24px 0;
}

.single-post-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.single-post-content {
    margin-top: 24px;
}

/* Contact */
.contact-section {
    padding: 80px 0 100px;
}

.contact-section h1 {
    margin-bottom: 12px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
}

.contact-info {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}

.contact-info h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.contact-info p,
.contact-info address {
    font-size: 15px;
    color: var(--color-gray);
    margin-bottom: 12px;
}

.contact-info a {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    max-width: 520px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 16px;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-panel {
        justify-content: flex-start;
    }

    .services-grid,
    .portfolio-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .navbar .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
        gap: 16px;
    }

    .nav-menu.nav-menu-open {
        display: flex;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}