/* Site-specific CSS overrides, loaded last by the theme's baseof.html. */

/* The theme wraps every page's main content in Bootstrap's .container-fluid
   (see baseof.html), which has no max-width by design -- on wide windows
   the content (and the carousel/tables/text lines) just keeps stretching.
   Cap it and let the extra space sit blank instead. */
.container-fluid {
  max-width: 1000px;
}

/* The theme sets h2 to 3.5rem (same visual weight as a page title). H2 is
   only ever used for subheadings inside body content on this site (page
   titles are all h1), so shrink it site-wide to read as a section title,
   not a second page title. */
h2 {
  font-size: 1.85rem;
}

/* Theme's #sideNav .navbar-collapse is flex-row (only its .navbar-nav
   child is forced to a column), so a second child -- our social-icon row
   in nav.html -- would sit beside the nav links instead of below them.
   Force the collapse container itself to stack vertically too. */
@media (min-width: 992px) {
  #sideNav .navbar-collapse {
    flex-direction: column;
  }
}

/* Social/professional icon row (see layouts/partials/about.html): every
   icon is rendered as an inline SVG from data/icons.yaml (Simple Icons
   path data) so all of them share one consistent flat-vector style --
   avoids mixing Font Awesome brand glyphs with Academicons letterform
   glyphs, which render at visibly different weights/styles even at the
   same font-size. Sized/centered to match the existing fa-stack circle
   badge (nb: 24x24 viewBox from Simple Icons). */
.social-svg-icon {
  width: 26px;
  height: 26px;
  fill: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Google Scholar uses the official Academicons mark (g + graduation cap,
   viewBox 384x512 -- taller than the 24x24 square icons around it), sized
   to preserve its 0.75 aspect ratio rather than stretching it square. */
.social-svg-icon[data-icon="googlescholar"] {
  width: 24px;
  height: 32px;
}

/* Expertise carousel (see layouts/partials/expertiseCarousel.html): a solid
   backdrop bar behind the caption so text stays legible over any of the
   slide backgrounds, instead of Bootstrap's default plain text+shadow. */
.expertise-caption {
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(7, 32, 44, 0.85) 0%, rgba(7, 32, 44, 0) 100%);
  padding: 1.5rem 1rem 0.9rem;
  text-align: left;
}
.expertise-caption h5 {
  color: #F3ECE2;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.expertise-caption p {
  color: #C7D3D8;
}

/* Services tabs (see layouts/services/section.html): match Bootstrap's
   default nav-tabs to the site's rust-orange accent instead of default
   grey/blue, and give the content panel a defined edge under the tabs. */
.services-tabs {
  flex-wrap: wrap;
}
.services-tabs .nav-item {
  flex: 1 1 33%;
  text-align: center;
}
.services-tabs .nav-link {
  color: #6c757d;
  border-color: transparent;
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 0.5rem 0.6rem;
}
.services-tabs .nav-link:hover {
  border-color: #dee2e6 #dee2e6 #dee2e6;
}
.services-tabs .nav-link.active {
  color: #BD5D38;
  font-weight: 700;
  border-color: #dee2e6 #dee2e6 #fff;
  border-top: 2px solid #BD5D38;
}
.services-tab-content {
  border: 1px solid #dee2e6;
  border-top: none;
}

/* Showcase cards (Products + Portfolio list rows, layouts/partials/
   productsSummary.html + portfolioSummary.html): elevated, hoverable
   cards instead of plain résumé-style list rows, since these two pages
   are meant to catch a visitor's eye rather than read like a CV. Title
   above already links to the detail page, so no "Read more.." link. */
.showcase-card {
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid #BD5D38;
  box-shadow: 0 2px 10px rgba(7, 32, 44, 0.08);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(7, 32, 44, 0.16);
}
.showcase-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
}
.showcase-card h3 a {
  color: #07202C;
  text-decoration: none;
}
.showcase-card h3 a:hover {
  color: #BD5D38;
}
.showcase-card-desc {
  flex: 1 1 auto;
  min-width: 0;
}
.showcase-card-desc p {
  margin-bottom: 0.5rem;
}
.showcase-card-image {
  flex: 0 0 160px;
  width: 160px;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-card-image > a {
  display: block;
  width: 100%;
  height: 100%;
}
.showcase-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.showcase-card:hover .showcase-card-image img {
  transform: scale(1.08);
}
.showcase-card-image-placeholder {
  background: linear-gradient(135deg, #07202C 0%, #BD5D38 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  text-decoration: none;
  padding: 0.5rem;
}
.showcase-result-chip {
  display: inline-block;
  background: rgba(189, 93, 56, 0.1);
  color: #BD5D38;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
@media (max-width: 576px) {
  .showcase-card-image {
    flex: 0 0 auto;
    width: 100%;
    height: 140px;
    order: -1;
  }
}

/* Inline content images (e.g. under a "## Screenshots" heading in a
   product's markdown body) get the same rounded/shadowed treatment as
   the hero image below, instead of rendering as a plain bare <img>. */
.resume-section img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(7, 32, 44, 0.12);
}

/* Products + Portfolio detail pages (layouts/products/single.html,
   layouts/portfolio/single.html): a full-width hero image up top when
   one is set, and a pill-style call-to-action link instead of a plain
   "Link: <url>" line. */
.detail-hero {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(7, 32, 44, 0.15);
}
.detail-hero img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}
.cta-link {
  display: inline-block;
  background: #BD5D38;
  color: #fff !important;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.cta-link:hover {
  background: #a34a29;
  transform: translateY(-2px);
}

/* Portfolio case-study steps (layouts/portfolio/single.html): the
   Challenge/Approach/Result fields as a numbered visual sequence rather
   than plain stacked headings, to read as a story, not a report. */
.case-study-steps {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.case-study-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.case-study-step-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #BD5D38;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(189, 93, 56, 0.35);
}
.case-study-step h5 {
  margin-bottom: 0.35rem;
}
.case-study-step p {
  margin-bottom: 0;
}

/* "What I Do" breakdown table on the About page (content/about.md): a
   borderless label + bullet-list layout, not a real <table>, since the
   category labels span multiple bullet rows with no visible grid lines. */
.what-i-do-table {
  margin: 1.5rem 0;
}
.what-i-do-table .wid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.what-i-do-table .wid-row:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.what-i-do-table .wid-label {
  flex: 0 0 240px;
  text-align: right;
  font-weight: 600;
  color: #343a40;
  padding-top: 0.1rem;
}
.what-i-do-table .wid-list {
  flex: 1 1 320px;
  margin: 0;
  padding-left: 1rem;
  list-style: none;
}
.what-i-do-table .wid-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  color: #495057;
}
.what-i-do-table .wid-list li:last-child {
  margin-bottom: 0;
}
.what-i-do-table .wid-list li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: #BD5D38;
}
@media (max-width: 576px) {
  .what-i-do-table .wid-label {
    flex-basis: 100%;
    text-align: left;
  }
}
