/*
Theme Name: FirstConnectt
Theme URI: https://www.firstconnectt.com/
Author: FirstConnectt
Description: FirstConnectt — Global CPaaS platform marketing site with native WordPress blogging. The full marketing site (home, products, services, integrations, success stories) is served pixel-identical from the theme; blog articles are managed in wp-admin.
Version: 1.0.0
Requires PHP: 7.4
License: Proprietary
Text Domain: firstconnectt
*/

/* Smooth anchor scrolling for the article table of contents (blog pages
   are the only pages that load this stylesheet). */
html {
  scroll-behavior: smooth;
}

/* Article body styling for WordPress-authored content (imported or new). */
.fc-article h2 {
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin: 3rem 0 1.15rem;
  scroll-margin-top: 7.5rem;
}
.fc-article h2::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 4px;
  border-radius: 999px;
  background: var(--fc-accent, #047857);
  margin-bottom: 0.9rem;
}
.fc-article h3 {
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: #0f172a;
  margin: 2.1rem 0 0.75rem;
  scroll-margin-top: 7.5rem;
}
.fc-article .fc-hnum {
  color: var(--fc-accent, #047857);
  font-size: 0.72em;
  font-weight: 900;
  margin-right: 0.55rem;
  letter-spacing: 0.01em;
}
.fc-article h4 {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
  margin: 1.9rem 0 0.7rem;
}
.fc-article p {
  color: #475569;
  line-height: 1.75;
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}
.fc-article ul,
.fc-article ol {
  margin: 0 0 1.25rem 1.35rem;
  color: #475569;
  font-size: 1.05rem;
}
.fc-article ul {
  list-style: disc;
}
.fc-article ol {
  list-style: decimal;
}
.fc-article li {
  margin-bottom: 0.7rem;
  line-height: 1.7;
}
.fc-article li::marker {
  color: var(--fc-accent, #047857);
}
.fc-article a {
  color: #047857;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fc-article img {
  border-radius: 1rem;
  height: auto;
  max-width: 100%;
}
.fc-article blockquote {
  position: relative;
  margin: 2.25rem 0;
  padding: 1.9rem 2rem 1.6rem 2.2rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--fc-accent, #047857);
  border-radius: 1.1rem;
  font-style: italic;
  color: #0f172a;
}
.fc-article blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.35rem;
  left: 1.05rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--fc-accent, #047857);
  opacity: 0.14;
  pointer-events: none;
}
.fc-article blockquote p {
  position: relative;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.65;
  color: #0f172a;
  margin-bottom: 0.4rem;
}
.fc-article blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fc-accent, #047857);
}
.fc-article .fc-takeaway {
  margin-top: 3rem;
  border-radius: 1rem;
  background: rgba(4, 120, 87, 0.05);
  border: 1px solid rgba(4, 120, 87, 0.15);
  padding: 1.75rem 2rem;
}
.fc-article .fc-takeaway .fc-takeaway-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #047857;
  margin-bottom: 0.75rem;
}
.fc-article .fc-takeaway p:last-child {
  color: #0f172a;
  font-weight: 500;
  margin-bottom: 0;
}

/* "In Brief" summary card (WordPress-authored articles use the same class
   via the starter content or a custom HTML block). */
