/* ============================================================
   Garry Singh Real Estate — Shared Stylesheet
   Used by: index.html, about.html, property.html
   (Design system extracted from the original index.html so all
    pages stay visually consistent.)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --gold: #ffd700;
  --navy-grad: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Header & Navigation ---------- */
.header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}
.header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.15); }

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container { display: flex; align-items: center; gap: 15px; transition: all 0.3s ease; }
.logo-container:hover { transform: translateY(-2px); }

.logo-icon {
  width: 60px; height: 60px;
  position: relative;
  background: var(--navy-grad);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
  transition: all 0.3s ease;
}
.logo-container:hover .logo-icon { box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4); transform: scale(1.05); }
.logo-icon::before {
  content: 'G';
  font-size: 34px; font-weight: 900; color: #fff;
  font-family: 'Poppins', sans-serif; letter-spacing: -2px;
}
.logo-icon::after {
  content: '';
  position: absolute; bottom: 8px; right: 8px;
  width: 11px; height: 11px;
  background: var(--gold); border-radius: 50%;
  box-shadow: 0 0 0 2px white, 0 0 0 3px var(--gold);
}
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-name {
  font-size: 24px; font-weight: 900; letter-spacing: -0.8px; line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo-tagline {
  font-size: 10px; color: var(--text-light); letter-spacing: 2.5px;
  text-transform: uppercase; font-weight: 700; position: relative; padding-left: 12px;
}
.logo-tagline::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 2px; background: var(--navy-grad);
}

.nav-menu { display: flex; list-style: none; gap: 36px; align-items: center; }
.nav-menu a {
  text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 15px;
  transition: color 0.3s; position: relative;
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
  background: var(--secondary-color); transition: width 0.3s;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a:hover, .nav-menu a.active { color: var(--secondary-color); }

.cta-button {
  background: var(--gold); color: #1e3c72; padding: 12px 26px; border-radius: 30px;
  text-decoration: none; font-weight: 600; transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}
.cta-button:hover { background: #ffed4e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5); }

.mobile-menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--primary-color); }

/* ---------- Buttons ---------- */
.btn-primary {
  background: white; color: var(--primary-color); padding: 16px 40px; border-radius: 30px;
  text-decoration: none; font-weight: 700; transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(0,0,0,0.3); }
