/* Projects page — editorial case studies aligned with homepage redesign */

.hh-projects-page {
  font-family: "Outfit", system-ui, sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.hh-projects-page #topcontrol,
.hh-projects-page .topcontrol {
  display: none !important;
}

.hh-projects-page h1,
.hh-projects-page h2,
.hh-projects-page h3,
.hh-projects-page .hh-display,
.hh-projects-page .hh-hero__title,
.hh-projects-page .hh-case__title,
.hh-projects-page .hh-cta__title {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Projects nav inherits site-wide glass header styles from theme-black-gold.css */

.hh-projects-page #main-content {
  padding-top: 0;
  margin-top: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.hh-projects-page .container {
  width: 100%;
  max-width: 1140px;
  box-sizing: border-box;
}

/* ---- Page hero (shorter than home) ---- */
.hh-projects-page .hh-hero {
  min-height: min(68vh, 580px);
  overflow: hidden;
  /* flex-start so top padding clears the fixed floating nav (not vertical centering) */
  align-items: flex-start;
}

.hh-projects-page .hh-hero__inner {
  grid-template-columns: minmax(0, 1fr);
  padding: calc(var(--hh-header-height, 96px) + var(--hh-nav-inset, 16px) + 1.75rem)
    1.25rem 4rem;
  width: 100%;
  max-width: 1140px;
  box-sizing: border-box;
}

.hh-projects-page .hh-hero__copy {
  max-width: 42rem;
  min-width: 0;
  width: 100%;
}

.hh-projects-page .hh-hero__title {
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem) !important;
  overflow-wrap: break-word;
}

.hh-projects-page .hh-hero__text {
  max-width: 32rem;
}

.hh-projects-page .hh-hero__actions {
  width: 100%;
}

.hh-projects-page .hh-hero__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hh-projects-page .hh-hero__jump a {
  font-family: "Outfit", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.hh-projects-page .hh-hero__jump a:hover,
.hh-projects-page .hh-hero__jump a:focus {
  color: var(--hh-gold-light, #e0bc4a) !important;
}

.hh-projects-page .hh-hero__jump a:focus-visible {
  outline: 2px solid var(--hh-gold, #c9a227);
  outline-offset: 4px;
}

/* ---- Cases ---- */
.hh-cases {
  padding: 5.5rem 0 2rem;
  background: var(--hh-surface-0, #050505);
  overflow-x: hidden;
}

.hh-cases__intro {
  margin-bottom: 3.5rem;
  max-width: 40rem;
}

.hh-case {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem 3.5rem;
  align-items: start;
  padding: 3.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: calc(var(--hh-header-height, 88px) + 16px);
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.hh-case:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hh-case__visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  width: 100%;
}

.hh-case--flip .hh-case__visual {
  order: 2;
}

.hh-case--flip .hh-case__body {
  order: 1;
}

.hh-case--flip .hh-case__media {
  order: unset;
}

.hh-case--lead {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hh-case__media {
  position: relative;
  overflow: hidden;
  background: #0e0e0e;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
}

.hh-case--lead .hh-case__media {
  aspect-ratio: 16 / 11;
}

.hh-case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hh-case:hover .hh-case__media img {
  transform: scale(1.04);
}

/* Partner art: centered logo on dark panel */
.hh-case__media--logo {
  display: block;
  padding: 0;
  background: #111111;
}

.hh-case__media--logo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  padding: 2rem;
  box-sizing: border-box;
}

.hh-case__media--logo-dark {
  background: #0b1a33;
}

.hh-case:hover .hh-case__media--logo img {
  transform: none;
}

.hh-case__body {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.hh-case__index {
  display: block;
  margin: 0 0 0.85rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--hh-gold, #c9a227) !important;
}

.hh-case__meta {
  margin: 0 0 0.65rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: rgba(232, 228, 217, 0.5) !important;
  overflow-wrap: break-word;
  white-space: normal;
}

.hh-case__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 1.25rem + 1.4vw, 2.75rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  overflow-wrap: break-word;
}

.hh-case--lead .hh-case__title {
  font-size: clamp(1.95rem, 1.35rem + 1.8vw, 3.25rem) !important;
}

.hh-case__copy {
  margin: 0 0 1.25rem;
}

.hh-case__copy p {
  margin: 0 0 0.85rem;
  font-size: 1.015rem;
  line-height: 1.7;
  color: rgba(232, 228, 217, 0.68) !important;
}

.hh-case__copy p:last-child {
  margin-bottom: 0;
}

.hh-case__copy a {
  color: var(--hh-gold-light, #e0bc4a) !important;
  font-weight: 600;
  text-underline-offset: 3px;
}

.hh-case__facts {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.hh-case__facts li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(232, 228, 217, 0.78) !important;
  overflow-wrap: break-word;
}

.hh-case__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hh-gold, #c9a227);
  opacity: 0.85;
}

.hh-case__facts a {
  color: var(--hh-gold-light, #e0bc4a) !important;
  font-weight: 600;
}

.hh-case__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.hh-case__actions .hh-btn {
  min-height: 48px;
  padding: 12px 22px;
}

.hh-case__ext {
  font-family: "Outfit", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(232, 228, 217, 0.65) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 2px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.hh-case__ext:hover,
.hh-case__ext:focus {
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.hh-case__ext:focus-visible,
.hh-case__actions .hh-btn:focus-visible {
  outline: 2px solid var(--hh-gold, #c9a227);
  outline-offset: 3px;
}

.hh-projects-page .hh-cta {
  overflow: hidden;
}

.hh-projects-page .hh-cta__actions {
  width: 100%;
}

.hh-projects-page .hh-cta__title {
  overflow-wrap: break-word;
}

/* Keep WhatsApp clear of bottom edge; no scroll-top control */
.hh-projects-page .hh-whatsapp-fab {
  bottom: 1.25rem;
  right: 1rem;
}

/* ---- Tablet ---- */
@media (max-width: 991px) {
  .hh-projects-page .hh-hero {
    min-height: 0;
  }

  .hh-projects-page .hh-hero__inner {
    padding: calc(var(--hh-header-height, 88px) + var(--hh-nav-inset, 12px) + 1.5rem)
      1.15rem 3.25rem;
  }

  .hh-projects-page .hh-hero__copy {
    max-width: 36rem;
  }

  .hh-projects-page .hh-hero__actions {
    justify-content: center;
  }

  .hh-projects-page .hh-hero__jump {
    justify-content: center;
  }

  .hh-cases {
    padding: 3.5rem 0 1rem;
  }

  .hh-cases__intro {
    margin-bottom: 2.5rem;
  }

  .hh-case,
  .hh-case--lead {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 2.5rem 0;
  }

  .hh-case--flip .hh-case__visual,
  .hh-case--flip .hh-case__body {
    order: unset;
  }

  .hh-case__media,
  .hh-case--lead .hh-case__media {
    aspect-ratio: 16 / 10;
  }

  .hh-case__media--logo {
    aspect-ratio: 4 / 3;
    max-height: 320px;
    width: 100%;
    margin: 0;
    background: #111111;
  }

  .hh-case__media--logo.hh-case__media--logo-dark {
    background: #0b1a33;
  }

  .hh-case__media--logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 1.75rem;
    box-sizing: border-box;
    transform: none !important;
  }

  .hh-case:hover .hh-case__media--logo img {
    transform: none !important;
  }
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
  .hh-projects-page .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .hh-projects-page .hh-hero__inner {
    padding: calc(var(--hh-header-height, 80px) + var(--hh-nav-inset, 10px) + 1.25rem)
      16px 2.5rem;
  }

  .hh-projects-page .hh-hero__title {
    font-size: clamp(1.9rem, 1.25rem + 4vw, 2.6rem) !important;
    line-height: 1.06 !important;
  }

  .hh-projects-page .hh-hero__text {
    font-size: 0.98rem;
    margin-bottom: 1.35rem;
  }

  .hh-projects-page .hh-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hh-projects-page .hh-hero__actions .hh-btn {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .hh-projects-page .hh-hero__jump {
    gap: 0.5rem 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    justify-content: flex-start;
  }

  .hh-projects-page .hh-hero__jump a {
    font-size: 0.72rem;
  }

  .hh-cases {
    padding: 2.75rem 0 0.25rem;
  }

  .hh-cases__intro {
    margin-bottom: 1.5rem;
  }

  .hh-cases__intro .hh-display {
    font-size: clamp(1.75rem, 1.2rem + 2.8vw, 2.35rem) !important;
  }

  .hh-case,
  .hh-case--lead {
    gap: 1rem;
    padding: 1.85rem 0;
  }

  .hh-case__media,
  .hh-case--lead .hh-case__media {
    aspect-ratio: 16 / 10;
    width: 100%;
    max-width: 100%;
  }

  .hh-case__media--logo {
    aspect-ratio: 4 / 3;
    width: 100%;
    max-width: 100%;
    max-height: 280px;
    margin: 0;
    background: #111111;
  }

  .hh-case__media--logo.hh-case__media--logo-dark {
    background: #0b1a33;
  }

  .hh-case__media--logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 1.25rem;
    box-sizing: border-box;
    transform: none !important;
  }

  .hh-case:hover .hh-case__media--logo img {
    transform: none !important;
  }

  .hh-case__meta {
    font-size: 0.78rem;
    padding-right: 3.5rem; /* clear WhatsApp FAB */
  }

  .hh-case__title,
  .hh-case--lead .hh-case__title {
    font-size: clamp(1.55rem, 1.15rem + 2.2vw, 2rem) !important;
    padding-right: 3.5rem;
  }

  .hh-case__copy p {
    font-size: 0.95rem;
  }

  .hh-case__facts {
    margin-bottom: 1.25rem;
    gap: 0.5rem;
  }

  .hh-case__facts li {
    font-size: 0.88rem;
  }

  .hh-case__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hh-case__actions .hh-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .hh-case__ext {
    text-align: center;
    align-self: center;
  }

  .hh-projects-page .hh-cta {
    padding: 4rem 0;
  }

  .hh-projects-page .hh-cta__inner {
    padding: 0 4px;
  }

  .hh-projects-page .hh-cta__title {
    font-size: clamp(1.75rem, 1.2rem + 3vw, 2.5rem) !important;
  }

  .hh-projects-page .hh-cta__text {
    font-size: 0.98rem;
    margin-bottom: 1.35rem;
  }

  .hh-projects-page .hh-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hh-projects-page .hh-cta__actions .hh-btn {
    width: 100%;
    box-sizing: border-box;
  }

  .hh-projects-page .hh-whatsapp-fab {
    width: 52px;
    height: 52px;
    bottom: 1rem;
    right: 0.85rem;
  }
}

/* ---- Small phones ---- */
@media (max-width: 400px) {
  .hh-projects-page .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .hh-projects-page .hh-hero__inner {
    padding: calc(var(--hh-header-height, 80px) + var(--hh-nav-inset, 10px) + 1rem)
      14px 2.15rem;
  }

  .hh-projects-page .hh-hero__jump a {
    font-size: 0.68rem;
  }

  .hh-case__meta,
  .hh-case__title,
  .hh-case--lead .hh-case__title {
    padding-right: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hh-case__media img {
    transition: none;
  }

  .hh-case:hover .hh-case__media img {
    transform: none;
  }
}

/* ---- Maps (under project image) ---- */
.hh-case__map {
  margin-top: 0;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
  aspect-ratio: 16 / 9;
  max-height: 260px;
  width: 100%;
}

.hh-case__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

/* ---- Sukoon asset blocks ---- */
.hh-case-extras {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.hh-case-extras__intro {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hh-case-extras__intro .hh-display {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem) !important;
  margin: 0.4rem 0 0.75rem;
  color: #fff !important;
}

.hh-case-extras__intro p:last-child {
  margin: 0;
  color: rgba(232, 228, 217, 0.65) !important;
  line-height: 1.65;
}

.hh-case-extras__grid {
  display: grid;
  gap: 1.75rem;
}

.hh-asset-block {
  padding: 1.5rem 1.35rem;
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.hh-asset-block h4 {
  margin: 0 0 0.5rem;
  font-family: "Outfit", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  color: #fff !important;
}

.hh-asset-block__note {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(232, 228, 217, 0.55) !important;
}

.hh-plan-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.hh-plan-gallery__item {
  margin: 0;
}

.hh-plan-gallery__item img,
.hh-plan-gallery__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #161616;
  border: 1px dashed rgba(201, 162, 39, 0.35);
  border-radius: 2px;
}

.hh-plan-gallery__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 228, 217, 0.4);
}

.hh-plan-gallery__item figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(232, 228, 217, 0.55);
}

.hh-payment-plan {
  margin: 0;
}

.hh-payment-plan img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 2px;
}

.hh-payment-plan--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 1.5rem;
  background: #161616;
  border: 1px dashed rgba(201, 162, 39, 0.35);
  border-radius: 2px;
  color: rgba(232, 228, 217, 0.45);
  font-size: 0.9rem;
  text-align: center;
}

.hh-btn--disabled,
a.hh-btn--disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .hh-case-extras__grid {
    grid-template-columns: 1.2fr 0.9fr;
  }

  .hh-asset-block:first-child {
    grid-column: 1 / -1;
  }
}
