/* ===================================================
   UB-APARTMENTS — Main Stylesheet
   Design inspired by elkterminal.com
   Clean, modern, mobile-first
   =================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #2c2c2c;
  background: #fff;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: #c8a96e; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }

.section-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 0.75rem;
}

.section-label.light { color: #e8c98e; }

.section-intro {
  font-size: 1.05rem;
  color: #555;
  max-width: 640px;
  margin: 0.75rem auto 2rem;
  text-align: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: #c8a96e;
  color: #fff;
  border-color: #c8a96e;
}
.btn-primary:hover {
  background: #b8944f;
  border-color: #b8944f;
  color: #fff;
}

.btn-secondary {
  background: #2c4a6e;
  color: #fff;
  border-color: #2c4a6e;
}
.btn-secondary:hover {
  background: #1e3550;
  border-color: #1e3550;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: #2c2c2c;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: #2c4a6e;
  border-color: #2c4a6e;
  font-size: 0.75rem;
  padding: 10px 20px;
}
.btn-outline-dark:hover {
  background: #2c4a6e;
  color: #fff;
}

/* ---- Top Bar ---- */
.topbar {
  background: #1a2e45;
  color: #ccc;
  font-size: 0.8rem;
  padding: 8px 0;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-phone, .topbar-email {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar a { color: #c8a96e; }
.topbar a:hover { color: #e8c98e; }

/* ---- Navigation ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}

.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #2c4a6e;
  letter-spacing: -0.02em;
}

.nav-logo span { color: #c8a96e; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2c2c2c;
  padding: 8px 10px;
  border-radius: 3px;
  transition: color 0.2s;
}

.nav-links a:hover { color: #c8a96e; }

.nav-cta {
  background: #c8a96e !important;
  color: #fff !important;
  padding: 9px 16px !important;
  border-radius: 3px;
  margin-left: 8px;
}

.nav-cta:hover { background: #b8944f !important; color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2c2c2c;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('images/apt1.jpg') center center / cover no-repeat;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,46,69,0.65) 0%, rgba(26,46,69,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 40px 24px;
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 1rem;
}

.hero-title {
  color: #fff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}

.hero-desc {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 2.5rem;
  font-style: italic;
}

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

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---- Intro Strip ---- */
.intro-strip {
  background: #c8a96e;
  padding: 20px 0;
  text-align: center;
}

.intro-strip p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
}

/* ---- About Section ---- */
.about {
  padding: 100px 0;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  color: #1a2e45;
  margin-bottom: 1.25rem;
}

.about-text p {
  color: #555;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.about-features {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #f0e8d8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  fill: #c8a96e;
}

.feature-item strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a2e45;
  display: block;
  margin-bottom: 2px;
}

.feature-item p {
  font-size: 0.82rem;
  color: #777;
  margin: 0;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 300px 220px;
  gap: 12px;
}

.about-img-main {
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 6px;
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.about-img-main:hover img { transform: scale(1.03); }

.about-img-secondary {
  overflow: hidden;
  border-radius: 6px;
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.about-img-secondary:hover img { transform: scale(1.03); }

/* ---- Gallery Section ---- */
.gallery {
  padding: 100px 0;
  background: #f8f6f2;
  text-align: center;
}

.gallery h2 { color: #1a2e45; margin-bottom: 0.5rem; }

.gallery-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 12px;
  margin-bottom: 2rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}

.gallery-item--large {
  grid-column: span 2;
}

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

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

.gallery-contact {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #555;
}

.gallery-contact a { color: #c8a96e; font-weight: 600; }
.gallery-contact a:hover { color: #b8944f; }

/* ---- Location Section ---- */
.location {
  position: relative;
  padding: 100px 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.location-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.location-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,46,69,0.88) 0%, rgba(26,46,69,0.75) 100%);
}

.location-content {
  position: relative;
  z-index: 2;
}

.location-content h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.location-intro {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.location-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 3rem;
}

.location-photo {
  overflow: hidden;
  border-radius: 6px;
}

.location-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s;
}

.location-photo:hover img { transform: scale(1.04); }

.location-photo p {
  padding: 10px 0 0;
  font-size: 0.82rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8a96e;
}

/* ---- Features Strip ---- */
.features-strip {
  padding: 90px 0;
  background: #1a2e45;
  color: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.features-col h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.features-col p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

.features-icon {
  width: 60px;
  height: 60px;
  background: rgba(200,169,110,0.2);
  border: 2px solid #c8a96e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  padding: 14px;
}

.features-icon svg {
  width: 28px;
  height: 28px;
  fill: #c8a96e;
}

/* ---- Testimonials ---- */
.testimonials {
  padding: 100px 0;
  background: #fff;
  text-align: center;
}

.testimonials h2 { color: #1a2e45; margin-bottom: 0.5rem; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 3rem;
}

.testimonial-card {
  background: #f8f6f2;
  border-radius: 8px;
  padding: 32px 28px;
  text-align: left;
  border-left: 4px solid #c8a96e;
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.testimonial-stars {
  color: #c8a96e;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 0.92rem;
  color: #444;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a2e45;
  letter-spacing: 0.05em;
}

/* ---- Contact Section ---- */
.contact {
  padding: 100px 0;
  background: #f8f6f2;
  text-align: center;
}

.contact h2 { color: #1a2e45; margin-bottom: 0.5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 3rem;
  text-align: left;
}

.contact-card {
  background: #fff;
  border-radius: 8px;
  padding: 36px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: #f0e8d8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 12px;
}

.contact-icon svg {
  width: 26px;
  height: 26px;
  fill: #c8a96e;
}

.contact-card h3 {
  color: #1a2e45;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.contact-card p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.4rem;
}

.contact-card a { color: #c8a96e; font-weight: 600; }
.contact-card a:hover { color: #b8944f; }
.contact-card .btn { color: #fff !important; }
.contact-card .btn:hover { color: #fff !important; }
.contact-card .btn-outline-dark { color: #2c4a6e !important; }
.contact-card .btn-outline-dark:hover { color: #fff !important; }

.contact-sub {
  font-size: 0.85rem !important;
  color: #777 !important;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.25rem;
}

/* ---- Footer ---- */
.footer {
  background: #111d2b;
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: #c8a96e;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-col a { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: #c8a96e; }

.footer-col--center { text-align: center; }

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-logo span { color: #c8a96e; }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===================================================
   RESPONSIVE — Mobile & Tablet
   =================================================== */

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-images { grid-template-rows: 260px 180px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--center { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    gap: 4px;
    z-index: 999;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 8px;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }

  /* Hero */
  .hero { min-height: 90vh; }
  .hero-actions { flex-direction: column; align-items: center; }

  /* About */
  .about { padding: 64px 0; }
  .about-features { grid-template-columns: 1fr; }
  .about-images { grid-template-columns: 1fr; grid-template-rows: auto; }
  .about-img-main, .about-img-secondary { height: 220px; }
  .about-img-main { grid-column: auto; }

  /* Gallery */
  .gallery { padding: 64px 0; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .gallery-item--large { grid-column: span 2; }
  .gallery-actions { flex-direction: column; align-items: center; }

  /* Location */
  .location { padding: 64px 0; }
  .location-photos { grid-template-columns: 1fr; }
  .location-photo img { height: 200px; }

  /* Features */
  .features-strip { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; gap: 36px; }

  /* Testimonials */
  .testimonials { padding: 64px 0; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact { padding: 64px 0; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-col--center { grid-column: auto; }

  /* Topbar */
  .topbar-inner { flex-direction: column; text-align: center; gap: 4px; }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-item--large { grid-column: span 1; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
}
