/* ===========================================================
   LogixWerk — shared stylesheet
   =========================================================== */

:root {
  --accent: #116DFF;
  --accent-light: #42A4FD;
  --text-dark: #414141;
  --text-body: #4f4f4f;
  --bg-page: #F5F5F5;
  --bg-white: #FFFFFF;
  --border-light: #e2e8f0;
  --footer-bg: #EDEDED;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Wix Madefor Text', Arial, sans-serif;
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Wix Madefor Display', Arial, sans-serif;
  color: var(--text-dark);
  margin: 0 0 16px;
  font-weight: 600;
  line-height: 1.25;
}

p { margin: 0 0 16px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-family: 'Wix Madefor Display', Arial, sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover {
  background: var(--accent-light);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo-link img { height: 42px; }
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-family: 'Wix Madefor Display', Arial, sans-serif;
}
nav.main-nav a:hover { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  nav.main-nav ul {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    display: none;
    border-bottom: 1px solid var(--border-light);
  }
  nav.main-nav ul.open { display: flex; }
  nav.main-nav li { padding: 14px 24px; border-top: 1px solid var(--border-light); }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-dark);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(17,109,255,0.88), rgba(17,109,255,0.72)), url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 110px 24px;
  text-align: center;
}
.hero h1 { color: #fff; font-size: 2.6rem; max-width: 820px; margin: 0 auto 20px; }
.hero p { color: #eef4ff; max-width: 740px; margin: 0 auto 32px; font-size: 1.08rem; }
.hero .btn { background: #fff; color: var(--accent); }
.hero .btn:hover { background: #eef4ff; }

@media (max-width: 600px) {
  .hero { padding: 72px 20px; }
  .hero h1 { font-size: 1.9rem; }
}

/* ---------- Generic section ---------- */
.section { padding: 72px 24px; }
.section.alt { background: #fff; }
.section-title { text-align: center; margin-bottom: 12px; font-size: 2rem; }
.section-subtitle {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  color: var(--text-body);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
}
.about-grid img {
  border-radius: 10px;
  border: 3px solid var(--accent-light);
}
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-grid img { margin: 0 auto; max-width: 200px; }
}

/* ---------- Vision / panel ---------- */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
}
.vision-grid img { border-radius: 10px; }
@media (max-width: 760px) {
  .vision-grid { grid-template-columns: 1fr; }
  .vision-grid .vision-img { order: -1; max-width: 320px; margin: 0 auto 24px; }
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--accent-light);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  box-shadow: 0 10px 24px rgba(17,109,255,0.15);
  transform: translateY(-3px);
}
.service-card img { width: 100%; height: 190px; object-fit: cover; }
.service-card .service-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { font-size: 0.95rem; flex: 1; margin-bottom: 16px; }
.service-card .learn-more {
  font-family: 'Wix Madefor Display', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Service detail page ---------- */
.service-hero {
  padding: 48px 24px 0;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.breadcrumb { font-size: 0.9rem; margin-bottom: 18px; }
.service-detail-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  margin: 32px 0;
}
.service-detail-body { max-width: 760px; margin: 0 auto; padding: 0 24px 72px; }
.service-nav-links {
  display: flex;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto 72px;
  padding: 0 24px;
  font-family: 'Wix Madefor Display', Arial, sans-serif;
  font-weight: 600;
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.blog-card {
  background: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.08); transform: translateY(-3px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card .blog-body { padding: 20px 22px; }
.blog-card .meta { font-size: 0.82rem; color: #8a8a8a; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.1rem; }

.blog-post-header { max-width: 760px; margin: 0 auto; padding: 48px 24px 0; text-align: center; }
.blog-post-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; margin: 32px 0; }
.blog-post-body { max-width: 760px; margin: 0 auto; padding: 0 24px 72px; }
.blog-post-body h2 { margin-top: 36px; font-size: 1.4rem; }
.blog-post-meta { font-size: 0.9rem; color: #8a8a8a; margin-bottom: 8px; }

/* ---------- Contact / Footer ---------- */
footer.site-footer {
  background: var(--footer-bg);
  padding: 56px 24px 28px;
  border-top: 1px solid var(--border-light);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}
.footer-grid::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: var(--accent);
  opacity: 0.6;
}
.footer-col .logo-link img { height: 38px; margin-bottom: 18px; }
.footer-col h3 { font-size: 1.3rem; }
.footer-contact p { margin: 0 0 10px; font-size: 0.95rem; }
.footer-contact a { color: var(--text-dark); }
.social-row { display: flex; gap: 14px; margin-top: 18px; }
.social-row img { height: 22px; width: 22px; }
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 0.85rem;
  color: #7a7a7a;
}
@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid::before { display: none; }
}
