/*
Theme Name: fagandesign-2026
Author: fagandesign
Description: Bootstrap-free rebuild of the Fagandesign theme with modern responsive CSS and simplified type tokens.
Version: 2026.3.20
Text Domain: fagandesign-modern
*/

@font-face {
  font-family: "Tema Cantante";
  src: url("fonts/tema-cantante/tema-cantante-italic.woff2") format("woff2"),
       url("fonts/tema-cantante/tema-cantante-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* ================================
   Design Tokens
================================ */
:root {
  --site-max-width: 844px;
  --site-gutter: 16px;

  --color-page-bg: #333333;
  --color-surface: #000000;
  --color-text: #ffffff;
  --color-muted: #999999;
  --color-link: #8ee6ee;
  --color-link-hover: #d8ffb3;
  --color-active: #01aebc;

  --font-body: Verdana, Geneva, sans-serif;
  --font-size-base: 12px;
  --line-height-base: 18px;
  --letter-space-tight: 0;

  --type-h1: 20px;
  --type-h2: 16px;
  --type-h3: 14px;
  --type-h4: 12px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
}

/* ================================
   Base / Reset
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-space-tight);
  color: var(--color-text);
  background: var(--color-page-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--color-link-hover);
}

/* ================================
   Layout
================================ */
.site-shell {
  width: min(100%, var(--site-max-width));
  margin-inline: auto;
}

.band {
  width: 100%;
}

.headerWrapper {
  background: #243342;
}

.header {
  min-height: 10.3125rem; /* 165px */
  background: url("images/bkg-top.jpg") repeat-x;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-inline: var(--site-gutter);
  padding-block: 0;
  position: relative;
  overflow: visible;
}

.logo {
  inline-size: 280px;
  max-width: 100%;
}

@media (min-width: 48.0625rem) {
  .header > a {
    position: relative;
    z-index: 5;
  }

  .logo {
    transform: translate(7px, 11px);
  }
}

.header2Wrapper {
  background: #336699;
  height: 0.5rem;
}

.navWrapper {
  background: #244242;
}

.nav1 {
  height: 1.5rem; /* 24px to match legacy bar */
  background: url("images/bkg-nav.jpg") left bottom;
  display: flex;
  align-items: center;
  padding-inline: var(--site-gutter);
  position: relative;
  overflow: visible;
}

.contentBandWrapper {
  background: var(--color-page-bg);
}

.contentBand {
  background: var(--color-surface);
  min-height: 18.75rem;
}

.content {
  padding-block: var(--space-6) var(--space-7);
  padding-inline: clamp(1rem, 6vw, 6.25rem);
}

.subFooterWrapper {
  background: #003333;
}

.subFooter {
  min-height: 4.125rem;
  background: url("images/bkg-subfooter.jpg");
}

.subFooter2Wrapper {
  background: #002929;
}

.subFooter2 {
  min-height: 1.5625rem;
  background: url("images/bkg-subfooter2.jpg");
}

.footerWrapper {
  background: transparent;
}

.footer {
  color: var(--color-muted);
  font-size: 0.8em;
  background: #000000;
  height: 1.8rem; /* 24px */
  display: flex;
  align-items: center;
  padding: 0 var(--site-gutter);
  line-height: 1.5rem;
}

.footer p {
  margin: 0;
}

/* ================================
   Type
================================ */
h1,
h2,
h3,
h4 {
  line-height: 1.25;
  margin: 0 0 var(--space-4);
  color: var(--color-text);
}

h2,
h3,
h4 {
  color: #66FFFF;
}

h1 {
  font-family: var(--font-body);
  font-size: var(--type-h1);
  color: #AAFF66;
  font-weight: 400;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
}

h1.temma {
  font-family: "Tema Cantante", var(--font-body);
  font-size: calc(var(--type-h1) * 2);
  color: #AAFF66;
  font-weight: 100;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}

h2 {
  font-size: var(--type-h2);
  font-weight: 400 !important;
}

h3 {
  font-size: var(--type-h3);
  font-weight: 400 !important;
}

h4 {
  font-size: var(--type-h4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666666;
  padding-top: 10px;
}

p {
  margin: 0 0 var(--space-4);
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

/* ================================
   Components
================================ */
.site-nav {
  width: 100%;
  position: relative;
  z-index: 20;
}

.menu-toggle {
  -webkit-appearance: none;
  appearance: none;
  border: 0 !important;
  color: #ffffff;
  background: transparent !important;
  background-image: none !important;
  border-radius: 0;
  padding: 0.2rem 0.1rem;
  font: inherit;
  cursor: pointer;
  display: none;
  box-shadow: none !important;
}

.menu-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.menu-toggle:focus,
.menu-toggle:active {
  border: 0 !important;
  box-shadow: none !important;
}

.menu-toggle-icon {
  width: 18px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle-line {
  display: block;
  width: 100%;
  height: 2px !important;
  background-color: #ffffff !important;
  border-radius: 1px;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  display: block;
  color: #ffffff;
  line-height: 1.5rem;
  padding: 0 0.75rem;
  font-size: 12px;
}

.menu > li.current-menu-item > a,
.menu > li.current_page_item > a,
.menu > li.current-menu-ancestor > a,
.menu > li.current-page-ancestor > a,
.menu > li.current_page_parent > a,
.menu > li.current-menu-parent > a {
  color: var(--color-active);
}

.menu > li > a:hover,
.menu > li > a:focus-visible {
  color: var(--color-link-hover);
  background: rgba(36, 66, 66, 0.95);
}

.menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 13rem;
  background: #244242;
  border: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.25rem);
  transition: opacity 130ms ease, transform 130ms ease, visibility 130ms ease;
  z-index: 40;
}

.menu .sub-menu li {
  position: relative;
}

.menu .sub-menu a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1.25;
}

.menu .sub-menu a:hover,
.menu .sub-menu a:focus-visible {
  color: var(--color-link-hover);
  background: rgba(0, 0, 0, 0.2);
}

.menu > li:hover > .sub-menu,
.menu > li:focus-within > .sub-menu,
.menu .sub-menu > li:hover > .sub-menu,
.menu .sub-menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu .sub-menu .sub-menu {
  top: -0.35rem;
  left: calc(100% - 1px);
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.footer-sidebar .widget {
  margin: 0;
}

/* Portfolio scroller */
.portfolio-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 240px);
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0.25rem 1rem;
  scroll-snap-type: x mandatory;
}

.portfolio-scroller.is-auto-scrolling {
  scroll-snap-type: none;
}

.portfolio-card {
  scroll-snap-align: start;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  display: grid;
  gap: 0.6rem;
  padding: 0.65rem;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  border-color: #66ffff;
}

.portfolio-card-title {
  font-size: 12px;
  line-height: 1.25;
  color: #66ffff;
}

.portfolio-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  background: #000;
}

