/* ==========================================================================
   Apple Web Design System for DAS (Dafami Asasta Sejahtera)
   Author: Antigravity AI
   ========================================================================== */

:root {
  /* Brand & Accent */
  --colors-primary: #0066cc;
  --colors-primary-focus: #0071e3;
  --colors-primary-on-dark: #2997ff;

  /* Surface */
  --colors-canvas: #ffffff;
  --colors-canvas-parchment: #f5f5f7;
  --colors-surface-pearl: #fafafc;
  --colors-surface-tile-1: #272729;
  --colors-surface-tile-2: #2a2a2c;
  --colors-surface-tile-3: #252527;
  --colors-surface-black: #000000;
  --colors-surface-chip-translucent: rgba(210, 210, 215, 0.64);

  /* Text */
  --colors-ink: #1d1d1f;
  --colors-body: #1d1d1f;
  --colors-body-on-dark: #ffffff;
  --colors-body-muted: #cccccc;
  --colors-ink-muted-80: #333333;
  --colors-ink-muted-48: #7a7a7a;

  /* Hairlines & Borders */
  --colors-divider-soft: rgba(0, 0, 0, 0.04);
  --colors-hairline: #e0e0e0;

  /* Spacing System */
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 17px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-section: 80px;

  /* Shapes & Radii */
  --rounded-none: 0px;
  --rounded-xs: 5px;
  --rounded-sm: 8px;
  --rounded-md: 11px;
  --rounded-lg: 18px;
  --rounded-pill: 9999px;
  --rounded-full: 50%;

  /* Typography Fonts */
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  --font-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;

  /* Elevation */
  --product-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
}

/* ==========================================================================
   Base Elements & Resets
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s ease, border-color 0.2s ease;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--colors-body);
  background-color: var(--colors-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar adjustment */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(120, 120, 120, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(120, 120, 120, 0.5);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--colors-ink);
}

/* Custom typographic variants for Apple Cadence */
.hero-display {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
}

.display-lg {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.10;
  letter-spacing: -0.01em;
}

.display-md {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.374px;
}

.lead-copy {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.196px;
}

.lead-airy {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
}

.tagline-label {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.231px;
}

.body-strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.374px;
}

.caption-label {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.224px;
}

.caption-strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.224px;
}

.fine-print {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.12px;
}

/* Section vertical padding */
.section-pad {
  padding-top: var(--spacing-section);
  padding-bottom: var(--spacing-section);
}

/* ==========================================================================
   Navigation (Global Nav & Frosted Sub-Nav)
   ========================================================================== */
