/* =========================
   ABOUT.CSS
   Context: Philosophy & Company Info
   ========================= */

/* --- 1. HEADER FIX (CRÍTICO) --- */
.page-header {
  height: auto !important;
  min-height: auto !important;
  display: block !important;
  /* Espaço generoso para limpar o Header fixo */
  padding-top: 220px !important; 
  padding-bottom: 6rem !important;
}

@media (max-width: 768px) {
  .page-header {
    padding-top: 160px !important;
  }
}

/* --- Typography --- */
.hero-subtitle {
  color: var(--color-gold, #CFAE59);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-desc {
  max-width: 700px;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-muted, #A9B0BC);
}

/* FORÇANDO O LAYOUT DO ETHOS */

#prime-ethos {
    padding-top: 180px !important;
}

#prime-ethos .ethos-title {
    margin-bottom: 4rem !important;
    font-size: 3rem !important; /* Aumenta o título para mobile-first */
}

/* O parágrafo grande (Lead) */
#prime-ethos .ethos-highlight {
    font-size: 1.6rem !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
    margin-bottom: 5rem !important; /* ESTE É O ESPAÇO QUE QUERES */
    max-width: 850px !important;
    font-family: var(--font-heading) !important;
    opacity: 1 !important;
}

/* As duas colunas no Desktop */
#prime-ethos .ethos-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 5rem !important;
}

#prime-ethos .ethos-columns p {
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
    color: var(--color-muted) !important;
}

/* Linha dourada */
.ethos-final-line {
    width: 100px;
    height: 2px;
    background: var(--color-gold);
    margin-top: 5rem;
}

/* Ajuste para Mobile (363px) */
@media (max-width: 768px) {
    #prime-ethos .ethos-columns {
        grid-template-columns: 1fr !important; /* Força 1 coluna */
        gap: 2rem !important;
    }
    
    #prime-ethos .ethos-highlight {
        font-size: 1.35rem !important;
        margin-bottom: 3rem !important;
    }
}

/* --- Layout Grids --- */
.grid {
  display: grid;
  gap: 4rem;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* --- Content Styling --- */
.text-block p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--color-muted, #A9B0BC);
  line-height: 1.7;
}

.text-block strong {
  color: var(--color-text, #E6E8EB);
  font-weight: 600;
}

.border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Stat Panel (Visual Interest) --- */
.about-stat-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--color-gold, #CFAE59);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.04);
}

.stat-number {
  font-family: sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text, #E6E8EB);
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted, #A9B0BC);
}

/* --- Principles (Manifesto Cards) --- */
.bg-darker {
  background-color: #08101a; /* Ligeiramente mais escuro que o base */
}

.principle-card {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(19, 38, 61, 0.4) 0%, rgba(13, 27, 42, 0) 100%);
  position: relative;
  height: 100%;
}

.p-num {
  display: block;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.principle-card h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--color-gold, #CFAE59);
}