.btn-secondary {
  background: transparent; color: white; padding: 16px 40px; border: 2px solid white;
  border-radius: 30px; text-decoration: none; font-weight: 700; transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-secondary:hover { background: white; color: var(--primary-color); }

.btn-solid {
  background: var(--secondary-color); color: #fff; padding: 14px 32px; border-radius: 30px;
  text-decoration: none; font-weight: 600; transition: all 0.3s; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-solid:hover { background: #2980b9; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(52,152,219,0.3); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  margin-top: 96px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
  color: white; padding: 80px 40px; text-align: center;
}
.page-hero h1 { font-size: 46px; font-weight: 900; margin-bottom: 14px; }
.page-hero p { font-size: 18px; opacity: 0.95; max-width: 720px; margin: 0 auto; }
.breadcrumb { margin-top: 18px; font-size: 14px; opacity: 0.85; }
.breadcrumb a { color: var(--gold); text-decoration: none; }

/* ---------- Section helpers ---------- */
.section { padding: 90px 40px; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 50px; }
.section-header h2 { font-size: 42px; font-weight: 900; margin-bottom: 14px; color: var(--primary-color); }
.section-header p { font-size: 18px; color: var(--text-light); }
.container { max-width: 1200px; margin: 0 auto; }

/* ---------- Property grid & cards ---------- */
.properties-section { padding: 110px 40px; background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%); }
.properties-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 30px;
}
.property-card {
  background: white; border-radius: 20px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1); transition: all 0.3s;
  text-decoration: none; color: inherit; display: block; position: relative;
}
.property-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.property-image {
  height: 260px; background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
  position: relative; overflow: hidden; background-size: cover; background-position: center;
}
.property-image.no-image::before {
  content: '🏠'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 80px; opacity: 0.3;
}
.property-badge {
  position: absolute; top: 18px; left: 18px; background: var(--accent-color); color: white;
  padding: 7px 15px; border-radius: 20px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; z-index: 10; letter-spacing: 0.5px;
}
.property-badge.sold { background: #27ae60; }
.property-badge.pending { background: #f39c12; }
.property-badge.featured-tag {
  left: auto; right: 18px; background: var(--gold); color: #1e3c72;
}
.property-info { padding: 24px; }
.property-price { font-size: 26px; font-weight: 900; color: var(--primary-color); margin-bottom: 8px; }
.property-title { font-size: 18px; font-weight: 600; color: var(--primary-color); margin-bottom: 6px; }
.property-location { font-size: 14px; color: var(--text-light); margin-bottom: 18px; display: flex; align-items: center; gap: 6px; }
.property-features { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 18px; border-top: 1px solid #ecf0f1; }
.feature { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-light); }
.feature i { color: var(--secondary-color); }
.no-properties { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-light); }
.no-properties i { font-size: 80px; margin-bottom: 20px; opacity: 0.3; }
.no-properties h3 { font-size: 24px; margin-bottom: 10px; color: var(--text-dark); }

/* ---------- Property detail page ---------- */
.detail-wrap { max-width: 1100px; margin: 0 auto; padding: 40px; }
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 36px; }
.detail-main-img {
  width: 100%; height: 460px; border-radius: 18px; object-fit: cover; cursor: zoom-in;
  background: #ecf0f1;
}
.detail-thumbs { display: grid; grid-template-rows: repeat(3, 1fr); gap: 14px; }
.detail-thumbs img { width: 100%; height: 144px; border-radius: 14px; object-fit: cover; cursor: pointer; transition: opacity .2s; }
.detail-thumbs img:hover { opacity: 0.85; }
.detail-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.detail-header .price { font-size: 38px; font-weight: 900; color: var(--primary-color); }
.detail-header .title { font-size: 24px; font-weight: 600; margin-top: 4px; }
.detail-header .loc { color: var(--text-light); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.detail-stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0; }
.detail-stat {
  flex: 1; min-width: 130px; background: var(--bg-light); border-radius: 14px;
  padding: 20px; text-align: center;
}
.detail-stat i { font-size: 22px; color: var(--secondary-color); margin-bottom: 8px; }
.detail-stat strong { display: block; font-size: 20px; color: var(--primary-color); }
.detail-stat span { font-size: 13px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.detail-desc { font-size: 16px; color: #44576b; line-height: 1.9; margin: 10px 0 30px; }
.detail-desc h3 { font-size: 22px; color: var(--primary-color); margin-bottom: 12px; }
.detail-cta {
  background: var(--navy-grad); color: #fff; border-radius: 18px; padding: 36px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.detail-cta h3 { font-size: 24px; }
.detail-cta p { opacity: 0.9; }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-photo { width: 100%; max-width: 460px; height: 540px; border-radius: 26px; object-fit: cover; box-shadow: 0 20px 60px rgba(0,0,0,0.25); background: #ecf0f1; }
.about-text h2 { font-size: 40px; font-weight: 900; color: var(--primary-color); margin-bottom: 18px; }
.about-text p { color: var(--text-light); font-size: 17px; margin-bottom: 18px; line-height: 1.8; }
.about-stats { display: flex; gap: 30px; margin-top: 26px; }
.about-stats .num { font-size: 38px; font-weight: 900; color: var(--secondary-color); }
.about-stats .lbl { font-size: 13px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 26px; max-width: 1200px; margin: 0 auto; }
.value-card { background: #fff; border-radius: 18px; padding: 34px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); text-align: center; }
.value-card .vicon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 16px; background: var(--navy-grad);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px;
}
.value-card h3 { font-size: 20px; color: var(--primary-color); margin-bottom: 10px; }
.value-card p { color: var(--text-light); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-section { padding: 100px 40px; background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%); }
.contact-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { font-size: 40px; font-weight: 900; margin-bottom: 18px; color: var(--primary-color); }
.contact-info p { font-size: 17px; color: var(--text-light); margin-bottom: 36px; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; align-items: center; gap: 20px; }
.contact-icon { width: 58px; height: 58px; background: var(--navy-grad); border-radius: 15px; display: flex; align-items: center; justify-content: center; color: white; font-size: 22px; flex-shrink: 0; }
.contact-item-text strong { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.contact-item-text a { font-size: 18px; color: var(--primary-color); text-decoration: none; font-weight: 600; }
.contact-item-text a:hover { color: var(--secondary-color); }
.social-links { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.social-link { width: 48px; height: 48px; background: var(--bg-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 19px; transition: all 0.3s; text-decoration: none; }
.social-link:hover { background: var(--secondary-color); color: white; transform: translateY(-3px); }

/* ---------- Footer ---------- */
.footer { background: var(--primary-color); color: white; padding: 56px 40px 28px; }
.footer-content { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 36px; }
.footer-about h3 { font-size: 22px; margin-bottom: 14px; }
.footer-about p { font-size: 14px; opacity: 0.8; line-height: 1.7; margin-bottom: 16px; }
.footer-column h4 { font-size: 16px; margin-bottom: 18px; font-weight: 700; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 11px; }
.footer-column ul li a { color: white; text-decoration: none; opacity: 0.8; transition: opacity 0.3s; font-size: 14px; }
.footer-column ul li a:hover { opacity: 1; }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; opacity: 0.75; font-size: 14px; }
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid, .contact-container, .detail-gallery { grid-template-columns: 1fr; }
  .detail-thumbs { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .detail-thumbs img { height: 110px; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .about-photo { margin: 0 auto; }
}
@media (max-width: 768px) {
  .nav-menu {
    display: none; position: fixed; top: 80px; left: 0; right: 0; background: white;
    flex-direction: column; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 999;
  }
  .nav-menu.active { display: flex; }
  .nav-menu li { padding: 14px 0; border-bottom: 1px solid #eee; width: 100%; text-align: center; }
  .nav-menu li:last-child { border-bottom: none; }
  .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .nav-container { padding: 14px 18px; }
  .cta-button { display: none; }
  .section, .properties-section, .contact-section { padding: 56px 18px; }
  .page-hero { padding: 56px 18px; margin-top: 70px; }
  .page-hero h1 { font-size: 30px; }
  .section-header h2 { font-size: 28px; }
  .properties-grid { grid-template-columns: 1fr; }
  .detail-wrap { padding: 24px 16px; }
  .detail-main-img { height: 280px; }
  .detail-thumbs img { height: 80px; }
  .detail-header .price { font-size: 30px; }
  .about-stats { justify-content: space-between; gap: 14px; }
  .detail-cta { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .logo-name { font-size: 20px; }
  .logo-icon { width: 46px; height: 46px; }
  .logo-icon::before { font-size: 26px; }
}

/* ============================================================
   HOME PAGE — hero & search (used by index.html)
   ============================================================ */
.hero {
  margin-top: 96px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
  color: white; padding: 90px 40px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
  background-size: 50px 50px; opacity: 0.3;
}
.hero-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-content h1 { font-size: 54px; font-weight: 900; margin-bottom: 20px; line-height: 1.2; }
.hero-content .highlight { color: var(--gold); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.hero-content p { font-size: 20px; margin-bottom: 30px; opacity: 0.95; line-height: 1.7; }
.hero-stats { display: flex; gap: 40px; margin-bottom: 40px; }
.stat-item { text-align: center; }
.stat-number { font-size: 42px; font-weight: 900; display: block; color: var(--gold); }
.stat-label { font-size: 14px; opacity: 0.9; text-transform: uppercase; letter-spacing: 1px; }
.hero-buttons { display: flex; gap: 20px; }
.hero-image { position: relative; }
.garry-photo {
  width: 100%; max-width: 450px; height: 550px;
  background: url('garry-singh.jpg') center top / cover no-repeat, linear-gradient(160deg, #dfe7f1 0%, #b8c6da 100%);
  border-radius: 30px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); position: relative; overflow: hidden;
}
.photo-badge { position: absolute; bottom: 30px; left: 30px; background: white; color: var(--primary-color); padding: 15px 25px; border-radius: 15px; box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.photo-badge strong { display: block; font-size: 18px; font-weight: 800; }
.photo-badge span { font-size: 13px; color: var(--text-light); }

.search-section { background: white; padding: 40px; margin: -60px auto 0; max-width: 1200px; border-radius: 20px; box-shadow: 0 10px 60px rgba(0,0,0,0.15); position: relative; z-index: 100; }
.search-tabs { display: flex; gap: 20px; margin-bottom: 30px; border-bottom: 2px solid #ecf0f1; }
.search-tab { padding: 15px 30px; background: none; border: none; font-size: 16px; font-weight: 600; color: var(--text-light); cursor: pointer; transition: all 0.3s; position: relative; }
.search-tab.active { color: var(--secondary-color); }
.search-tab.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--secondary-color); }
.search-form { display: grid; grid-template-columns: 2fr 1.5fr 1fr 1fr auto; gap: 15px; align-items: end; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.form-group input, .form-group select { padding: 14px 18px; border: 2px solid #ecf0f1; border-radius: 10px; font-size: 15px; font-family: 'Poppins', sans-serif; transition: all 0.3s; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--secondary-color); }
.search-btn { padding: 14px 35px; background: var(--secondary-color); color: white; border: none; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 10px; }
.search-btn:hover { background: #2980b9; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3); }

/* video card support */
.property-video-container { height: 260px; position: relative; background: #000; }
.property-video-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.3s; }
.video-play-overlay:hover { background: rgba(0,0,0,0.5); }
.video-play-overlay i { font-size: 60px; color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-image { order: -1; display: flex; justify-content: center; }
  .garry-photo { max-width: 350px; height: 400px; }
  .hero-stats, .hero-buttons { justify-content: center; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .search-btn { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .hero { padding: 40px 18px; }
  .hero-content h1 { font-size: 30px; }
  .hero-content p { font-size: 15px; }
  .garry-photo { max-width: 280px; height: 350px; }
  .hero-stats { gap: 16px; }
  .stat-number { font-size: 28px; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .search-section { padding: 24px 16px; }
  .search-form { grid-template-columns: 1fr; }
  .search-tabs { flex-wrap: wrap; gap: 10px; }
}
