/*
Theme Name: Hartwell & Bay Realty
Theme URI: https://hartwellandbay.com/theme
Author: Ediface
Author URI: https://ediface.design
Description: Complete boutique real estate theme for coastal properties. Custom built for Hartwell & Bay Realty, San Diego. Responsive, highly styled with custom colors, templates, search engines, and real-time loan calculators.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: real-estate, custom-colors, custom-header, featured-images, translation-ready, two-columns, full-width-template
Text Domain: hartwell-bay
*/

:root {
  --primary: #16344A;
  --secondary: #E8DCC4;
  --accent: #4A8C8C;
  --text-dark: #2A2A2A;
  --bg-light: #FCFBF9;
  --white: #FFFFFF;
}

body {
  font-family: 'Open Sans', 'Lato', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  font-weight: 700;
  margin-top: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Slick Header */
header.site-header {
  background: var(--primary);
  border-bottom: 4px solid var(--secondary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}
.logo a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 21px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--secondary); font-weight: 400; }
.logo-tag {
  display: block;
  font-size: 10px;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #cbd5e1;
  font-weight: bold;
  margin-top: 2px;
}
nav.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}
nav.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #cbd5e1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}
nav.main-nav a:hover, nav.main-nav li.current-menu-item a { color: var(--white); }
.contact-phone-badge {
  font-size: 11px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}
.contact-phone-badge:hover { background-opacity: 0.95; }

/* Grid systems */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}
@media(max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Beautiful Split Hero Layout */
.split-hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  min-height: 520px;
  border-bottom: 4px solid var(--secondary);
}
@media (max-width: 991px) {
  .split-hero { grid-template-columns: 1fr; }
}
.hero-left {
  background-color: var(--secondary);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-right {
  background: linear-gradient(rgba(74, 140, 140, 0.4), rgba(22, 52, 74, 0.8)), url('https://images.unsplash.com/photo-1513584684374-8bab748fbf90?auto=format&fit=crop&w=1200&q=80') center/cover;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
}
.sleek-pattern {
  background-image: radial-gradient(#E8DCC4 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.25;
  position: absolute;
  inset: 0;
}

/* Fully Styled Search Bar on Home */
.hero-search-bar {
  background: var(--white);
  padding: 16px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  gap: 15px;
  align-items: flex-end;
  margin-top: 30px;
  flex-wrap: wrap;
}
.search-field {
  flex: 1;
  min-width: 160px;
}
.search-field label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: #8c9ba5;
  margin-bottom: 4px;
  letter-spacing: 1.5px;
}
.search-field input, .search-field select {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  font-weight: 600;
  color: var(--text-dark);
}
.search-btn {
  background: var(--primary);
  color: var(--secondary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
}
.search-btn:hover { background: #0d2130; }

/* Custom Properties cards */
.card-property {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  border-bottom: 4px solid var(--secondary);
  display: flex;
  flex-direction: column;
}
.card-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-status {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: var(--secondary);
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.badge-neighborhood {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
}
.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.property-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 5px;
}
.property-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px 0;
}
.property-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}
.property-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
  margin-top: auto;
  font-size: 11px;
  color: #666;
  font-family: monospace;
}

/* Page Section headers */
.section-heading-wrap {
  text-align: center;
  margin-bottom: 50px;
}
.section-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 2.5px;
  display: block;
  margin-bottom: 8px;
}
.section-main-title {
  font-size: 32px;
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  text-transform: uppercase;
}

/* Why Choose Us Icons */
.feature-box {
  background: var(--white);
  border: 1px solid var(--secondary);
  padding: 30px;
  border-radius: 8px;
  text-align: left;
}
.feature-box .icon {
  width: 44px;
  height: 44px;
  background: var(--bg-light);
  border: 1px solid var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Testimonials */
.testimonials-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}
.testimonial-card {
  background: var(--white);
  padding: 26px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  border: 1px solid #ecebea;
}
.stars {
  color: #f1c40f;
  margin-bottom: 12px;
  font-size: 16px;
}

/* Mortgage calculator widget */
.calc-widget {
  background: #f8fafc;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.calc-field {
  margin-bottom: 15px;
}
.calc-field label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--primary);
}
.calc-field input {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-weight: 600;
}
.calc-result-box {
  background: var(--primary);
  color: var(--white);
  padding: 16px;
  border-radius: 6px;
  text-align: center;
  margin-top: 20px;
}
.calc-result-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--secondary);
}

