/* ================================================
   TDK Homes — Site Styles
   ================================================ */
:root {
  --primary: #1f7a3a;        /* deep green */
  --primary-dark: #155a2a;
  --primary-light: #d4ebd8;
  --accent: #c5a572;         /* gold */
  --dark: #1a1a1a;
  --text: #2c3e50;
  --muted: #6c757d;
  --light-bg: #f6f8f7;
  --border: #e5e9ec;
  --radius: 10px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,.04);
  --shadow: 0 6px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

/* Playfair Display: luxury display headings only */
h1, h2 { font-family: 'Playfair Display', Georgia, serif; color: var(--dark); }
h2 { font-weight: 700; font-size: 2.2rem; }
/* Montserrat: functional headings */
h3, h4, h5, h6 { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--dark); }

/* ============ TYPOGRAPHY SYSTEM 2026 ============ */
/* Font family utilities */
.font-display { font-family: 'Playfair Display', Georgia, serif; }
.font-body    { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif; }

/* Display scale — Playfair Display (luxury, headings) */
.text-display-xl {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
}
.text-display-lg {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.2;
}
.text-display-md {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600; line-height: 1.25;
}
.text-display-italic {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 600;
}

/* Body scale — Montserrat (UI, body, nav) */
.text-lead    { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 400; line-height: 1.75; }
.text-body-lg { font-family: 'Montserrat', sans-serif; font-size: 1rem;    font-weight: 400; line-height: 1.7; }
.text-body-sm { font-family: 'Montserrat', sans-serif; font-size: .875rem; font-weight: 400; line-height: 1.65; }
.text-caption { font-family: 'Montserrat', sans-serif; font-size: .75rem;  font-weight: 500; letter-spacing: .04em; }
.text-label   { font-family: 'Montserrat', sans-serif; font-size: .8rem;   font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Section eyebrow — accent label above a heading */
.section-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  display: block; margin-bottom: .5rem;
}
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: .5rem; }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

/* ============ TOP BAR ============ */
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,.85);
  padding: .5rem 0;
  font-size: .85rem;
}
.top-bar a { color: rgba(255,255,255,.7); margin: 0 .35rem; }
.top-bar a:hover { color: white; }

/* ============ MAIN NAV ============ */
.main-nav {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.navbar-brand {
  display: flex; align-items: center; gap: .65rem;
  font-weight: 800;
}
.brand-logo {
  width: 42px; height: 42px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; letter-spacing: 0.5px;
  font-family: 'Montserrat', sans-serif;
}
.brand-name { color: var(--dark); font-size: 1.15rem; }
.main-nav .nav-link {
  color: var(--text);
  font-weight: 500;
  padding: .5rem 1rem !important;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--primary); }
.main-nav .dropdown-menu {
  border: none;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: .5rem;
}
.main-nav .dropdown-item {
  border-radius: 6px;
  padding: .5rem .75rem;
  font-weight: 500;
}
.main-nav .dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.btn-primary-cta {
  background: var(--primary);
  color: white;
  font-weight: 600;
  border: none;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  transition: all .2s;
}
.btn-primary-cta:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31,122,58,.3);
}
.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: white;
  padding: 5rem 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-bg-default {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d4a3e 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.7), rgba(0,0,0,.35));
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-title {
  font-size: 3.2rem; font-weight: 700; /* Playfair Display max weight is 700 */
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  letter-spacing: -0.01em;
}
.hero-subtitle { font-size: 1.2rem; margin-bottom: 2.5rem; opacity: .95; }

.search-widget {
  background: white;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ============ TRUST BAR ============ */
.trust-bar {
  background: var(--primary);
  color: white;
  padding: 2.5rem 0;
}
.trust-number {
  font-size: 2.5rem; font-weight: 800;
  font-family: 'Playfair Display', serif;
}
.trust-label { font-size: .95rem; opacity: .9; }

/* ============ VISITOR STATS ============ */
.visitor-stats { background: var(--light-bg); }
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #28a745;
  border-radius: 50%;
  margin-right: .35rem;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.4); }
}

/* ============ SECTIONS ============ */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--light-bg); }
.section-subhead { font-size: 1.4rem; margin-bottom: 1.5rem; }

