/* ============================================
   MINALPHA Accounting – Shared Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ---- DESIGN TOKENS ---- */
:root {
  --primary:       #5769AA;
  --primary-dark:  #3E508E;
  --primary-light: #EEF1F9;
  --dark:          #1F2D52;
  --text:          #4A5568;
  --text-light:    #718096;
  --light-bg:      #F5F7FC;
  --border:        #DDE3F0;
  --white:         #FFFFFF;
  --shadow-sm:     0 1px 4px rgba(31,45,82,.07);
  --shadow:        0 4px 16px rgba(31,45,82,.10);
  --shadow-lg:     0 8px 32px rgba(31,45,82,.14);
  --radius:        8px;
  --radius-lg:     14px;
  --transition:    all .22s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a  { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- LAYOUT ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: 84px 0; }

/* ---- NAVIGATION ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1180px;
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 46px;
  height: 46px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark);
  letter-spacing: 0.07em;
}
.nav-logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 4px;
  margin-top: 4px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dark);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.nav-links .nav-btn {
  background: var(--primary);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 50px;
  border-bottom: none !important;
  letter-spacing: 0.07em;
}
.nav-links .nav-btn:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(87,105,170,.4);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.65);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border-color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---- SECTION LABELS & HEADINGS ---- */
.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-title { margin-bottom: 14px; }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.7;
}
.section-hdr { margin-bottom: 56px; }
.section-hdr.center { text-align: center; }
.section-hdr.center .section-sub { margin: 0 auto; }

.divider {
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 18px;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card-icon {
  width: 54px;
  height: 54px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 1.4rem;
}

/* ---- SERVICE LIST ---- */
.service-list {
  list-style: none;
  padding: 0;
  margin-top: 12px;
}
.service-list li {
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.93rem;
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
}

/* ---- GRIDS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- PAGE HEADER ---- */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, #304090 60%, var(--primary) 100%);
  padding: 80px 0;
  color: var(--white);
}
.page-header .label { color: rgba(255,255,255,.65); }
.page-header h1 { color: var(--white); margin-bottom: 14px; }
.page-header p { color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 520px; }

/* ---- ALTERNATE SECTION BG ---- */
.bg-light { background: var(--light-bg); }
.bg-dark {
  background: var(--dark);
  color: rgba(255,255,255,.8);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--white); }

/* ---- CTA SECTION ---- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  padding: 88px 0;
  text-align: center;
  color: var(--white);
}
.cta-section h2 { color: var(--white); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,.8); font-size: 1.08rem; margin-bottom: 34px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 52px;
}
.footer-logo-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: .07em;
}
.footer-logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 4px;
  margin-top: 4px;
}
.footer-tagline {
  font-style: italic;
  color: rgba(255,255,255,.5);
  margin-top: 16px;
  font-size: .93rem;
}
.footer h4 {
  color: var(--white);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.55); font-size: .9rem; }
.footer-links a:hover { color: var(--white); }
.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .88rem;
}
.footer-contact-row i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: var(--white); }

/* ---- VALUE BADGE ---- */
.value-badge {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.value-badge-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.value-badge-text h4 { margin-bottom: 6px; color: var(--dark); }
.value-badge-text p { font-size: .9rem; margin: 0; color: var(--text-light); }

/* ---- SERVICE DETAIL SECTION ---- */
.service-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.service-section:last-of-type { border-bottom: none; }
.service-section-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 60px;
  align-items: start;
}
.service-section-left .card-icon { margin-bottom: 16px; }
.service-section-left h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service-section-left p { font-size: .95rem; color: var(--text-light); }

.service-sub-group { margin-top: 20px; }
.service-sub-group:first-child { margin-top: 0; }
.service-sub-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

/* ---- INDUSTRY CARD ---- */
.industry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}
.industry-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.industry-card-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.8rem;
  color: var(--primary);
  transition: var(--transition);
}
.industry-card:hover .industry-card-icon {
  background: var(--primary);
  color: var(--white);
}
.industry-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.industry-card p { font-size: .88rem; color: var(--text-light); }

/* ---- STAT STRIP ---- */
.stat-strip {
  background: var(--primary);
  padding: 40px 0;
}
.stat-strip-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; color: var(--white); }
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}
.stat-label { font-size: .85rem; color: rgba(255,255,255,.75); margin-top: 6px; }

/* ---- CONTACT FORM ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif;
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(87,105,170,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.contact-info-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: rgba(255,255,255,.75);
}
.contact-info-card h3 { color: var(--white); margin-bottom: 24px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.contact-info-item strong { display: block; color: var(--white); font-size: .88rem; margin-bottom: 2px; }
.contact-info-item span { font-size: .88rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .service-section-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .page-header { padding: 52px 0; }
  .cta-section { padding: 60px 0; }
  .section-hdr { margin-bottom: 36px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius);
  }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-strip-inner { gap: 36px; }
  .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 12px 16px; }
  section { padding: 44px 0; }
  .page-header { padding: 40px 0; }
  .cta-section { padding: 48px 0; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .stat-number { font-size: 1.9rem; }
  .card { padding: 24px 20px; }
}
