/* ══════════════════════════════════════════════
   УНИ-София | Property Management
   Shared Stylesheet
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy: #0B1D3A;
  --navy-light: #132B52;
  --gold: #C9A84C;
  --gold-light: #E4CB7A;
  --gold-pale: #F5EDD6;
  --cream: #FAF8F2;
  --white: #FFFFFF;
  --gray-100: #F5F5F3;
  --gray-200: #E8E6E1;
  --gray-300: #D1CEC7;
  --gray-400: #9B978E;
  --gray-500: #6B675E;
  --gray-600: #4A4740;
  --text: #1A1A1A;
  --text-light: #5A5A5A;
  --shadow-sm: 0 1px 3px rgba(11,29,58,0.08);
  --shadow-md: 0 4px 16px rgba(11,29,58,0.1);
  --shadow-lg: 0 8px 32px rgba(11,29,58,0.14);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.fd { font-family: 'Cormorant Garamond', serif; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── HEADER ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,29,58,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-mark {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; font-size: 18px; color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.logo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 700; color: var(--white);
  letter-spacing: 1px; line-height: 1.1;
}
.logo-sub {
  font-size: 10px; color: var(--gold);
  letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
}

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 8px 16px; color: rgba(255,255,255,0.7);
  font-size: 14px; font-weight: 500; border-radius: 8px;
  transition: var(--transition); letter-spacing: 0.3px; white-space: nowrap;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav a.active { color: var(--gold); background: rgba(201,168,76,0.1); }
.nav-cta {
  margin-left: 8px; padding: 8px 20px !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy) !important; font-weight: 600 !important;
  border-radius: 8px !important; font-size: 13px !important;
  letter-spacing: 0.5px; box-shadow: var(--shadow-gold);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(201,168,76,0.35); }

.hamburger {
  display: none; background: none; border: none; color: var(--white);
  cursor: pointer; font-size: 28px; line-height: 1; padding: 4px;
}

@media (max-width: 768px) {
  .nav {
    display: none; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(11,29,58,0.98); padding: 16px;
    border-bottom: 1px solid rgba(201,168,76,0.15); gap: 4px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
  .hamburger { display: block; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-size: 15px; font-weight: 600;
  border-radius: 10px; border: none; cursor: pointer;
  transition: var(--transition); letter-spacing: 0.3px;
  font-family: 'DM Sans', sans-serif;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy); box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.4); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }

.msg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 600;
  transition: var(--transition); border: none; cursor: pointer; color: white;
}
.viber-btn { background: #7360F2; }
.viber-btn:hover { background: #6050d0; }
.whatsapp-btn { background: #25D366; }
.whatsapp-btn:hover { background: #1eb954; }

/* ── SECTIONS ── */
.section { padding: 80px 24px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; font-size: 11px; font-weight: 600; color: var(--gold);
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 48px); font-weight: 700;
  color: var(--navy); line-height: 1.15;
}
.section-sub {
  font-size: 17px; color: var(--text-light); margin-top: 16px;
  max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 130px 24px 60px; background: var(--navy);
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 60%);
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 56px); color: var(--white);
  font-weight: 700; position: relative;
}
.page-hero h1 .g { color: var(--gold); }
.page-hero .ph-desc {
  color: rgba(255,255,255,0.5); font-size: 16px;
  margin-top: 12px; position: relative;
}

/* ── CARDS ── */
.grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--gray-200); transition: var(--transition);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0; transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(201,168,76,0.2); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(201,168,76,0.05));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg {
  width: 24px; height: 24px; stroke: var(--gold);
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 12px;
}
.card > p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

.features { margin-top: 16px; list-style: none; }
.features li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--gray-500); margin-bottom: 6px;
}
.features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ── STATS BAR ── */
.stats {
  background: var(--white); border-top: 3px solid var(--gold);
  padding: 40px 24px; box-shadow: var(--shadow-lg);
}
.stats-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; text-align: center;
}
.stat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px; font-weight: 700; color: var(--navy); line-height: 1;
}
.stat-l { font-size: 13px; color: var(--gray-400); margin-top: 4px; }

/* ── HERO (homepage) ── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--navy); position: relative; overflow: hidden;
  padding: 100px 24px 80px; text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.05) 0%, transparent 40%);
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2); border-radius: 100px;
  color: var(--gold); font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 32px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 7vw, 72px); font-weight: 700;
  color: var(--white); line-height: 1.1; margin-bottom: 24px;
}
.hero h1 .g { color: var(--gold); }
.hero-desc {
  font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,0.6);
  line-height: 1.7; margin-bottom: 40px; max-width: 600px;
  margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── PROCESS ── */
