/* YR2K homepage-only styles. Load after yr2k-ui.css on index.php only. */

/* FAQ layout + accordion — migrated from #premium-site-system (Phase 3C-4) */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.faq-intro {
  position: sticky;
  top: 7.5rem;
}
.faq-intro h2 {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
}
.faq-list {
  display: grid;
  gap: 0.72rem;
}
.faq-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.029), rgba(255,255,255,0.01));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
  transition:
    border-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(85,165,177,0.105), transparent 44%),
    linear-gradient(145deg, rgba(27,32,44,0.42), rgba(11,14,22,0.12));
  transition: opacity 460ms cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.is-active::before {
  opacity: 1;
}
.faq-item summary {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 4.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  color: rgba(255,255,255,0.86);
  font-family: "Clash Display", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible {
  outline: none;
  border-radius: calc(1rem - 1px);
  box-shadow: inset 0 0 0 1px rgba(139,124,246,0.48);
}
.faq-item summary span {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 320ms ease,
    background-color 320ms ease;
}
.faq-item summary span::before,
.faq-item summary span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.55rem;
  height: 1px;
  background: rgba(255,255,255,0.58);
  transform: translate(-50%, -50%);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item summary span::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-active summary span {
  transform: rotate(180deg);
  border-color: rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.025);
}
.faq-item.is-active summary span::after { transform: translate(-50%, -50%) rotate(0); }
.faq-answer {
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.faq-accordion-ready .faq-answer {
  height: 0;
  opacity: 0;
  transform: translateY(-8px);
}
.faq-answer.is-animating {
  will-change: height, opacity, transform;
}
.faq-item p {
  max-width: 66ch;
  padding: 0 3.75rem 1.3rem 1.25rem;
  color: rgba(235,235,241,0.5);
  font-size: 0.88rem;
  line-height: 1.72;
}
@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item::before,
  .faq-item summary span,
  .faq-item summary span::after {
    transition: none !important;
  }
}
@media (max-width: 768px) {
  .faq-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq-intro { position: static; text-align: center; }
  .faq-intro p { margin-inline: auto; }
}

/* Process cards — migrated from #premium-site-system (Phase 3C-5) */
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 8%;
  right: 8%;
  height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, rgba(115,189,197,0.12), rgba(120,139,208,0.12), rgba(155,125,181,0.12));
}
.process-card {
  min-height: 15.5rem;
  padding: 1.45rem;
  text-align: left;
  border-radius: 1rem;
}
.process-number {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 3.6rem;
  border: 1px solid rgba(125,185,193,0.16);
  border-radius: 0.72rem;
  background: rgba(110,180,190,0.055);
  color: rgba(145,208,214,0.74);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.process-card h3 {
  margin-bottom: 0.65rem;
  color: #fff;
  font-family: "Clash Display", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
}
.process-card p {
  color: rgba(235,235,241,0.48);
  font-size: 0.78rem;
  line-height: 1.6;
}
@media (max-width: 1100px) {
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-grid::before { display: none; }
}
@media (max-width: 768px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-card { min-height: 13.5rem; }
  .process-number { margin-bottom: 2.5rem; }
}
@media (max-width: 540px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: auto; }
  .process-number { margin-bottom: 2rem; }
}

