/*
Theme Name: Real Estate
Theme URI: https://realestate.com
Author: Real Estate
Author URI: https://realestate.com
Description: A premium real estate theme for Real Estate, featuring a modern design with hero sections, login forms, and responsive layouts.
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: realestate
Tags: real-estate, custom-background, custom-logo, custom-menu, footer-widgets, theme-options
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1a2744;
  --navy-dark:  #141e38;
  --navy-mid:   #1e2e52;
  --gold:       #c9a84c;
  --gold-light: #d4b56a;
  --white:      #ffffff;
  --gray-100:   #f8f9fa;
  --gray-200:   #e9ecef;
  --gray-400:   #ced4da;
  --gray-600:   #6c757d;
  --gray-800:   #343a40;
  --text:       #333333;
  --border:     #dde1e8;
  --radius:     4px;
  --shadow:     0 4px 24px rgba(0,0,0,0.12);
  --font:       'Inter', 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 14px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

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

ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-weight: 600; line-height: 1.3; }

/* ===== HEADER ===== */
#site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: 60px;
  display: flex;
  align-items: center;
}

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

/* Logo */
.site-logo img {
  height: 36px;
  width: auto;
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav ul li {
  position: relative;
}

.primary-nav ul li a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color 0.2s;
  white-space: nowrap;
}

.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a {
  color: var(--gold);
}

/* Dropdown arrow */
.primary-nav .menu-item-has-children > a::after {
  content: '▾';
  font-size: 10px;
  margin-left: 2px;
  margin-top: 1px;
}

/* Dropdown */
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-top: 2px solid var(--gold);
  z-index: 200;
  padding: 8px 0;
  flex-direction: column;
  gap: 0;
}

.primary-nav .menu-item-has-children:hover .sub-menu {
  display: flex;
}

.primary-nav .sub-menu li a {
  padding: 8px 16px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  border-left: 3px solid transparent;
  display: block;
}

.primary-nav .sub-menu li a:hover {
  background: var(--gray-100);
  border-left-color: var(--gold);
  color: var(--navy);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

.lang-switcher a {
  padding: 4px 6px;
  color: var(--gray-600);
  transition: color 0.2s;
}

.lang-switcher a.active,
.lang-switcher a:hover {
  color: var(--navy);
}

.lang-switcher span { color: var(--gray-400); }

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/images/hero-bg.jpg') center center / cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ===== LOGIN CARD ===== */
.login-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  border-radius: 2px;
  padding: 40px 36px;
  width: 360px;
  max-width: 100%;
}

.login-card h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.login-card .login-subtitle {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Form Fields */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,39,68,0.08);
}

.form-group input::placeholder { color: var(--gray-400); }

.form-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.forgot-link {
  font-size: 11px;
  color: var(--gray-600);
  text-decoration: underline;
  transition: color 0.2s;
}

.forgot-link:hover { color: var(--navy); }

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 12px 24px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
  margin-top: 20px;
}

.btn-submit:hover { background: var(--navy-dark); }

.btn-submit .arrow {
  background: var(--gold);
  width: 28px;
  height: 28px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Social Login */
.or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 16px;
  font-size: 12px;
  color: var(--gray-600);
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.social-btn:hover {
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-btn svg { width: 20px; height: 20px; }

/* Register link */
.register-link {
  text-align: center;
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 10px;
}

.register-link a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.terms-text {
  text-align: center;
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.5;
}

.terms-text a {
  color: var(--navy);
  text-decoration: underline;
}

/* ===== FOOTER ===== */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
}

.footer-top {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 40px 0 32px;
}

.footer-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
}

/* Footer Logo */
.footer-logo img {
  height: 40px;
  width: auto;
  filter: brightness(10) saturate(0);
  opacity: 0.9;
}

/* Footer Nav */
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 20px;
}

.footer-nav ul li a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 4px 8px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 3px;
}

.footer-nav ul li a:hover { color: var(--gold); }

.footer-nav .menu-item-has-children > a::after {
  content: '▼';
  font-size: 8px;
}

/* Follow Us */
.footer-social h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-social-row span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  margin-right: 4px;
}

.social-icon-link {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
}

.social-icon-link:hover { background: var(--gold); color: var(--white); }

/* Newsletter */
.footer-newsletter {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.newsletter-form {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 280px;
}

.newsletter-form select {
  background: rgba(255,255,255,0.1);
  border: none;
  border-right: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
  outline: none;
}

.newsletter-form select option { background: var(--navy); }

.newsletter-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  padding: 10px 12px;
  font-size: 12px;
  outline: none;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

.newsletter-form button {
  background: var(--gold);
  border: none;
  color: var(--white);
  padding: 0 16px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--gold-light); }

/* Footer Bottom */
.footer-bottom {
  padding: 20px 0;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.footer-address {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

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

.copyright {
  width: 100%;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* Diamond Pattern */
.footer-diamond-pattern {
  position: absolute;
  right: 24px;
  bottom: 0;
  width: 80px;
  height: 80px;
  opacity: 0.2;
}

/* ===== HAMBURGER / MOBILE ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

/* ===== GENERAL PAGE CONTAINER ===== */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .primary-nav ul li a { padding: 8px 10px; font-size: 11px; }
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }

  .primary-nav {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 99;
  }

  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; width: 100%; }
  .primary-nav ul li a { font-size: 13px; padding: 10px 12px; }
  .primary-nav .sub-menu { position: static; box-shadow: none; border: none; padding-left: 12px; }
  .primary-nav .menu-item-has-children:hover .sub-menu { display: flex; }

  .hero-content { justify-content: center; padding: 40px 16px; }
  .login-card { width: 100%; max-width: 400px; }

  .footer-top-inner { grid-template-columns: 1fr; }
  .footer-newsletter { align-items: flex-start; }
  .newsletter-form { min-width: unset; width: 100%; }
}

@media (max-width: 600px) {
  .login-card { padding: 28px 20px; }
  .login-card h1 { font-size: 20px; }
}