/* ==========================================================================
   Navigation (Consolidated Single Header)
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1050;
  display: flex;
  align-items: center;
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.header-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.header-logo-text {
  display: flex;
  flex-direction: column;
}

.header-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--colors-ink);
  line-height: 1.2;
}

.header-brand-tag {
  font-size: 11px;
  color: var(--colors-primary);
  font-weight: 600;
  line-height: 1.2;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.header-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.12px;
  color: rgba(29, 29, 31, 0.8) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.header-links a:hover {
  color: var(--colors-primary) !important;
}

.header-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--colors-ink);
}

.header-toggle i {
  font-size: 24px;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--colors-surface-black);
  z-index: 1045;
  display: none;
  flex-direction: column;
  padding: 48px 40px;
  overflow-y: auto;
}

.mobile-nav-overlay.active {
  display: flex;
  animation: fadeInOverlay 0.3s ease-out forwards;
}

@keyframes fadeInOverlay {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-nav-links a {
  color: #ffffff !important;
  font-size: 24px;
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

.mobile-nav-links a:hover {
  opacity: 0.7;
}

/* Responsive adjustment for brand name and tagline */
@media (max-width: 576px) {
  .header-brand-name {
    font-size: 13px;
  }
  .header-brand-tag {
    display: none;
  }
  .header-logo {
    gap: 8px;
  }
  .header-logo img {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button-primary {
  display: inline-block;
  background-color: var(--colors-primary);
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.224px;
  padding: 8px 16px;
  border-radius: var(--rounded-pill);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.button-primary:hover {
  background-color: var(--colors-primary-focus);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.24);
  transform: translateY(-1px);
}

.button-primary:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 2px 6px rgba(0, 102, 204, 0.16);
}

.button-primary-nav {
  display: inline-block;
  background-color: var(--colors-primary);
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  padding: 4px 12px;
  border-radius: var(--rounded-pill);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s ease !important;
}

.button-primary-nav:hover {
  background-color: var(--colors-primary-focus);
  transform: translateY(-1px);
}

.button-primary-nav:active {
  transform: translateY(1px) scale(0.97);
}

.button-secondary-pill {
  display: inline-block;
  background-color: transparent;
  color: var(--colors-primary) !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.224px;
  padding: 8px 16px;
  border-radius: var(--rounded-pill);
  border: 1px solid var(--colors-primary);
  cursor: pointer;
  text-decoration: none !important;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s ease, border-color 0.2s ease !important;
}

.button-secondary-pill:hover {
  background-color: rgba(0, 102, 204, 0.05);
  transform: translateY(-1px);
}

.button-secondary-pill:active {
  transform: translateY(1px) scale(0.97);
}

.button-dark-utility {
  display: inline-block;
  background-color: var(--colors-ink);
  color: var(--colors-body-on-dark) !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.224px;
  padding: 8px 15px;
  border-radius: var(--rounded-sm);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  text-align: center;
}

.button-dark-utility:hover {
  opacity: 0.9;
}

.button-dark-utility:active {
  transform: scale(0.95);
}

.button-pearl-capsule {
  display: inline-block;
  background-color: var(--colors-surface-pearl);
  color: var(--colors-ink-muted-80) !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.224px;
  padding: 8px 14px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--colors-divider-soft);
  cursor: pointer;
  text-decoration: none !important;
}

.button-pearl-capsule:hover {
  background-color: #f0f0f3;
}

.button-pearl-capsule:active {
  transform: scale(0.95);
}

.button-icon-circular {
  width: 44px;
  height: 44px;
  border-radius: var(--rounded-full);
  background-color: var(--colors-surface-chip-translucent);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: var(--colors-ink);
  transition: background-color 0.2s ease;
}

.button-icon-circular:hover {
  background-color: rgba(210, 210, 215, 0.8);
}

.button-icon-circular:active {
  transform: scale(0.95);
}