.fc-article .fc-summary {
  margin: 2.25rem 0;
  border-radius: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--fc-accent, #047857) 22%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--fc-accent, #047857) 6%, #ffffff),
    rgba(201, 162, 39, 0.05)
  );
  padding: 1.6rem 1.9rem;
}
.fc-article .fc-summary .fc-summary-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fc-accent, #047857);
  margin-bottom: 0.9rem;
}
.fc-article .fc-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fc-article .fc-summary li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.65rem;
  color: #334155;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.65;
}
.fc-article .fc-summary li:last-child {
  margin-bottom: 0;
}
.fc-article .fc-summary li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.18rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: var(--fc-accent, #047857);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Table of contents list (markup built in single.php). */
.fc-toc {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fc-toc li {
  margin: 0;
}
.fc-toc a {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.55rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: #334155;
  text-decoration: none;
}
.fc-toc a:hover {
  background: #ffffff;
  color: #047857;
}
.fc-toc .fc-toc-num {
  flex: 0 0 auto;
  min-width: 1.1rem;
  text-align: right;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--fc-accent, #047857);
}
.fc-toc .fc-toc-children {
  list-style: none;
  margin: 0.1rem 0 0.35rem;
  padding: 0 0 0 1.05rem;
}
.fc-toc .fc-toc-children a {
  font-size: 0.88rem;
  font-weight: 500;
  color: #64748b;
  padding: 0.3rem 0.5rem;
}
.fc-toc .fc-toc-children .fc-toc-num {
  min-width: 1.5rem;
  font-size: 0.64rem;
}
/* Subheadings stay tucked under their section and slide out on hover.
   Only on hover-capable pointers — touch devices keep them always visible. */
@media (hover: hover) and (pointer: fine) {
  .fc-toc .fc-toc-children {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-0.55rem);
    transition:
      max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
      margin 0.45s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s ease,
      transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  }
  .fc-toc li:hover > .fc-toc-children,
  .fc-toc li:focus-within > .fc-toc-children {
    max-height: 40rem;
    margin: 0.1rem 0 0.35rem;
    opacity: 1;
    transform: translateX(0);
  }
  .fc-toc-branch > a::after {
    content: "";
    flex: 0 0 auto;
    align-self: center;
    width: 0.4rem;
    height: 0.4rem;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.45;
    transform: rotate(-45deg);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .fc-toc li.fc-toc-branch:hover > a::after,
  .fc-toc li.fc-toc-branch:focus-within > a::after {
    opacity: 1;
    transform: rotate(45deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fc-toc .fc-toc-children,
  .fc-toc-branch > a::after {
    transition: none;
  }
}
@media (min-width: 640px) {
  .fc-toc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 0.15rem;
  }
}

/* FAQ accordion (native details/summary — no JS needed). */
.fc-article .fc-faq {
  margin: 1.6rem 0 2.4rem;
  display: grid;
  gap: 0.8rem;
}
.fc-article .fc-faq details {
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #ffffff;
  overflow: hidden;
}
.fc-article .fc-faq details[open] {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.fc-article .fc-faq summary {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.3rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: #0f172a;
  font-size: 1.02rem;
  line-height: 1.45;
}
.fc-article .fc-faq summary::-webkit-details-marker {
  display: none;
}
.fc-article .fc-faq summary::before {
  content: "Q";
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: var(--fc-accent, #047857);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}
.fc-article .fc-faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  margin-left: auto;
  margin-top: 0.3rem;
  transition: transform 0.2s ease;
}
.fc-article .fc-faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.55rem;
}
.fc-article .fc-faq summary p {
  margin: 0;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}
.fc-article .fc-faq .fc-faq-a {
  padding: 0 1.35rem 1.2rem 3.6rem;
}
.fc-article .fc-faq .fc-faq-a p {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.fc-article .fc-faq .fc-faq-a p:last-child {
  margin-bottom: 0;
}

/* "Final Thoughts" conclusion panel (takeaway card nests inside). */
.fc-article .fc-conclusion {
  margin-top: 3rem;
  border-radius: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--fc-accent, #047857) 16%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--fc-accent, #047857) 5%, #ffffff),
    rgba(201, 162, 39, 0.05)
  );
  padding: 2rem 2.2rem 2.2rem;
}
.fc-article .fc-conclusion h2 {
  margin-top: 0;
}
.fc-article .fc-conclusion .fc-takeaway {
  margin-top: 1.6rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--fc-accent, #047857);
  border-radius: 0.9rem;
}

/* WordPress core alignment classes (minimal support). */
.alignleft {
  float: left;
  margin: 0 1.25rem 1rem 0;
}
.alignright {
  float: right;
  margin: 0 0 1rem 1.25rem;
}
.aligncenter {
  display: block;
  margin: 0 auto 1rem;
}

/* Simple mobile menu injected on blog pages. */
.fc-mobile-menu {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  background: #ffffff;
  z-index: 60;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem 1rem 1rem;
  max-height: 75vh;
  overflow-y: auto;
}
.fc-mobile-menu a {
  display: block;
  padding: 0.8rem 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  border-radius: 0.6rem;
}
.fc-mobile-menu a:hover {
  background: #f1f5f9;
  color: #047857;
}
.fc-mobile-menu a.fc-cta {
  margin-top: 0.5rem;
  background: linear-gradient(90deg, #047857, #065f46);
  color: #ffffff;
  text-align: center;
}
