/* =============================================================
   PRESTIGE HOMES — style.css  (Basic Version)
   ✏️ Main colours to change:
      --blue  : primary button & accent colour
      --dark  : headings and dark backgrounds
      --text  : body text colour
   ============================================================= */

/* ---------------------------------------------------------------
   1. VARIABLES
--------------------------------------------------------------- */
:root {
  --blue:    #1a6fc4;   /* ✏️ Change to your brand colour */
  --blue-dk: #155da0;   /* Darker shade for hover */
  --dark:    #1c2535;   /* Header, footer, dark sections */
  --text:    #444444;   /* Body text */
  --light:   #6b7280;   /* Secondary / muted text */
  --bg:      #f7f8fa;   /* Page background */
  --white:   #ffffff;
  --border:  #e2e6ea;   /* Borders and dividers */
  --green:   #1e8c45;   /* "For Rent" badge */
  --gold:    #d4a017;   /* Price text */
  --radius:  6px;
}

/* ---------------------------------------------------------------
   2. RESET
--------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
address { font-style: normal; }

/* ---------------------------------------------------------------
   3. LAYOUT HELPERS
--------------------------------------------------------------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 60px 0; }

.bg-light { background: #eef1f5; }
.bg-dark  { background: var(--dark); }

/* Section heading block */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 8px;
}
.section-header p {
  color: var(--light);
  font-size: 15px;
}
.section-header.light h2 { color: #fff; }
.section-header.light p  { color: rgba(255,255,255,0.7); }

/* ---------------------------------------------------------------
   4. BUTTONS
--------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dk); }

.btn-white {
  background: #fff;
  color: var(--dark);
}
.btn-white:hover { background: #e8e8e8; }

.btn-dark {
  background: var(--dark);
  color: #fff;
  font-size: 13px;
}
.btn-dark:hover { background: #2d3a4f; }

.btn-full { width: 100%; display: block; margin-top: 12px; }

/* ---------------------------------------------------------------
   5. HEADER
--------------------------------------------------------------- */
.header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.logo {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

/* Nav links */
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: var(--radius);
}
.nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav a:last-child {
  background: var(--blue);
  color: #fff;
}
.nav a:last-child:hover { background: var(--blue-dk); }

/* Hamburger button */
.menu-btn {
  display: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
}

/* ---------------------------------------------------------------
   6. HERO
--------------------------------------------------------------- */
.hero {
  /* ✏️ Replace this URL with your own hero photo */
  background: linear-gradient(rgba(15,25,50,0.65), rgba(15,25,50,0.65)),
              url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1400&q=80')
              center/cover no-repeat;
  color: #fff;
  padding: 100px 20px;
  text-align: center;
}
.hero-content { max-width: 640px; margin: 0 auto; }
.hero h1 { font-size: 38px; margin-bottom: 16px; line-height: 1.25; }
.hero p  { font-size: 17px; margin-bottom: 28px; opacity: 0.9; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------
   7. STATS BAR
--------------------------------------------------------------- */
.stats-bar { background: var(--blue); color: #fff; padding: 24px 0; }
.stats-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}
.stat-item strong { display: block; font-size: 26px; }
.stat-item span   { font-size: 13px; opacity: 0.85; }

/* ---------------------------------------------------------------
   8. PROPERTIES
--------------------------------------------------------------- */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.prop-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.prop-img-wrap { position: relative; }
.prop-img-wrap img { width: 100%; height: 200px; object-fit: cover; }

.badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  color: #fff;
}
.badge-sale { background: var(--blue); }
.badge-rent { background: var(--green); }

.prop-body { padding: 16px; }
.prop-body h3 { font-size: 16px; color: var(--dark); margin-bottom: 6px; }
.prop-body .location { font-size: 13px; color: var(--light); margin-bottom: 8px; }
.prop-body .price    { font-size: 18px; font-weight: bold; color: var(--gold); margin-bottom: 10px; }

.specs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--light);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-bottom: 4px;
}