.portfolio-card-fallback {
  min-height: 150px;
  display: grid;
  place-items: center;
  background: #000;
  color: #999;
}

.portfolio-grid-all {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.65rem;
}

.portfolio-grid-card {
  display: block;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111;
  overflow: hidden;
}

.portfolio-grid-card:hover,
.portfolio-grid-card:focus-visible {
  border-color: #66ffff;
}

.portfolio-grid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-project-single {
  position: relative;
}

.single-portfolio_project .content {
  padding-inline: clamp(0.75rem, 2.2vw, 1.75rem);
}

.portfolio-project-columns {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: start;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.25rem;
}

.portfolio-project-columns.is-no-text {
  gap: 0;
}

.portfolio-project-text > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.portfolio-project-text {
  flex: 0 0 20%;
  max-width: 20%;
}

.portfolio-project-images {
  display: flex;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  gap: 1rem;
  align-items: start;
}

.portfolio-project-images figure {
  margin: 0;
  flex: 0 0 auto;
}

.portfolio-project-images img {
  width: auto;
  height: auto;
  max-width: none;
  display: block;
}

/* Shared horizontal scrollbar styling for portfolio rows */
.portfolio-project-columns,
.portfolio-scroller {
  scrollbar-width: thin;
  scrollbar-color: #66ffff #0f0f0f;
}

.portfolio-project-columns::-webkit-scrollbar,
.portfolio-scroller::-webkit-scrollbar {
  height: 10px;
}

.portfolio-project-columns::-webkit-scrollbar-track,
.portfolio-scroller::-webkit-scrollbar-track {
  background: #0f0f0f;
}

.portfolio-project-columns::-webkit-scrollbar-thumb,
.portfolio-scroller::-webkit-scrollbar-thumb {
  background: #66ffff;
  border-radius: 99px;
  border: 2px solid #0f0f0f;
}

.portfolio-project-columns::-webkit-scrollbar-thumb:hover,
.portfolio-scroller::-webkit-scrollbar-thumb:hover {
  background: #aaff66;
}

