/*
Theme Name: Nhapho Saigon 360
Theme URI: https://nhaphosaigon360.com
Author: a a
Description: Giao diện landing page hiện đại cho Nhà Phố Sài Gòn 360.
Version: 1.0
Text Domain: nhaphosaigon360
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary: #ff4b2b;
  --primary-dark: #e63618;
  --secondary: #ffb347;
  --bg: #f5f7fb;
  --text: #222;
  --muted: #666;
  --white: #fff;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(14px);
  background: rgba(245, 247, 251, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.site-logo span {
  display: inline-block;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 0 0, #fff 0, #fde68a 35%, #f97316 80%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(248, 113, 22, .35);
  font-size: 0.9rem;
  color: #111827;
}

.site-logo span:last-child {
  color: #4b5563;
  font-weight: 500;
  text-transform: none;
}

/* Menu */

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

.primary-nav li {
  margin: 0;
  padding: 0;
}

.primary-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #475569;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width .2s ease;
}

.primary-nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease, background .1s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 14px 35px rgba(248, 113, 22, .45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(248, 113, 22, .55);
}

.btn-outline {
  border: 1px solid rgba(148, 163, 184, .6);
  background: rgba(255, 255, 255, .85);
  color: #111827;
}

/* Hero */

.hero {
  padding: 60px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .06);
  border: 1px solid rgba(34, 197, 94, .3);
  color: #15803d;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2.3rem;
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero-title span.highlight {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: #6b7280;
}

.hero-cards {
  position: relative;
  padding: 18px;
  border-radius: 30px;
  background: radial-gradient(circle at 0 0, #ffffff 0, #e5e7eb 50%, #cbd5f5 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .9);
  color: #f9fafb;
  font-size: 0.7rem;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-stat {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(148, 163, 184, .35);
}

.hero-stat h4 {
  margin: 0;
  font-size: 1.1rem;
}

.hero-stat span {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Section */

.section {
  padding: 40px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
}

.section-title {
  margin: 4px 0 8px;
  font-size: 1.4rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Cards */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, .04);
  border: 1px solid rgba(148, 163, 184, .25);
}

.card-title {
  font-size: 1rem;
  margin: 0 0 8px;
}

.card-text {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Listing */

.listing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .08);
  color: #1d4ed8;
  margin-bottom: 6px;
}

.listing-price {
  font-weight: 700;
  margin-top: 6px;
  color: var(--primary-dark);
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 8px;
}

/* Posts */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 14px 16px;
  border: 1px solid rgba(148, 163, 184, .25);
}

.post-card h3 {
  font-size: 0.95rem;
  margin: 0 0 6px;
}

.post-card a {
  color: #111827;
  text-decoration: none;
}

.post-card a:hover {
  color: var(--primary);
}

.post-meta {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 6px;
}

.post-excerpt {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Contact */

.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 26px;
}

.contact-panel {
  background: #0f172a;
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  color: #e5e7eb;
}

.contact-panel h3 {
  margin-top: 0;
}

.contact-row {
  font-size: 0.85rem;
  margin: 6px 0;
}

.contact-row strong {
  display: inline-block;
  width: 64px;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, .25);
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: #4b5563;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .6);
  padding: 8px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(248, 113, 22, .35);
}

/* Footer */

.site-footer {
  padding: 18px 0 24px;
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: center;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 30px;
  }

  .grid-3,
  .posts-grid,
  .contact-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .primary-nav ul {
    gap: 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .section {
    padding: 30px 0;
  }
}
