/* ============================================
   VIROK SOVEREIGN REALTY — PROFESSIONAL DESIGN SYSTEM
   Clean White · Navy Blue · Royal Gold Accents
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  /* Core Palette */
  --white:       #FFFFFF;
  --off-white:   #F5F5F5;
  --bg:          #F5F5F5;
  --surface:     #FFFFFF;
  --border:      #E8E8E8;
  --border-dark: #D1D1D1;

  /* Black/Dark System */
  --navy:        #000000; 
  --navy-mid:    #1A1A1A;
  --navy-light:  #333333;
  --navy-dim:    rgba(0, 0, 0, 0.05);

  /* Green Accent */
  --accent:      #54C239;
  --accent-dim:  rgba(84, 194, 57, 0.12);
  --accent-gold: #4ECE2E;

  /* Text */
  --text-primary:   #000000;
  --text-secondary: #787878;
  --text-muted:     #A5A5A5;
  --text-light:     #C4C4C4;

  /* Status */
  --green:       #16A34A;
  --green-bg:    rgba(22,163,74,0.08);
  --blue:        #2563EB;
  --blue-bg:     rgba(37,99,235,0.08);
  --red:         #DC2626;
  --red-bg:      rgba(220,38,38,0.08);

  --radius-sm:   5px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --shadow-sm:   0 1px 4px rgba(27,46,75,0.08);
  --shadow-md:   0 4px 16px rgba(27,46,75,0.10);
  --shadow-lg:   0 8px 32px rgba(27,46,75,0.12);
  --shadow-premium: 0 10px 40px -10px rgba(27,46,75,0.18);
  
  /* Glassmorphism */
  --glass-bg:     rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur:   12px;
  
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}
html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
  font-size: 16px;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--border); }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 99px; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 { font-family: 'Roboto', sans-serif; font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h4, h5, h6 { font-family: 'Roboto', sans-serif; font-weight: 600; color: var(--text-primary); }

/* ============================================
   HEADER
   ============================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

header.scrolled { 
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm); 
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px; /* Balanced size */
  width: auto;
  object-fit: contain;
  display: block;
}

header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

header nav a:not(.btn) {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
}

header nav a:not(.btn) i, 
header nav a:not(.btn) svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.5px;
  color: var(--accent);
  opacity: 0.9;
  transition: all 0.2s ease;
}

header nav a:not(.btn):hover { 
  color: var(--navy);
}

header nav a:not(.btn):hover i,
header nav a:not(.btn):hover svg {
  opacity: 1;
  stroke-width: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  background: var(--accent);
  color: var(--white);
}

.btn:hover {
  background: var(--navy);
  transform: none;
  box-shadow: none;
  color: var(--white);
}

.btn i,
.btn svg {
  width: 15px !important;
  height: 15px !important;
  stroke-width: 2px !important;
  color: inherit !important;
  opacity: 1 !important;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--navy-dim);
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--border);
  color: var(--navy);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: #9E7C22;
  color: var(--white);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

input, select, textarea {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

input::placeholder, textarea::placeholder { color: var(--text-light); }

input:focus, select:focus, textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,46,75,0.10);
}

select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231B2E4B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

select option { background: var(--white); color: var(--text-primary); }
textarea { resize: vertical; min-height: 90px; }
input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--navy); }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.75rem;
  box-shadow: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-md);
}

/* ============================================
   SIDEBAR
   ============================================ */
sidebar {
  width: 220px;
  min-height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  border-left: 3px solid transparent;
  margin: 1px 0;
}

.sidebar a:hover {
  color: var(--navy);
  background: rgba(0, 0, 0, 0.04);
}

.sidebar a.active {
  color: var(--navy);
  background: var(--accent-dim);
  border-left-color: var(--accent);
}

.sidebar a i, .sidebar a svg {
  width: 15px; height: 15px; flex-shrink: 0;
}

/* ============================================
   BADGE / PILL
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-navy { background: var(--navy-dim); color: var(--navy); border: 1px solid rgba(27,46,75,0.15); }
.badge-green { background: var(--green-bg); color: var(--green); border: 1px solid rgba(22,163,74,0.2); }
.badge-blue { background: var(--blue-bg); color: var(--blue); border: 1px solid rgba(37,99,235,0.2); }
.badge-red { background: var(--red-bg); color: var(--red); border: 1px solid rgba(220,38,38,0.2); }
.badge-gold { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(184,146,42,0.2); }

/* ============================================
   TABLE
   ============================================ */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