.text-link {
  color: var(--colors-primary);
  font-family: var(--font-body);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link-on-dark {
  color: var(--colors-primary-on-dark);
  font-family: var(--font-body);
  text-decoration: none;
}

.text-link-on-dark:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Tiles & Grids
   ========================================================================== */
.product-tile-light {
  background-color: var(--colors-canvas);
  color: var(--colors-ink);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-radius: var(--rounded-none);
}

.product-tile-parchment {
  background-color: var(--colors-canvas-parchment);
  color: var(--colors-ink);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-radius: var(--rounded-none);
}

.product-tile-dark {
  background-color: var(--colors-surface-tile-1);
  color: var(--colors-body-on-dark);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-radius: var(--rounded-none);
  position: relative;
}

.product-tile-dark#home {
  background: radial-gradient(circle at center, #1c1c1e 0%, #000000 100%) !important;
}

.product-tile-dark h1,
.product-tile-dark h2,
.product-tile-dark h3,
.product-tile-dark h4 {
  color: var(--colors-body-on-dark);
}

.product-tile-dark-2 {
  background-color: var(--colors-surface-tile-2);
  color: var(--colors-body-on-dark);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-radius: var(--rounded-none);
}

.product-tile-dark-2 h1,
.product-tile-dark-2 h2,
.product-tile-dark-2 h3,
.product-tile-dark-2 h4 {
  color: var(--colors-body-on-dark);
}

.product-tile-dark-3 {
  background-color: var(--colors-surface-tile-3);
  color: var(--colors-body-on-dark);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-radius: var(--rounded-none);
}

.tile-headline {
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.tile-subcopy {
  color: var(--colors-ink-muted-80);
  margin-bottom: 18px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.product-tile-dark .tile-subcopy,
.product-tile-dark-2 .tile-subcopy,
.product-tile-dark-3 .tile-subcopy {
  color: var(--colors-body-muted);
}

.tile-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

/* Card chassis (Store utility card) */
.store-utility-card {
  background-color: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, border-color 0.3s ease;
}

.store-utility-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Context-aware dark translucent styles for store utility cards inside dark sections */
.product-tile-dark-2 .store-utility-card,
.product-tile-dark-3 .store-utility-card {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.product-tile-dark-2 .store-utility-card:hover,
.product-tile-dark-3 .store-utility-card:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: none !important;
}

.product-tile-dark-2 .store-utility-card h4,
.product-tile-dark-3 .store-utility-card h4 {
  color: #ffffff !important;
}

.product-tile-dark-2 .store-utility-card p,
.product-tile-dark-3 .store-utility-card p {
  color: var(--colors-body-muted) !important;
}

.product-tile-dark-2 .store-utility-card .card-action,
.product-tile-dark-3 .store-utility-card .card-action {
  color: var(--colors-primary-on-dark) !important;
}

.product-tile-dark-2 .store-utility-card .card-action:hover,
.product-tile-dark-3 .store-utility-card .card-action:hover {
  color: #ffffff !important;
}

/* Service icon wrapper base & context styles */
.service-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--rounded-full);
  background-color: rgba(0, 102, 204, 0.08);
  color: var(--colors-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.store-utility-card:hover .service-icon-wrapper {
  transform: scale(1.08);
  background-color: var(--colors-primary);
  color: #ffffff;
}

.product-tile-dark-2 .service-icon-wrapper {
  background-color: rgba(41, 151, 255, 0.12);
  color: var(--colors-primary-on-dark);
}

.product-tile-dark-2 .store-utility-card:hover .service-icon-wrapper {
  background-color: var(--colors-primary-on-dark);
  color: #000000;
}

/* Stats card overrides */
.stats-card {
  background-color: var(--colors-canvas) !important;
  border: 1px solid var(--colors-hairline) !important;
  border-radius: var(--rounded-lg) !important;
  padding: 32px 24px !important;
  text-align: left;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.stats-card h3 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.07;
  color: var(--colors-primary) !important;
  margin-bottom: 10px;
}

.stats-card .stats-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--colors-ink);
  margin-bottom: 12px;
}

.stats-card p {
  font-size: 14px;
  line-height: 1.43;
  color: var(--colors-ink-muted-80);
  margin: 0;
}

.store-card-image-wrapper {
  aspect-ratio: 1 / 1;
  border-radius: var(--rounded-sm);
  background-color: var(--colors-canvas-parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.store-card-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--colors-primary) 0%, var(--colors-primary-on-dark) 100%);
  mix-blend-mode: color;
  pointer-events: none;
  opacity: 0.95;
}

.store-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-utility-card h4,
.store-utility-card h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.24;
  letter-spacing: -0.374px;
  margin-bottom: 6px;
  color: var(--colors-ink);
}

.store-utility-card p {
  font-size: 14px;
  line-height: 1.43;
  color: var(--colors-ink-muted-80);
  margin-bottom: 16px;
  flex-grow: 1;
}

