/* ============================================================
   MIFRANTARA - IT Managed Service Provider
   ============================================================ */

:root {
    --primary: #0f2a47;
    --primary-light: #1a3f63;
    --primary-dark: #091d33;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    --accent-gradient: linear-gradient(135deg, #f59e0b, #ea580c);
    --accent-hover: #ea580c;
    --foreground: #1e293b;
    --muted: #faf7f2;
    --muted-foreground: #6b7280;
    --border: #e8e3da;
    --cream: #fdfcfa;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--foreground);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(253,252,250,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.logo a {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.logo-img { height: 40px; width: auto; }
.nav { display: none; align-items: center; gap: 28px; }
.nav-link {
    font-size: 0.875rem; font-weight: 500;
    color: var(--foreground); text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--accent-dark); }

.menu-toggle {
    display: block; background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--foreground); margin: 5px 0;
    border-radius: 2px; transition: 0.3s;
}
.mobile-menu {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--border);
    padding: 24px; flex-direction: column; gap: 20px; z-index: 999;
    box-shadow: var(--shadow-lg);
}
.mobile-menu.active { display: flex; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font); font-weight: 600; border: none;
    border-radius: 8px; cursor: pointer; text-decoration: none;
    transition: all 0.25s; padding: 10px 24px; font-size: 0.875rem;
}
.btn-accent { background: var(--accent-gradient); color: var(--white); }
.btn-accent:hover { background: var(--accent-gradient); filter: brightness(1.1); transform: translateY(-1px); }
.btn-sm { padding: 8px 20px; font-size: 0.8125rem; }
.btn-lg { padding: 16px 36px; font-size: 1.0625rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding-top: 72px;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #0f2a47 50%, var(--primary-light) 100%);
}
.hero-bg::before {
    content: ''; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(15,42,71,0.9), rgba(26,63,99,0.7));
}
.hero-content {
    position: relative; z-index: 10; text-align: center;
    max-width: 800px;
}
.hero-title {
    font-size: 2.2rem; font-weight: 800; color: var(--white);
    margin-bottom: 20px; line-height: 1.2; letter-spacing: -0.025em;
}
.hero-subtitle {
    font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 20px;
}
.hero-desc {
    font-size: 1rem; color: rgba(255,255,255,0.8);
    margin-bottom: 40px; max-width: 650px;
    margin-left: auto; margin-right: auto; line-height: 1.8;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; }
.section-muted { background: var(--muted); }
.section:not(.section-muted):not(.section-contact) { background: var(--cream); }
.section-contact { background: var(--primary); color: var(--white); }
.section-content { max-width: 860px; margin: 0 auto; }
.section-title {
    font-size: 2rem; font-weight: 700; margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.section-subtitle {
    font-size: 1.0625rem; color: var(--muted-foreground); margin-bottom: 48px;
}
.section-contact .section-subtitle { color: rgba(255,255,255,0.85); }
.section-contact .section-title { color: var(--white); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-text {
    text-align: left; font-size: 1.025rem;
    color: var(--muted-foreground); line-height: 1.9;
    margin-top: 32px;
}
.about-text p { margin-bottom: 20px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--primary); font-weight: 700; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
    display: grid; grid-template-columns: 1fr; gap: 20px;
    margin-top: 32px;
}
.service-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(15,42,71,0.18);
}
.service-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(234,88,12,0.1));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.service-icon i { font-size: 1.25rem; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.service-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.service-desc {
    font-size: 0.925rem; color: var(--muted-foreground); line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrapper { max-width: 720px; margin: 0 auto; margin-top: 40px; }
.contact-info-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border-radius: var(--radius); padding: 28px; margin-bottom: 24px;
}
.contact-row {
    display: grid; grid-template-columns: 1fr; gap: 16px;
}
.contact-btn {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px; text-decoration: none; color: var(--white);
    transition: background 0.2s;
}
.contact-btn:hover { background: rgba(255,255,255,0.2); }
.contact-btn i { font-size: 1.35rem; width: 24px; text-align: center; }
.contact-btn-label {
    display: block; font-size: 0.75rem; color: rgba(255,255,255,0.65);
}
.contact-btn-value {
    display: block; font-weight: 600; font-size: 0.9375rem;
}
.contact-form-card {
    background: var(--white); border-radius: var(--radius);
    padding: 32px; box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form-control {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--border); border-radius: 8px;
    font-family: var(--font); font-size: 0.9375rem;
    color: var(--foreground); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.form-control::placeholder { color: #94a3b8; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-message {
    margin-top: 16px; padding: 12px 16px; border-radius: 8px;
    font-size: 0.9375rem;
}
.form-message.success { background: #d1fae5; color: #065f46; }
.form-message.error { background: #fee2e2; color: #991b1b; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--foreground); color: var(--white); padding: 48px 0;
}
.footer-content { text-align: center; }
.footer-logo {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-bottom: 12px;
}
.footer-logo-img { height: 32px; width: auto; }
.footer-logo h3 { display: none; }
.footer-content > p {
    font-size: 0.875rem; color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}
.footer-links {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; font-size: 0.875rem; color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
}
.footer-links a {
    color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.sep { display: none; }
.footer-bottom {
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom p { font-size: 0.8125rem; color: rgba(255,255,255,0.4); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.35rem; }
    .contact-row { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr 1fr; }
    .footer-links { flex-direction: row; gap: 16px; }
    .sep { display: inline; }
}
@media (min-width: 768px) {
    .nav { display: flex; }
    .menu-toggle { display: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 2.25rem; }
    .section { padding: 100px 0; }
    .hero-title { font-size: 3.2rem; }
}
@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-title { font-size: 3.5rem; }
    .hero-desc { font-size: 1.1rem; }
}