/* ============ PROPERTY CARD ============ */
.property-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.property-image-link { display: block; }
.property-image {
  position: relative;
  aspect-ratio: 16 / 11;
  background-size: cover;
  background-position: center;
}
.property-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: .35rem; flex-wrap: wrap;
}
.badge { font-weight: 600; padding: .35em .7em; }
.badge-sale { background: var(--primary); color: white; }
.badge-rent { background: #2c5fa8; color: white; }
.badge-shortlet { background: #c5a572; color: white; }
.badge-lease { background: #6c5ce7; color: white; }
.badge-featured { background: #f39c12; color: white; }
.badge-verified { background: #28a745; color: white; }

.property-status-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.property-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.property-price {
  color: var(--primary);
  font-weight: 800; font-size: 1.25rem;
  margin-bottom: .35rem;
}
.property-title {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: .35rem;
  font-family: 'Montserrat', sans-serif;
}
.property-title a { color: var(--dark); }
.property-title a:hover { color: var(--primary); }
.property-location { color: var(--muted); font-size: .9rem; margin-bottom: .75rem; }
.property-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  font-size: .85rem; color: var(--muted);
  margin-top: auto;
}
.property-meta span i { color: var(--primary); margin-right: .2rem; }

/* ============ FEATURE BOXES ============ */
.feature-box {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--border);
  height: 100%;
  transition: all .2s;
}
.feature-box:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.feature-box i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ============ TESTIMONIALS ============ */
.testimonial-card {
  background: white;
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  height: 100%;
  border: 1px solid var(--border);
}
.testimonial-card .stars { color: #f39c12; margin-bottom: .75rem; }
.testimonial-card .quote { font-style: italic; color: var(--text); }
.testimonial-card .author { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.testimonial-card .author img {
  width: 48px; height: 48px;
  border-radius: 50%; object-fit: cover;
}

/* ============ UPDATE/VIDEO ROW ============ */
.update-row {
  display: flex; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
}
.update-row:hover { background: var(--light-bg); }
.update-row img, .video-thumb-fallback {
  width: 110px; height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.video-thumb-fallback {
  background: var(--light-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 2rem;
}
.update-row h6 { margin-bottom: .25rem; color: var(--dark); }

/* ============ CTA BANNER ============ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 0;
}
.cta-banner h2 { color: white; margin-bottom: 1rem; }
.cta-banner p { font-size: 1.15rem; margin-bottom: 2rem; opacity: .95; }

/* ============ FOOTER ============ */
.site-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.site-footer h5, .site-footer h6 { color: white; margin-bottom: 1rem; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.65); }
.footer-links a:hover { color: white; }
.text-light-50 { color: rgba(255,255,255,.65) !important; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.social-icon:hover { background: var(--primary); color: white; }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 2.5rem 0 1.5rem; }
.contact-block i { width: 18px; color: var(--primary); }

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 56px; height: 56px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37,211,102,.5);
  z-index: 999;
  transition: all .2s;
}
.whatsapp-float:hover {
  background: #1ea952;
  color: white;
  transform: scale(1.08);
}

/* ============ CHATBOT ============ */
#chatbot-widget {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 1000;
}
.chatbot-toggle {
  width: 60px; height: 60px;
  background: var(--primary);
  color: white;
  border: none; border-radius: 50%;
  font-size: 1.8rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  position: relative;
  transition: all .2s;
}
.chatbot-toggle:hover { background: var(--primary-dark); transform: scale(1.05); }
.chatbot-badge {
  position: absolute; top: -2px; right: -2px;
  background: #e74c3c; color: white;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.chatbot-panel {
  position: absolute;
  bottom: 76px; right: 0;
  width: 360px; max-width: calc(100vw - 48px);
  height: 520px; max-height: calc(100vh - 120px);
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}
.chatbot-header {
  background: var(--primary);
  color: white;
  padding: 1rem 1.25rem;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--light-bg);
}
.chat-msg {
  padding: .65rem 1rem;
  border-radius: 14px;
  margin-bottom: .65rem;
  max-width: 85%;
  font-size: .92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-bot {
  background: white;
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-user {
  background: var(--primary);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.chatbot-quick {
  display: flex; gap: .35rem; flex-wrap: wrap;
  padding: .5rem .75rem 0;
}
.chatbot-quick .btn { font-size: .78rem; padding: .25rem .65rem; }
.chatbot-input {
  display: flex; gap: .5rem;
  padding: .75rem;
  border-top: 1px solid var(--border);
}
.chatbot-input input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .55rem .85rem;
  outline: none;
}
.chatbot-input input:focus { border-color: var(--primary); }
.chatbot-input button { padding: .55rem .9rem; }

/* ============ EXIT POPUP ============ */
.exit-popup-grid { display: grid; grid-template-columns: 180px 1fr; }
.exit-popup-side {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 575px) { .exit-popup-grid { grid-template-columns: 1fr; } .exit-popup-side { padding: 2rem; } }

/* ============ FORMS / GENERIC ============ */
.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .6rem .85rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,122,58,.12);
}

/* ============ PAGE HEADER ============ */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 3rem 0 2.5rem;
  margin-bottom: 2.5rem;
}
.page-header h1 { color: white; font-size: 2.4rem; }

/* ============ PROPERTY DETAIL ============ */
.property-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: .5rem;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 480px;
}
.property-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.property-gallery .main-img { grid-row: 1 / 3; }
@media (max-width: 768px) {
  .property-gallery { grid-template-columns: 1fr; max-height: none; }
  .property-gallery .main-img { grid-row: auto; }
  .property-gallery img:not(.main-img) { display: none; }
}
.spec-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: var(--radius);
  text-align: center;
}
.spec-item i { font-size: 1.6rem; color: var(--primary); margin-bottom: .35rem; }
.spec-item .label { font-size: .8rem; color: var(--muted); }
.spec-item .value { font-weight: 700; font-size: 1.1rem; }

/* ============ ANIMATIONS ============ */
@media (prefers-reduced-motion: no-preference) {
  .property-card, .feature-box, .btn { transition: all .25s ease; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .hero-title { font-size: 2.2rem; }
  .hero { min-height: 500px; }
  .trust-number { font-size: 2rem; }
}
@media (max-width: 575px) {
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .section { padding: 2.5rem 0; }
  h2 { font-size: 1.6rem; }
  .chatbot-panel { width: calc(100vw - 32px); right: -8px; height: 70vh; }
  .whatsapp-float { width: 48px; height: 48px; font-size: 1.5rem; bottom: 16px; left: 16px; }
}