.principle-card p {
  font-size: 0.95rem;
  color: var(--color-muted, #A9B0BC);
  line-height: 1.6;
}

/* =========================
   ABOUT CTA (PREMIUM UPGRADE)
   ========================= */

.about-cta {
  padding: 8rem 0;
  width: 100%;
}

.cta-box {
  position: relative;
  max-width: 800px; /* Mais largo para respirar */
  margin: 0 auto;
  padding: 5rem 3rem;
  text-align: center;
  
  /* Visual High-End (Consistente com Services) */
  background: linear-gradient(180deg, rgba(19, 38, 61, 0.6) 0%, rgba(13, 27, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  
  /* Sombra e Glow */
  box-shadow: 
    0 20px 50px -10px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.02); /* Borda de luz interior */
    
  overflow: hidden;
}

/* Detalhe estético: Linha dourada no topo */
.cta-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-gold, #CFAE59);
  box-shadow: 0 0 10px var(--color-gold, #CFAE59);
}

.cta-label {
  display: inline-block;
  font-family: sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-muted, #A9B0BC);
  margin-bottom: 2rem;
  opacity: 0.7;
}

.cta-box h2 {
  font-size: 2.5rem;
  color: #E6E8EB;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.cta-box p {
  font-size: 1.1rem;
  color: #A9B0BC;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Ajustes Mobile */
@media (max-width: 768px) {
  .cta-box {
    padding: 3rem 1.5rem;
  }
  .cta-box h2 {
    font-size: 1.8rem;
  }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 960px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-desc {
    font-size: 1.1rem;
  }
}


/* --- Optimization List --- */
.optimization-list {
    background: rgba(193, 159, 76, 0.03);
    padding: 3rem;
    border: 1px solid rgba(193, 159, 76, 0.1);
    border-radius: 4px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.check-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

.quote-text {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-gold);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* --- Constraints Grid --- */
.constraint-item {
    padding: 2rem;
    border-bottom: 1px solid rgba(193, 159, 76, 0.2);
}

.constraint-icon {
    font-family: monospace;
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.6;
}

.constraint-item h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* --- Role Box --- */
.role-box {
    background: var(--color-card-dark);
    padding: 4rem;
    border-left: 4px solid var(--color-gold);
    position: relative;
}

.role-main-text {
    font-size: 1.5rem;
    line-height: 1.5;
    max-width: 800px;
    margin: 1.5rem 0;
    color: var(--color-text);
}

.role-metric {
    display: inline-flex;
    flex-direction: column;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .approach-grid { gap: 2rem; }
    .optimization-list { padding: 2rem 1.5rem; }
    .role-box { padding: 2rem; }
    .role-main-text { font-size: 1.2rem; }
}

/* =========================
   ABOUT CTA — SECTION BREAK
   ========================= */

.about-cta{
  position: relative;
  /* dá um "capítulo final" com fundo próprio, sem destoar */
  background:
    radial-gradient(700px 250px at 50% 0%,
      rgba(193, 159, 76, 0.10),
      rgba(1, 14, 30, 0) 60%),
    linear-gradient(180deg,
      rgba(8, 16, 26, 0.00) 0%,
      rgba(8, 16, 26, 0.55) 35%,
      rgba(8, 16, 26, 0.75) 100%);
  padding-top: 9rem; /* dá espaço para o divider respirar */
}

/* linha de separação full-width com brilho */
.about-cta::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(193, 159, 76, 0.65),
    transparent
  );
  box-shadow: 0 0 18px rgba(193, 159, 76, 0.25);
}

/* etiqueta central “///” a cortar a linha (identidade do site) */
.about-cta::after{
  content: "/// FINAL SYSTEM CHECK";
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.15rem 0.8rem;
  background: var(--color-bg);
  border: 1px solid rgba(193, 159, 76, 0.18);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(193, 159, 76, 0.75);
}

/* mobile: reduzir texto para não rebentar */
@media (max-width: 768px){
  .about-cta::after{
    content: "/// FINAL CHECK";
    letter-spacing: 0.14em;
    font-size: 0.68rem;
  }
}

/* =========================
   ETHOS: STRUCTURE + SECTION ANCHOR
   (Add at END of about.css)
   ========================= */

/* 1) Prende o bloco das colunas ao resto com uma âncora visual */
#prime-ethos .ethos-columns{
  position: relative !important;
  margin-top: 3rem !important;
  padding-top: 2.25rem !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;

  /* opcional: refina o espaçamento (tens 5rem agora, que é demasiado “solto”) */
  gap: 3.5rem !important;
}

/* 2) Divisor vertical premium (só desktop) */
#prime-ethos .ethos-columns::before{
  content: "";
  position: absolute;
  top: 2.25rem;
  bottom: 0.25rem;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  pointer-events: none;

  background: linear-gradient(
    180deg,
    transparent,
    rgba(193,159,76,0.22),
    transparent
  );
  box-shadow: 0 0 18px rgba(193,159,76,0.10);
}

/* 3) A tua linha dourada final estava a ficar “perdida” — dá-lhe intenção */
#prime-ethos .ethos-final-line{
  margin-top: 3.5rem !important;
  opacity: 0.9;
  box-shadow: 0 0 14px rgba(193,159,76,0.18);
}

/* 4) Mobile: remove divisor vertical e mantém tudo limpo */
@media (max-width: 768px){
  #prime-ethos .ethos-columns{
    margin-top: 2rem !important;
    padding-top: 1.75rem !important;
    gap: 1.75rem !important;
  }
  #prime-ethos .ethos-columns::before{
    display: none !important;
  }
}
