/*
Theme Name: Jacob Federer Portio
Theme URI: https://jacobfederer.com/
Author: Jacob Federer migration
Description: WordPress port of the Portio Hugo based jacobfederer.com design. Preserves the original visual system and bilingual structure.
Version: 1.1.7
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: jacob-federer-portio
License: MIT
License URI: https://opensource.org/licenses/MIT
*/

/* WordPress migration additions, deliberately small so Portio remains visually dominant. */
.footer__widget_address .unstyle-list { padding-left: 0; list-style: none; }
.jf-inline-icon { display: inline-flex; width: 1.1em; height: 1.1em; margin-right: .55em; vertical-align: -.15em; }
.jf-inline-icon svg { width: 100%; height: 100%; fill: currentColor; }
.jf-social-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6em; height: 1.6em; font-weight: 600; font-size: .9em; }
.testimonial__slider_item-rating .jf-star { font-size: 1.05em; }
.testimonial__slider_item-rating .jf-star.inactive { opacity: .25; }


/* v1.1 launch-readiness additions */
.jf-map-card {
  min-height: 100%;
  padding: 3rem;
  background: #f1f6f9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.jf-map-card > img { margin-bottom: 1.5rem; }
.jf-map-card h2 { margin: .5rem 0 1rem; }
.jf-map-card p { max-width: 34rem; }

.jf-cookie-settings {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9996;
  border: 1px solid rgba(255,255,255,.45);
  background: #2d2d2d;
  color: #fff;
  padding: .55rem .75rem;
  border-radius: 4px;
  font-size: .82rem;
  cursor: pointer;
}
.jf-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9997;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.15rem;
  background: #fff;
  color: #2d2d2d;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  border-radius: 6px;
}
.jf-consent[hidden] { display: none !important; }
.jf-consent__inner {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.jf-consent__inner p { margin: .35rem 0 0; font-size: .92rem; }
.jf-consent__actions { display: flex; gap: .6rem; flex: 0 0 auto; }
@media (max-width: 767px) {
  .jf-map-card { margin-top: 2rem; padding: 2rem; }
  .jf-consent__inner { display: block; }
  .jf-consent__actions { margin-top: 1rem; }
  .jf-consent__actions .btn { flex: 1; }
  .jf-cookie-settings { bottom: .5rem; right: .5rem; }
}

/* Privacy-first system-font fallbacks. The original Hugo theme loaded Google Fonts.
   This launch build avoids that third-party request. */
body, button, input, optgroup, select, textarea {
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6, .site-title {
  font-family: Georgia, "Times New Roman", serif;
}


/* Portfolio screenshot gallery added in 1.1.2. */
.jf-project-screenshots {
  margin-top: 3.5rem;
  text-align: left;
}
.jf-project-screenshots h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}
.jf-project-screenshot {
  margin: 0 0 2rem;
}
.jf-project-screenshot__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 38px rgba(0,0,0,.10);
}
.jf-project-screenshot figcaption {
  margin-top: .75rem;
  color: #6c757d;
  font-size: .9rem;
  text-align: center;
}


/* v1.1.2 portfolio stability fix.
   Portio originally mixed flex layout, Masonry transforms and unconstrained
   width:auto thumbnails. Wide screenshots could overflow into the next card,
   and delayed/cached JavaScript could leave stale positions. */
.portfolio-item-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  row-gap: 40px;
}
.portfolio-item-grid .portfolio-item {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: auto !important;
  min-width: 0;
  margin-bottom: 0 !important;
}
.portfolio-item-grid .portfolio-item-thumb {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 325px;
  object-fit: contain;
}
@media (max-width: 767px) {
  .portfolio-item-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 56px;
  }
  .portfolio-item-grid .portfolio-item-thumb {
    max-height: none;
  }
}


/* v1.1.7 accessibility refinements. */
/* Item headings were semantically promoted from H4 to H3; keep Portio's card typography. */
.service__slider_item .mt-5 > h3,
.resume__education_item > h3,
.footer__widget h3.base-font {
  font-size: 1.5625rem;
  line-height: 1.2;
}
