/* ======================= */
/* DIGITAL-GRANDE.CSS      */
/* ======================= */

:root{
  --page-bg-image: url("../img/dig-big/dig-big.webp");

  --page-bg-opacity: 0.35;
  --page-bg-scale: 1.18;
  --page-bg-size: 130%;
  --page-bg-pos-y: 50%;
}

/* Tall portrait */
@media (orientation: portrait) and (max-aspect-ratio: 3/4){
  :root{
    --page-bg-image: url("../img/dig-big/dig-bigm.webp");
    --page-bg-size: 175%;
    --page-bg-scale: 1.10;
    --page-bg-pos-y: 50%;
  }
}

/* 4:3-ish landscape */
@media (orientation: landscape) and (max-aspect-ratio: 4/3){
  :root{
    --page-bg-size: 170%;
    --page-bg-scale: 1.14;
    --page-bg-pos-y: 50%;
  }
}

/* -------------------------------------------------------
   HERO
   ------------------------------------------------------- */
.dg-hero{
  padding-top: 54px;
  padding-bottom: 72px;
}

.dg-hero-note{
  margin-top: 14px;
  margin-left: auto;
  margin-right: auto;
  max-width: 84ch;
  text-align: center;
}

.dg-highlights{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dg-hl{
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(15,23,42,.08);
  color: rgba(15,23,42,.75);
  font-weight: 650;
  font-size: 13px;
  text-align: center;

  min-height: 48px;
  display: grid;
  place-items: center;
}

/* -------------------------------------------------------
   GRIDS / CARDS (mirror your digital-pequeno pattern)
   ------------------------------------------------------- */
.grid-two{
  display:grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 16px;
  margin-top: 18px;
}

.dg-grid-rev{
  grid-template-columns: 1.15fr .85fr;
}

.card-lite{
  border-radius: 18px;
  padding: 18px;
}
.card-lite h3{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -.01em;
}

/* ticks */
.ticks{
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 10px;
}

.ticks li{
  padding-left: 26px;
  position: relative;
  color: rgba(15,23,42,.78);
}

.ticks li::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(69,117,180,.20);
  border: 2px solid rgba(69,117,180,.45);
  position: absolute;
  left: 0;
  top: 7px;
}

/* Buttons */
.cert-buttons-left{
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.cert-buttons-right{
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.cert-buttons-left .btn,
.cert-buttons-right .btn{
  width: auto;
  justify-content: center;
}

/* Card layout */
.dg-card-layout{
  display: grid;
  gap: 14px;
  height: 100%;
  grid-template-rows: 1fr auto;
}
.dg-card-top{ min-height: 0; }

.dg-card-subtitle{
  margin: 0 0 8px;
  color: rgba(15,23,42,.70);
}

/* Tags */
.tag-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tag{
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(15,23,42,.10);
  color: rgba(15,23,42,.72);
  font-weight: 650;
  font-size: 13px;
}

/* Tip row (desktop) — pinned to card bottom */
.dg-actions-row{
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;

  margin-top: auto; /* ensures footer sticks to bottom within dg-card-layout */
}

.dg-actions-row .cert-buttons-right{
  margin-left: auto; /* pushes button column to the far-right corner */
}

.dg-tip{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(15,23,42,.10);
  color: rgba(15,23,42,.74);
  font-size: 13px;
  line-height: 1.45;
}
.dg-tip-inline{
  margin-top: 0;
  max-width: 25ch;
}

/* Badges grid aligned to spotlight columns */
.dg-badges-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
}

/* Pill stacks */
.badge-stack-left{
  justify-self: end;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 16px;
}
.badge-stack-right{
  justify-self: start;
  display: grid;
  grid-auto-flow: row;
  gap: 10px;
}

/* Center text inside badges */
.dg-badges-grid .badge{
  text-align: center;
  display: grid;
  place-items: center;
  gap: 2px;
}
.dg-badges-grid .badge-k,
.dg-badges-grid .badge-v{
  text-align: center;
}

/* Spotlight */
.spotlight{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
}

.panel-item{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.panel-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 7px;
  background: rgba(69,117,180,.35);
  border: 2px solid rgba(69,117,180,.55);
}
.panel-item strong{ display:block; }
.panel-item span{
  display:block;
  color: rgba(15,23,42,.68);
  margin-top: 2px;
}
.spotlight-panel{
  display:grid;
  gap: 12px;
}

/* Features */
.features{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.feature{
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.feature-num{
  font-weight: 900;
  color: rgba(15,23,42,.70);
  letter-spacing: .06em;
  font-size: 14px;
  text-transform: uppercase;
}

.feature h3{ margin: 0 0 8px; font-size: 18px; }
.feature p{ margin: 0; color: rgba(15,23,42,.72); }

.feature-actions{
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: flex-end;
}

/* -------------------------------------------------------
   BUTTON “MOBILE” BEHAVIOUR (same as digital-pequeno)
   ------------------------------------------------------- */
@media (max-width: 980px),(max-width: 1440px) and (hover: none) and (pointer: coarse){

  .dg-actions-row{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .dg-tip-inline{
    max-width: none;
  }

  .cert-buttons-left,
  .cert-buttons-right{
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
  }

  .cert-buttons-left .btn,
  .cert-buttons-right .btn{
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .feature-actions{
    width: 100%;
    justify-content: center;
  }
  .feature-actions .btn{
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }
}

/* Responsive */
@media (max-width: 980px){

  :root{
    --page-bg-size: 210%;
  }

  .dg-highlights{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dg-highlights .dg-hl:last-child{
    grid-column: 1 / -1;
  }

  .grid-two{ grid-template-columns: 1fr; }
  .dg-grid-rev{ grid-template-columns: 1fr; }
  .spotlight{ grid-template-columns: 1fr; }
  .features{ grid-template-columns: 1fr; }

  .dg-badges-grid{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .badge-stack-left,
  .badge-stack-right{
    display: flex;
    width: 100%;
    gap: 10px;
    justify-self: stretch;
  }

  .badge-stack-left .badge,
  .badge-stack-right .badge{
    flex: 1 1 0;
    min-width: 0;
  }

  .tag-row{
    width: 100%;
    justify-content: center;
    align-items: stretch;
  }
  .tag{
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    justify-content: center;
    text-align: center;
  }
  .tag-row .tag:last-child{
    flex-basis: 100%;
  }
}

@media (max-width: 450px){
  :root{
    --page-bg-image: url("../img/dig-big/dig-bigm.webp");
    --page-bg-size: 220%;
    --page-bg-scale: 1.05;
    --page-bg-pos-y: 50%;
  }
}