/* ==================================================
PAGECAFE MODULES CSS
Reusable visual patterns for Divi websites built
by Pagecafe Digital Marketing.

Use this file for repeatable design components such as:
• hero sections
• service card lists
• testimonials
• authority strips
• CTA bands
• icon feature rows
• FAQ blocks

Do NOT use this file for:
• global variables
• base typography
• utility classes
• Divi bug fixes

Those belong in other CSS files.
================================================== */


/* ==================================================
1. STORYBRAND HERO MODULE
Used for homepage heroes and major service page heroes.

Best for:
• strong headline + short supporting copy
• one or two CTA buttons
• image or photo background layout

Recommended structure:
.hero-storybrand
  .hero-storybrand__content
  .hero-storybrand__eyebrow
  .hero-storybrand__actions
================================================== */

.hero-storybrand {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--pc-canvas);
}

.hero-storybrand__content {
  width: min(100%, 760px);
}

.hero-storybrand__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--pc-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pc-ink-soft);
}

.hero-storybrand__title,
.hero-storybrand h1 {
  margin-bottom: 0.35em;
  max-width: 14ch;
}

.hero-storybrand__text,
.hero-storybrand p {
  max-width: 56ch;
  font-size: 1.05rem;
}

.hero-storybrand__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-storybrand--center {
  text-align: center;
}

.hero-storybrand--center .hero-storybrand__content {
  margin-inline: auto;
}

.hero-storybrand--center .hero-storybrand__actions {
  justify-content: center;
}


/* ==================================================
2. SERVICE NAVIGATION CARD LIST
Used for pillar page navigation and homepage service lists.

Best for:
• landscape services
• legal services
• medical services
• consulting services

This module creates a clean list of linked service cards
without requiring a giant wall of blurbs or images.
================================================== */

.service-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-nav-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 88px;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-md);
  background: var(--pc-surface);
  box-shadow: var(--pc-shadow-sm);
  color: var(--pc-ink);
  transition:
    transform var(--pc-transition),
    box-shadow var(--pc-transition),
    border-color var(--pc-transition),
    background var(--pc-transition);
}

.service-nav-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pc-shadow-md);
  border-color: rgba(184, 115, 51, 0.35);
  color: var(--pc-ink);
}

.service-nav-card__text {
  font-family: var(--pc-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-nav-card__arrow {
  flex: 0 0 auto;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--pc-action);
}

.service-nav-card--square {
  border-radius: 0;
}

.service-nav-card--minimal {
  background: transparent;
  box-shadow: none;
}


/* ==================================================
3. FEATURE / BENEFITS CARD MODULE
Used for benefit blocks, process summaries,
and value proposition cards.

Best for:
• homepages
• service pages
• comparison sections
================================================== */

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card {
  height: 100%;
  padding: 1.6rem;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-lg);
  background: var(--pc-surface);
  box-shadow: var(--pc-shadow-sm);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(184, 115, 51, 0.1);
  color: var(--pc-action);
  font-size: 1.35rem;
}

.feature-card__title {
  margin-bottom: 0.5rem;
  font-family: var(--pc-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pc-ink);
}

.feature-card__text {
  margin-bottom: 0;
}


/* ==================================================
4. AUTHORITY STRIP
Used for trust indicators in a horizontal band.

Best for:
• certifications
• years in business
• review count
• geographic service area
• "trusted by" statements
================================================== */

.authority-strip {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-lg);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--pc-shadow-sm);
}

.authority-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.authority-strip__item {
  text-align: center;
}

.authority-strip__number {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--pc-font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--pc-action);
}

.authority-strip__label {
  font-size: 0.98rem;
  color: var(--pc-ink-soft);
}


/* ==================================================
5. TESTIMONIAL CARD MODULE
Used for quotes, reviews, and client proof sections.

Best for:
• homepage proof sections
• service pages
• landing pages
================================================== */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-lg);
  background: var(--pc-surface);
  box-shadow: var(--pc-shadow-sm);
}

.testimonial-card__quote {
  margin: 0 0 1.25rem;
  font-size: 1rem;
}

.testimonial-card__quote::before {
  content: "“";
  margin-right: 0.08em;
}

.testimonial-card__quote::after {
  content: "”";
  margin-left: 0.08em;
}

.testimonial-card__meta {
  margin-top: auto;
  padding-top: 1rem;
}

.testimonial-card__name {
  display: block;
  font-family: var(--pc-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pc-ink);
}

.testimonial-card__role {
  display: block;
  font-size: 0.95rem;
  color: var(--pc-ink-soft);
}


/* ==================================================
6. CTA BAND MODULE
Used for full-width call-to-action sections.

Best for:
• end-of-page CTA
• service page CTA
• homepage final CTA

Recommended content:
• headline
• 1 short paragraph
• 1-2 CTA buttons
================================================== */

.cta-band {
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--pc-radius-xl);
  background: linear-gradient(
    135deg,
    rgba(184, 115, 51, 0.12),
    rgba(255, 255, 255, 0.95)
  );
  border: 1px solid rgba(184, 115, 51, 0.18);
  box-shadow: var(--pc-shadow-sm);
}