.process-section {
  background: var(--navy); position: relative; overflow: hidden;
}
.process-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.04) 0%, transparent 60%);
}
.process-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; position: relative;
}
.step { text-align: center; padding: 24px; position: relative; }
.step-n {
  width: 48px; height: 48px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 700; color: var(--navy);
}
.step h4 { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.step p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ── PORTAL CARDS ── */
.portal-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.portal-card {
  display: block; padding: 32px; border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200); text-align: center;
  transition: var(--transition); cursor: pointer;
}
.portal-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.portal-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: var(--gray-100); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.portal-icon svg {
  width: 24px; height: 24px; stroke: var(--navy);
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.portal-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 8px;
}
.portal-card p { font-size: 13px; color: var(--gray-400); line-height: 1.6; }
.portal-badge {
  display: inline-block; margin-top: 16px; padding: 6px 14px;
  background: rgba(201,168,76,0.1); border-radius: 100px;
  font-size: 11px; font-weight: 600; color: var(--gold); letter-spacing: 1px;
}

/* ── CTA SECTION ── */
.cta-section {
  background: var(--navy); text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 60%);
}
.cta-inner { position: relative; max-width: 600px; margin: 0 auto; }

/* ── ABOUT BLOCKS ── */
.about-content { max-width: 900px; margin: 0 auto; padding: 60px 24px; }
.about-block {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px;
  margin-bottom: 24px; border: 1px solid var(--gray-200);
}
.about-block h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700;
  color: var(--navy); margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.about-block h2 svg { stroke: var(--gold); width: 28px; height: 28px; fill: none; stroke-width: 2; }
.about-block p { font-size: 15px; color: var(--text-light); line-height: 1.8; }
.about-block p + p { margin-top: 16px; }

.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 24px;
}
.val {
  padding: 24px; background: var(--gray-100);
  border-radius: var(--radius); text-align: center;
}
.val-icon {
  width: 44px; height: 44px; margin: 0 auto;
  background: rgba(201,168,76,0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.val-icon svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 2; }
.val h4 { font-size: 15px; font-weight: 600; color: var(--navy); margin-top: 12px; margin-bottom: 8px; }
.val p { font-size: 13px; color: var(--gray-400); line-height: 1.6; }

.badge-soon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2); border-radius: 100px;
  font-size: 12px; font-weight: 600; color: var(--gold); margin-top: 16px;
}

/* ── CONTACT ── */
.contact-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info {
  background: var(--navy); border-radius: var(--radius-lg); padding: 40px;
  color: var(--white); position: relative; overflow: hidden;
}
.contact-info::before {
  content: ''; position: absolute; top: -50%; right: -30%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,168,76,0.1), transparent); border-radius: 50%;
}
.contact-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 700; margin-bottom: 24px; position: relative;
}
.ci { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; position: relative; }
.ci-icon {
  width: 40px; height: 40px; background: rgba(201,168,76,0.15);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ci-icon svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ci-text h4 { font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 500; margin-bottom: 4px; }
.ci-text p { font-size: 15px; color: var(--white); line-height: 1.5; }

.contact-form {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px;
  border: 1px solid var(--gray-200);
}
.contact-form h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 24px;
}
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-500); margin-bottom: 6px; }
.fg input, .fg textarea, .fg select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--gray-200); border-radius: 8px;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--text); background: var(--gray-100);
  transition: var(--transition); outline: none;
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.fg textarea { min-height: 120px; resize: vertical; }

.msg-links { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* ── LOGIN ── */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--navy); padding: 100px 24px 60px; position: relative;
}
.login-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(201,168,76,0.06) 0%, transparent 50%);
}
.login-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 48px 40px;
  width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); position: relative;
}
.login-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 8px;
}
.login-card .sub { text-align: center; font-size: 14px; color: var(--gray-400); margin-bottom: 32px; }

.tabs { display: flex; gap: 4px; background: var(--gray-100); border-radius: 10px; padding: 4px; margin-bottom: 28px; }
.tab {
  flex: 1; padding: 10px; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; border-radius: 8px;
  transition: var(--transition); background: transparent; color: var(--gray-400);
  font-family: 'DM Sans', sans-serif;
}
.tab.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }

.login-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--gray-400); }

.dev-notice {
  margin-top: 24px; padding: 16px; background: var(--gray-100);
  border-radius: 10px; text-align: center;
}
.dev-notice p { font-size: 12px; color: var(--gray-400); margin-top: 8px; line-height: 1.5; }

/* ── FOOTER ── */
.footer {
  background: var(--navy); padding: 48px 24px 24px;
  border-top: 1px solid rgba(201,168,76,0.1);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; margin-top: 8px; }
.footer-col h4 {
  font-size: 12px; color: var(--gold); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 16px; font-weight: 600;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.5);
  margin-bottom: 8px; transition: var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center; font-size: 12px; color: rgba(255,255,255,0.3);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim { animation: fadeUp 0.7s ease both; }
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.3s; }
.anim-d4 { animation-delay: 0.4s; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
