/**
 * Apple-Inspired Layout for SMC Contracting
 * Minimal, fast-loading CSS for modern navigation and card grid
 */

/* ============================================
   NAVIGATION BAR (Apple-style)
   ============================================ */

.apple-nav {
  background-color: rgba(180, 200, 174, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.apple-nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apple-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.apple-nav-item {
  margin: 0;
  padding: 0;
}

.apple-nav-link {
  color: #1d1d1f;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0.75;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  line-height: 66px;
}

.apple-nav-link:hover {
  opacity: 1;
  color: #1d1d1f;
}

.apple-logo {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  text-decoration: none;
}

/* Mobile nav icons - hidden on desktop */
.mobile-nav-icons {
  display: none;
  align-items: center;
  gap: 16px;
}

.mobile-nav-icon {
  color: #1d1d1f;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.mobile-nav-icon:hover {
  opacity: 1;
}

.burger-btn {
  font-family: inherit;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .apple-nav-inner {
    padding: 0 16px;
  }

  /* Hide desktop nav links and phone */
  .apple-nav-list {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background-color: rgba(180, 200, 174, 0.97);
    backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    padding: 16px 22px 24px;
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .apple-nav-list.open {
    display: flex;
  }

  .apple-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .apple-nav-item:last-child {
    border-bottom: none;
  }

  .apple-nav-link {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    opacity: 1;
  }

  .apple-nav-right {
    display: none;
  }

  /* Show mobile icons */
  .mobile-nav-icons {
    display: flex;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.apple-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to bottom, #f5f5f7 0%, #ffffff 100%);
}

.apple-hero h1 {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.07143;
  margin: 0 0 8px;
  color: #1d1d1f;
}

.apple-hero .subtitle {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.004em;
  line-height: 1.14286;
  margin: 0 0 20px;
  color: #1d1d1f;
}

.apple-hero .tagline {
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  color: #6e6e73;
  margin: 0 0 32px;
}

@media (max-width: 768px) {
  .apple-hero h1 {
    font-size: 40px;
  }

  .apple-hero .subtitle {
    font-size: 24px;
  }

  .apple-hero .tagline {
    font-size: 19px;
  }
}

/* ============================================
   CARD GRID LAYOUT (Product Showcase Style)
   ============================================ */

.apple-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.apple-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

/* Large featured card - spans 2 columns */
.apple-card-large {
  grid-column: span 2;
}

/* Card styling */
.apple-card {
  background-color: #fbfbfd;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 40px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.apple-card:hover {
  transform: scale(1.02);
}

/* Card with dark background */
.apple-card-dark {
  background-color: #000000;
  color: #f5f5f7;
}

.apple-card-dark .apple-card-title {
  color: #f5f5f7;
}

.apple-card-dark .apple-card-subtitle {
  color: #a1a1a6;
}

/* Card content */
.apple-card-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.apple-card-title {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.003em;
  line-height: 1.08349;
  margin: 0 0 4px;
  color: #1d1d1f;
}

.apple-card-subtitle {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.16667;
  margin: 0 0 12px;
  color: #6e6e73;
}

.apple-card-description {
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  color: #6e6e73;
  margin: 0 0 24px;
}

/* Card links */
.apple-card-links {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
}

.apple-link {
  color: #06c;
  text-decoration: none;
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.apple-link:hover {
  color: #0077ed;
  text-decoration: underline;
}

.apple-link-dark {
  color: #2997ff;
}

.apple-link-dark:hover {
  color: #147ce5;
}

.apple-link::after {
  content: '›';
  margin-left: 6px;
  font-size: 20px;
  font-weight: 400;
}

/* Responsive grid */
@media (max-width: 1068px) {
  .apple-cards {
    gap: 10px;
  }

  .apple-card {
    min-height: 480px;
    padding: 50px 30px;
  }

  .apple-card-title {
    font-size: 40px;
  }

  .apple-card-subtitle {
    font-size: 21px;
  }
}

@media (max-width: 768px) {
  .apple-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .apple-card-large {
    grid-column: span 1;
  }

  .apple-card {
    min-height: 420px;
    padding: 40px 24px;
  }

  .apple-card-title {
    font-size: 32px;
  }

  .apple-card-subtitle {
    font-size: 19px;
  }

  .apple-card-description {
    font-size: 15px;
  }

  .apple-link {
    font-size: 15px;
  }
}

/* ============================================
   BUTTONS (Apple CTA Style)
   ============================================ */

.apple-button {
  display: inline-block;
  background-color: #0071e3;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 17px;
  line-height: 1.17648;
  font-weight: 400;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.apple-button:hover {
  background-color: #0077ed;
  color: #ffffff;
}

.apple-button-secondary {
  background-color: transparent;
  color: #0071e3;
  border: 1px solid #0071e3;
}

.apple-button-secondary:hover {
  background-color: #0071e3;
  color: #ffffff;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

/* ============================================
   TYPOGRAPHY BASE (Apple SF Pro style)
   ============================================ */

html, body {
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   SECTION SPACING
   ============================================ */

.apple-section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .apple-section {
    padding: 60px 0;
  }
}
