/* Maxificient Inc. - Main Stylesheet
   EASY CUSTOMIZATION: Change colors by updating the variables below.
   For text changes, edit the HTML files instead.
*/

/* ========== Variables & Reset ========== */
:root {
  /* ========== BRAND COLORS ========== */
  --primary-purple-start: #6c63ff; /* Main brand color - gradient start */
  --primary-purple-end: #b569ff; /* Main brand color - gradient end */
  --action-button-color: #17b2ff; /* CTA buttons color */
  --action-button-gradient: linear-gradient(90deg, #17b2ff, #6bd1bb);

  /* ========== NEUTRAL COLORS ========== */
  --background-white: #ffffff;
  --background-light: #fafafa;
  --text-dark: #1d1b20;
  --text-gray: #666666;

  /* ========== LAYOUT ========== */
  --container-max-width: 1100px;
  --page-gutter: 24px;

  /* ========== EFFECTS ========== */
  --shadow-soft: 0 6px 18px rgba(29, 27, 32, 0.06);
  --radius-card: 8px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color: var(--text-dark);
  background: var(--background-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  font-size: 18px;
}

html {
  scroll-behavior: smooth;
}

.section-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 48px var(--page-gutter);
}

.section-inner.narrow {
  max-width: 820px;
}

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 85px;
  display: flex;
  align-items: center;
  background: linear-gradient(
    90deg,
    var(--brand-gradient-start),
    var(--brand-gradient-end)
  );
  color: white;
  z-index: 60;
  box-shadow: 0 6px 20px rgba(29, 27, 32, 0.05);
  padding: 0 var(--page-gutter);
}

.header-inner {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.brand-link {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

/* Primary navigation (desktop) */
.primary-navigation {
  display: block;
}
.navigation-list {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navigation-link {
  color: white;
  font-weight: 600;
  text-decoration: none;
  font-size: 17px;
  padding: 6px 10px;
  border-radius: 6px;
}
.navigation-link:hover,
.navigation-link:focus {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.mobile-menu a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
}

.mobile-hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  width: 32px;
  height: 32px;
}

.mobile-hamburger .hamburger-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.mobile-hamburger .close-icon {
  display: none;
}

.mobile-hamburger.is-open .hamburger-icon {
  display: none;
}

.mobile-hamburger.is-open .close-icon {
  display: block;
}

.mobile-menu {
  position: absolute;
  top: 74px;
  width: 100%;
  max-width: none;
  left: 0;
  right: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    90deg,
    var(--brand-gradient-start),
    var(--brand-gradient-end)
  );
  padding: 20px var(--page-gutter);
  z-index: 100;
  border-bottom-left-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
  pointer-events: none;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ========== Hero ========== */
.hero-section {
  padding-top: 146px;
  padding-bottom: 64px;
  text-align: center;
  background-color: white;
}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px var(--page-gutter);
}
.hero-title {
  font-size: 29px;
  font-weight: 600;
  margin: 0 0 16px;
}
.hero-subtitle {
  color: #7a7a7a;
  margin: 0 0 28px;
  font-size: 18px;
}

.cta-button {
  display: inline-block;
  background: var(--action-button-gradient);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  font-size: 18px;
  transition: all 0.18s ease;
  display: inline-block;
}
.cta-button:hover {
  transform: translateY(-2px);
  transition: all 0.18s ease;
}

/* ========== Services cards ========== */
.services-overview {
  background: #fafafa;
  padding: 48px 0;
  border-top: 1px solid rgba(29, 27, 32, 0.02);
}
.section-title {
  text-align: center;
  margin: 12px 0 28px;
  font-weight: 700;
  font-size: 22px;
  color: #222;
}

.cards-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  padding: 10px var(--page-gutter) 48px;
  align-items: stretch;
  flex-wrap: wrap;
}

.service-card {
  width: 360px;
  min-height: 360px;
  background: white;
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  text-align: left;
}
.card-text {
  color: #6b6b6b;
  font-size: 17px;
  margin: 0 0 8px;
  text-align: justify;
  text-justify: inter-word;
}
.card-bullets {
  margin: 0;
  padding-left: 18px;
  color: #767676;
  font-size: 17px;
  text-align: justify;
  text-justify: inter-word;
}
.card-button {
  margin-top: auto;
  align-self: center;
  background: var(--action-button-gradient);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 17px;
  transition: all 0.18s ease;
  display: inline-block;
  box-shadow: var(--shadow-soft);
}

