/* ======================
   ABOUT PAGE STYLES
   (Overrides & Specific Tweaks)
====================== */

/* Background override */
body {
  background-color: var(--bg);
}

/* Hero Section Title */
.hero h1 {
  font-size: 2.2rem;
  color: var(--primary); /* Inherits from global.css */
  margin-top: 1rem;
  font-weight: 700;
  text-align: center;
}

/* Tagline (optional override for visibility) */
.hero .tagline {
  color: var(--muted);
  margin-top: 0.6rem;
  font-size: 1.15rem;
  text-align: center;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0.9;
  max-width: 620px;
  margin: 0 auto 1.2rem;

}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 1rem;
  text-align: center;
}


/* Shared Paragraph and List Formatting */
.section p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
 color: var(--text); /* respectful of global text color */
  line-height: 1.65;
}

.section ul {
  list-style: disc;
  padding-left: 1.5rem;
  max-width: 700px;
  margin: 1rem auto;
  color: var(--text);
}

.section ul li {
  margin-bottom: 0.6rem;
  color: var(--text);
}

/* Icon Grid (Amenities) */
.icon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
   margin-inline: auto;
   padding: 0;
}


.icon-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: var(--shadow-main);
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
  color: var(--text);
  min-height: 140px; /* Ensures consistent height */
  max-width: 180px;
   flex: 0 0 160px;
   height: 140px;
   transition: transform 0.2s ease;
}

.icon-grid div {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

.icon-grid > div img {
  width: 30px;
  height: 30px;
  margin-bottom: 0.6rem;
}

.icon-grid div:hover {
  transform: translateY(-3px);
  background: #fff3ec;
}

.icon-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
   background: var(--hover-bg);
}

.icon-grid img {
  width: 32px;
  height: 32px;
  margin-bottom: 0.8rem;
  opacity: 0.9;
  flex-shrink: 0;
}


/* Fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.7s ease forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.2s;
}

.fade-in.delay-2 {
  animation-delay: 0.4s;
}

.fade-in.delay-3 {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer override if needed */
footer {
  margin-top: 3rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
   background: var(--surface);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* ===== Building Photo Section ===== */
.building-photo {
  max-width: 1200px;
  padding: 0 1rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


.building-photo picture {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}


.building-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
  max-height: 640px; /* Limit height for balance */
}
@media (max-width: 600px) {
  .building-photo img {
    max-height: 420px;
  }
}


.building-photo img:hover {
  transform: scale(1.02);
}

.section {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
  margin-bottom: 0; /* prevent redundant spacing */
}


.section h2 {
  font-size: 1.6rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.6rem;
  position: relative;
}
.section h2::after {
  content: '';
  width: 50px;
  height: 3px;
  background: var(--primary);
  display: block;
  margin: 0.4rem auto 0;
  border-radius: 3px;
  opacity: 0.3;
}


.hero-logo {
  margin: 1.2rem auto 0.5rem;
  width: 80px;
  display: block;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 480px) {
  .hero-logo {
    display: none;
  }
}

.hero {
  margin-bottom: 2.5rem;
}


@media (max-width: 600px) {
  .icon-grid > div {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
