/* ============================================
   Bricks 'n' More — GLOBAL STYLES
   Premium Real Estate Redesign
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* ── CSS Variables ─────────────────────────── */
:root {
  --navy: #0a1628;
  --navy-mid: #112040;
  --navy-light: #1a2f54;
  --accent: #9e2231;
  --accent-dark: #891c28;
  --gold: #9e2231;
  --gold-dark: #9c7d3a;
  --cream: #f8f5ef;
  --warm-white: #fdfcfa;
  --text-dark: #0a1628;
  --text-mid: #3a4a6b;
  --text-light: #7a8aaa;
  --border: rgba(10, 22, 40, 0.1);
  --border-light: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 12px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 8px 40px rgba(10, 22, 40, 0.14);
  --shadow-lg: 0 20px 80px rgba(10, 22, 40, 0.2);
  --radius: 4px;
  --radius-lg: 12px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset & Base ──────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── Typography ────────────────────────────── */
.serif {
  font-family: 'Playfair Display', serif;
}
.cormorant {
  font-family: 'Cormorant Garamond', serif;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
}

.eyebrow.light {
  color: white;
}

/* ── Layout ────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.container--narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

section {
  position: relative;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: white;
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(222, 236, 81, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid white !important;
}
.btn-outline:hover {
  background: #ccc;
  color: var(--navy);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-ghost {
  padding: 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  border-radius: 0;
  gap: 6px;
}
.btn-ghost:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.btn-ghost.light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost.light:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.btn:hover svg {
  transform: translateX(3px);
}

/* ── Navigation ────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 80px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo-mark {
  width: auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background-color: #ccc;
  border-radius: 10px;
}

.nav__logo-mark img {
  width: 100%;
  height: 100%;
}

.nav__logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.nav__logo-sub {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-top: -2px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: block;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
  white-space: nowrap;
}
.nav__link:hover,
.nav__link.active {
  color: white;
}

.nav__item--has-dropdown:hover .nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 10%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--navy);
  border: 1px solid var(--border-light);
  border-top: 2px solid white;
  border-radius: var(--radius);
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.nav__dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.2s;
}
.nav__dropdown a:hover {
  color: white;
  padding-left: 26px;
  background: rgba(255, 255, 255, 0.04);
}

.nav__cta {
  margin-left: 16px;
  padding: 10px 22px;
  font-size: 0.78rem;
}

/* Mobile hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger.open span:nth-child(2) {
  opacity: 0;
}
.nav__burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Page Hero (Interior pages) ────────────── */
.page-hero {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)),
    url('../assets/a.jpg.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.page-hero__eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: white;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  max-width: 700px;
}

.page-hero h1 em {
  font-style: italic;
  color: white;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.page-hero__breadcrumb a:hover {
  color: var(--accent);
}
.page-hero__breadcrumb span {
  color: rgba(255, 255, 255, 0.25);
}

/* ── Section Patterns ──────────────────────── */
.section-light {
  background: var(--warm-white);
  padding: 100px 0;
}

.section-cream {
  background: var(--cream);
  padding: 100px 0;
}

.section-dark {
  background: var(--accent);
  padding: 100px 0;
}

.section-header {
  margin-bottom: 64px;
}

.section-header--center {
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-top: 12px;
  margin-bottom: 20px;
}

.section-header p {
  font-size: 1.05rem;
  color: #ccc;
  max-width: 560px;
  line-height: 1.75;
}

.section-header--center p {
  margin: 0 auto;
}

/* Dark section typography */
.section-dark .eyebrow {
  color: var(--accent);
}
.section-dark h2 {
  color: #fff;
}
.section-dark p {
  color: rgba(255, 255, 255, 0.65);
}

/* ── Cards ─────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ── Property Card ─────────────────────────── */
.property-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.property-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--navy-mid);
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.property-card:hover .property-card__image img {
  transform: scale(1.06);
}

.property-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
}

.badge-completed {
  background: white;
  color: var(--navy);
}
.badge-ongoing {
  background: var(--accent) !important;
  color: #fff;
}

.property-card__number {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
}

.property-card__body {
  padding: 24px 28px 28px;
}

.property-card__location {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-card__title {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.property-card__stats {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.property-card__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.property-card__stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.property-card__stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

/* ── Stats Counter ─────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--accent);
  padding: 40px 32px;
  text-align: center;
}

.stat-item__number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Testimonials ──────────────────────────── */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--accent);
  line-height: 1;
  opacity: 0.6;
}

.testimonial-card__text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-card__role {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ── Footer ────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 80px 0 0;
  border-top: 1px solid var(--border-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer__brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  margin-top: 20px;
  max-width: 300px;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border: 1px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.footer__social a:hover {
  background: var(--accent);
  color: white;
}

.footer__col-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 24px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 0.88rem;
  color: #fff;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__links a:hover {
  color: white;
  padding-left: 4px;
}

.footer__contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.footer__contact-icon {
  width: 32px;
  height: 32px;
  background: #ccc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.footer__contact-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.footer__bottom {
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  transition: color 0.2s;
}

.footer__bottom a:hover {
  color: var(--accent);
}

/* ── Divider / Ornament ────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border));
}
.ornament::after {
  background: linear-gradient(to left, transparent, var(--border));
}

/* ── Animations ────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideRight {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Horizontal Rule ───────────────────────── */
.hr-accent {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 20px 0;
  border-radius: 2px;
}

.hr-accent.center {
  margin: 20px auto;
}

/* ── WhatsApp Float ────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }
  .nav__menu {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .nav__cta {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .section-light,
  .section-cream,
  .section-dark {
    padding: 70px 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile Nav Menu (Overlay) ─────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  padding: 100px 40px 40px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--accent);
}

.mobile-nav-sub {
  padding-left: 20px;
}

.mobile-nav-sub a {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 10px 0;
}

/* ── Grid Helpers ──────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .nav__logo-mark {
    height: 50px;
  }
}

@media (max-width: 740px) {
  .nav__logo-mark {
    height: 50px;
  }
}

/* ── Image Placeholder ─────────────────────── */
.img-placeholder {
  background: linear-gradient(
    135deg,
    var(--navy-mid) 0%,
    var(--navy-light) 100%
  );
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