.card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 27, 32, 0.1);
}

/* ========== Service detail sections ========== */
.service-detail {
  background: white;
  padding: 48px 0;
}

#detail-ai-advisory {
  background: #fafafa;
  border-top: 1px solid rgba(29, 27, 32, 0.02);
}

.detail-heading {
  text-align: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.detail-text {
  color: #666;
  font-size: 17px;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
}
.detail-subheading {
  margin-top: 18px;
  font-weight: 700;
  font-size: 17px;
}
.detail-bullets {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 0;
}
.detail-bullets li {
  margin: 8px 0;
  padding-left: 32px;
  position: relative;
  color: #515151;
  font-size: 17px;
  text-align: justify;
  text-justify: inter-word;
}
.detail-bullets li.bullet-with-check::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  position: absolute;
  left: 0;
  top: 2px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%231D1B20" d="M10 16.4L6 12.4L7.4 11L10 13.6L16.6 7L18 8.4L10 16.4Z"/></svg>');
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

/* ========== About & Contact ========== */
.about-section {
  background: white;
  padding: 48px 0;
}
.about-text {
  color: #666;
  font-size: 17px;
  text-align: justify;
  text-justify: inter-word;
}

/* Contact grid */
.contact-inner {
  text-align: center;
}
.contact-grid {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0 12px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-value {
  margin: 4px 0 0;
  font-weight: 600;
  font-size: 17px;
}

.contact-section {
  background: #fafafa;
}

.contact-text {
  color: #666;
  font-size: 17px;
  line-height: 1.6;
}

/* footer */
.site-footer {
  padding: 28px 0;
  background: linear-gradient(
    90deg,
    var(--brand-gradient-start),
    var(--brand-gradient-end)
  );
  color: white;
}
.footer-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  text-align: center;
  font-size: 17px;
}

/* ===== Card Header (icon + title aligned side by side) ===== */
.card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  text-align: center;
}

.card-header .card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.card-header .card-title {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

/* ========== Logo Styles ========== */
.brand-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-image {
  height: 70px;
  width: auto;
  transition: all 0.3s ease;
}

/* Header adjustments for logo */
.header-left {
  display: flex;
  align-items: center;
  height: 100%;
}

/* ========== Responsive behavior ========== */
@media (max-width: 900px) {
  .cards-row {
    gap: 18px;
    justify-content: center;
    align-items: stretch;
  }
  .service-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 26px;
  }

  .logo-image {
    height: 58px;
  }
}

/* Mobile-specific */
@media (max-width: 780px) {
  .primary-navigation {
    display: none;
  }
  .mobile-hamburger {
    display: block;
  }
  .hero-content {
    padding: 28px var(--page-gutter) 40px;
  }
  .hero-title {
    font-size: 24px;
  }
  .section-inner {
    padding: 28px var(--page-gutter);
  }
  .site-header {
    height: 75px;
    padding: 0 var(--page-gutter);
  }
  .header-inner {
    padding: 10px 0;
    max-width: 900px;
  }
  .section-title {
    font-size: 20px;
  }

  .detail-heading {
    font-size: 20px;
  }

  /* Cards stack vertically to match the mobile request */
  .cards-row {
    flex-direction: column;
    padding: 10px var(--page-gutter) 20px;
    align-items: stretch;
    gap: 20px;
  }
  .service-card {
    min-height: unset;
    width: 100%;
    max-width: 400px;
    padding: 20px;
  }

  .logo-image {
    height: 58px;
    max-width: 220px;
  }
}

@media (min-width: 781px) {
  .mobile-hamburger {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 400px) {
  .service-card {
    max-width: 100%;
    padding: 15px;
  }

  .logo-image {
    height: 58px;
    max-width: 220px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Remove focus outline entirely for navigation links */
.navigation-link:focus:not(:hover),
.mobile-navigation-link:focus:not(:hover) {
  background: transparent;
  outline: none;
}