/* Accordion Guides drawer */
.guide-accordion {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 15px;
}
.guide-header {
  width: 100%;
  text-align: left;
  padding: 15px 0;
  background: transparent;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.guide-body {
  padding-bottom: 20px;
  display: none;
  font-size: 14px;
  color: #4a5568;
}

/* 4-column responsive grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
@media(max-width: 991px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* Standard Button Styles matching parent aesthetic */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  box-sizing: border-box;
}
.btn-primary {
  background: var(--primary);
  color: var(--secondary);
  padding: 12px 50px; important
  border-radius: 4px;
}
.btn-primary:hover {
  background: #0d2130;
  color: var(--white);
}
.btn-secondary {
  background: var(--accent);
  color: var(--white);
  padding: 12px 50px; important
  border-radius: 4px;
}
.btn-secondary:hover {
  background: #366c6c;
}

/* Form selects and textareas */
.calc-field select, .calc-field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  background-color: var(--white);
  color: var(--text-dark);
  outline: none;
}
.calc-field textarea {
  font-family: inherit;
  resize: vertical;
}

/* Responsive Helper Utilities */
img {
  max-width: 100%;
  height: auto;
}

/* Mobile Navigation Toggle (Checkbox Hack) */
.nav-toggle-checkbox {
  display: none;
}
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 10px 0;
  z-index: 1100;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--white);
  height: 2px;
  width: 24px;
  position: relative;
  transition: background 0.3s ease, transform 0.3s ease, top 0.3s ease;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}
.nav-toggle-label span::before {
  top: -6px;
}
.nav-toggle-label span::after {
  top: 6px;
}

/* Active State for Mobile Hamburger */
.nav-toggle-checkbox:checked + .nav-toggle-label span {
  background: transparent;
}
.nav-toggle-checkbox:checked + .nav-toggle-label span::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle-checkbox:checked + .nav-toggle-label span::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Home Page Hero Custom Classes */
.hero-search-bar {
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  max-width: 750px;
  margin: 0 auto;
}

/* Why Choose Us Grid */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  text-align: center;
}

/* Team Teaser Block */
.team-teaser-flex {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
}
.team-photo-grid {
  flex: 1;
  min-width: 320px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Testimonial Cards Layout */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 30px;
}
.testimonial-card-wrap {
  background: var(--white);
  padding: 30px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  border-left: 4px solid var(--accent);
}

/* Footer Semantic Styles */
.site-footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0 25px;
  border-top: 5px solid var(--secondary);
  font-family: 'Open Sans', sans-serif;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 45px;
}
.site-footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 20px;
  font-size: 19px;
  letter-spacing: -0.5px;
}
.site-footer-col-header {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  font-size: 14px;
  text-transform: uppercase;
}

/* Listing Details Layout */
.listing-detail-gallery {
  height: 440px;
  border-radius: 8px;
  overflow: hidden;
  border-bottom: 5px solid var(--secondary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

/* Form Search Directory */
.listings-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) 120px;
  gap: 20px;
  align-items: flex-end;
}

/* Agents Roster Styles */
.agent-card-grid {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid #ecebea;
  border-bottom: 4px solid var(--secondary);
  padding: 25px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 25px;
}

/* Contact page boxes */
.info-box {
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid #ecebea;
  border-bottom: 4px solid var(--accent);
}
.form-box {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid #ecebea;
  border-bottom: 4px solid var(--secondary);
  padding: 40px;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .team-teaser-flex {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  /* Spacing */
  .container {
    padding: 0 16px;
  }

  /* Hamburger Menu logic */
  .nav-toggle-label {
    display: block;
  }
  nav.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  .nav-toggle-checkbox:checked ~ nav.main-nav {
    opacity: 1;
    visibility: visible;
  }
  nav.main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  nav.main-nav a {
    font-size: 16px;
    letter-spacing: 2px;
  }
  .header-container {
    padding: 12px 16px;
  }
  .header-cta {
    display: none; /* Hide phone badge in small header */
  }

  /* Structural Resizing */
  .listings-filter-form {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .listings-filter-form button, .listings-filter-form a {
    width: 100%;
    justify-content: center;
  }
  .listings-filter-form > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .agent-card-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 20px;
  }
  .agent-card-grid img {
    margin: 0 auto;
  }
  .agent-card-grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .agent-card-grid div[style*="text-align:left"] {
    text-align: center !important;
  }

  .listing-detail-gallery {
    height: 280px;
  }

  .info-box, .form-box {
    padding: 24px 16px;
  }
  
  .section-main-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .section-main-title {
    font-size: 20px;
  }
  .logo a {
    font-size: 18px;
  }
}
