/* ============================================
   Digital Snackbox — Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a2e;
    --color-text-muted: #555;
    --color-primary: #2d5be3;
    --color-primary-dark: #1e3fa0;
    --color-border: #e5e7eb;
    --color-section-alt: #f3f4f6;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --max-width: 1120px;
    --section-padding: 6rem 0;
    --radius: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    text-align: center !important;
    margin-bottom: 0.75rem;
}

h3 { font-size: 1.25rem; }

.section-subtitle {
    text-align: center !important;
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 3.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.1rem;
}

/* --- Header / Nav --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}
.logo:hover { color: var(--color-primary); }

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-primary); }

.nav-links .btn.btn-sm {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.nav-links .btn.btn-sm:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Hero --- */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
    background: linear-gradient(180deg, #eef2ff 0%, var(--color-bg) 100%);
}

.hero h1 {
    margin-bottom: 1.25rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    color: var(--color-text-muted);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Services --- */
.services {
    padding: var(--section-padding);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.service-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-card > p {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.service-details {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-details li {
    font-size: 0.85rem;
    background: var(--color-section-alt);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    color: var(--color-text-muted);
}

/* --- Approach --- */
.approach {
    padding: var(--section-padding);
    background: var(--color-section-alt);
    text-align: center;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.approach-step {
    text-align: center;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.2;
    display: block;
    margin-bottom: 0.5rem;
}

.approach-step h3 {
    font-family: var(--font-sans);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.approach-step p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --- About --- */
.about {
    padding: var(--section-padding);
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

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

.company-info {
    font-size: 0.9rem !important;
    opacity: 0.6;
    margin-top: 2rem !important;
}

/* --- Contact --- */
.contact {
    padding: var(--section-padding);
    background: var(--color-section-alt);
    text-align: center;
}

.contact-content {
    margin-top: 0.5rem;
}

/* --- Footer --- */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left .logo {
    display: block;
    margin-bottom: 0.5rem;
}

.footer-left p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        padding: 2rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        z-index: 99;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .approach-grid {
        grid-template-columns: 1fr;
    }
}