thead tr { border-bottom: 1.5px solid var(--border); }
thead th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--off-white); }

tbody td {
  padding: 13px 14px;
  color: var(--text-primary);
  vertical-align: middle;
}

/* ============================================
   DIVIDERS
   ============================================ */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================
   UTILITY
   ============================================ */
.navy { color: var(--navy); }
.accent { color: var(--accent); }
.muted { color: var(--text-muted); }

.section-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(184,146,42,0.2); }
  50% { box-shadow: 0 0 20px rgba(184,146,42,0.4); }
  100% { box-shadow: 0 0 5px rgba(184,146,42,0.2); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

.premium-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.premium-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
  border-color: var(--accent);
}

.spin { animation: spin 1.2s linear infinite; }

/* ============================================
   MOBILE MENU (PREMIUM REDESIGN)
   ============================================ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 32px 36px 36px;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.close-menu {
  position: absolute;
  top: 24px; right: 24px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.close-menu:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
}

.mobile-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: rgba(0, 0, 0, 0.02);
  text-decoration: none;
}

.mobile-menu.active .mobile-links a {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delay for links */
.mobile-links a:nth-child(1) { transition-delay: 0.08s; }
.mobile-links a:nth-child(2) { transition-delay: 0.16s; }
.mobile-links a:nth-child(3) { transition-delay: 0.24s; }
.mobile-links a:nth-child(4) { transition-delay: 0.32s; }
.mobile-links a:nth-child(5) { transition-delay: 0.40s; }
.mobile-links a:nth-child(6) { transition-delay: 0.48s; }

.mobile-links a i,
.mobile-links a svg {
  width: 18px !important;
  height: 18px !important;
  color: var(--accent);
  flex-shrink: 0;
}

.mobile-links a:hover {
  /* Use darker text on hover so links remain visible on the light mobile menu */
  color: var(--navy);
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.04);
  padding-left: 22px;
}

@media (max-width: 1024px) {
  header { padding: 0 16px; height: 56px; }
  .desktop-nav { display: none; }
  .mobile-toggle { 
    display: flex !important; 
    align-items: center; 
    justify-content: center;
    width: 38px; height: 38px;
    background: var(--navy-dim);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    color: var(--navy);
    flex-shrink: 0;
  }
  /* Top bar mobile */
  .top-bar {
    padding: 5px 14px !important;
    flex-direction: column !important;
    gap: 2px !important;
    text-align: center !important;
    font-size: 9px !important;
  }
  .top-bar-left {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  /* Logo mobile */
  .logo-img { height: 32px !important; }
  .logo span:first-of-type { font-size: 16px !important; }
  .logo span:last-of-type { font-size: 8px !important; letter-spacing: 0.25em !important; }
  /* Footer */
  footer { padding: 36px 16px 20px !important; }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 6px !important;
    text-align: center !important;
    font-size: 10px !important;
  }
  /* Section */
  section { padding: 44px 16px !important; }
  /* Sidebar */
  .sidebar { width: 100%; min-height: auto; position: relative; height: auto; }
}

@media (max-width: 480px) {
  header { padding: 0 12px; height: 52px; }
  .logo-img { height: 28px !important; }
  .logo span:first-of-type { font-size: 13px !important; }
  .logo span:last-of-type { font-size: 7px !important; letter-spacing: 0.18em !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .mobile-menu { padding: 24px 20px 28px !important; }
}

@media (max-width: 360px) {
  header { padding: 0 10px; }
  .logo-img { height: 24px !important; }
  .logo span:first-of-type { font-size: 11px !important; }
  .btn { padding: 8px 14px; font-size: 12px; }
}
.mobile-toggle { display: none; }

/* Responsive Form Helpers */
.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 576px) {
  body.form-body, body:has(.form-container) {
    padding: 16px 12px !important;
  }
  .form-container, .auth-card {
    padding: 24px 16px !important;
  }
  .form-grid-2col, .field-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Wishlist card like button effects */
.card-like-btn:hover {
  transform: scale(1.1);
  background-color: var(--white) !important;
}
.card-like-btn:active {
  transform: scale(0.95);
}
