/*
Theme Name: City Mobile Real Estate
Theme URI: https://cityofmobile.com/
Author: OpenAI
Description: A simple custom WordPress theme for CityofMobile.com and CityofMontgomery.com real estate listings.
Version: 1.2
License: GNU General Public License v2 or later
Text Domain: city-mobile-real-estate
*/

:root {
  --navy: #173b5c;
  --navy-dark: #0f2a44;
  --gold: #f2c94c;
  --light: #f7f9fc;
  --text: #333333;
  --white: #ffffff;
  --border: #e3e8ee;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  opacity: 0.9;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.topbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
}

.branding {
  display: inline-block;
  color: inherit;
}

.logo-box,
.home-brand-box {
  width: 56px;
  height: 56px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 12px;
  text-align: center;
  line-height: 56px;
  font-weight: 700;
  font-size: 24px;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 10px;
}

.brand-tag {
  font-size: 14px;
  color: #666666;
}

.site-main {
  min-height: 40vh;
}

.home-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-wrap-narrow {
  max-width: 820px;
}

.home-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 48px 0 56px;
}

.home-brand {
  margin-bottom: 24px;
}

.home-brand-box {
  margin: 0 auto 14px;
}

.home-brand-text {
  text-align: center;
}

.home-brand-name {
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
}

.home-brand-sub {
  font-size: 16px;
  color: var(--gold);
}

.home-title {
  margin: 0 0 16px;
  text-align: center;
  font-size: 40px;
  line-height: 1.2;
  color: var(--white);
}

.home-intro {
  max-width: 850px;
  margin: 0 auto 28px;
  text-align: center;
  font-size: 19px;
  color: #eef3f9;
}

.home-info-grid {
  max-width: 920px;
  margin: 0 auto 24px;
}

.home-info-box {
  background: var(--white);
  color: var(--navy-dark);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.home-info-box strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666666;
  margin-bottom: 6px;
}

.home-info-box span {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.home-info-box-action {
  background: transparent;
  border: 0;
  padding: 0;
}

.home-info-box-action a,
.btn-gold,
.btn-white {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
}

.home-info-box-action a,
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border: 1px solid #d8d8d8;
}

.home-buttons {
  max-width: 920px;
  margin: 0 auto;
}

.home-buttons a {
  margin-bottom: 12px;
}

.home-section {
  padding: 52px 0;
  background: var(--white);
}

.home-section-light {
  background: var(--light);
}

.home-section h2 {
  margin: 0 0 16px;
  text-align: center;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.2;
}

.home-section p {
  margin: 0 0 14px;
  text-align: center;
  font-size: 18px;
  color: var(--text);
}

.home-card-list {
  max-width: 920px;
  margin: 0 auto;
}

.home-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 18px;
}

.home-card h3 {
  margin: 0 0 12px;
  text-align: center;
  color: var(--navy);
  font-size: 22px;
}

.home-card p {
  margin: 0;
  font-size: 16px;
  text-align: center;
}

.page-content {
  max-width: 920px;
  margin: 40px auto;
  padding: 0 20px 40px;
}

.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  text-align: center;
  padding: 24px 20px;
  font-size: 14px;
}

.site-footer a {
  color: var(--gold);
}

.listing-page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 70px;
}

.listing-page-hero {
  text-align: center;
  margin-bottom: 40px;
}

.listing-page-hero h1 {
  font-size: 42px;
  color: var(--navy);
  margin-bottom: 14px;
}

.listing-page-hero p {
  font-size: 18px;
  line-height: 1.7;
  color: #444444;
  max-width: 800px;
  margin: 0 auto;
}

.listing-options-grid {
  display: block;
}

.listing-option-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.featured-card {
  border: 2px solid var(--gold);
}

.listing-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.standard-badge {
  background: #eaf1f9;
  color: var(--navy);
}

.featured-badge {
  background: var(--gold);
  color: var(--navy-dark);
}

.listing-option-card h2 {
  font-size: 28px;
  color: var(--navy);
  margin-top: 0;
}

.listing-price {
  font-size: 34px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 10px 0 18px;
}

.listing-option-card ul {
  margin-left: 18px;
}

.listing-option-card li {
  margin-bottom: 10px;
  color: #444444;
}

.paypal-button-wrap {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eceff3;
}

.listing-info-box {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  margin-top: 24px;
}

.listing-info-box h3 {
  color: var(--navy);
  margin-top: 0;
}

@media (min-width: 769px) {
  .home-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    align-items: stretch;
  }

  .home-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .home-buttons a {
    margin-bottom: 0;
  }

  .home-card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .home-card {
    margin-bottom: 0;
  }

  .listing-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .listing-option-card {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .brand-name {
    font-size: 20px;
  }

  .home-brand-name {
    font-size: 24px;
  }

  .home-brand-sub {
    font-size: 15px;
  }

  .home-title {
    font-size: 32px;
  }

  .home-intro {
    font-size: 17px;
  }

  .home-section h2 {
    font-size: 26px;
  }

  .listing-page-hero h1 {
    font-size: 34px;
  }

  .listing-page-hero p {
    font-size: 17px;
  }
}