/* Additions layered on top of the compiled Astro styles. */

/* ---------- Contact links with icons ---------- */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.contact-list .ci {
  flex: none;
  width: 1.45em;
  height: 1.45em;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.contact-list .ci svg {
  width: 58%;
  height: 58%;
  fill: currentColor;
}
.contact-list a:hover .ci,
.contact-list a:focus-visible .ci {
  background: #fff;
  color: var(--color-secondary, #2b47ff);
  transform: translateY(-2px);
}
@media (max-width: 1024px) {
  .contact-list {
    align-items: center;
    gap: 0.5em;
  }
}
@media (max-width: 480px) {
  .contact-section-links {
    font-size: calc(var(--headline-xs) * 0.95) !important;
  }
}

/* ---------- Floating quick-contact dock (all pages) ---------- */
.quick-contact {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.quick-contact.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.quick-contact a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #111;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), inset 0 0 0 1.5px rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.quick-contact a svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.quick-contact a.qc-wa {
  background: #25d366;
}
.quick-contact a:hover,
.quick-contact a:focus-visible {
  transform: scale(1.08);
}
.quick-contact a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .quick-contact .qc-mail {
    display: none;
  }
}
@media (min-width: 1025px) {
  .quick-contact a {
    width: 52px;
    height: 52px;
  }
}
/* Project pages have their own bottom-right controls (info toggle) and a WhatsApp CTA. */
body:has(.project-page) .quick-contact {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .quick-contact,
  .quick-contact a,
  .contact-list .ci {
    transition: none;
  }
}

/* ---------- Project gallery polish ---------- */
.gallery-item-media {
  background: #0d0d0f;
}

/* ---------- Readable text on blue / dark backgrounds (not in gold mode) ---------- */
html:not(.gold-mode) .site-header .menu-char,
html:not(.gold-mode) .site-header .site-header-nav-link,
html:not(.gold-mode) .site-header .site-header-cta-link,
html:not(.gold-mode) .hero-section .hero-heading-char,
html:not(.gold-mode) .hero-section .hero-body,
html:not(.gold-mode) .hero-section .hero-body b,
html:not(.gold-mode) .service-section-header-title h2,
html:not(.gold-mode) .service-section-header-description p,
html:not(.gold-mode) .service-section-header-description a,
html:not(.gold-mode) .experience-header .experience-kicker,
html:not(.gold-mode) .experience-header .experience-title,
html:not(.gold-mode) .experience-header .experience-intro,
html:not(.gold-mode) .experience-summary,
html:not(.gold-mode) .experience-summary h3,
html:not(.gold-mode) .experience-summary p,
html:not(.gold-mode) .experience-summary li,
html:not(.gold-mode) .experience-marker,
html:not(.gold-mode) .portfolio-card .pretitle,
html:not(.gold-mode) .portfolio-card .project-name,
html:not(.gold-mode) .portfolio-card h3,
html:not(.gold-mode) .portfolio-card .marker-label,
html:not(.gold-mode) .portfolio-card .portfolio-card-slide,
html:not(.gold-mode) .project-hero .pretitle,
html:not(.gold-mode) .project-hero .project-name,
html:not(.gold-mode) .project-hero .glow-text,
html:not(.gold-mode) .project-hero .marker-label,
html:not(.gold-mode) .project-nav-label {
  color: #fff !important;
}
/* black hero box border + header divider lines -> soft white on blue */
html:not(.gold-mode) .hero-section .hero-box {
  border-color: rgba(255, 255, 255, 0.55) !important;
}
/* marker triangles and Rive outline buttons on dark project colours */
html:not(.gold-mode) .portfolio-card .triangle-down,
html:not(.gold-mode) .project-hero .triangle-down,
html:not(.gold-mode) .portfolio-card .btn-outline-canvas,
html:not(.gold-mode) .project-hero .btn-outline-canvas {
  filter: invert(1);
}
html:not(.gold-mode) .portfolio-card .work-markers,
html:not(.gold-mode) .project-hero .work-markers {
  border-color: rgba(255, 255, 255, 0.6) !important;
}
