/* ========================================
   Brickstone Realty — Main Stylesheet
   ======================================== */

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #f9f8f6;
}

a {
  color: #2c5f8a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ---- Header / Navigation ---- */
.site-header {
  background: #1a3a5c;
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

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

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

.logo span {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  margin-left: 10px;
  vertical-align: middle;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #fff;
  color: #fff;
  font-size: 1.5rem;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: #d4e4f1;
  font-weight: 600;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: color .2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  text-decoration: none;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  overflow: hidden;
  max-height: 500px;
}

.hero img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.55));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}

.hero-overlay h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.hero-overlay p {
  font-size: 1.2rem;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* ---- Sections ---- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-title {
  font-size: 1.8rem;
  color: #1a3a5c;
  margin-bottom: 24px;
  text-align: center;
}

/* ---- Property Cards ---- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

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

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.property-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.property-card .card-body {
  padding: 18px;
}

.property-card h3 {
  font-size: 1.15rem;
  color: #1a3a5c;
  margin-bottom: 6px;
}

.property-card .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c5f8a;
  margin-bottom: 8px;
}

.property-card .details {
  font-size: .9rem;
  color: #666;
}

/* ---- Team Section ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
  text-align: center;
}

.team-member img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 4px solid #2c5f8a;
}

.team-member h3 {
  font-size: 1.1rem;
  color: #1a3a5c;
}

.team-member .role {
  color: #777;
  font-size: .9rem;
}

/* ---- Blog Cards ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card .card-body {
  padding: 18px;
}

.blog-card h3 {
  font-size: 1.1rem;
  color: #1a3a5c;
  margin-bottom: 8px;
}

.blog-card .date {
  font-size: .85rem;
  color: #999;
  margin-bottom: 10px;
}

/* ---- Forms ---- */
.form-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a3a5c;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: #2c5f8a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.btn:hover {
  background: #1a3a5c;
  text-decoration: none;
  color: #fff;
}

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

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

/* ---- Calculator ---- */
.calculator-box {
  background: #fff;
  max-width: 500px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.calculator-box h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #1a3a5c;
}

#calc-result {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c5f8a;
  margin-top: 20px;
  min-height: 2em;
}

/* ---- Footer ---- */
.site-footer {
  background: #1a3a5c;
  color: #bbb;
  padding: 40px 24px 20px;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #9cb8d4;
  font-size: .9rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem;
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a3a5c;
    padding: 16px 24px;
    gap: 12px;
  }
  .main-nav.open ul {
    display: flex;
  }
  .hero-overlay h1 {
    font-size: 1.8rem;
  }
  .header-inner {
    flex-wrap: wrap;
  }
}
