/* Glory International Real Estate — static AWS rebuild
   Brand: gold #D8B053, text #343434
   Fonts: Cinzel (display), Merriweather (body)
*/

:root {
  --gold: #D8B053;
  --gold-translucent: rgba(216, 176, 83, 0.7);
  --gold-dark: #b8923e;
  --text: #343434;
  --text-muted: #6a6a6a;
  --cream: #fdf8ec;
  --bg: #ffffff;
  --border: #e5e1d4;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Merriweather", Georgia, serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

h1 { font-size: 30px; margin-bottom: 0.5em; }
h2 { font-size: 24px; margin-bottom: 0.6em; }
h3 { font-size: 18px; margin-bottom: 0.4em; }

p { margin-bottom: 1em; }
ul, ol { margin-left: 1.25em; margin-bottom: 1em; }
li { margin-bottom: 0.3em; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ---- Header ---- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--gold);
  position: relative;
  z-index: 10;
}

/* Overlay variant: transparent header sitting on top of a hero image.
   Used on the homepage so the hero photo fills the full viewport. */
.site-header.overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0) 100%);
  border-bottom: 0;
  z-index: 20;
}

.site-header.overlay .header-main {
  background: transparent;
}
.site-header.overlay .main-nav > ul > li > a { color: #fff; }
.site-header.overlay .main-nav > ul > li > a:hover { color: var(--gold); }
.site-header.overlay .utility-links a { color: #fff; }
.site-header.overlay .utility-links a:hover { color: var(--gold); }
.site-header.overlay .utility-links .sep { color: rgba(255, 255, 255, 0.4); }

.site-header.overlay .main-nav .sub {
  background: rgba(20, 20, 20, 0.97);
  border-color: rgba(255, 255, 255, 0.1);
}
.site-header.overlay .main-nav .sub a { color: #fff; }
.site-header.overlay .main-nav .sub a:hover { background: rgba(216, 176, 83, 0.2); color: var(--gold); }

.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  max-width: 1360px;
  margin: 0 auto;
}

.header-main .logo img {
  height: 68px;
  width: auto;
  display: block;
}

.main-nav {
  justify-self: center;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  align-items: center;
}

.main-nav > ul > li { position: relative; margin: 0; }

.main-nav a {
  color: var(--text);
  text-transform: uppercase;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding: 10px 2px;
  display: inline-block;
  white-space: nowrap;
}

.main-nav a:hover { color: var(--gold-dark); text-decoration: none; }

.main-nav .has-sub > a::after {
  content: " \25BE";
  font-size: 9px;
  margin-left: 4px;
  opacity: 0.7;
}

.main-nav .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  min-width: 240px;
  box-shadow: var(--shadow);
  padding: 8px 0;
  z-index: 20;
}

.main-nav .has-sub:hover > .sub,
.main-nav .has-sub:focus-within > .sub { display: block; }

.main-nav .sub li { display: block; margin: 0; }

.main-nav .sub a {
  display: block;
  padding: 10px 20px;
  font-family: "Merriweather", serif;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text);
}

.main-nav .sub a:hover { background: var(--cream); color: var(--gold-dark); }

.utility-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.utility-links a {
  color: var(--text);
  font-family: "Cinzel", serif;
  font-weight: 700;
}

.utility-links a:hover { color: var(--gold-dark); text-decoration: none; }

.utility-links .phone {
  color: var(--gold-dark);
  font-weight: 700;
}

