/* ============================================
   MNGroup — Stylesheet
   Modern, minimal, responsive
   ============================================ */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --gray-bg: #f8fafc;
    --white: #ffffff;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.1);
    --transition: .2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); line-height: 1.6; background: var(--white); -webkit-font-smoothing: antialiased; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--gray); }
.lead { font-size: 1.125rem; line-height: 1.7; }
.text-muted { color: var(--gray); font-size: 0.875rem; }
.center { text-align: center; }

/* ---- Layout ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 780px; }

.section { padding: 5rem 0; }
.section-alt { background: var(--gray-bg); }
.section-title { text-align: center; margin-bottom: 2.5rem; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-contact { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1.5rem; }

/* ---- Header ---- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-light);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { font-size: 1.375rem; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
.logo:hover { color: var(--dark); }

.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a { font-size: 0.9rem; font-weight: 500; color: var(--gray); transition: color var(--transition); }
.main-nav a:hover, .main-nav a.active { color: var(--dark); }

.nav-btn {
    background: var(--primary); color: var(--white) !important; padding: 0.4rem 1rem;
    border-radius: var(--radius); font-size: 0.85rem;
}
.nav-btn:hover { background: var(--primary-dark); color: var(--white) !important; }
.nav-link-sm { font-size: 0.8rem !important; }
.lang-switch {
    font-size: 0.8rem !important; font-weight: 600 !important;
    border: 1px solid var(--gray-light); padding: 0.2rem 0.5rem;
    border-radius: 4px; color: var(--gray) !important;
}
.lang-switch:hover { border-color: var(--primary); color: var(--primary) !important; }

/* Mobile nav toggle */
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 28px; height: 20px; position: relative; z-index: 101;
}
.nav-toggle span {
    display: block; width: 100%; height: 2px; background: var(--dark);
    position: absolute; left: 0; transition: var(--transition);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ---- Hero ---- */
.hero {
    padding: 6rem 0 5rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: var(--white);
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.25rem); max-width: 700px; }
.hero .hero-sub { color: #94a3b8; font-size: 1.15rem; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Page Header ---- */
.page-header { padding: 3.5rem 0 2.5rem; background: var(--gray-bg); border-bottom: 1px solid var(--gray-light); }
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { max-width: 600px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.625rem 1.25rem; font-size: 0.9rem; font-weight: 600;
    border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
    transition: all var(--transition); font-family: var(--font); text-decoration: none;
    line-height: 1.4;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--gray-light); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { opacity: .9; color: var(--white); }
.btn-lg { padding: 0.8rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-xs { padding: 0.2rem 0.5rem; font-size: 0.75rem; }
.btn-block { width: 100%; }
.hero .btn-outline { border-color: rgba(255,255,255,.3); color: var(--white); }
.hero .btn-outline:hover { border-color: var(--white); }

/* ---- Cards ---- */
.card {
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg); padding: 1.5rem;
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { flex: 1; }
.card-footer { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--gray-light); }

/* ---- Service cards ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.service-card {
    text-align: center;
    padding: 2.5rem 1.75rem 2rem;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    transition: all .3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
    border-color: rgba(37,99,235,.15);
}
.service-icon {
    width: 68px; height: 68px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37,99,235,.07), rgba(6,182,212,.07));
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    transition: all .3s ease;
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    transform: scale(1.05);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.925rem; line-height: 1.7; color: var(--gray); margin-bottom: 0; }

/* ---- Process steps ---- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    counter-reset: none;
}
.process-step {
    text-align: center;
    position: relative;
}
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px; right: -1rem;
    width: calc(2rem);
    height: 2px;
    background: var(--gray-light);
}
.step-number {
    width: 48px; height: 48px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem; font-weight: 800;
    position: relative;
    z-index: 1;
}
.step-content h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step-content p { font-size: 0.9rem; line-height: 1.7; color: var(--gray); margin: 0; }

/* ---- Card icon (admin/generic) ---- */
.card-icon {
    width: 48px; height: 48px; border-radius: var(--radius);
    background: rgba(37,99,235,.08); display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; color: var(--primary); font-size: 1.25rem;
}
.card-icon [data-icon]::before { content: attr(data-icon); font-family: var(--font); }
[data-icon="code"]::after { content: "</>"; font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700; color: var(--primary); }
[data-icon="smartphone"]::after { content: "mobile"; font-size: 0.75rem; font-weight: 700; color: var(--primary); }
[data-icon="palette"]::after { content: "design"; font-size: 0.75rem; font-weight: 700; color: var(--primary); }
[data-icon="bar-chart"]::after { content: "data"; font-size: 0.75rem; font-weight: 700; color: var(--primary); }
[data-icon="shopping-cart"]::after { content: "shop"; font-size: 0.75rem; font-weight: 700; color: var(--primary); }
[data-icon="settings"]::after { content: "ops"; font-size: 0.75rem; font-weight: 700; color: var(--primary); }

/* ---- Project cards ---- */
.project-thumb {
    height: 180px; background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    border-radius: var(--radius); margin-bottom: 1rem;
}
.project-thumb-lg { height: 300px; margin-bottom: 2rem; }
.project-card .card-body { display: flex; flex-direction: column; }
.project-tech { font-size: 0.8rem; color: var(--gray); margin: 0.5rem 0; }

.tag {
    display: inline-block; padding: 0.15rem 0.6rem; font-size: 0.75rem; font-weight: 600;
    background: rgba(37,99,235,.08); color: var(--primary); border-radius: 20px;
    text-transform: capitalize; margin-bottom: 0.5rem;
}
.tag-sm { font-size: 0.7rem; padding: 0.1rem 0.5rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.link-arrow { font-weight: 600; font-size: 0.9rem; }

/* ---- Filter bar ---- */
.filter-bar { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-btn {
    padding: 0.4rem 1rem; border: 1px solid var(--gray-light); background: var(--white);
    border-radius: 20px; cursor: pointer; font-size: 0.85rem; font-weight: 500;
    transition: all var(--transition); font-family: var(--font);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary); color: var(--white); border-color: var(--primary);
}

/* ---- Testimonials ---- */
.testimonial-card { display: flex; flex-direction: column; }
.testimonial-card blockquote { font-style: italic; color: var(--dark); flex: 1; margin-bottom: 1rem; line-height: 1.7; }
.stars { color: var(--warning); font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-author strong { display: block; color: var(--dark); font-size: 0.9rem; }
.testimonial-author span { display: block; font-size: 0.8rem; color: var(--gray); }
.author-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; flex-shrink: 0;
}

/* ---- Project detail ---- */
.project-detail { margin-top: 1.5rem; }
.project-meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.project-meta span { font-size: 0.9rem; color: var(--gray); }
.project-detail-tech { margin: 2rem 0; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 500; font-size: 0.9rem; }

/* ---- CTA Section ---- */
.cta-section { background: linear-gradient(135deg, var(--dark), var(--dark-2)); color: var(--white); padding: 5rem 0; }
.cta-section h2 { color: var(--white); }
.cta-section p { color: #94a3b8; max-width: 480px; margin: 0 auto 1.5rem; }

/* ---- Forms ---- */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.35rem; color: var(--dark); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%; padding: 0.625rem 0.875rem; font-size: 0.9rem;
    border: 1px solid var(--gray-light); border-radius: var(--radius);
    font-family: var(--font); transition: border-color var(--transition);
    background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group small { display: block; margin-top: 0.25rem; font-size: 0.8rem; color: var(--gray); }

.checkbox-label { display: flex; gap: 0.5rem; align-items: flex-start; cursor: pointer; font-size: 0.875rem; color: var(--gray); }
.checkbox-label input[type="checkbox"] { margin-top: 0.2rem; }

.form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.form-card { max-width: 560px; }

/* ---- Contact layout ---- */
.contact-form-wrap { min-width: 0; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 1rem; }
.info-item h3 { font-size: 0.9rem; color: var(--dark); margin-bottom: 0.25rem; }
.info-item p, .info-item a { font-size: 0.9rem; color: var(--gray); }

/* ---- Alerts ---- */
.alert {
    padding: 0.875rem 1rem; border-radius: var(--radius); margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.alert ul { padding-left: 1rem; list-style: disc; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ---- Prose ---- */
.prose h2 { margin-top: 2rem; font-size: 1.25rem; }
.prose p { line-height: 1.8; }
.prose strong { color: var(--dark); }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: #94a3b8; padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; }
.footer-links h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 1rem; }
.footer-links a { display: block; color: #94a3b8; font-size: 0.875rem; margin-bottom: 0.5rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding: 1.25rem 0; }
.footer-bottom p { font-size: 0.8rem; margin: 0; }
.site-footer .logo { color: var(--white); }

/* ============================================
   Admin / Portal Layout
   ============================================ */
.admin-body { display: flex; min-height: 100vh; background: var(--gray-bg); }

.admin-sidebar {
    width: 240px; background: var(--dark); color: var(--white);
    display: flex; flex-direction: column; position: fixed;
    top: 0; left: 0; bottom: 0; z-index: 50;
    transition: transform var(--transition);
}
.sidebar-header { padding: 1.25rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-header .logo { font-size: 1.2rem; color: var(--white); }
.sidebar-nav { flex: 1; padding: 0.5rem 0; overflow-y: auto; }
.sidebar-label {
    padding: 0.75rem 1.25rem 0.25rem; font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; color: #475569;
}
.sidebar-nav a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.625rem 1.25rem; color: #94a3b8; font-size: 0.875rem;
    font-weight: 500; transition: all var(--transition); position: relative;
}
.sidebar-nav a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.sidebar-nav a.active { color: var(--white); background: rgba(37,99,235,.2); }
.sidebar-nav a.active::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--primary); border-radius: 0 3px 3px 0;
}
.sidebar-nav svg { flex-shrink: 0; }

.badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    background: var(--danger); color: var(--white);
    border-radius: 10px; font-size: 0.7rem; font-weight: 700; margin-left: auto;
}
.badge-sm { font-size: 0.65rem; min-width: 16px; height: 16px; padding: 0 4px; }

.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-user span { display: block; font-weight: 600; font-size: 0.875rem; }
.sidebar-user small { color: #94a3b8; font-size: 0.75rem; text-transform: capitalize; }
.sidebar-logout { display: block; margin-top: 0.5rem; font-size: 0.8rem; color: #94a3b8 !important; }
.sidebar-logout:hover { color: var(--white) !important; }
.sidebar-footer .lang-switch { margin-top: 0.5rem; display: inline-block; }

.admin-main { margin-left: 240px; flex: 1; min-width: 0; }
.admin-topbar {
    background: var(--white); border-bottom: 1px solid var(--gray-light);
    padding: 0 1.5rem; height: 56px;
    display: flex; align-items: center; justify-content: space-between;
}
.topbar-link { font-size: 0.85rem; color: var(--gray); }
.topbar-link:hover { color: var(--primary); }
.admin-content { padding: 2rem 1.5rem; max-width: 1100px; }

.sidebar-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 24px; height: 18px; position: relative;
}
.sidebar-toggle span {
    display: block; width: 100%; height: 2px; background: var(--dark);
    position: absolute; left: 0; transition: var(--transition);
}
.sidebar-toggle span:nth-child(1) { top: 0; }
.sidebar-toggle span:nth-child(2) { top: 8px; }
.sidebar-toggle span:nth-child(3) { top: 16px; }

/* ---- Stats ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
    background: var(--white); padding: 1.25rem; border-radius: var(--radius-lg);
    border: 1px solid var(--gray-light);
}
.stat-number { font-size: 2rem; font-weight: 800; color: var(--dark); }
.stat-label { font-size: 0.8rem; color: var(--gray); font-weight: 500; margin-top: 0.25rem; }

/* ---- Admin sections ---- */
.admin-section { margin-top: 2rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem; }
.section-header h1, .section-header h2 { margin-bottom: 0; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
.table {
    width: 100%; border-collapse: collapse; font-size: 0.875rem;
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--gray-light);
}
.table th { background: var(--gray-bg); font-weight: 600; text-align: left; white-space: nowrap; }
.table th, .table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-light); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(37,99,235,.02); }
.row-unread td { font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.actions-cell { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.inline-form { display: inline; }

.status-badge {
    display: inline-block; padding: 0.15rem 0.5rem; font-size: 0.75rem;
    border-radius: 20px; font-weight: 600;
}
.status-active { background: #f0fdf4; color: #16a34a; }
.status-inactive { background: #fef2f2; color: #dc2626; }

/* ---- Messages ---- */
.messages-list { display: flex; flex-direction: column; gap: 1rem; }
.message-card {
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg); padding: 1.25rem;
}
.message-unread { border-left: 3px solid var(--primary); }
.message-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem; }
.message-subject { margin-bottom: 0.75rem; }
.message-body { color: var(--gray); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; white-space: pre-line; }
.message-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---- Upload ---- */
.upload-section { margin: 2rem 0; padding: 1.5rem; background: var(--white); border: 1px solid var(--gray-light); border-radius: var(--radius-lg); }
.upload-section h3 { margin-bottom: 1rem; }
.upload-area { position: relative; }
.upload-area input[type="file"] { width: 100%; }
.upload-label { display: block; margin-top: 0.25rem; font-size: 0.8rem; color: var(--gray); }

/* ---- Media grid ---- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.media-item {
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: var(--radius); overflow: hidden;
}
.media-item img { width: 100%; height: 160px; object-fit: cover; }
.media-item video { width: 100%; height: 160px; object-fit: cover; }
.video-thumb { position: relative; }
.video-badge {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,.7); color: var(--white);
    padding: 0.15rem 0.4rem; font-size: 0.65rem; border-radius: 4px; font-weight: 700;
}
.media-info { padding: 0.5rem 0.75rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.media-actions { display: flex; gap: 0.3rem; }

/* ---- Gallery card ---- */
.gallery-card { display: flex; flex-direction: column; }
.gallery-card .card-body { flex: 1; }

/* ---- Empty state ---- */
.empty-state { text-align: center; color: var(--gray); padding: 3rem 1rem; font-size: 0.95rem; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: fixed; top: 0; right: 0; bottom: 0;
        width: 280px; background: var(--white); flex-direction: column;
        padding: 5rem 1.5rem 2rem; gap: 1rem;
        box-shadow: -4px 0 20px rgba(0,0,0,.1); z-index: 100;
    }
    .main-nav.open { display: flex; }

    .hero { padding: 4rem 0 3rem; }
    .grid-contact { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .section { padding: 3rem 0; }

    /* Admin mobile */
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .sidebar-toggle { display: block; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .actions-cell { flex-direction: column; align-items: flex-start; }

    .media-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .service-card { padding: 2rem 1.25rem 1.5rem; }

    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .process-step:not(:last-child)::after { display: none; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
}