.portfolio-back-link-wrap {
  margin: 0;
}

.portfolio-back-link {
  position: absolute;
  top: -18px;
  right: 0;
  font-size: 12px;
  line-height: 1.2;
  color: #66ffff;
}

.portfolio-back-link a {
  color: #66ffff;
}

.portfolio-back-link a:hover,
.portfolio-back-link a:focus-visible {
  color: #aaff66;
}

.portfolio-back-link .is-disabled {
  color: #6f8a8a;
}

@media (min-width: 48.0625rem) {
  .page-id-30 .content,
  .page-id-32 .content,
  .page-id-31 .content,
  .page-id-182 .content,
  .page-id-184 .content {
    padding-inline: clamp(0.75rem, 2.2vw, 1.75rem);
  }

  .page-id-30 .entry-content > .entry-header,
  .page-id-32 .entry-content > .entry-header,
  .page-id-31 .entry-content > .entry-header,
  .page-id-182 .entry-content > .entry-header,
  .page-id-184 .entry-content > .entry-header {
    margin-left: 0;
    margin-right: 0;
  }

  .entry-content > * {
    margin-left: 30px;
    margin-right: 30px;
  }

  .entry-content > h1 {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ================================
   Utilities
================================ */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ================================
   Responsive
================================ */
@media (max-width: 48rem) {
  .site-shell {
    width: 100%;
  }

  .header {
    min-height: 5.5rem;
    padding-inline: 0.75rem;
    padding-bottom: 0.45rem;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    align-items: flex-end;
    overflow: visible;
  }

  .header > a {
    position: relative;
    z-index: 5;
    align-self: flex-end;
  }

  .logo {
    inline-size: 200px; /* hard width for manual tuning */
    max-width: none;
    transform: translate(0, 15px); /* tweak X/Y here */
  }

  .content {
    padding-inline: 1rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    justify-content: center;
    align-self: center;
    min-height: 1.5rem;
    line-height: 1;
    padding-top: 0;
    padding-bottom: 0;
  }

  .menu-toggle-icon {
    width: 18px;
    height: 12px;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
  }

  .menu-wrap {
    display: none;
    width: 100%;
  }

  .menu-wrap.is-open {
    display: block;
  }

  .menu {
    flex-direction: column;
    align-items: stretch;
    padding-block: var(--space-2);
  }

  .menu > li > a {
    padding-inline: 0;
    padding-block: 0.35rem;
    line-height: 1.3;
    font-size: 12px !important;
  }

  .nav1 {
    height: auto;
    min-height: 1.5rem;
    padding-inline: 0.75rem;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  .subFooter {
    min-height: 3rem;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  .subFooter2 {
    min-height: 1.2rem;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  .footer {
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  .menu .sub-menu,
  .menu .sub-menu .sub-menu {
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: block;
    padding: 0 0 0.35rem 0.9rem;
    background: transparent;
  }

  .menu .sub-menu a {
    padding: 0.25rem 0;
    font-size: 12px !important;
  }

  .portfolio-project-columns {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.8rem;
  }

  .portfolio-project-text {
    flex-basis: 33.3333%;
    max-width: 33.3333%;
  }

  .portfolio-project-images img {
    max-width: none;
    height: auto;
  }

  .portfolio-grid-all {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-back-link {
    position: absolute;
    top: -20px;
    right: 0;
    display: inline-block;
    margin: 0;
    z-index: 15;
  }
}

@media (max-height: 32rem) and (orientation: landscape) {
  .site-shell {
    width: 100%;
  }

  .header,
  .nav1,
  .subFooter,
  .subFooter2 {
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  .header {
    padding-inline: 1.5rem;
    align-items: flex-end;
    overflow: visible;
  }

  .header > a {
    position: relative;
    z-index: 5;
    align-self: flex-end;
  }

  .logo {
    inline-size: 240px; /* hard width for manual tuning */
    max-width: none;
    transform: translate(14px, 17px); /* tweak X/Y here */
  }

  .nav1 {
    padding-inline: 1.5rem;
  }

  .content {
    padding-inline: 1.5rem;
  }

  .portfolio-grid-all {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .portfolio-project-columns {
    display: flex;
    flex-wrap: nowrap;
  }

}

@media (max-width: 48rem) and (max-height: 32rem) and (orientation: landscape) {
  .portfolio-project-text {
    flex-basis: 25%;
    max-width: 25%;
  }
}