.utility-links .sep { color: var(--border); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 760px;
  background: #555 url('/img/hero/sunny-modern-living-room.jpg') center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 220px 20px 100px;
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-inner {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 780px;
}

.hero-search {
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  margin: 0 auto 90px;
  display: flex;
  gap: 0;
  align-items: stretch;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  max-width: 680px;
}

.hero-search .pill {
  background: var(--gold);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  cursor: pointer;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s;
}

.hero-search .pill:hover { background: var(--gold-dark); }

.hero-search input[type="text"] {
  flex: 1;
  border: 0;
  padding: 14px 18px;
  font: 14px "Cinzel", "Merriweather", serif;
  letter-spacing: 0.1em;
  background: transparent;
  color: var(--text);
  outline: none;
  text-transform: uppercase;
}

.hero-search input[type="text"]::placeholder {
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.hero-search .search-icon {
  background: transparent;
  color: var(--gold-dark);
  border: 0;
  padding: 0 20px;
  cursor: pointer;
  font-size: 18px;
}

.hero-search .search-icon:hover { color: var(--text); }

.cta-circles {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cta-circle {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0.06em;
  border: 3px solid #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, background 0.2s;
  padding: 18px;
  text-transform: uppercase;
}

.cta-circle:hover {
  background: var(--gold-dark);
  transform: scale(1.04);
  text-decoration: none;
  color: #fff;
}

.cta-circle span span {
  display: block;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  opacity: 0.9;
}

/* ---- Featured Listings (MLS plugin slot) ---- */
.featured {
  padding: 60px 20px;
  background: #fafafa;
}

.featured h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

.featured h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
}

.mls-slot {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px;
  border: 2px dashed var(--gold);
  background: var(--cream);
  text-align: center;
  color: var(--text-muted);
  font-family: "Merriweather", serif;
  border-radius: 4px;
}

.mls-slot strong {
  display: block;
  color: var(--gold-dark);
  font-family: "Cinzel", serif;
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.mls-slot small {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.8;
}

.featured-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.featured-card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.featured-card:hover { box-shadow: var(--shadow); }

.featured-card .photo {
  aspect-ratio: 4 / 3;
  background: #e0e0e0 center/cover no-repeat;
}

.featured-card .info {
  padding: 12px;
  font-size: 12px;
}

.featured-card .info .addr {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.featured-card .info .csz {
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.view-all {
  text-align: center;
  margin-top: 30px;
}

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 14px 40px;
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
  border: 0;
  cursor: pointer;
}

.btn-gold:hover { background: var(--gold-dark); text-decoration: none; color: #fff; }

/* ---- Welcome / content section ---- */
.welcome {
  padding: 60px 20px;
  background: #fff;
}

.welcome .wrap { max-width: 900px; }

.welcome h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 26px;
}

.welcome h3 {
  font-family: "Cinzel", serif;
  font-size: 17px;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
  color: var(--gold-dark);
}

/* ---- Browse markets ---- */
.browse-markets {
  padding: 50px 20px;
  background: #2a2a2a url('/img/hero/street-of-modern-homes.jpg') center/cover no-repeat;
  background-blend-mode: multiply;
  color: #fff;
  position: relative;
}

.browse-markets::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
}

.browse-markets .wrap { position: relative; max-width: var(--max-w); }

.browse-markets h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.markets-grid li { margin: 0; }

.markets-grid a {
  display: block;
  padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(216, 176, 83, 0.5);
  color: #fff;
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-align: center;
  transition: background 0.2s;
}

.markets-grid a:hover {
  background: var(--gold-translucent);
  border-color: var(--gold);
  text-decoration: none;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--gold);
  color: var(--text);
  padding: 50px 20px 0;
}

.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
}

.site-footer h2 {
  font-family: "Cinzel", serif;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 8px;
}

.footer-offices ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.footer-offices li { margin-bottom: 14px; }
.footer-offices a { color: var(--text); }
.footer-offices a:hover { color: #fff; }

.footer-social a {
  display: inline-flex;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.25);
  color: #fff;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  transition: background 0.2s;
}

.footer-social a:hover { background: #fff; color: var(--gold-dark); }

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
  font-size: 13px;
}
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: var(--text); text-transform: uppercase; letter-spacing: 0.05em; }
.footer-nav a:hover { color: #fff; }

.footer-contact form ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact input,
.footer-contact textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.85);
  font: 13px "Merriweather", serif;
  color: var(--text);
}

.footer-contact textarea { min-height: 70px; resize: vertical; }

.footer-contact button {
  width: 100%;
  padding: 12px;
  background: var(--text);
  color: #fff;
  border: 0;
  font-family: "Cinzel", serif;
  letter-spacing: 0.1em;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
}

.footer-contact button:hover { background: #000; }

.disclaimer {
  border-top: 1px solid rgba(0,0,0,0.15);
  padding: 20px 0;
  font-size: 11px;
  color: rgba(0,0,0,0.7);
}

.disclaimer .wrap {
  max-width: var(--max-w);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.disclaimer-associations { display: flex; gap: 10px; }
.disclaimer-associations img { width: 35px; height: 35px; }

.disclaimer-links {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.disclaimer-links a { color: rgba(0,0,0,0.7); text-transform: uppercase; letter-spacing: 0.05em; }
.disclaimer-links a:hover { color: #000; }

.disclaimer-copy { flex: 1 1 100%; padding-top: 14px; line-height: 1.7; }

.copyright-line {
  background: rgba(0,0,0,0.08);
  text-align: center;
  font-size: 11px;
  padding: 12px;
  letter-spacing: 0.05em;
}

/* ---- Page banner (for interior pages) ---- */
.page-banner {
  background: #555 url('/img/hero/spanish-home.jpg') center/cover no-repeat;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
}

.page-banner h1 {
  position: relative;
  color: #fff;
  font-size: 38px;
  letter-spacing: 0.05em;
}

.page-body {
  padding: 50px 20px;
  background: #fff;
}

.page-body .wrap { max-width: 900px; }

.page-body h2 { margin-top: 1.5em; }
.page-body h2:first-child { margin-top: 0; }

/* ---- Contact form (standalone page) ---- */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--cream);
  padding: 30px;
  border: 1px solid var(--border);
}

.contact-form label {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  margin-top: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font: 14px "Merriweather", serif;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

/* ---- Utility ---- */
.text-center { text-align: center; }

/* Demo form success message */
.form-thanks {
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 4px;
  padding: 24px;
  text-align: center;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.form-thanks strong { font-family: "Cinzel", serif; color: var(--gold-dark); font-size: 16px; }
.site-footer .form-thanks { background: rgba(255,255,255,0.9); color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .header-main { flex-direction: column; align-items: center; gap: 12px; }
  .main-nav ul { justify-content: center; gap: 16px; }
  .hero { min-height: 400px; padding: 40px 20px; }
  .cta-circle { width: 140px; height: 140px; font-size: 14px; }
  .page-banner h1 { font-size: 28px; }
}

@media (max-width: 600px) {
  .featured-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .main-nav ul { flex-direction: column; gap: 8px; width: 100%; }
  .main-nav .sub { position: static; border: 0; box-shadow: none; }
  .hero-search { flex-direction: column; }
  .hero-search button { padding: 14px; }
  .cta-circles { gap: 16px; }
}
