﻿/* ============================================================
   AMANA TRUST HOMES — PUBLIC WEBSITE STYLES
   Font: Plus Jakarta Sans | Primary: #0A4DA2
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --primary:      #0A4DA2;
  --primary-dark: #083d82;
  --accent:       #2196F3;
  --white:        #FFFFFF;
  --font:         'Plus Jakarta Sans', 'Inter', sans-serif;
  --pub-bg:       #ffffff;
  --pub-text:     #1a2332;
  --pub-card-bg:  #ffffff;
  --pub-border:   #e2e8f0;
  --pub-muted:    #64748b;
  --nav-charcoal: #1a1a2e;
}

/* ---- DARK MODE ---- */
html[data-theme="dark"], html.dark-mode {
  --pub-bg:      #0f1623;
  --pub-text:    #e2e8f0;
  --pub-card-bg: #1a2332;
  --pub-border:  #2d3a4e;
  --pub-muted:   #94a3b8;
}
html[data-theme="dark"] body, html.dark-mode body { background-color: #0f1623 !important; color: #e2e8f0 !important; }
html[data-theme="dark"] .pub-nav-inner, html.dark-mode .pub-nav-inner {
  background: rgba(15,22,35,0.97) !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .pub-nav-links a, html.dark-mode .pub-nav-links a { color: #cbd5e1; }
html[data-theme="dark"] .pub-nav-links a:hover,
html[data-theme="dark"] .pub-nav-links a.active,
html.dark-mode .pub-nav-links a:hover,
html.dark-mode .pub-nav-links a.active { color: #93c5fd; background: rgba(10,77,162,0.25); }
html[data-theme="dark"] .brand-title, html.dark-mode .brand-title { color: #93c5fd !important; }
html[data-theme="dark"] .pub-nav-mobile, html.dark-mode .pub-nav-mobile { background: rgba(14,21,33,0.98); border-color: #334155; }
html[data-theme="dark"] .pub-nav-mobile a, html.dark-mode .pub-nav-mobile a { color: #cbd5e1; }
html[data-theme="dark"] .pub-nav-verify, html.dark-mode .pub-nav-verify { background: rgba(10,77,162,0.3) !important; color: #93c5fd !important; border-color: #2d3a4e !important; }
html[data-theme="dark"] .pub-theme-btn, html.dark-mode .pub-theme-btn { border-color: #334155; color: #cbd5e1; }
html[data-theme="dark"] .pub-theme-btn:hover, html.dark-mode .pub-theme-btn:hover { background: rgba(10,77,162,0.3); }
html[data-theme="dark"] .pub-nav-burger, html.dark-mode .pub-nav-burger { border-color: #334155; }
html[data-theme="dark"] .pub-nav-burger span, html.dark-mode .pub-nav-burger span { background: #cbd5e1; }
html[data-theme="dark"] .card, html.dark-mode .card { background: #1a2332 !important; border-color: #2d3a4e !important; }
html[data-theme="dark"] .bg-white, html.dark-mode .bg-white { background: #1a2332 !important; }
html[data-theme="dark"] .bg-light, html.dark-mode .bg-light { background: #1a2332 !important; }
html[data-theme="dark"] .text-muted, html.dark-mode .text-muted { color: #94a3b8 !important; }
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,
html[data-theme="dark"] h4,html[data-theme="dark"] h5,html[data-theme="dark"] h6,
html.dark-mode h1,html.dark-mode h2,html.dark-mode h3,
html.dark-mode h4,html.dark-mode h5,html.dark-mode h6 { color: #e2e8f0; }
html[data-theme="dark"] .property-card, html.dark-mode .property-card { background: #1a2332 !important; border-color: #2d3a4e !important; }
html[data-theme="dark"] .form-control,html[data-theme="dark"] .form-select,
html.dark-mode .form-control,html.dark-mode .form-select { background: #243044 !important; border-color: #2d3a4e !important; color: #e2e8f0 !important; }
html[data-theme="dark"] .border, html.dark-mode .border { border-color: #2d3a4e !important; }
html[data-theme="dark"] section.bg-light,html[data-theme="dark"] .py-4.bg-warning-subtle,
html.dark-mode section.bg-light,html.dark-mode .py-4.bg-warning-subtle { background: #1a2332 !important; }
html[data-theme="dark"] .section-title,html.dark-mode .section-title { color: #e2e8f0; }
html[data-theme="dark"] .testimonial-card,html.dark-mode .testimonial-card { background: #1a2332 !important; border-color: #2d3a4e !important; }

/* ---- BASE ---- */
* { box-sizing: border-box; }
body { font-family: var(--font); color: var(--pub-text); }

/* ============================================================
   FLOATING CAPSULE NAVBAR
   ============================================================ */
.pub-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1200px;
  z-index: 1050;
  font-family: var(--font);
}

.pub-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--nav-charcoal);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
  padding: 0 8px 0 12px;
  height: 58px;
  transition: box-shadow 0.3s ease, background 0.3s ease;
  gap: 8px;
}
.pub-nav.scrolled .pub-nav-inner {
  box-shadow: 0 16px 48px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.1);
}

.pub-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.pub-nav-logo {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--primary);
  padding: 2px;
  background: #fff;
}
.brand-title { font-size: 13px; font-weight: 700; color: var(--primary); line-height: 1.2; white-space: nowrap; }
.brand-sub-text { font-size: 9px; color: #64748b; white-space: nowrap; }

.pub-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.pub-nav-links a {
  display: block;
  padding: 6px 11px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.pub-nav-links a:hover { background: #f0f4ff; color: var(--primary); }
.pub-nav-links a.active { background: var(--primary); color: #fff; font-weight: 600; }

.pub-nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pub-nav-verify {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 24px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #fde68a;
  transition: background 0.2s;
  white-space: nowrap;
}
.pub-nav-verify:hover { background: #fde68a; color: #78350f; }

.pub-theme-btn {
  background: none;
  border: 1.5px solid #e2e8f0;
  border-radius: 50%;
  width: 34px; height: 34px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #374151; font-size: 14px;
  transition: all 0.2s; padding: 0; flex-shrink: 0;
}
.pub-theme-btn:hover { background: #e8f0fc; border-color: var(--primary); color: var(--primary); }

.pub-nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 24px;
  background: var(--nav-charcoal);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.22s ease, transform 0.15s ease;
  white-space: nowrap;
}
.pub-nav-cta:hover { background: #0f0f23; color: #fff; transform: translateY(-1px); }

.pub-nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer; padding: 0;
  transition: border-color 0.2s;
}
.pub-nav-burger span {
  display: block;
  width: 17px; height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.pub-nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pub-nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.pub-nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pub-nav-mobile {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border: 2px solid var(--nav-charcoal);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.16);
  padding: 10px 8px;
  transform: scaleY(0.92) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.pub-nav-mobile.open {
  transform: scaleY(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.pub-nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.pub-nav-mobile a {
  display: block;
  padding: 10px 16px;
  border-radius: 10px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.pub-nav-mobile a:hover, .pub-nav-mobile a.active { background: #f0f4ff; color: var(--primary); }
.pub-mobile-cta {
  display: block;
  text-align: center;
  padding: 11px 16px !important;
  background: var(--nav-charcoal) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  margin-top: 4px;
}
.pub-mobile-cta:hover { background: #0f0f23 !important; color: #fff !important; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,77,162,0.82) 0%, rgba(5,25,70,0.78) 100%);
  z-index: 1;
}
.slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 90px;
  color: #fff;
}
.slide-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.slide-title {
  font-size: clamp(2.1rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
}
.slide-title span { color: #90CAF9; }
.slide-text {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.65;
}
.hero-stats {
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);
}
.hero-stat-value { font-size: 2.1rem; font-weight: 800; }
.hero-stat-label { font-size: 11px; opacity: 0.78; text-transform: uppercase; letter-spacing: 1px; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  backdrop-filter: blur(6px);
}
.slider-arrow:hover { background: rgba(255,255,255,0.3); transform: translateY(-50%) scale(1.08); }
.slider-prev { left: 24px; }
.slider-next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  padding: 0;
}
.slider-dot.active { background: #fff; width: 28px; }

.slider-progress-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 10;
}
.slider-progress-bar { height: 100%; width: 0%; background: rgba(255,255,255,0.8); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section-title { font-size: 2rem; font-weight: 700; color: #1a2332; }
.section-subtitle { color: #64748b; font-size: 1rem; }
.section-badge { display: inline-block; background: #e8f0fc; color: var(--primary); font-size: 11.5px; font-weight: 600; padding: 5px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; }

/* ---- PROPERTY CARD ---- */
.property-card { border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; transition: all 0.3s ease; background: #fff; }
.property-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(10,77,162,0.12); }
.property-card .card-img-wrapper { position: relative; height: 220px; overflow: hidden; }
.property-card .card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.property-card:hover .card-img-wrapper img { transform: scale(1.05); }
.property-badge { position: absolute; top: 14px; left: 14px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; }
.property-price { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.property-features { font-size: 12.5px; color: #64748b; }
.property-features i { color: var(--primary); }

/* ---- VERIFY / CTA / TESTIMONIALS / FOOTER ---- */
.verify-section { background: linear-gradient(135deg, #0A4DA2 0%, #1976D2 100%); }
.verify-card { background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.verify-item .label { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; display: block; }
.verify-item .value { font-size: 14px; font-weight: 600; color: #1a2332; }
.testimonial-card { background: #fff; border-radius: 16px; padding: 28px; border: 1px solid #e2e8f0; transition: all 0.3s; }
.testimonial-card:hover { box-shadow: 0 10px 30px rgba(10,77,162,0.1); }
.testimonial-stars { color: #f59e0b; font-size: 14px; }
.public-footer { background: var(--primary); }
.public-footer a.hover-white:hover { color: #fff !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.contact-card { border: none; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .pub-nav-links a { padding: 6px 8px; font-size: 12.5px; }
}
@media (max-width: 991.98px) {
  .pub-nav-links { display: none; }
  .pub-nav-burger { display: flex; }
  .pub-nav-verify { display: none !important; }
}
@media (max-width: 767.98px) {
  .pub-nav { top: 10px; width: calc(100% - 20px); }
  .pub-nav-inner { height: 52px; padding: 0 6px 0 10px; }
  .pub-nav-cta span { display: none; }
  .pub-nav-cta { padding: 8px 12px; }
  .hero-slider { min-height: 500px; }
  .slide-title { font-size: clamp(1.7rem, 8vw, 2.5rem); }
  .slide-text { font-size: 0.93rem; }
  .slider-arrow { width: 38px; height: 38px; font-size: 14px; }
  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }
  .property-card .card-img-wrapper { height: 180px; }
  .section-title { font-size: 1.65rem; }
}
@media (max-width: 480px) {
  .pub-nav { width: calc(100% - 16px); }
  .slide-content { padding-top: 80px; }
  .hero-stats { padding: 14px; }
  .hero-stat-value { font-size: 1.6rem; }
}