/* Proof section — migrated from #premium-site-system (Phase 3C-6) */
.proof-benefit-grid .mini-card {
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.proof-benefit-grid strong {
  font-weight: 500;
  letter-spacing: -0.015em;
}
.proof-benefit-grid span {
  display: block;
  margin-top: 0.5rem;
  line-height: 1.5;
}
.proof-principles > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
}
.proof-principles span {
  color: rgba(131,194,201,0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Homepage footer structure — migrated from #premium-site-system (Phase 3C-7).
 * Base rules mirror yr2k-ui.css for shell pages; homepage @1100px breakpoint differs and loads here after yr2k-ui.css. */
.footer-main-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 1.2fr) 0.55fr 0.55fr 0.55fr minmax(15rem, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
}
.footer-brand p { max-width: 21rem; }
.footer-link-group {
  display: grid;
  gap: 0.72rem;
}
.footer-link-group > span {
  margin-bottom: 0.25rem;
  color: rgba(255,255,255,0.34);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-link-group a {
  color: rgba(240,240,245,0.58) !important;
  font-size: 0.82rem;
  text-decoration: none;
}
.footer-link-group a:hover { color: #fff !important; }
.footer-cta-card {
  padding: 1.15rem;
  border: 1px solid rgba(255,255,255,0.065);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}
.footer-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(189,220,202,0.62);
  font-size: 0.65rem;
}
.footer-availability i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: rgba(128,190,148,0.82);
  box-shadow: 0 0 0 4px rgba(128,190,148,0.05);
}
.footer-cta-card h3 {
  margin: 0.85rem 0 1rem;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}
.footer-cta-card .btn-primary { width: 100%; }
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(240,240,245,0.34);
  font-size: 0.72rem;
}
.footer-bottom-row > div {
  display: flex;
  gap: 1.25rem;
}
.footer-bottom-row a {
  color: rgba(240,240,245,0.4) !important;
  text-decoration: none;
}
@media (max-width: 1100px) {
  .footer-main-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand,
  .footer-cta-card { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .footer-main-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand,
  .footer-cta-card { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-main-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 390px) {
  .footer-main-grid { gap: 1.25rem; }
  .footer-cta-card { padding: 1rem; }
  .footer-cta-card h3 { margin: 0.7rem 0 0.85rem; }
}

/* Contact section structure — migrated from #premium-site-system (Phase 3C-8).
 * Section wrapper spacing, heading typography, and decorative positioning only; form CSS stays inline / yr2k-ui.css. */
#contact {
  scroll-margin-top: var(--homepage-scroll-offset, 6.5rem);
}
#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: max(1.5rem, calc((100% - 76rem) / 2));
  right: max(1.5rem, calc((100% - 76rem) / 2));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.055), transparent);
  pointer-events: none;
}
#contact h2 {
  letter-spacing: -0.025em;
  line-height: 1.04;
}
#contact::after {
  content: "";
  position: absolute;
  width: 34rem;
  height: 22rem;
  left: 50%;
  bottom: -14rem;
  z-index: -1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(77,136,150,0.055);
  filter: blur(80px);
}
@media (max-width: 768px) {
  #contact::before {
    left: 1rem;
    right: 1rem;
  }
}

/* Services + work/portfolio section structure — migrated from #premium-site-system (Phase 3C-9).
 * Section scroll offset, divider ::before, and h2 typography only; card/gradient CSS stays inline. */
#services,
#portfolio {
  scroll-margin-top: var(--homepage-scroll-offset, 6.5rem);
}
#web-design,
#custom-apps,
#seo-growth,
#website-care {
  scroll-margin-top: var(--homepage-scroll-offset, 6.5rem);
}
#services::before,
#portfolio::before {
  content: "";
  position: absolute;
  top: 0;
  left: max(1.5rem, calc((100% - 76rem) / 2));
  right: max(1.5rem, calc((100% - 76rem) / 2));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.055), transparent);
  pointer-events: none;
}
#services h2,
#portfolio h2 {
  letter-spacing: -0.025em;
  line-height: 1.04;
}
@media (max-width: 768px) {
  #services::before,
  #portfolio::before {
    left: 1rem;
    right: 1rem;
  }
}

/* Proof, process, pricing, FAQ section structure — migrated from #premium-site-system (Phase 3C-10).
 * Section scroll offset, divider ::before, and h2 typography only; gradients/cards stay inline. */
#proof,
#how-we-work,
#pricing,
#faq {
  scroll-margin-top: var(--homepage-scroll-offset, 6.5rem);
}
#proof::before,
#how-we-work::before,
#pricing::before,
#faq::before {
  content: "";
  position: absolute;
  top: 0;
  left: max(1.5rem, calc((100% - 76rem) / 2));
  right: max(1.5rem, calc((100% - 76rem) / 2));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.055), transparent);
  pointer-events: none;
}
#proof h2,
#how-we-work h2,
#pricing h2,
#faq h2 {
  letter-spacing: -0.025em;
  line-height: 1.04;
}
@media (max-width: 768px) {
  #proof::before,
  #how-we-work::before,
  #pricing::before,
  #faq::before {
    left: 1rem;
    right: 1rem;
  }
}
