/* Portillo branding and WordPress integration only. Reincon CSS remains canonical. */
:root {
  --portillo-red: #c0262c;
  --portillo-burgundy: #7b171b;
  --portillo-deep-burgundy: #380f0f;
  --portillo-near-black: #0f0908;
  --portillo-soft-white: #f8f5f5;
  --themeht-primary-color: var(--portillo-red);
  --themeht-secondary-color: var(--portillo-deep-burgundy);
  --themeht-text-color: var(--portillo-near-black);
  --themeht-body-color: #5b4f4f;
  --themeht-white-color: #fff;
  --themeht-rgba-color: rgba(255, 255, 255, 0.9);
  --themeht-bg-dark-color: var(--portillo-near-black);
  --themeht-bg-light-color: var(--portillo-soft-white);
  --themeht-border-light-color: #d9d0d0;
  --themeht-border-dark-color: #2c2221;
}

body {
  background: #fff;
}

:focus-visible {
  outline: 3px solid var(--portillo-red);
  outline-offset: 4px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Real horizontal Portillo mark fitted inside Reincon's original logo slot. */
.logo .portillo-logo {
  height: auto;
  max-height: 90px;
  object-fit: contain;
  width: 145px;
}

.header-icon-button,
.close-search {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.header-top .search-icon button {
  color: var(--themeht-white-color);
}

.header-top .search-icon button:hover {
  color: var(--themeht-primary-color);
}

.header-number a,
.header-number span {
  white-space: nowrap;
}

.navbar-nav .dropdown-menu {
  z-index: 1000;
}

.dropdown-menu a {
  line-height: 1.35;
}

/* Red needs white foreground; Reincon yellow used dark foreground. */
.primary-btn,
a.primary-btn {
  color: var(--themeht-white-color);
}

.themeht-btn.primary-btn svg line {
  stroke: var(--themeht-white-color);
}

.ht-svg-arrow {
  height: 19px;
  width: 10px;
}

.primary-btn:hover,
a.primary-btn:hover {
  color: #ffb9bb;
}

.service-item.style-1:hover .service-num {
  color: var(--themeht-white-color);
}

.service-item.style-1:hover .service-title h4 a:hover {
  color: var(--themeht-white-color);
}

.themeht-btn.primary-btn:hover svg line {
  stroke: #ffb9bb;
}

.primary-bg .marquee-text,
.primary-bg .marquee-text i {
  color: var(--themeht-text-color);
}

.header-marquee .marquee-text,
.header-marquee .marquee-text i {
  color: var(--themeht-white-color);
}

@keyframes portillo-marquee-left {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes portillo-marquee-right {
  from {
    transform: translate3d(-50%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.portillo-marquee {
  overflow: hidden;
  width: 100%;
}

.portillo-marquee-track {
  display: flex;
  justify-content: flex-start;
  width: max-content;
  will-change: transform;
}

.portillo-marquee-left {
  animation: portillo-marquee-left 30s linear infinite !important;
}

.portillo-marquee-right {
  animation: portillo-marquee-right 30s linear infinite !important;
}

.portillo-marquee-set {
  display: flex;
  flex: none;
}

.portillo-marquee-track .marquee-text {
  flex-shrink: 0;
}

.portillo-video-hero {
  background: #0f0908;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  width: 100%;
}

.portillo-home-video {
  display: block;
  height: auto !important;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

body.portillo-popup-open {
  overflow: hidden;
}

.portillo-home-popup[hidden] {
  display: none;
}

.portillo-home-popup {
  align-items: center;
  background: rgba(15, 9, 8, 0.86);
  display: flex;
  inset: 0;
  justify-content: center;
  overflow: auto;
  padding: 24px;
  position: fixed;
  z-index: 1200;
}

.portillo-home-popup-dialog {
  max-height: calc(100vh - 48px);
  max-width: min(720px, calc(100vw - 48px));
  opacity: 0;
  position: relative;
  transform: scale(0.96);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}

.portillo-home-popup.is-open .portillo-home-popup-dialog {
  opacity: 1;
  transform: scale(1);
}

.portillo-home-popup-dialog img {
  display: block;
  height: auto;
  max-height: calc(100vh - 48px);
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.portillo-home-popup-close {
  align-items: center;
  background: #000;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 30px;
  height: 46px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 46px;
  z-index: 1;
}

.portillo-home-popup-close:hover,
.portillo-home-popup-close:focus-visible {
  background: var(--portillo-red);
}

.team-member .team-images img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.portfolio-swiper .portfolio-item.style-2 .portfolio-image img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

.portillo-project-hero {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.portfolio-gallery-image img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.post-swiper .post-card .post-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.contact-img img {
  max-height: 720px;
  object-fit: cover;
  width: 100%;
}

.portillo-estimate-form .form-control,
.portillo-estimate-form .form-select {
  color: var(--themeht-text-color);
}

.portillo-estimate-form .form-control::placeholder {
  color: #645656;
  opacity: 1;
}

.portillo-honeypot {
  left: -10000px;
  position: absolute;
  top: auto;
}

.footer-logo .portillo-logo {
  max-height: 100px;
}

.footer,
.footer .primary-footer,
.footer .secondary-footer {
  background-color: #000000;
}

.footer {
  background-image: none;
}

.footer-subscribe .themeht-btn {
  margin-top: 10px;
}

.footer a:hover {
  color: #ffb9bb;
}

.search-input {
  z-index: 1100;
}

.close-search {
  align-items: center;
  display: inline-flex;
}

.before-after-pair {
  border: 1px solid var(--themeht-border-light-color);
  margin-bottom: 32px;
  padding: 16px;
}

.before-after-pair figure {
  margin: 0;
}

.before-after-pair img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.before-after-pair figcaption {
  color: var(--themeht-text-color);
  font-weight: 700;
  padding-top: 10px;
}

.portillo-gallery-video {
  background: var(--portillo-near-black);
  display: block;
  height: auto;
  max-height: 680px;
  object-fit: contain;
  width: 100%;
}

.portillo-video-card .portfolio-desc {
  display: none;
}

.portillo-gallery-placeholder {
  align-items: center;
  aspect-ratio: 3 / 4;
  background: var(--portillo-near-black);
  color: var(--themeht-white-color);
  display: flex;
  flex-direction: column;
  font-family: var(--themeht-typography-secondary-font-family);
  font-size: 20px;
  gap: 18px;
  justify-content: center;
  padding: 30px;
  text-align: center;
  width: 100%;
}

.portillo-gallery-placeholder i {
  color: var(--portillo-red);
  font-size: 64px;
}

.portillo-gallery-placeholder-hero {
  aspect-ratio: 16 / 9;
  font-size: 28px;
}

.portillo-gallery-empty {
  background: var(--portillo-soft-white);
  border: 1px solid var(--themeht-border-light-color);
  padding: 40px;
}

.blog-sidebar .widget {
  margin-bottom: 40px;
}

.pagination .page-numbers,
.nav-links .page-numbers {
  align-items: center;
  border: 1px solid var(--themeht-border-light-color);
  color: var(--themeht-text-color);
  display: inline-flex;
  height: 46px;
  justify-content: center;
  margin: 3px;
  min-width: 46px;
  padding: 0 10px;
}

.pagination .current,
.nav-links .current,
.pagination a:hover,
.nav-links a:hover {
  background: var(--themeht-primary-color);
  border-color: var(--themeht-primary-color);
  color: var(--themeht-white-color);
}

.error-text .error-digit {
  color: var(--themeht-primary-color);
  font-family: var(--themeht-typography-secondary-font-family);
  font-size: 200px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 992px) {
  .logo .portillo-logo {
    max-height: 70px;
    width: 94px;
  }

  .navbar > .navbar-brand.logo {
    align-items: center;
    display: flex !important;
    min-height: 80px;
  }

  .navbar-collapse {
    max-height: calc(100vh - 90px);
  }

  .navbar-nav .dropdown > .dropdown-menu {
    display: none;
    opacity: 1;
    pointer-events: auto;
    position: static;
    visibility: visible;
  }

  .navbar-nav .dropdown > .dropdown-menu.show {
    display: block;
  }

  body.tt-magic-cursor #magic-cursor {
    display: none;
  }
}

@media (max-width: 767px) {
	.portillo-home-popup {
		padding: 14px;
	}

	.portillo-home-popup-dialog {
		max-height: calc(100vh - 28px);
		max-width: calc(100vw - 28px);
	}

	.portillo-home-popup-dialog img {
		max-height: calc(100vh - 28px);
	}

	.portillo-home-popup-close {
		height: 42px;
		right: 8px;
		top: 8px;
		width: 42px;
	}

  .error-text .error-digit {
    font-size: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .portillo-reduced-motion .sticky-panel-content {
    display: block;
    height: auto;
    overflow: visible;
  }

  .portillo-reduced-motion .sticky-panel {
    display: block;
    height: auto;
    transform: none !important;
  }

  .portillo-reduced-motion .sticky-panel-img {
    height: 400px;
    width: 100%;
  }

  .portillo-reduced-motion .sticky-panel-text {
    padding: 3rem;
    width: 100%;
  }
}
