/* ================================
   SPECIALIZATIONS (ACCORDION)
   ================================ */

.spec-section{
  background:#fff;
  /* tight gap from previous section */
  padding: 28px 5% 90px;
}

.spec-container{
  max-width: 1200px;        /* SAME as degrees-container */
  margin: 0 auto;
}

/* Title area */
.spec-header{
  margin-bottom: 26px;
}

.spec-eyebrow{
  color: var(--primary-green);
  font-weight: 600;
  font-size: 44px;          /* matches your figma big eyebrow look */
  line-height: 1.0;
  margin-bottom: 6px;
}


.spec-title{
  font-size: 64px;
  font-weight: 800;
  line-height: 1.0;
  color:#111;
}

.spec-pill{
  background: var(--cta-orange);
  color:#fff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.2px;
  transform: translateY(-6px);
}

.spec-intro{
  color:#444;
  font-size: 22px;
  line-height: 1.7;
  
}

/* Accordion list */
.spec-accordion{
  display:flex;
  flex-direction: column;
  gap: 27px;                 /* matches your Figma gap (27) */
}

.spec-item{
  background:#fff;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Header button */
.spec-head{
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;

  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 18px;

  padding: 26px 26px;
  text-align:left;
}

.spec-head-text{
  min-width: 0;
}

.spec-name{
  font-size: 43px;
  font-weight: 800;
  line-height: 1.2;
  color:#111;
  margin-bottom: 6px;
}

.spec-sub{
  font-size: 23px;
  color:#444;
}

/* Toggle circle */
.spec-toggle{
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;

  display:grid;
  place-items:center;


  background:#fff;
}

.spec-toggle-icon{
  width: 52px;
  height: 52px;
  display:block;
}

/* Body */
.spec-body{
  padding: 0 26px 26px;
  color:#333;
  font-size: 22px;
  line-height: 1.8;
}

/* OPEN STATE */
.spec-item.is-open .spec-name{
  color: #61A60D; /* your green in screenshot */
}

.spec-item.is-open .spec-toggle{
  border-color: var(--cta-orange);
}

/* Optional: subtle highlight strip like in figma cards */
.spec-item.is-open{
  box-shadow: 0 14px 28px rgba(0,0,0,0.10);
}
.spec-header{
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.spec-title{
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  color:#111;
  margin-bottom: 18px;   /* space before pill */
}

.spec-pill{
  background: var(--cta-orange);
  color:#fff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 28px;
  letter-spacing: 0.2px;
  margin-bottom: 14px;   /* space before intro */
}

/* Responsive */
@media (max-width: 1024px){
  .spec-eyebrow{ font-size: 34px; }
  .spec-title{ font-size: 48px; }
}

@media (max-width: 768px){
  .spec-section{ padding: 22px 5% 70px; }

  .spec-eyebrow{ font-size: 28px; }
  .spec-title{ font-size: 36px; }

  .spec-head{ padding: 20px; }
  .spec-body{ padding: 0 20px 20px; }
  .spec-body{ font-size: 16px; }
  .spec-name{ font-size: 18px; }
  .spec-sub{ font-size: 16px; }
  .spec-pill { font-size: 18px; }
  .spec-toggle{
    width: 36px;
    height: 36px;
  }
  .spec-toggle-icon{
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px){
  .spec-title{ font-size: 32px; }
  .spec-pill{ padding: 8px 18px; font-size: 13px; }
}
/* ================================
   ACCORDION SMOOTH ANIMATION
================================ */

.spec-body{
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* OPEN STATE */
.spec-item.is-open .spec-body{
  max-height: 500px;          /* large enough for content */
  opacity: 1;
  transform: translateY(0);
}

/* Optional: smoother feel */
.spec-head{
  transition: background 0.25s ease;
}
