/* ============================================
   Easy Living Bangkok – ELB | Global Stylesheet
   ============================================ */

/* ── Variables ─────────────────────────────── */
:root {
  --navy:   #1B2B4A;
  --navy-dark: #0f1c32;
  --gold:   #C4992A;
  --gold-light: #e8c066;
  --cream:  #F8F4ED;
  --white:  #FFFFFF;
  --gray:   #6B7280;
  --light-gray: #F3F4F6;
  --text:   #2C2C2C;
  --border: #E5E7EB;
  --shadow: 0 4px 20px rgba(27,43,74,0.10);
  --radius: 10px;
  --font:   'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--gray); }

/* ── Utility ────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-center { text-align: center; }
.text-navy   { color: var(--navy); }
.text-gold   { color: var(--gold); }
.bg-navy     { background: var(--navy); }
.bg-cream    { background: var(--cream); }

.section-header { margin-bottom: 3rem; }
.section-header p { margin-top: .75rem; font-size: 1.05rem; }
.divider {
  width: 60px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1rem auto 0;
}
.divider-left { margin-left: 0; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover { background: #a8811e; border-color: #a8811e; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-dark); }

/* ── Navigation ──────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
  transition: all .3s ease;
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.3); }
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
}
.nav-logo svg { width: 44px; height: 44px; flex-shrink: 0; }
.nav-logo-text { line-height: 1.1; }
.nav-logo-text strong { display: block; font-size: 1.05rem; letter-spacing: .04em; }
.nav-logo-text span   { font-size: .7rem; letter-spacing: .12em; opacity: .8; text-transform: uppercase; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: color .2s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 1rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(27,43,74,.88) 0%, rgba(15,28,50,.75) 60%, rgba(196,153,42,.25) 100%),
    url('https://images.unsplash.com/photo-1519999482648-25049ddd37b1?w=1600&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(196,153,42,.12) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  max-width: 700px;
  color: var(--white);
}
.hero-badge {
  display: inline-block;
  background: rgba(196,153,42,.25);
  border: 1px solid rgba(196,153,42,.5);
  color: var(--gold-light);
  padding: .35rem 1rem;
  border-radius: 100px;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-content h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-content h1 span { color: var(--gold-light); }
.hero-content p { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat strong { display: block; font-size: 1.8rem; color: var(--gold-light); }
.hero-stat span   { font-size: .8rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .05em; }

/* ── Search Bar ──────────────────────────────── */
.search-bar {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}
.search-field { flex: 1; min-width: 160px; }
.search-field label { display: block; font-size: .78rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; text-transform: uppercase; letter-spacing: .05em; }
.search-field select,
.search-field input {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
}
.search-field select:focus,
.search-field input:focus { border-color: var(--gold); }

/* ── Services ─────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all .3s ease;
  cursor: default;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.service-icon {
  width: 60px; height: 60px;
  background: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  transition: background .3s;
}
.service-card:hover .service-icon { background: var(--navy); }
.service-card h3 { color: var(--navy); margin-bottom: .5rem; }
.service-card p  { font-size: .9rem; }

/* ── Properties Grid ──────────────────────────── */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.prop-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: all .3s ease;
  border: 1px solid var(--border);
}
.prop-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(27,43,74,.15); }
.prop-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.prop-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.prop-card:hover .prop-img img { transform: scale(1.05); }
.prop-badge {
  position: absolute; top: .75rem; left: .75rem;
  padding: .3rem .75rem;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge-for-sale { background: var(--navy); color: var(--white); }
.badge-for-rent { background: var(--gold); color: var(--white); }
.badge-new      { background: #16a34a; color: var(--white); }
.prop-fav {
  position: absolute; top: .75rem; right: .75rem;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s;
}
.prop-fav:hover { background: var(--white); }
.prop-body { padding: 1.25rem; }
.prop-price {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.prop-price span { font-size: .8rem; color: var(--gray); font-weight: 400; }
.prop-title { color: var(--navy); font-size: 1rem; margin-bottom: .4rem; }
.prop-loc   { color: var(--gray); font-size: .85rem; display: flex; align-items: center; gap: .3rem; margin-bottom: .9rem; }
.prop-features {
  display: flex;
  gap: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--border);
}
.prop-feat {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  color: var(--gray);
}

/* ── Why ELB ──────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.why-item { text-align: center; }
.why-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .5rem;
}
.why-item h4 { color: var(--navy); margin-bottom: .4rem; }
.why-item p  { font-size: .9rem; }

/* ── Team ─────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  padding-bottom: 1.5rem;
  transition: transform .3s;
}
.team-card:hover { transform: translateY(-4px); }
.team-img {
  height: 220px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.team-body { padding: 1.25rem 1.25rem .5rem; }
.team-body h3 { color: var(--navy); margin-bottom: .25rem; }
.team-body p  { font-size: .85rem; }
.team-contacts { margin-top: .75rem; display: flex; flex-direction: column; gap: .3rem; }
.team-contacts a { font-size: .82rem; color: var(--navy); font-weight: 500; }
.team-contacts a:hover { color: var(--gold); }

/* ── Contact Form ─────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-box { }
.contact-info-box h2 { color: var(--navy); }
.contact-info-box > p { margin: .75rem 0 1.75rem; }
.info-list { display: flex; flex-direction: column; gap: 1.25rem; }
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.info-icon {
  width: 42px; height: 42px;
  background: var(--cream);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.info-item h4 { color: var(--navy); font-size: .9rem; margin-bottom: .15rem; }
.info-item p, .info-item a { color: var(--gray); font-size: .88rem; }
.info-item a:hover { color: var(--gold); }
.social-links { display: flex; gap: .75rem; margin-top: 1.75rem; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  transition: background .2s;
}
.social-btn:hover { background: var(--gold); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}
.contact-form h3 { color: var(--navy); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; text-transform: uppercase; letter-spacing: .04em; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: .95rem;
  color: var(--text);
  font-family: var(--font);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,153,42,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 1rem;
  color: #166534;
  text-align: center;
  margin-top: 1rem;
}

/* ── Map ──────────────────────────────────────── */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 350px; border: 0; display: block; }

/* ── CTA Banner ───────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(196,153,42,.08);
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; position: relative; }
.cta-banner p  { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 2rem; position: relative; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── Footer ───────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.1rem; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a { font-size: .87rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-contact-item { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .75rem; font-size: .87rem; }
.footer-contact-item span:first-child { flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom span { color: var(--gold-light); }

/* ── Filter Bar (Properties page) ────────────── */
.filter-bar {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}
.filter-field { flex: 1; min-width: 150px; }
.filter-field label { display: block; font-size: .75rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .05em; }
.filter-field select,
.filter-field input {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
}
.filter-field select:focus,
.filter-field input:focus { border-color: var(--gold); }

/* ── Page Hero (inner pages) ─────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 7rem 1.5rem 4rem;
  text-align: center;
  color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p   { color: rgba(255,255,255,.7); font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  font-size: .83rem;
  color: rgba(255,255,255,.55);
  margin-top: .75rem;
}
.breadcrumb a { color: var(--gold-light); }

/* ── About ────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 420px;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { color: var(--navy); margin-bottom: 1rem; }
.about-text p  { margin-bottom: 1rem; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.value-card {
  background: var(--cream);
  border-radius: 8px;
  padding: 1.25rem;
  border-left: 3px solid var(--gold);
}
.value-card h4 { color: var(--navy); margin-bottom: .3rem; font-size: .95rem; }
.value-card p  { font-size: .85rem; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .about-layout   { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy-dark);
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
  }
  .hamburger { display: flex; }
  .hero-stats { gap: 1.5rem; }
  .form-row   { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .search-bar { flex-direction: column; }
}
@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .hero-btns { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .properties-grid { grid-template-columns: 1fr; }
}
