/* ═══════════════════════════════════════════════════════════
   Apple Design System — Shared Styles
   Inspired by DESIGN.md (Apple.com patterns)
   Color scheme preserved: #0071e3 / #005bb5 / #333 / #111
   ═══════════════════════════════════════════════════════════ */

/* ─── Typography ─── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1 {
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.10;
  letter-spacing: -0.28px;
}

h3 {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.2px;
}

h4 {
  font-size: 1.31rem;
  font-weight: 700;
  line-height: 1.19;
  letter-spacing: -0.2px;
}

h5 {
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.374px;
}

p {
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
}

small, .small, .caption {
  font-size: 14px;
  letter-spacing: -0.224px;
  line-height: 1.29;
}

/* ─── Buttons — pill-shaped, clean ─── */
.btn {
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  padding: 10px 24px;
  text-transform: none;
  letter-spacing: -0.02em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  opacity: 0.92;
}

.btn-primary {
  background: #0071e3;
  border-color: #0071e3;
}

.btn-primary:hover {
  background: #005bb5;
  border-color: #005bb5;
}

.btn-lg {
  font-size: 17px;
  padding: 12px 28px;
  border-radius: 980px;
}

.btn-sm {
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 980px;
}

.btn-outline-primary {
  border-color: #0071e3;
  color: #0071e3;
  border-radius: 980px;
}

.btn-outline-primary:hover {
  background: #0071e3;
  color: #fff;
}

/* ─── Cards — minimal, clean elevation ─── */
.card,
.feature-card,
.about-item,
.erp-card,
.portfolio-card,
.service-card,
.pricing-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover,
.feature-card:hover,
.about-item:hover,
.erp-card:hover,
.portfolio-card:hover,
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ─── Section spacing — cinematic breathing room ─── */
section,
.section {
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}

/* ─── Container — Apple-style max-width ─── */
.container {
  max-width: 980px;
}

/* ─── Backgrounds ─── */
.bg-light {
  background-color: #f5f5f7 !important;
}

/* ─── Heading titles ─── */
.heading-title,
.content-title {
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
}

.lead {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: #6e6e73;
}

/* ─── Links ─── */
a {
  transition: all 0.3s ease;
}

/* ─── Focus states — accessibility ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 2px;
}

/* ─── Rounded helpers ─── */
.rounded-3,
.rounded-4 {
  border-radius: 12px !important;
}

/* ─── Shadows ─── */
.shadow-sm {
  box-shadow: none !important;
}

.shadow-sm:hover {
  box-shadow: rgba(0, 0, 0, 0.12) 3px 5px 30px !important;
}

/* ─── Dropdown menus — Apple style ─── */
.dropdown-menu {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 0;
}

.dropdown-item {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  margin: 0 6px;
  transition: all 0.25s ease;
}

.dropdown-item:hover {
  background: rgba(0, 113, 227, 0.08);
}

/* ─── Page header / breadcrumb sections ─── */
.page-title,
.page-header {
  padding: 120px 0 60px;
}

/* ─── Badge ─── */
.badge {
  border-radius: 980px;
  font-weight: 500;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: -0.12px;
}

/* ─── Form controls ─── */
.form-control {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* ─── Responsive typography ─── */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  .heading-title,
  .content-title {
    font-size: 2.25rem;
  }

  section,
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}
