/*
Theme Name: Museum Park Tower Custom Theme
Theme URI: https://museumpark1.webfrenetics.com
Author: Web Frenetics
Author URI: https://webfrenetics.com
Description: Custom modern WordPress Block Theme for Museum Park Tower 1 Condominium Association, styled in a warm tans and browns palette.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: mpt-custom
*/

:root {
  --mpt-espresso: #2C1D11;
  --mpt-walnut: #3D2B1F;
  --mpt-bronze: #8C6239;
  --mpt-bronze-hover: #734f2d;
  --mpt-saddle: #A07147;
  --mpt-taupe: #8C7A6B;
  --mpt-sand: #F7F4EF;
  --mpt-cream: #FAF8F5;
  --mpt-stone: #E5DFD5;
  --mpt-text: #231B15;
  --mpt-muted: #6E6258;
}

body {
  color: var(--mpt-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  background-color: #FFFFFF;
}

/* Header & Navigation */
.site-header {
  box-shadow: 0 2px 14px rgba(44, 29, 17, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.site-branding-link {
  transition: opacity 0.2s ease;
  display: block;
}

.site-branding-link:hover {
  opacity: 0.9;
}

.site-header a {
  text-decoration: none;
}

/* Hero Section Styles */
.mpt-hero-stage {
  height: clamp(520px, 64vh, 700px);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.mpt-hero-ambient {
  background-image: url('assets/images/hero-building.webp');
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.42);
  transform: scale(1.1);
  position: absolute;
  inset: 0;
  z-index: 1;
}

.mpt-hero-main {
  max-width: 1650px;
  margin: 0 auto;
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.mpt-ken-burns-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  animation: mptKenBurns 15s ease-in-out infinite alternate;
  display: block;
}

@keyframes mptKenBurns {
  0% {
    transform: scale(1.0) translate3d(0, 0%, 0);
    object-position: center 20%;
  }
  100% {
    transform: scale(1.14) translate3d(-1.5%, -3%, 0);
    object-position: center 55%;
  }
}

.mpt-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(44, 29, 17, 0.45) 0%, rgba(25, 16, 9, 0.78) 100%);
  padding: 24px;
}

.mpt-hero-content {
  max-width: 860px;
  text-align: center;
  color: #ffffff;
}

.mpt-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.5px;
}

.mpt-hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin: 0 0 30px 0;
  color: #F7F4EF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  font-weight: 500;
}

.mpt-hero-btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.mpt-hero-btn-primary {
  background-color: var(--mpt-bronze);
  color: #ffffff !important;
  border-radius: 6px;
  font-weight: 600;
  padding: 13px 28px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(140, 98, 57, 0.4);
}

.mpt-hero-btn-primary:hover {
  background-color: var(--mpt-bronze-hover);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.mpt-hero-btn-secondary {
  background-color: #FAF8F5;
  color: var(--mpt-espresso) !important;
  border-radius: 6px;
  font-weight: 600;
  padding: 13px 28px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.mpt-hero-btn-secondary:hover {
  background-color: #E5DFD5;
  transform: translateY(-2px);
  color: var(--mpt-espresso) !important;
}

/* Cards & Layout */
.mpt-card {
  background: #ffffff;
  border: 1px solid var(--mpt-stone);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(44, 29, 17, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mpt-card:hover {
  transform: translateY(-3px);
  border-color: var(--mpt-bronze);
  box-shadow: 0 8px 24px rgba(44, 29, 17, 0.08);
}

/* Photo Gallery Grid */
.mpt-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .mpt-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .mpt-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.mpt-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--mpt-espresso);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(44, 29, 17, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mpt-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(44, 29, 17, 0.2);
}

.mpt-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mpt-gallery-item:hover img {
  transform: scale(1.06);
}

.mpt-gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 34px 18px 14px 18px;
  background: linear-gradient(to top, rgba(35, 23, 13, 0.94) 0%, rgba(35, 23, 13, 0.65) 70%, transparent 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.mpt-gallery-overlay-title {
  font-weight: 700;
  font-size: 15px;
  margin: 0;
  line-height: 1.3;
  color: #FAF8F5;
}

.mpt-gallery-overlay-desc {
  font-size: 12px;
  color: #E5DFD5;
  margin: 4px 0 0 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lightbox Modal */
.mpt-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(20, 13, 7, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mpt-lightbox.active {
  display: flex;
}

.mpt-lightbox-content {
  position: relative;
  max-width: 1000px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mpt-lightbox-img {
  max-height: 75vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(229, 223, 213, 0.15);
}

.mpt-lightbox-caption {
  color: #FAF8F5;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 14px;
}

.mpt-lightbox-subcaption {
  color: #D2C6B8;
  font-size: 0.92rem;
  margin-top: 4px;
  max-width: 700px;
}

.mpt-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: transparent;
  border: none;
  color: #FAF8F5;
  font-size: 38px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 12px;
  transition: color 0.2s ease;
  z-index: 100000;
}

.mpt-lightbox-close:hover {
  color: var(--mpt-saddle);
}

.mpt-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(44, 29, 17, 0.6);
  border: 1px solid rgba(229, 223, 213, 0.2);
  color: #FAF8F5;
  font-size: 28px;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
  line-height: 1;
  z-index: 100000;
}

.mpt-lightbox-nav:hover {
  background: var(--mpt-bronze);
  transform: translateY(-50%) scale(1.08);
}

.mpt-lightbox-prev {
  left: 24px;
}

.mpt-lightbox-next {
  right: 24px;
}

/* Footer */
.site-footer {
  background-color: var(--mpt-espresso);
  color: #E5DFD5;
  padding: 50px 24px;
}

.site-footer a {
  color: #E2BC92;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
