/**
 * Apex Build & Structure — shared styles
 * Consolidates rules that were previously copy-pasted (with small drifts)
 * across index.html, projects.html and contact.html.
 */

body {
  background-color: #f8f9fa; /* surface / background */
  color: #191c1d;            /* on-background */
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Material Symbols ------------------------------------------------------ */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
.material-symbols-outlined[data-weight="fill"] {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Accessible focus ring (Tailwind's CDN reset removes default outlines
   on some elements; this restores a visible, on-brand focus state) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #ed9101; /* on-tertiary-container / amber accent */
  outline-offset: 2px;
}

/* Hide scrollbar but keep scroll functionality for the project carousel */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Modern Industrialism card + list treatments --------------------------- */
.industrial-card {
  border: 1px solid rgba(73, 99, 102, 0.1);
  background-color: #ffffff; /* surface-container-lowest */
  transition: all 0.3s ease;
}
.industrial-card:hover {
  border-color: #ed9101; /* on-tertiary-container */
  transform: translateY(-2px);
  box-shadow: 0px 4px 12px rgba(47, 62, 70, 0.08);
}

.blueprint-list-item {
  border-bottom: 1px dotted #c3c7ca; /* outline-variant */
}
.blueprint-list-item:last-child {
  border-bottom: none;
}

/* Project details modal (projects.html) --------------------------------- */
#project-modal {
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#project-modal.modal-closed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#project-modal.modal-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#modal-container {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#project-modal.modal-closed #modal-container {
  transform: scale(0.95) translateY(12px);
  opacity: 0;
}
#project-modal.modal-open #modal-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Mobile nav panel (shared across all three pages) ---------------------- */
#mobile-menu {
  border-top: 1px solid rgba(73, 99, 102, 0.1);
}

/* Contact page: map hero -------------------------------------------------
   (previously contact.html duplicated the background-image both in a CSS
   class AND an inline style on the same element — the inline style always
   won and the class rule below was dead code; the image now lives only in
   the HTML `style` attribute referencing this class for the fades/marker) */
.map-container {
  position: relative;
  width: 100%;
  height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.map-fade-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(248, 249, 250, 1) 0%, rgba(248, 249, 250, 0) 100%);
  pointer-events: none;
}
.map-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, rgba(248, 249, 250, 1) 0%, rgba(248, 249, 250, 0) 100%);
  pointer-events: none;
}
.custom-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.marker-pin {
  width: 40px;
  height: 40px;
  background-color: #192830; /* primary */
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: absolute;
  bottom: -20px;
  left: 50%;
  margin-left: -20px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.marker-pin::after {
  content: "";
  width: 14px;
  height: 14px;
  margin: 13px 0 0 13px;
  background: #fff;
  position: absolute;
  border-radius: 50%;
}
