@charset "utf-8";

/* ========================================================================== 
   SECTIONS MODULAR BUNDLE
   Goal:
   - One file, but segmented into clean copy-paste modules
   - Each module is self-contained and labeled START/END for fast extraction

   Modules inside:
   01. Tokens and assumptions (none declared here)
   02. Section wrappers
   03. Advisor layouts (row + grids)
   04. Media frames
   05. FAQ accordion
   06. Advisor link list alignment
   07. Responsive adjustments

   Notes:
   - This file assumes your variables exist (core.css) like: --max, --gutter,
     --line-thin, --radius, --card-pad, --space-2, --gap-2, etc.
   - Class names are preserved as-is for drop-in use.
========================================================================== */


/* ========================================================================== 
   MODULE 02: SECTION WRAPPERS
   START
========================================================================== */

/* Generic section spacing (portable) */
.section{
  padding: var(--section-pad-y) 0;
}

/* FAQ wrap spacing and container rules */
.section.faq-wrap{
  padding-top: clamp(24px, 4vw, 40px);
}

.faq-wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}



/* ========================================================================== 
   MODULE 03: ADVISOR LAYOUTS
   START
========================================================================== */

/* ADVISOR ROW (single card) */
.advisor-row{
  margin-top: 40px;
  border: var(--line-thin);
  padding: 32px;
}

/* ADVISOR GRID, 2 UP */
.advisor-grid-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 40px;
}

/* ADVISOR GRID, 3 UP (archival) */
.advisor-grid-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 40px;
}

/* MODULE 03: ADVISOR LAYOUTS
   END
========================================================================== */


/* ========================================================================== 
   MODULE 04: MEDIA FRAMES
   START
========================================================================== */

.media-frame{
  border-radius: 1px;
  overflow: hidden;
  border: 1px dotted var(--color-dark);
  background-color: var(--bg);
}

.media-frame img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* MODULE 04: MEDIA FRAMES
   END
========================================================================== */


/* ========================================================================== 
   MODULE 05: FAQ ACCORDION
   START
========================================================================== */

.faq-card{
  border: 1px dotted var(--plate-color);
  background: var(--bg);
  border-radius: var(--radius);
  padding: var(--card-pad);
}

.faq-card{
  width: 100%;
}

.faq-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px dotted rgba(79,56,0,.55);
  margin-bottom: var(--space-2);
}

.faq-title{
  margin: 0;
  font-size: var(--step-2);
  letter-spacing: 0.01em;
}

.faq-hint{
  margin: 0;
  font-size: 14px;
  color: var(--color-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.faq{
  display: block;
}

.faq-item{
  position: relative;
  border: var(--line-thin);
  padding: 32px;
  margin-bottom: var(--space-2);
}

.faq-item:last-child{
  margin-bottom: 0;
}

.faq-q{
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--gap-2);

  padding: var(--space-2) 0;
  background: transparent;
  border: 0;

  color: var(--color-light);
  font-family: inherit;
  font-size: var(--step-0);
  text-align: left;
  cursor: crosshair;
}

.faq-q:hover{
  color: rgba(252,249,221,.92);
}

.faq-q:focus-visible{
  outline: 1px dotted rgba(252,249,221,.55);
  outline-offset: 6px;
}

/* Cursor language */
.faq-q,
.faq-q *{
  cursor: zoom-in;
}

.faq-item.is-open .faq-q,
.faq-item.is-open .faq-q *{
  cursor: zoom-out;
}

/* Icon box */
.faq-icon{
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px dotted rgba(79,56,0,.7);
  border-radius: var(--radius);

  color: var(--color-medium);
  user-select: none;
}

.faq-icon i{
  display: block;
  font-size: 18px;
  line-height: 1;
}

.faq-text{
  display: inline-block;
}

/* Motion */
.faq-a{
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-2px);

  transition:
    max-height 420ms cubic-bezier(.4,0,.2,1),
    opacity 220ms ease,
    transform 220ms ease;
}

.faq-a-inner{
  width: 100%;
  padding: 0 0 var(--space-2);
  color: var(--color-light);
  font-size: var(--step--1);
}

.faq-item.is-open .faq-a{
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .faq-a{
    transition: none;
  }
}


/* ========================================================================== 
   MODULE 06: ADVISOR LINK LIST ALIGNMENT
   START
   - Keeps advisor blocks self-contained when copied out
========================================================================== */

.advisor-row{
  text-align: left;
}

.advisor-row .link-list li{
  text-align: left;
}

.advisor-row .link-list li > a{
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  column-gap: 10px;
  justify-content: start;
}


/* ========================================================================== 
   MODULE 07: RESPONSIVE ADJUSTMENTS
   START
========================================================================== */

/* Medium screens */
@media (max-width: 900px){
  .advisor-grid-2{
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
  }

  .advisor-row{
    margin-top: 24px;
    padding: 18px;
  }

  .advisor-row .media-frame img{
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Small screens */
@media (max-width: 700px){
  .advisor-grid-3{
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Very small screens */
@media (max-width: 520px){
  .advisor-row{
    padding: 14px;
  }

  .advisor-row .media-frame img{
    max-width: 88%;
  }
}
