/*
Theme Name: BHG Dream Makers
Theme URI: https://www.bhgdreammakers.com
Author: BHG Dream Makers
Author URI: https://www.bhgdreammakers.com
Description: Custom theme for Better Homes and Gardens Real Estate Dream Makers - South Central Alaska
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bhg-dreammakers
*/

/* ===== CSS Variables ===== */
:root {
  --bhg-green: #4a7c59;
  --bhg-green-dark: #3d6849;
  --bhg-gold: #c9a227;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

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

body {
  margin: 0;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-800);
  margin: 0 0 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--bhg-green);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--bhg-green-dark); }

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

/* ===== Layout ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding { padding: 4rem 0; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bhg-green);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-bhg {
  background: #fff;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.logo-bhg-text { color: var(--bhg-green); font-size: 0.6rem; }
.logo-bhg-text .better { font-weight: bold; font-size: 0.5rem; display: block; }
.logo-bhg-text .homes { font-weight: bold; font-size: 0.7rem; display: block; }
.logo-bhg-text .gardens { font-size: 0.5rem; display: block; }
.logo-bhg-text .realestate { font-size: 0.4rem; color: var(--gray-500); display: block; }

.logo-dreammakers {
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: 0.05em;
}

/* Navigation */
.main-nav { display: none; }

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.main-nav a,
.main-nav button {
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav button:hover { color: #fff; }

.header-right { display: none; }

@media (min-width: 1024px) {
  .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .header-right a {
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
  }
  .header-right a:hover { color: #fff; }
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-menu {
  display: none;
  background: var(--bhg-green-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
}

.mobile-menu.active { display: block; }

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.mobile-menu a:hover { color: #fff; }

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 0.25rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 0.5rem 0;
  min-width: 180px;
  z-index: 100;
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--gray-700);
  font-size: 0.875rem;
}

.dropdown-menu a:hover {
  background: var(--gray-100);
  color: var(--bhg-green);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 3.5rem; }
}

.hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Search Bar */
.search-bar {
  background: #fff;
  border-radius: 0.25rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .search-bar { flex-direction: row; }
}

.search-bar input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  font-size: 1rem;
  outline: none;
}

.search-bar .price-inputs { display: flex; }
.search-bar .price-inputs input { width: 120px; border-left: 1px solid var(--gray-200); }

.search-btn {
  background: var(--bhg-green);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.search-btn:hover { background: var(--bhg-green-dark); }

/* ===== CTA Bar ===== */
.cta-bar {
  background: var(--bhg-green);
  padding: 1rem 0;
}

.cta-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-bar-inner { flex-direction: row; }
}

.cta-bar p { color: #fff; margin: 0; }
.cta-bar strong { font-weight: 600; }

.cta-btn-white {
  display: inline-block;
  background: #fff;
  color: var(--bhg-green);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.cta-btn-white:hover { background: var(--gray-100); color: var(--bhg-green); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary { background: var(--bhg-green); color: #fff; }
.btn-primary:hover { background: var(--bhg-green-dark); color: #fff; }

/* ===== Team ===== */
.team-intro {
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
}

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

@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

.team-member { position: relative; overflow: hidden; }
.team-member-image { aspect-ratio: 1; background: var(--gray-200); }
.team-member-image img { width: 100%; height: 100%; object-fit: cover; }

.team-member-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(74, 124, 89, 0.9);
  color: #fff;
  padding: 0.75rem;
}

.team-member-info h3 {
  color: #fff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.25rem;
}

.team-member-info a {
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
}

.team-member-info a:hover { color: var(--bhg-gold); }

/* ===== Communities ===== */
.communities-section {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .communities-section { grid-template-columns: 1fr 1fr; }
}

.communities-image {
  height: 300px;
  background-size: cover;
  background-position: center;
}

@media (min-width: 1024px) {
  .communities-image { height: auto; min-height: 500px; }
}

.communities-list {
  background: var(--bhg-green);
  color: #fff;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .communities-list { padding: 3rem; }
}

.communities-list h2 { color: #fff; margin-bottom: 2rem; }

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

.communities-grid a {
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
}

.communities-grid a:hover { color: var(--bhg-gold); }

.view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--bhg-gold);
  font-weight: 500;
  margin-top: 1.5rem;
}

.view-more-link:hover { color: #fff; }

/* ===== About Section ===== */
.about-section {
  position: relative;
  padding: 5rem 0;
  background-size: cover;
  background-position: center;
}

.about-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,255,255,0.95);
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .about-content { padding: 3rem; }
}

.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { color: var(--gray-600); }
.about-content a { color: var(--bhg-green); }
.about-content a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--gray-200);
}

.footer-logo {
  padding: 2rem 0;
  display: flex;
  justify-content: center;
}

.footer-logo-inner {
  background: var(--bhg-green);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-links {
  border-top: 1px solid var(--gray-200);
  padding: 2rem 0;
}

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

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-col h4 {
  color: var(--bhg-green);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
  display: block;
}

.footer-col a:hover { color: var(--bhg-green); }

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin: 0;
}

/* ===== Page Header ===== */
.page-header {
  background: var(--bhg-green);
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-header h1 { color: #fff; margin: 0; }
.page-content { padding: 3rem 0; }

/* ===== Contact Form ===== */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.25rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--bhg-green);
}

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

/* ===== Widget Areas ===== */
.widget-area { margin: 2rem 0; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.bg-white { background: #fff; }
.bg-gray { background: var(--gray-50); }
