/* =============================================
   MicroArchitect — Main Stylesheet
   Theme: Modern Tech / Architecture-inspired
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  /* Brand Colors */
  --primary:        #0A1628;
  --primary-mid:    #0D2040;
  --accent:         #00C8FF;
  --accent-warm:    #FF6B35;
  --accent-green:   #00E5A0;
  --surface:        #F4F6FA;
  --surface-card:   #FFFFFF;
  --text-main:      #0A1628;
  --text-muted:     #6B7A99;
  --text-light:     #FFFFFF;
  --border:         #E2E8F4;

  /* Typography */
  --font-display:   'Syne', sans-serif;
  --font-body:      'DM Sans', sans-serif;

  /* Spacing */
  --section-pad:    5rem 0;
  --radius:         12px;
  --radius-lg:      20px;

  /* Shadows */
  --shadow-sm:      0 2px 12px rgba(10,22,40,0.08);
  --shadow-md:      0 8px 32px rgba(10,22,40,0.12);
  --shadow-lg:      0 20px 60px rgba(10,22,40,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
}

/* =============================================
   NAVBAR
   ============================================= */
.ma-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  /* Solid brand navy so the logo PNG dissolves into the bar, then layer the
     logo's signature cues on top: a soft cyan glow behind the mark and a faint
     grid floor that echoes the artwork. */
  background-color: var(--primary);
  background-image:
    radial-gradient(ellipse 320px 90px at 80px 50%, rgba(0,200,255,0.18), transparent 70%),
    linear-gradient(to right, rgba(0,200,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,200,255,0.06) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  background-position: left center, 0 0, 0 0;
  border-bottom: 1px solid rgba(0,200,255,0.22);
  box-shadow: 0 1px 0 rgba(0,200,255,0.05), 0 4px 24px rgba(0,0,0,0.35);
  padding: 0 2rem;
  transition: all .3s;
}

.ma-nav .nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 98px;
  gap: 2rem;
}

.ma-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.ma-logo span { color: var(--accent); }
.ma-logo img {
  height: 84px;
  width: auto;
  display: block;
  object-fit: contain;
  border: 1px solid #fff;
  border-radius: 6px;
}

.ma-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
  margin-left: auto;
}

.ma-nav-links > li { position: relative; }

.ma-nav-links > li > a {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.ma-nav-links > li > a:hover,
.ma-nav-links > li > a.active {
  color: #fff;
  background: rgba(0,200,255,0.12);
}

/* Dropdown */
.ma-nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--primary-mid);
  border: 1px solid rgba(0,200,255,0.15);
  border-radius: var(--radius);
  padding: 0.75rem;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  z-index: 999;
}

.ma-nav-links li:hover .dropdown-menu { display: block; }

.ma-nav-links .dropdown-menu li a {
  display: block;
  color: rgba(255,255,255,0.78);
  padding: 0.7rem 1.1rem;
  border-radius: 6px;
  font-size: 1rem;
  transition: all .15s;
}
.ma-nav-links .dropdown-menu li a:hover {
  color: var(--accent);
  background: rgba(0,200,255,0.08);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 0.7rem 1.75rem !important;
}
.nav-cta:hover { background: #33d4ff !important; }

/* Mobile toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: #fff; font-size: 1.5rem; }

/* =============================================
   HERO TAGLINE
   ============================================= */
.hero-tagline {
  background: var(--primary);
  padding: calc(98px + 1.25rem) 2rem 1.25rem;
  border-bottom: 1px solid rgba(0,200,255,0.12);
}

.hero-tagline-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero-tagline p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.5px;
  margin: 0;
}

.hero-tagline .accent-word { color: var(--accent); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 70vh;
  background: var(--primary);
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  padding: 0 2rem;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-bg-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,255,0.12) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}

.hero-bg-glow-2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 70%);
  bottom: -100px; left: 100px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 110px 0 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,200,255,0.1);
  border: 1px solid rgba(0,200,255,0.25);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #fff;
  max-width: 800px;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero h1 .accent-word { color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.2s ease both;
  font-weight: 300;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: #33d4ff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,200,255,0.35); }

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: fadeUp 0.7s 0.4s ease both;
}
.stat-item {}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}
.stat-number span { color: var(--accent); }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

/* =============================================
   SECTION SHARED
   ============================================= */
section { padding: var(--section-pad); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =============================================
   SERVICES
   ============================================= */
.services-section { background: var(--surface); }

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all .3s;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,200,255,0.3);
}

.service-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.service-card-body { padding: 1.5rem; }

.service-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1rem;
  transition: gap .2s;
}
.service-card:hover .service-card-link { gap: 10px; }

/* =============================================
   INDUSTRIES
   ============================================= */
.industries-section { background: var(--primary); }
.industries-section .section-title { color: #fff; }
.industries-section .section-label { }
.industries-section .section-sub { color: rgba(255,255,255,0.55); }

.industries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.industry-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  padding: 0.65rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.industry-pill:hover {
  background: rgba(0,200,255,0.12);
  border-color: rgba(0,200,255,0.4);
  color: var(--accent);
  transform: translateY(-2px);
}
.industry-pill .pill-icon { font-size: 1rem; }

/* =============================================
   CTA BAND
   ============================================= */
.cta-band {
  background: linear-gradient(135deg, #0057B8, #0A1628 60%, #001830);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,255,0.15) 0%, transparent 70%);
  right: -100px; top: -100px;
  pointer-events: none;
}
.cta-band-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  letter-spacing: -1px;
  max-width: 560px;
}
.cta-band p { color: rgba(255,255,255,0.6); margin-top: 0.75rem; font-size: 1rem; }

/* =============================================
   BLOG / INSIGHTS
   ============================================= */
.blog-section { background: #fff; }

.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.view-all-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0,200,255,0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all .2s;
}
.view-all-link:hover { background: rgba(0,200,255,0.06); }

.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0,200,255,0.2); }

.blog-card.featured { grid-row: span 2; }

.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card.featured .blog-card-img { height: 260px; }

.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.blog-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.blog-card.featured h3 { font-size: 1.25rem; }

.blog-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.blog-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }

/* =============================================
   FOOTER
   ============================================= */
.ma-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.65);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {}
.footer-brand .ma-logo { font-size: 1.4rem; margin-bottom: 1rem; display: inline-flex; }
.footer-brand .ma-logo img { height: 72px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.75; max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.8rem; }

.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: all .2s;
}
.social-links a:hover { background: rgba(0,200,255,0.15); color: var(--accent); }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: var(--primary);
  padding: 140px 2rem 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -2px; }
.page-hero p { color: rgba(255,255,255,0.6); max-width: 560px; margin: 1rem auto 0; font-size: 1rem; }

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-main);
  background: #fff;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 140px; resize: vertical; }

.contact-info-box {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #fff;
}
.contact-info-box h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.contact-info-box p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.75; }
.contact-detail { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.5rem; font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.contact-detail-icon { width: 36px; height: 36px; background: rgba(0,200,255,0.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* =============================================
   ALERTS
   ============================================= */
.alert-success {
  background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.3);
  color: #006644;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card.featured { grid-row: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ma-nav-links { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .ma-nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 98px; left: 0; right: 0;
    background: var(--primary);
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    gap: 0.25rem;
  }
  .ma-nav-links.open .dropdown-menu { position: static; display: none; background: rgba(255,255,255,0.05); }
  .hero h1 { font-size: 2.5rem; letter-spacing: -1px; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .industries-grid { }
  :root { --section-pad: 3.5rem 0; }
}