.store-utility-card .card-action {
  font-size: 14px;
  font-weight: 600;
  color: var(--colors-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.store-utility-card .card-action:hover {
  text-decoration: underline;
}

/* System-weighted shadows strictly on elements that resemble mockups / images */
.product-render-shadow {
  box-shadow: var(--product-shadow);
  border-radius: var(--rounded-sm);
}

/* Option chip configurator */
.configurator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.configurator-option-chip {
  background-color: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  color: var(--colors-ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--rounded-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.configurator-option-chip:hover {
  background-color: var(--colors-canvas-parchment);
}

.configurator-option-chip.selected {
  border: 2px solid var(--colors-primary-focus);
  padding: 11px 15px; /* Offset border thickness change */
}

/* ==========================================================================
   Homepage Custom Sections Redesign
   ========================================================================== */

/* Hero Jumbotron Override */
.bg-jumbotron {
  background-color: var(--colors-surface-black) !important;
  background-image: none !important;
  color: white;
  padding: 80px 20px 40px !important;
  position: relative;
  text-align: center;
}

.rotating-image {
  opacity: 0.06;
  pointer-events: none;
}

.left-graphic {
  width: 320px;
  height: 320px;
  position: absolute;
  bottom: -40px;
  left: -40px;
  animation: rotate 60s linear infinite;
}

.right-graphic {
  width: 400px;
  height: 400px;
  position: absolute;
  top: -40px;
  right: -40px;
  animation: rotate 80s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 991px) {
  .rotating-image {
    display: none !important;
  }
}

/* Clients marquee */
.clients-section {
  background-color: var(--colors-canvas-parchment);
  padding: 40px 0;
  border-bottom: 1px solid var(--colors-hairline);
  overflow: hidden;
}

.clients-section .clients-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--colors-ink-muted-80);
  text-align: center;
  margin-bottom: 24px;
}

.clients-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.clients-track {
  display: flex;
  width: max-content;
  animation: scroll-clients 30s linear infinite;
}

.clients-group {
  display: flex;
  align-items: center;
  gap: 60px;
  padding-right: 60px;
}

.clients-group img {
  height: 48px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.clients-group img:hover {
  filter: none;
  opacity: 0.9;
}

@keyframes scroll-clients {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* About us image adjustments */
.about-image-wrapper {
  position: relative;
  padding: 0;
}

.about-image {
  width: 100%;
  border-radius: var(--rounded-lg);
  box-shadow: var(--product-shadow);
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-image:hover {
  transform: scale(1.02);
}

/* Checklist boxicons */
.checklist-boxicons {
  list-style: none;
  padding-left: 0;
  margin-top: 24px;
}

.checklist-boxicons li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 1.47;
}

.checklist-boxicons i {
  color: var(--colors-primary);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Services and Portfolio Grids */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.portfolio-item {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-item:hover {
  transform: translateY(-4px);
}

.portfolio-item:hover .store-card-image-wrapper img {
  transform: scale(1.08);
}

.store-card-image-wrapper img {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Filter buttons */
.btn-filter,
.btn-filter-active {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 6px 14px;
  border-radius: var(--rounded-pill);
  cursor: pointer;
  border: none;
}

.btn-filter {
  background-color: var(--colors-canvas-parchment);
  color: var(--colors-ink);
}

.btn-filter:hover {
  background-color: #e8e8ed;
}

.btn-filter-active {
  background-color: var(--colors-primary);
  color: #ffffff;
}

/* Team section styles */
.team-card {
  background-color: var(--colors-surface-tile-2);
  border-radius: var(--rounded-lg);
  padding: 32px 24px;
  height: 100%;
  text-align: center;
}

.team-image-wrapper {
  width: 140px;
  height: 140px;
  border-radius: var(--rounded-full);
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.team-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--colors-primary) 0%, var(--colors-primary-on-dark) 100%);
  mix-blend-mode: color;
  pointer-events: none;
  opacity: 0.9;
}

.team-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h5 {
  color: var(--colors-body-on-dark);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  color: var(--colors-primary-on-dark) !important;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card p {
  color: var(--colors-body-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

/* Stats (Mengapa Memilih Kami) */
.card-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  border: none !important;
  margin-top: 40px;
}

.card-group .card {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--rounded-lg) !important;
  padding: 40px 30px !important;
  text-align: left;
}

.card-group .card h3 {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  color: var(--colors-primary-on-dark);
  margin-bottom: 10px;
}

.card-group .card .display-10 {
  font-size: 21px;
  font-weight: 600;
  color: var(--colors-body-on-dark);
  margin-bottom: 12px;
}

.card-group .card p:last-child {
  font-size: 14px;
  line-height: 1.43;
  color: var(--colors-body-muted);
}

/* Article grid cards */
.blog-card-wrapper {
  background-color: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  border-radius: var(--rounded-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}

.blog-card-wrapper h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--colors-ink);
}

.blog-card-wrapper p {
  font-size: 14px;
  line-height: 1.43;
  color: var(--colors-ink-muted-80);
  margin-bottom: 24px;
  flex-grow: 1;
}

/* ==========================================================================
   Footer (Parchment & Relaxed Leading)
   ========================================================================== */
.das-footer {
  background-color: var(--colors-canvas-parchment);
  color: var(--colors-ink-muted-80);
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--colors-hairline);
  font-family: var(--font-body);
  position: relative;
}

.das-footer::before {
  display: none; /* Remove existing color gradient divider bar */
}

.footer-cta {
  background: var(--colors-canvas) !important;
  border: 1px solid var(--colors-hairline);
  border-radius: var(--rounded-lg);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: none !important;
  margin-bottom: 48px;
}

.footer-cta-text h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
  color: var(--colors-ink);
  margin-bottom: 8px;
}

.footer-cta-text p {
  font-size: 17px;
  line-height: 1.47;
  color: var(--colors-ink-muted-80);
  margin: 0;
}

.footer-cta-btn {
  background-color: var(--colors-primary) !important;
  color: #ffffff !important;
  padding: 11px 22px !important;
  border-radius: var(--rounded-pill) !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-cta-btn:hover {
  background-color: var(--colors-primary-focus) !important;
  transform: none !important;
  box-shadow: none !important;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.8fr 0.7fr 2fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 44px;
  height: auto;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-brand-name {
  font-weight: 600;
  font-size: 17px;
  color: var(--colors-ink);
}

.footer-brand-tag {
  font-size: 12px;
  color: var(--colors-primary);
  font-weight: 600;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.43;
  color: var(--colors-ink-muted-80);
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--rounded-full);
  background-color: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  color: var(--colors-ink-muted-80);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background-color: var(--colors-primary);
  color: #ffffff;
  border-color: var(--colors-primary);
  transform: scale(1.05);
}

.footer-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--colors-ink);
  margin-bottom: 16px;
  padding-bottom: 0;
  text-transform: none;
}

.footer-heading::after {
  display: none; /* Remove existing underline decoration */
}

/* Relaxes leading footer link stacks (typography.dense-link at 2.41) */
.footer-links li {
  margin: 0;
}

.footer-links a {
  color: var(--colors-ink-muted-80) !important;
  font-size: 17px;
  font-weight: 400;
  line-height: 2.41;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--colors-primary) !important;
  padding-left: 0; /* Override old indentation on hover */
}

.footer-contact li {
  font-size: 14px;
  color: var(--colors-ink-muted-80);
  margin-bottom: 12px;
  gap: 10px;
}

.fc-icon {
  width: 28px;
  height: 28px;
  background-color: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  color: var(--colors-primary);
  border-radius: var(--rounded-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-newsletter p {
  font-size: 14px;
  line-height: 1.43;
  color: var(--colors-ink-muted-80);
  margin-bottom: 16px;
}

/* Stylize news form as pill-shaped input matching search-input grammar */
.footer-news-form {
  background-color: var(--colors-canvas);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--rounded-pill);
  height: 44px;
  display: flex;
  overflow: hidden;
  width: 100%;
}

.footer-news-form:focus-within {
  border-color: var(--colors-primary-focus);
}

.footer-news-form input {
  padding: 12px 20px;
  font-size: 14px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--colors-ink);
  flex-grow: 1;
}

.footer-news-form button {
  background: transparent;
  border: none;
  color: var(--colors-primary);
  padding: 0 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-news-form button:hover {
  color: var(--colors-primary-focus);
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid var(--colors-hairline);
  padding-top: 24px;
  font-size: 12px;
  color: var(--colors-ink-muted-48);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal a {
  font-size: 12px;
  color: var(--colors-ink-muted-48) !important;
}

.footer-legal a:hover {
  color: var(--colors-primary) !important;
}

/* Floating WhatsApp (Styled as translucent circular control chip) */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: var(--rounded-full);
  background-color: var(--colors-primary);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none !important;
  box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px;
  z-index: 1000;
  animation: none; /* No distracting bounce animation */
}

.floating-whatsapp:hover {
  background-color: var(--colors-primary-focus);
  transform: scale(1.05);
}

/* ==========================================================================
   Responsive Breakpoints & Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 833px) {
  .sub-nav-links {
    display: none !important; /* Hide sub nav links on tablet and below */
  }
}

@media (max-width: 640px) {
  .hero-display {
    font-size: 34px;
  }
  .display-lg {
    font-size: 28px;
  }
  .lead-copy {
    font-size: 21px;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-cta {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .card-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 419px) {
  .hero-display {
    font-size: 28px;
  }
  .section-pad {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
