/* ========================================
   Living Smart - Main Stylesheet
   ======================================== */

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

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

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #222;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #f76a0c;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
}

ul {
  list-style: none;
}

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

/* --- Header --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.main-nav a {
  color: #222;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #3498db;
  transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #3498db;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #222;
  position: relative;
  transition: background 0.2s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #222;
  left: 0;
  transition: transform 0.2s;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* --- Hero / Page Banner --- */
.hero {
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;
  color: #fff;
  padding: 6rem 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.8;
}

/* --- Section Blocks --- */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: #f7fafc;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  font-weight: 300;
  font-size: 2rem;
}

.section-header p {
  max-width: 650px;
  margin: 0 auto;
  color: #666;
}

/* --- Portfolio / Property Cards --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.property-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.property-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #eee;
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.property-card:hover .property-card__image img {
  transform: scale(1.05);
}

.property-card__content {
  padding: 1.5rem;
}

.property-card__content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.property-card__content p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Home Section Cards --- */
.home-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.home-section-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

.home-section-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;
  transition: transform 0.5s ease;
}

.home-section-card:hover .home-section-card__bg {
  transform: scale(1.05);
}

.home-section-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.home-section-card__content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  color: #fff;
  width: 100%;
}

.home-section-card__content h3 {
  color: #fff;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.home-section-card__content p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: #3498db;
  color: #fff;
}

.btn--primary:hover {
  background: #2980b9;
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn--outline:hover {
  background: #fff;
  color: #222;
}

.btn--dark {
  background: #222;
  color: #fff;
}

.btn--dark:hover {
  background: #3498db;
  color: #fff;
}

/* --- Property Detail Page --- */
.property-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid #eee;
}

.property-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.property-detail--reverse {
  direction: rtl;
}

.property-detail--reverse > * {
  direction: ltr;
}

.property-detail__gallery {
  border-radius: 4px;
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.gallery-grid__main {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

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

.gallery-grid__main:hover img {
  transform: scale(1.03);
}

.gallery-grid__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.gallery-grid__thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
}

.gallery-grid__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  opacity: 0.85;
}

.gallery-grid__thumb:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.property-detail__gallery img {
  width: 100%;
  border-radius: 4px;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.lightbox__nav:hover {
  opacity: 1;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #aaa;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.property-detail__info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-detail__info p {
  color: #555;
  margin-bottom: 1rem;
}

.property-detail__features {
  margin: 1.5rem 0;
}

.property-detail__features li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
  font-size: 0.9rem;
}

.property-detail__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3498db;
}

/* --- About Page --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-card h3 {
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: #3498db;
}

.value-card p {
  color: #666;
  font-size: 0.9rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.team-member {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.team-member__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}

.team-member__info h3 {
  margin-bottom: 0.25rem;
}

.team-member__info .role {
  color: #3498db;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: block;
}

.team-member__info p {
  color: #555;
  font-size: 0.9rem;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3498db;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info-card {
  background: #f7fafc;
  padding: 2.5rem;
  border-radius: 4px;
}

.contact-info-card h3 {
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info-item svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: #3498db;
}

.contact-info-item p {
  margin: 0;
  color: #555;
}

.contact-info-item a {
  color: #3498db;
}

/* --- Map --- */
.map-section {
  line-height: 0;
}

.map-section iframe {
  display: block;
  width: 100%;
}

/* --- Legal Pages (Privacy/Terms) --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-transform: none;
  font-weight: 600;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  color: #555;
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  color: #555;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.legal-content a {
  color: #3498db;
}

/* --- Intro Text Block --- */
.intro-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --- CTA Banner --- */
.cta-banner {
  background: #3498db;
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.site-footer {
  background: #272727;
  color: #bbb;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #3a3a3a;
}

.footer-logo {
  height: 35px;
  margin-bottom: 1.25rem;
}

.site-footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.footer-links ul li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #bbb;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact p,
.footer-contact a {
  color: #bbb;
  font-size: 0.9rem;
}

.footer-contact a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.social-links a {
  color: #bbb;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #3498db;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #888;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .property-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .property-detail--reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .home-sections {
    grid-template-columns: 1fr;
  }

  .home-section-card {
    min-height: 300px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-member {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .section-header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}
