/* Mobile Menu Styles */
.header-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.header-menu--open {
  display: flex !important;
}

/* Force dark background regardless of theme */
.header-menu--open .header-menu-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #111 !important;
  z-index: 0;
}

.header-menu-nav {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  width: 100%;
}

.header-menu-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-menu-nav-folder {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-menu-nav-folder-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.header-menu-nav-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.header-menu-nav-item {
  margin: 0;
}

/* Force white text on all menu links */
.header-menu--open .header-menu-nav-item a,
.header-menu--open .header-menu-nav-item a *,
.header-menu--open .header-menu-nav-item-content {
  color: #fff !important;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  display: block;
  padding: 0.75rem 1rem;
  transition: opacity 0.2s ease;
}

.header-menu--open .header-menu-nav-item a:hover {
  opacity: 0.7;
}

/* CTA button in menu */
.header-menu--open .header-menu-cta {
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.header-menu--open .header-menu-cta a {
  color: #fff !important;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  border: 1px solid #fff !important;
  border-radius: 4px;
  display: inline-block;
  background: transparent !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header-menu--open .header-menu-cta a:hover {
  background-color: #fff !important;
  color: #111 !important;
}

/* Burger button - ensure it's above the menu overlay */
.header-burger {
  position: relative;
  z-index: 10000;
}

.header-burger-btn {
  position: relative;
  z-index: 10001;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

/* Burger icon animation when menu is open */
body.header--menu-open .burger-inner .top-bun {
  transform: rotate(45deg) translate(5px, 5px);
}

body.header--menu-open .burger-inner .patty {
  opacity: 0;
}

body.header--menu-open .burger-inner .bottom-bun {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Make burger icon white when menu is open (so it's visible on dark bg) */
body.header--menu-open .header-burger-btn {
  color: #fff !important;
}

body.header--menu-open .burger-inner .top-bun,
body.header--menu-open .burger-inner .patty,
body.header--menu-open .burger-inner .bottom-bun {
  background-color: #fff !important;
}

/* Prevent body scroll when menu is open */
body.header--menu-open {
  overflow: hidden;
}

/* Burger icon base styles */
.burger-box {
  width: 24px;
  height: 18px;
  position: relative;
}

.burger-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.burger-inner .top-bun,
.burger-inner .patty,
.burger-inner .bottom-bun {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-inner .top-bun {
  top: 0;
}

.burger-inner .patty {
  top: 50%;
  transform: translateY(-50%);
}

.burger-inner .bottom-bun {
  bottom: 0;
}


/* ════════════════════════════════
   PROJECT PORTFOLIO SECTION
   ════════════════════════════════ */

.dci-portfolio-section {
  padding: 80px 0 60px;
  background: #fff;
  font-family: 'DM Sans', 'Roboto', sans-serif;
}

.dci-portfolio-section .dci-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
.dci-portfolio-header {
  text-align: center;
  margin-bottom: 64px;
}

.dci-portfolio-header .dci-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1C9B94;
  margin-bottom: 12px;
}

.dci-portfolio-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 16px;
  line-height: 1.15;
}

.dci-portfolio-header p {
  font-size: 1.05rem;
  color: #555;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Feature Cards */
.dci-port-feature {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 1px solid #e8e8e8;
  min-height: 320px;
}

.dci-port-feature:nth-child(even) {
  grid-template-columns: 1.6fr 1fr;
}

.dci-port-feature:nth-child(even) .dci-port-visual {
  order: 2;
}

.dci-port-feature:nth-child(even) .dci-port-body {
  order: 1;
}

/* Visual Panel */
.dci-port-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

/* Background image layer */
.dci-port-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.dci-port-feature:hover .dci-port-visual::before {
  transform: scale(1.04);
}

/* Gradient overlay on top of image */
.dci-port-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dci-port-visual--hyperscale::before {
  background-image: url('https://images.squarespace-cdn.com/content/v1/69e6b14f4b0106009f31eadd/1776726363874-9KA4CBQCMLI10MRCNMJK/San+Felipe.jpg');
}
.dci-port-visual--hyperscale::after {
  background: linear-gradient(160deg, rgba(10,37,64,0.55) 0%, rgba(13,61,110,0.65) 50%, rgba(28,155,148,0.7) 100%);
}

.dci-port-visual--colo::before {
  background-image: url('https://images.squarespace-cdn.com/content/v1/69e6b14f4b0106009f31eadd/1776726363888-9KQIIEN4DFE5LH2W90JB/Valpara%C3%ADso.png');
}
.dci-port-visual--colo::after {
  background: linear-gradient(160deg, rgba(13,61,110,0.55) 0%, rgba(26,82,118,0.65) 50%, rgba(28,155,148,0.7) 100%);
}

.dci-port-visual--santiago::before {
  background-image: url('https://images.squarespace-cdn.com/content/v1/69e6b14f4b0106009f31eadd/1776726363858-TJXNYLOHCRYM3SFO7JOL/Puente+Alto.jpg');
}
.dci-port-visual--santiago::after {
  background: linear-gradient(160deg, rgba(17,17,17,0.6) 0%, rgba(26,26,46,0.65) 50%, rgba(13,61,110,0.7) 100%);
}

/* All content inside visual must sit above the pseudo-elements */
.dci-port-visual > * {
  position: relative;
  z-index: 1;
}

.dci-port-visual-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1;
}

.dci-port-visual-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.dci-port-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dci-loc-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

/* Body Panel */
.dci-port-body {
  padding: 40px 44px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dci-port-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1C9B94;
  margin-bottom: 10px;
}

.dci-port-body h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 14px;
  line-height: 1.25;
}

.dci-port-body p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.7;
  margin: 0 0 24px;
}

.dci-port-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.dci-port-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #333;
  font-weight: 500;
}

.dci-ph-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Homepage Summary Version ── */
.dci-portfolio-summary {
  padding: 80px 0 60px;
  background: #fff;
  font-family: 'DM Sans', 'Roboto', sans-serif;
}

.dci-portfolio-summary .dci-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.dci-portfolio-summary .dci-portfolio-header {
  margin-bottom: 48px;
}

.dci-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.dci-summary-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dci-summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.dci-summary-card-visual {
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  justify-content: flex-end;
}

.dci-summary-card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.dci-summary-card:hover .dci-summary-card-visual::before {
  transform: scale(1.05);
}

.dci-summary-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dci-summary-card-visual--hyperscale::before {
  background-image: url('https://images.squarespace-cdn.com/content/v1/69e6b14f4b0106009f31eadd/1776726363874-9KA4CBQCMLI10MRCNMJK/San+Felipe.jpg');
}
.dci-summary-card-visual--hyperscale::after {
  background: linear-gradient(160deg, rgba(10,37,64,0.55) 0%, rgba(13,61,110,0.65) 50%, rgba(28,155,148,0.72) 100%);
}

.dci-summary-card-visual--colo::before {
  background-image: url('https://images.squarespace-cdn.com/content/v1/69e6b14f4b0106009f31eadd/1776726363888-9KQIIEN4DFE5LH2W90JB/Valpara%C3%ADso.png');
}
.dci-summary-card-visual--colo::after {
  background: linear-gradient(160deg, rgba(13,61,110,0.55) 0%, rgba(26,82,118,0.65) 50%, rgba(28,155,148,0.72) 100%);
}

.dci-summary-card-visual--santiago::before {
  background-image: url('https://images.squarespace-cdn.com/content/v1/69e6b14f4b0106009f31eadd/1776726363858-TJXNYLOHCRYM3SFO7JOL/Puente+Alto.jpg');
}
.dci-summary-card-visual--santiago::after {
  background: linear-gradient(160deg, rgba(17,17,17,0.6) 0%, rgba(26,26,46,0.65) 50%, rgba(13,61,110,0.72) 100%);
}

.dci-summary-card-visual > * {
  position: relative;
  z-index: 1;
}

.dci-summary-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.dci-summary-card-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.dci-summary-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.dci-summary-card-body {
  padding: 24px 28px 28px;
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dci-summary-card-body p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.65;
  margin: 0 0 20px;
  flex: 1;
}

.dci-summary-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dci-summary-tag {
  display: inline-block;
  background: #f0faf9;
  border: 1px solid #c8ebe9;
  color: #1C9B94;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

.dci-portfolio-cta {
  text-align: center;
  margin-top: 8px;
}

.dci-portfolio-cta a {
  display: inline-block;
  padding: 13px 36px;
  background: #111;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.dci-portfolio-cta a:hover {
  background: #1C9B94;
}

/* Responsive */
@media (max-width: 900px) {
  .dci-port-feature,
  .dci-port-feature:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .dci-port-feature:nth-child(even) .dci-port-visual,
  .dci-port-feature:nth-child(even) .dci-port-body {
    order: unset;
  }

  .dci-port-visual {
    min-height: 200px;
  }

  .dci-port-body {
    padding: 28px 28px;
  }

  .dci-summary-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dci-portfolio-section,
  .dci-portfolio-summary {
    padding: 56px 0 40px;
  }

  .dci-portfolio-section .dci-container,
  .dci-portfolio-summary .dci-container {
    padding: 0 20px;
  }

  .dci-port-highlights {
    grid-template-columns: 1fr;
  }

  .dci-port-body {
    padding: 24px 20px;
  }
}