.cta-band__inner {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 1.5rem;
  align-items: center;
}

.cta-band__content h2,
.cta-band__content h3 {
  margin-bottom: 0.3em;
}

.cta-band__content p:last-child {
  margin-bottom: 0;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-start;
}

.cta-band--dark {
  background: var(--pc-ink);
  border-color: transparent;
}

.cta-band--dark,
.cta-band--dark h2,
.cta-band--dark h3,
.cta-band--dark p {
  color: #fff;
}


/* ==================================================
7. PROCESS / STEP MODULE
Used for 3-step plans and "how it works" sections.

Best for:
• StoryBrand plans
• service process sections
• onboarding explanations
================================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.process-step {
  position: relative;
  height: 100%;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-lg);
  background: var(--pc-surface);
  box-shadow: var(--pc-shadow-sm);
}

.process-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--pc-action);
  color: #fff;
  font-family: var(--pc-font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.process-step__title {
  margin-bottom: 0.45rem;
  font-family: var(--pc-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.process-step__text {
  margin-bottom: 0;
}


/* ==================================================
8. ICON FEATURE ROW
Used for small horizontal feature summaries.

Best for:
• "why choose us"
• service highlights
• benefit summary sections
================================================== */

.icon-feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.icon-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.icon-feature__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(184, 115, 51, 0.1);
  color: var(--pc-action);
  font-size: 1.1rem;
}

.icon-feature__content h3,
.icon-feature__content h4 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.icon-feature__content p:last-child {
  margin-bottom: 0;
}


/* ==================================================
9. FAQ MODULE
Used for FAQ groups and common objections.

Best for:
• homepage objections section
• service page FAQs
• SEO/AEO content blocks

This starter styles native details/summary markup.
================================================== */

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-lg);
  background: var(--pc-surface);
  box-shadow: var(--pc-shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  padding: 1.15rem 3.25rem 1.15rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--pc-font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--pc-ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.2rem;
  transform: translateY(-50%);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--pc-action);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item__answer {
  padding: 0 1.25rem 1.2rem;
}

.faq-item__answer > *:last-child {
  margin-bottom: 0;
}


/* ==================================================
10. LOGO / TRUST BAR
Used for partner logos, association logos,
or "featured in" style credibility rows.
================================================== */

.logo-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.logo-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0.75rem;
  border-radius: var(--pc-radius-md);
  background: rgba(255, 255, 255, 0.6);
}

.logo-bar__item img {
  max-height: 44px;
  width: auto;
  opacity: 0.9;
}


/* ==================================================
11. TEAM / BIO CARD
Used for leadership, attorney, doctor, or staff cards.

Best for:
• about pages
• team pages
• sidebar bio sections
================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.team-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-lg);
  background: var(--pc-surface);
  box-shadow: var(--pc-shadow-sm);
}

.team-card__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.team-card__body {
  padding: 1.35rem;
}

.team-card__name {
  margin-bottom: 0.2rem;
  font-family: var(--pc-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.team-card__title {
  margin-bottom: 0.75rem;
  color: var(--pc-ink-soft);
  font-size: 0.96rem;
}

.team-card__text:last-child {
  margin-bottom: 0;
}


/* ==================================================
12. METRIC / STATS CARD
Used for measurable proof points.

Best for:
• results pages
• firm stats
• service credibility sections
================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.stat-card {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-lg);
  background: var(--pc-surface);
  text-align: center;
  box-shadow: var(--pc-shadow-sm);
}

.stat-card__number {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--pc-font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--pc-action);
}

.stat-card__label {
  display: block;
  color: var(--pc-ink-soft);
  font-size: 0.96rem;
}


/* ==================================================
13. PROJECT / PORTFOLIO CARD
Used for case studies, project galleries,
and featured work sections.
================================================== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-lg);
  background: var(--pc-surface);
  box-shadow: var(--pc-shadow-sm);
  transition:
    transform var(--pc-transition),
    box-shadow var(--pc-transition);
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pc-shadow-md);
}

.project-card__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card__body {
  padding: 1.25rem;
}

.project-card__title {
  margin-bottom: 0.3rem;
  font-family: var(--pc-font-heading);
  font-size: 1.12rem;
  font-weight: 700;
}

.project-card__meta {
  font-size: 0.95rem;
  color: var(--pc-ink-soft);
}

.project-card__text {
  margin-top: 0.75rem;
  margin-bottom: 0;
}


/* ==================================================
14. RESPONSIVE ADJUSTMENTS
Used to keep all major modules readable and usable
on tablets and phones.

This section should be updated carefully because
changes here affect many modules at once.
================================================== */

@media (max-width: 980px) {
  .service-nav-grid,
  .feature-card-grid,
  .testimonial-grid,
  .process-grid,
  .icon-feature-row,
  .team-grid,
  .project-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .authority-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band__inner {
    grid-template-columns: 1fr;
  }

  .cta-band__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .hero-storybrand {
    padding: 4rem 0;
  }

  .authority-strip__grid,
  .logo-bar {
    grid-template-columns: 1fr;
  }

  .service-nav-card {
    min-height: 76px;
  }
}