/* ---------------------------------------------------------------
   9. ABOUT
--------------------------------------------------------------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.about-text h2 { font-size: 26px; color: var(--dark); margin-bottom: 14px; }
.about-text p  { margin-bottom: 12px; font-size: 15px; }
.about-list    { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.about-list li { font-size: 14px; }

/* ---------------------------------------------------------------
   10. SERVICES
--------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.service-icon { font-size: 28px; margin-bottom: 12px; }
.service-card h3 { font-size: 16px; color: var(--dark); margin-bottom: 8px; }
.service-card p  { font-size: 14px; color: var(--light); line-height: 1.6; }

/* ---------------------------------------------------------------
   11. WHY CHOOSE US
--------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px 18px;
}
.why-card h3 { font-size: 15px; color: #fff; margin-bottom: 8px; }
.why-card p  { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ---------------------------------------------------------------
   12. TESTIMONIALS
--------------------------------------------------------------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.testi-card .stars  { color: #f5a623; font-size: 15px; margin-bottom: 10px; }
.testi-card .review { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 18px; font-style: italic; }
.testi-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  flex-shrink: 0;
}
.author strong { display: block; font-size: 14px; color: var(--dark); }
.author span   { font-size: 12px; color: var(--light); }

/* ---------------------------------------------------------------
   13. CONTACT
--------------------------------------------------------------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: flex-start;
}
.contact-info h2 { font-size: 26px; color: var(--dark); margin-bottom: 12px; }
.contact-info > p { font-size: 14px; color: var(--light); margin-bottom: 24px; }

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.contact-item > span { font-size: 20px; line-height: 1.4; }
.contact-item strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); margin-bottom: 2px; }
.contact-item p, .contact-item a { font-size: 14px; color: var(--text); line-height: 1.5; }
.contact-item a:hover { color: var(--blue); }

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: var(--dark);
  margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--dark);
  background: var(--bg);
  outline: none;
  font-family: Arial, sans-serif;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}
.form-group textarea { resize: vertical; }
.form-status { margin-top: 10px; font-size: 14px; text-align: center; min-height: 18px; }

/* ---------------------------------------------------------------
   14. FOOTER
--------------------------------------------------------------- */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding-top: 50px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { font-size: 18px; font-weight: bold; color: #fff; margin-bottom: 10px; }
.footer-col p, .footer-col address p { font-size: 13px; line-height: 1.7; }
.footer-col > p { max-width: 240px; }

.social-links { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.social-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 12px;
  border-radius: 20px;
}
.social-links a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col ul  { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a, .footer-col address a { font-size: 13px; color: rgba(255,255,255,0.65); }
.footer-col ul a:hover, .footer-col address a:hover { color: #fff; }
.footer-col address { display: flex; flex-direction: column; gap: 6px; }

.footer-bottom { padding: 16px 0; text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ---------------------------------------------------------------
   15. WHATSAPP FLOATING BUTTON
--------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #25d366;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.whatsapp-float:hover { background: #1da851; }

/* ---------------------------------------------------------------
   16. RESPONSIVE — TABLET  (max 900px)
--------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Show hamburger, hide nav by default */
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; background: #2d3a4f; padding: 10px 0; border-radius: var(--radius); }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 10px 16px; border-radius: 0; font-size: 15px; }

  /* 2-column grids */
  .properties-grid   { grid-template-columns: repeat(2, 1fr); }
  .services-grid     { grid-template-columns: repeat(2, 1fr); }
  .testi-grid        { grid-template-columns: repeat(2, 1fr); }
  .why-grid          { grid-template-columns: repeat(2, 1fr); }
  .footer-inner      { grid-template-columns: repeat(2, 1fr); }

  /* About stacks */
  .about-inner { grid-template-columns: 1fr; }

  /* Contact stacks */
  .contact-inner { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   17. RESPONSIVE — MOBILE  (max 580px)
--------------------------------------------------------------- */
@media (max-width: 580px) {
  /* 1-column grids */
  .properties-grid { grid-template-columns: 1fr; }
  .services-grid   { grid-template-columns: 1fr; }
  .testi-grid      { grid-template-columns: 1fr; }
  .why-grid        { grid-template-columns: 1fr; }
  .footer-inner    { grid-template-columns: 1fr; }

  /* Form row stacks */
  .form-row { grid-template-columns: 1fr; }

  /* Hero */
  .hero h1 { font-size: 26px; }
  .hero-btns { flex-direction: column; align-items: center; }

  /* Stats 2x2 */
  .stats-inner { display: grid; grid-template-columns: 1fr 1fr; }

  /* WhatsApp icon only */
  .whatsapp-float { padding: 12px 16px; font-size: 18px; border-radius: 50%; }
}
