/* Dhimi Studio — Phase 3 homepage + story layouts
   Link after site-foundation.css. Mobile-first. Restrained gold. */

/* —— Shared —— */
.p3-wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.p3-section { padding: 3.25rem 0; }
.p3-section.alt { background: rgba(251, 243, 231, 0.55); }
.p3-eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dhimi-deep-blue, #1B3A5F);
  margin-bottom: 0.55rem;
}
.p3-h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  margin: 0 0 0.65rem;
  color: var(--dhimi-ink, #122E2B);
  line-height: 1.2;
}
.p3-lede {
  color: #3b514e;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 42rem;
  margin: 0 0 1.5rem;
}
.p3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* —— Hero —— */
.p3-hero {
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(201,162,39,0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(27,58,95,0.06), transparent 50%),
    #fff;
}
.p3-hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.15rem);
  line-height: 1.12;
  margin: 0.4rem 0 1rem;
  color: var(--dhimi-ink, #122E2B);
  max-width: 16ch;
}
.p3-hero h1 span {
  display: block;
  color: var(--dhimi-deep-blue, #1B3A5F);
}
.p3-hero .p3-studio-line {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: #3b514e;
  max-width: 36rem;
  line-height: 1.6;
  margin: 0 0 0.35rem;
}
.p3-method-stamp {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dhimi-gold, #C9A227);
  border-top: 1px solid rgba(201,162,39,0.45);
  padding-top: 0.65rem;
}

/* —— Audience cards —— */
.p3-audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
@media (min-width: 560px) {
  .p3-audience-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .p3-audience-grid { grid-template-columns: repeat(5, 1fr); }
}
.p3-audience-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(18,46,43,0.1);
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  min-height: 7.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.p3-audience-card:hover {
  border-color: rgba(201,162,39,0.55);
  box-shadow: 0 8px 22px rgba(18,46,43,0.07);
}
.p3-audience-card .who {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dhimi-stone, #8B8680);
}
.p3-audience-card .seg {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dhimi-deep-blue, #1B3A5F);
}
.p3-audience-card .hint {
  font-size: 0.9rem;
  color: #3b514e;
  margin-top: auto;
}
.p3-futures-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #5a6a67;
}
.p3-futures-note a { font-weight: 700; color: var(--dhimi-deep-blue); }

/* —— Product row (Made by Dhimi) —— */
.p3-product-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 720px) {
  .p3-product-row { grid-template-columns: repeat(3, 1fr); }
}
.p3-product {
  background: #fff;
  border: 1px solid rgba(18,46,43,0.1);
  border-radius: 1.1rem;
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 6px 18px rgba(18,46,43,0.05);
}
.p3-product h3 {
  margin: 0.15rem 0;
  font-size: 1.2rem;
  color: var(--dhimi-ink);
}
.p3-product .price {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dhimi-deep-blue);
}
.p3-product p {
  color: #3b514e;
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}
.p3-tools-aside {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: #3b514e;
}
.p3-tools-aside a { font-weight: 700; }

/* —— Method steps —— */
.p3-method-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 1.25rem 0 1rem;
}
@media (min-width: 640px) {
  .p3-method-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
  }
}
.p3-step {
  background: #fff;
  border: 1px solid rgba(18,46,43,0.1);
  border-radius: 0.85rem;
  padding: 0.9rem 0.75rem;
  text-align: center;
}
.p3-step strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dhimi-deep-blue);
}
.p3-step span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #3b514e;
}

/* —— Latest cards —— */
.p3-latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .p3-latest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .p3-latest-grid { grid-template-columns: repeat(4, 1fr); }
}
.p3-latest-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid rgba(18,46,43,0.1);
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  min-height: 10rem;
}
.p3-latest-card:hover { border-color: rgba(201,162,39,0.5); }
.p3-latest-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--dhimi-ink);
}
.p3-latest-card p {
  margin: 0;
  font-size: 0.92rem;
  color: #3b514e;
  flex: 1;
}
.p3-latest-card .go {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--dhimi-deep-blue);
}

