/* ============================================================
   Macrotech Computers — Main Stylesheet
   Colors: Navy #0b1d4e | Dark #060f2d | Orange #f59e0b
   Font: Syne (headings) + DM Sans (body)
   ============================================================ */

:root {
  --navy: #0b1d4e;
  --navy-dark: #060f2d;
  --navy-mid: #112266;
  --orange: #f59e0b;
  --orange-dark: #d97706;
  --orange-light: #fef3c7;
  --white: #ffffff;
  --light-bg: #f8f9fc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --green: #10b981;
  --red: #ef4444;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: all 0.25s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--light-bg); color: var(--text-main); line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 { font-family: 'Syne', sans-serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.5px; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { font-size: 0.95rem; color: var(--text-muted); }

/* ---- CONTAINER ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ---- SECTION LABELS ---- */
.sec-label { font-size: 0.7rem; color: var(--orange-dark); text-transform: uppercase; letter-spacing: 2.5px; font-weight: 600; margin-bottom: 0.4rem; font-family: 'DM Sans', sans-serif; }
.sec-divider { height: 3px; width: 48px; background: var(--orange); border-radius: 2px; margin: 10px 0 1.25rem; }
.sec-sub { font-size: 0.95rem; color: var(--text-muted); max-width: 560px; line-height: 1.8; margin-bottom: 2.5rem; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: var(--radius); font-size: 0.9rem; font-weight: 500; transition: var(--transition); border: 2px solid transparent; font-family: 'DM Sans', sans-serif; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-w { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-w:hover { background: rgba(255,255,255,0.1); }
.btn-ghost { background: transparent; color: var(--orange-dark); border-color: var(--orange); }
.btn-ghost:hover { background: var(--orange); color: #fff; }

/* ---- TOP BAR ---- */
.top-bar { background: var(--navy-dark); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.top-bar-inner { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; font-size: 0.78rem; color: #94a3b8; }
.top-bar-inner a { color: #94a3b8; transition: var(--transition); }
.top-bar-inner a:hover { color: var(--orange); }
.top-bar .icon { margin-right: 4px; }

/* ---- NAVBAR ---- */
.navbar { background: var(--navy-dark); border-bottom: 3px solid var(--orange); position: sticky; top: 0; z-index: 1000; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo .logo-img { height: 52px; width: auto; }
.logo-fallback { display: flex; align-items: center; gap: 10px; }
.logo-box { width: 40px; height: 40px; background: var(--orange); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 700; color: #fff; font-size: 1.2rem; }
.logo-name { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: 1px; }
.logo-name span { color: var(--orange); }
.logo-sub { font-size: 0.65rem; color: #64748b; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-links a { color: #cbd5e1; font-size: 0.875rem; padding: 8px 12px; border-radius: 6px; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.has-dropdown { position: relative; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--navy); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); min-width: 200px; padding: 8px; z-index: 100; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a { display: block; padding: 8px 12px; color: #cbd5e1; font-size: 0.85rem; border-radius: 6px; transition: var(--transition); }
.dropdown li a:hover { background: rgba(255,255,255,0.05); color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-wa-nav { background: #25D366; color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 0.8rem; font-weight: 500; transition: var(--transition); }
.btn-wa-nav:hover { background: #1da851; }
.btn-cta { background: var(--orange); color: #fff; padding: 9px 20px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; transition: var(--transition); border: none; }
.btn-cta:hover { background: var(--orange-dark); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }

/* ---- HERO ---- */
.hero { background: var(--navy); padding: 6rem 0 5rem; position: relative; overflow: hidden; border-bottom: 4px solid var(--orange); }
.hero-geo { position: absolute; inset: 0; pointer-events: none; opacity: 0.06; }
.hero-inner { display: flex; align-items: center; gap: 4rem; position: relative; z-index: 2; }
.hero-left { flex: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.4); color: var(--orange); font-size: 0.78rem; font-weight: 600; padding: 6px 16px; border-radius: 20px; margin-bottom: 1.5rem; letter-spacing: 0.5px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; margin-bottom: 1.25rem; letter-spacing: -1.5px; }
.hero h1 span { color: var(--orange); }
.hero-sub { font-size: 1rem; color: #94a3b8; line-height: 1.85; margin-bottom: 2rem; max-width: 480px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img-wrap { width: 340px; flex-shrink: 0; height: 280px; background: rgba(255,255,255,0.04); border: 2px dashed rgba(245,158,11,0.4); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; position: relative; z-index: 2; overflow: hidden; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.hero-img-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-img-placeholder span { font-size: 0.75rem; color: #64748b; }

/* ---- STATS BAR ---- */
.stats-bar { background: var(--navy-dark); border-bottom: 4px solid var(--orange); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 2.25rem 1rem; border-right: 1px solid rgba(255,255,255,0.06); }
.stat-item:last-child { border-right: none; }
.stat-icon { font-size: 1.5rem; margin-bottom: 8px; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 2.75rem; font-weight: 700; color: var(--orange); line-height: 1; letter-spacing: -2px; }
.stat-label { font-size: 0.78rem; color: #94a3b8; margin-top: 6px; text-align: center; letter-spacing: 0.3px; }

/* ---- SECTIONS ---- */
.section { padding: 5rem 0; }
.section-light { background: var(--light-bg); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); }
.section-dark { background: var(--navy-dark); }
.section-orange { background: var(--orange); }

/* ---- SERVICE CARDS ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card { background: var(--card-bg); border: 1px solid var(--border); border-top: 4px solid transparent; border-radius: var(--radius-lg); padding: 1.75rem; transition: var(--transition); }
.service-card:hover { border-top-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card .s-icon { width: 52px; height: 52px; background: #eff3ff; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; font-size: 1.5rem; }
.service-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.service-card p { font-size: 0.875rem; line-height: 1.7; }
.service-card .s-link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--orange-dark); margin-top: 14px; font-weight: 600; transition: var(--transition); }
.service-card .s-link:hover { gap: 8px; }

/* ---- ABOUT / FOUNDER SECTION ---- */
.about-wrap { display: flex; gap: 4rem; align-items: center; }
.founder-photo { width: 260px; flex-shrink: 0; }
.founder-photo img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius-lg); }
.founder-photo-placeholder { width: 260px; height: 320px; background: #eff3ff; border: 2px dashed #b8c4f0; border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 4rem; color: #b8c4f0; }
.founder-photo-placeholder span { font-size: 0.8rem; color: #94a3b8; }
.about-text h2 { margin-bottom: 6px; }
.about-text p { margin-bottom: 1rem; }
.skill-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1.25rem; }
.skill-tag { background: #eff3ff; border: 1px solid #b8c4f0; color: var(--navy); font-size: 0.78rem; padding: 5px 14px; border-radius: 20px; font-weight: 500; }

/* ---- TRUST CARDS ---- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-card { background: var(--card-bg); border: 1px solid var(--border); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 1.4rem; display: flex; align-items: flex-start; gap: 12px; }
.trust-card .t-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.trust-card h4 { font-size: 0.9rem; color: var(--navy); margin-bottom: 5px; }
.trust-card p { font-size: 0.8rem; line-height: 1.65; }

/* ---- TESTIMONIALS ---- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 1.6rem; }
.testi-stars { color: var(--orange); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testi-card p { font-size: 0.875rem; color: #cbd5e1; line-height: 1.8; margin-bottom: 16px; font-style: italic; }
.testi-author strong { display: block; font-size: 0.85rem; color: #fff; font-weight: 500; }
.testi-author span { font-size: 0.78rem; color: #94a3b8; }

/* ---- CTA SECTION ---- */
.cta-section { text-align: center; padding: 5rem 0; }
.cta-section h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; font-size: 1rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero { background: var(--navy); padding: 4rem 0; border-bottom: 4px solid var(--orange); position: relative; overflow: hidden; }
.page-hero-geo { position: absolute; inset: 0; pointer-events: none; opacity: 0.05; }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero .breadcrumb { font-size: 0.78rem; color: #64748b; margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: var(--orange); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero p { color: #94a3b8; max-width: 560px; font-size: 1rem; }

/* ---- BLOG ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-img { height: 180px; background: #eff3ff; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-body { padding: 1.25rem; }
.blog-date { font-size: 0.75rem; color: var(--orange-dark); font-weight: 600; margin-bottom: 8px; }
.blog-body h3 { font-size: 0.95rem; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.blog-body p { font-size: 0.82rem; line-height: 1.7; margin-bottom: 12px; }
.blog-read { font-size: 0.8rem; color: var(--orange-dark); font-weight: 600; }
.blog-read:hover { text-decoration: underline; }

/* ---- CASE STUDIES ---- */
.case-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 24px; border-left: 5px solid var(--orange); }
.case-card h3 { color: var(--navy); margin-bottom: 0.5rem; }
.case-meta { display: flex; gap: 16px; margin-bottom: 1rem; flex-wrap: wrap; }
.case-tag { background: #eff3ff; color: var(--navy); font-size: 0.75rem; padding: 3px 12px; border-radius: 20px; font-weight: 500; }
.case-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 1.25rem; }
.case-step { padding: 1rem; border-radius: var(--radius); }
.case-step.problem { background: #fef2f2; border-left: 3px solid var(--red); }
.case-step.solution { background: #eff3ff; border-left: 3px solid var(--navy); }
.case-step.result { background: #ecfdf5; border-left: 3px solid var(--green); }
.case-step h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.case-step p { font-size: 0.82rem; }

/* ---- CONTACT ---- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.contact-info h3 { color: var(--navy); margin-bottom: 1rem; }
.contact-info p { margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1rem; }
.contact-detail .c-icon { width: 40px; height: 40px; background: #eff3ff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-detail strong { display: block; font-size: 0.85rem; color: var(--navy); margin-bottom: 2px; }
.contact-detail span { font-size: 0.82rem; color: var(--text-muted); }
.contact-form { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
input, textarea, select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.875rem; font-family: 'DM Sans', sans-serif; color: var(--text-main); background: var(--white); transition: var(--transition); outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,29,78,0.08); }
textarea { resize: vertical; min-height: 130px; }
.form-submit { width: 100%; }
.form-msg { padding: 12px 16px; border-radius: var(--radius); font-size: 0.875rem; margin-bottom: 1rem; display: none; }
.form-msg.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; display: block; }
.form-msg.error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; display: block; }

/* ---- WHATSAPP FAB ---- */
.wa-fab { position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 9999; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: var(--transition); border: 3px solid #fff; }
.wa-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* ---- FOOTER ---- */
.footer { background: var(--navy-dark); padding: 4rem 0 0; color: #64748b; border-top: 4px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-logo { height: 44px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-brand p { font-size: 0.82rem; line-height: 1.8; margin-bottom: 1.5rem; }
.footer-contacts { display: flex; flex-direction: column; gap: 8px; }
.f-contact { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.f-contact a { color: #64748b; transition: var(--transition); }
.f-contact a:hover { color: var(--orange); }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 0.75rem; font-weight: 600; color: #fff; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1.5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li { font-size: 0.82rem; }
.footer-col a { color: #64748b; transition: var(--transition); }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 1.25rem 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; }
.footer-tagline { color: var(--orange); font-weight: 500; }

/* ---- ADMIN NOTICE ---- */
.admin-bar { background: var(--navy); padding: 8px 0; text-align: center; font-size: 0.78rem; color: #94a3b8; }
.admin-bar a { color: var(--orange); font-weight: 600; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-3, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-img-wrap { width: 100%; max-width: 420px; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-btns { justify-content: center; }
  .about-wrap { flex-direction: column; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar-inner { display: none; }
  .nav-links { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--navy-dark); flex-direction: column; padding: 1rem; border-bottom: 3px solid var(--orange); gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; display: block; }
  .dropdown { position: static; background: rgba(255,255,255,0.05); border: none; display: none; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .hamburger { display: flex; }
  .btn-wa-nav { display: none; }
  .grid-3, .testi-grid, .trust-grid, .grid-2 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .case-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 3.5rem; }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-2 { animation: fadeUp 0.6s ease 0.15s forwards; opacity: 0; }
.fade-up-3 { animation: fadeUp 0.6s ease 0.3s forwards; opacity: 0; }

/* ---- UTILITY ---- */
.text-orange { color: var(--orange); }
.text-navy { color: var(--navy); }
.text-white { color: #fff; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.fw-500 { font-weight: 500; }
.text-center { text-align: center; }
