/* ---------------------------------------------
   DiPStrategy -- Footer
   style/footer.css
   --------------------------------------------- */

.site-footer {
  position: relative;
  background: linear-gradient(to bottom, #093564 0%, #040f1e 100%);
  overflow: visible;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/pattern-01.png');
  background-repeat: repeat;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* --- MAIN GRID: 5 kolom --- */
/*
  Col 1: Logo + desc / Social Signal
  Col 2: Services / PT Digi Porta Semesta
  Col 3: Industries + Nav
  Col 4+5: Map (merged, bleeding ke atas)
*/
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .8fr .5fr .5fr 1.4fr;
  padding: 56px 0 0 56px;
  gap: 0 40px;
}

/* Col 1: Logo + desc (full height) */
.footer-about {
  grid-column: 1;
  grid-row: 1;
  padding-bottom: 48px;
  align-self: start;
}

/* Col 2: Services (full height) */
.footer-services {
  grid-column: 2;
  grid-row: 1;
  padding-bottom: 48px;
  align-self: start;
}

/* Col 3: Industries + Nav (full height) */
.footer-industries-nav {
  grid-column: 3;
  grid-row: 1;
  padding-bottom: 48px;
  align-self: start;
}

/* Col 4 (merged 4+5): right panel -- map + social + address */
.footer-right-panel {
  grid-column: 4;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  padding-right: 0;
}

/* --- LOGO --- */
.footer-logo {
  height: 30px;
  width: auto;
  margin-bottom: 16px;
  display: block;
}

.footer-desc {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: clamp(12.5px, 1.1vw, 15px);
  line-height: 1.35;
  color: rgba(255,255,255,0.55);
}

/* --- COLUMN TITLES --- */
.footer-col-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #DEFF2D;
  margin-bottom: 14px;
  display: block;
}

/* --- LINK LISTS --- */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-links a {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: block;
}

.footer-links a:hover { color: #fff; padding-left: 4px; }

/* Nav links (Portfolio, Our Approach, dll) -- bolder */
.footer-links--nav a {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.footer-links--nav a:hover { color: #DEFF2D; }

/* Gap antara Industries dan Nav */
.footer-nav-section { margin-top: 28px; }

/* --- SOCIAL --- */
.footer-social-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-social-item:hover { opacity: 0.75; }

.footer-social-icon {
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.footer-social-icon svg { width: 12px; height: 12px; fill: rgba(255,255,255,0.65); }

.footer-social-handle {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* --- COMPANY ADDRESS --- */
.footer-company-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.footer-address {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(255,255,255,0.4);
  font-style: normal;
}

/* --- RIGHT PANEL: map atas, social+address bawah --- */
.footer-right-panel {
  grid-column: 4;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  width: 450px;
}

/* Map area -- bleed 120px ke atas */
.footer-map-area {
  position: relative;
  height: 190px;
  margin-top: -20px;
  flex-shrink: 0;
}

/* Social + Address di bawah map */
.footer-bottom-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 28px 0 48px 0;
}

.footer-map-link {
  display: block;
  width: 450px;
  height: 190px;
  text-decoration: none;
  overflow: hidden;
  border-left: 3px solid #DEFF2D;
  position: relative;
}

.footer-map-img {
  width: 450px;
  height: 190px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.88);
  transition: filter 0.3s, transform 0.4s;
}

.footer-map-link:hover .footer-map-img {
  filter: brightness(1);
  transform: scale(1.02);
}

.footer-map-link::after {
  content: '? Lihat di Google Maps';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(9,53,100,0.92) 0%, transparent 100%);
  color: #DEFF2D;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 32px 16px 14px;
  opacity: 0;
  transition: opacity 0.25s;
}

.footer-map-link:hover::after { opacity: 1; }

/* Placeholder jika maps-preview.jpg belum ada */
.footer-map-placeholder {
  width: 450px;
  height: 290px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid rgba(222,255,45,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.3);
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.footer-map-placeholder:hover {
  background: rgba(255,255,255,0.06);
  color: #DEFF2D;
}

.footer-map-placeholder svg { width: 28px; height: 28px; fill: currentColor; }

/* --- BOTTOM BAR --- */
.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 56px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-copyright {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.06em;
}

.footer-email {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-email:hover { color: #DEFF2D; }

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    padding: 48px 32px 0;
  }
  .footer-about          { grid-column: 1; grid-row: 1; }
  .footer-services       { grid-column: 2; grid-row: 1; }
  .footer-industries-nav { grid-column: 3; grid-row: 1; }
  .footer-right-panel    { grid-column: 1 / 4; grid-row: 2; margin-top: 32px; }
  .footer-bottom { padding: 16px 32px; }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 40px 24px 0;
    gap: 0;
    text-align: center;
  }
  .footer-about          { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: center; }
  .footer-services       { grid-column: 1; grid-row: 2; margin-top: 28px; display: flex; flex-direction: column; align-items: center; }
  .footer-industries-nav { grid-column: 1; grid-row: 3; margin-top: 28px; display: flex; flex-direction: column; align-items: center; }
  .footer-right-panel    { grid-column: 1; grid-row: 4; margin-top: 28px; width: 100%; align-items: center; }
  .footer-map-area       { display: none; }
  .footer-bottom-right   { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 0; }
  .footer-social         { display: flex; flex-direction: column; align-items: center; }
  .footer-social-wrap    { justify-content: center; }
  .footer-company        { display: flex; flex-direction: column; align-items: center; }
  .footer-links          { align-items: center; }
  .footer-bottom { padding: 14px 24px; flex-direction: column; gap: 6px; text-align: center; }
}