/* —— Featured Lab —— */
.p3-lab-feature {
  display: grid;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid rgba(18,46,43,0.1);
  border-radius: 1.2rem;
  padding: 1.5rem;
}
@media (min-width: 800px) {
  .p3-lab-feature { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
.p3-pipeline {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
}
.p3-pipeline li {
  list-style: none;
  padding: 0.65rem 0.85rem;
  background: rgba(27,58,95,0.05);
  border-radius: 0.55rem;
  font-size: 0.95rem;
  color: #2a3f3c;
}
.p3-pipeline li strong {
  color: var(--dhimi-deep-blue);
  margin-right: 0.35rem;
}
.p3-limit-callout {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--dhimi-deep-blue);
  background: rgba(27,58,95,0.05);
  font-size: 0.95rem;
  color: #2a3f3c;
}

/* —— Finance strip —— */
.p3-finance-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.25rem;
}
.p3-finance-topics span {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(18,46,43,0.12);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dhimi-deep-blue);
}

/* —— Notes / Email —— */
.p3-notes-card,
.p3-email-card {
  background: #fff;
  border: 1px solid rgba(18,46,43,0.1);
  border-radius: 1.15rem;
  padding: 1.75rem 1.4rem;
  max-width: 720px;
}
.p3-email-card { max-width: 640px; margin-inline: auto; text-align: center; }
.p3-email-card .news-form {
  margin-top: 1.1rem;
}
.p3-email-card input[type="email"] {
  width: 100%;
  max-width: 320px;
  padding: 0.7rem 0.9rem;
  border-radius: 0.55rem;
  border: 1.5px solid rgba(18,46,43,0.15);
  font: inherit;
}

/* —— Story pages —— */
.story-page .story-hero {
  padding: 2.5rem 0 1.5rem;
}
.story-page .story-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0.55rem 0 0.75rem;
  color: var(--dhimi-ink);
}
.story-page .story-body {
  padding-bottom: 3.5rem;
}
.story-page .story-block h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}
.story-page .exist-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .story-page .exist-grid { grid-template-columns: repeat(2, 1fr); }
}
.story-page .exist-item {
  background: #fff;
  border: 1px solid rgba(18,46,43,0.1);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
}
.story-page .exist-item h3 {
  margin: 0.35rem 0;
  font-size: 1.05rem;
}
.story-page .exist-item p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: #3b514e;
}
.story-limit {
  background: rgba(139,134,128,0.1);
  border-radius: 0.9rem;
  padding: 1rem 1.15rem;
}
.story-limit ul { margin: 0.5rem 0 0; }

/* Atmosphere modifiers — same family, subtle tone */
.story-books .story-hero { background: linear-gradient(180deg, rgba(201,162,39,0.08), transparent); }
.story-learn .story-hero { background: linear-gradient(180deg, rgba(107,143,113,0.1), transparent); }
.story-finance .story-hero { background: linear-gradient(180deg, rgba(27,58,95,0.07), transparent); }
.story-tools .story-hero { background: linear-gradient(180deg, rgba(18,46,43,0.05), transparent); }
.story-lab .story-hero { background: linear-gradient(180deg, rgba(27,58,95,0.1), transparent); }
.story-futures .story-hero { background: linear-gradient(180deg, rgba(139,134,128,0.12), transparent); }

.story-books .story-block h2 { color: #6b5310; }
.story-learn .story-block h2 { color: #2f5a3a; }
.story-finance .story-block h2 { color: var(--dhimi-deep-blue); }
.story-tools .story-block h2 { color: #1a3330; }
.story-lab .story-block h2 { color: var(--dhimi-deep-blue); }
.story-futures .story-block h2 { color: #4a4642; }

.bilingual-note {
  font-size: 0.92rem;
  color: #5a6a67;
  border-left: 3px solid rgba(201,162,39,0.5);
  padding-left: 0.85rem;
  margin: 0.75rem 0;
}
.locale-mirror-note {
  font-size: 0.9rem;
  color: #5a6a67;
  margin-bottom: 1rem;
}

#segments { scroll-margin-top: 5rem; }
