/* ============================================
   MAIN.CSS - Stiluri globale
   ============================================ */

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--navy, #1C2340);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
}


:root {
  /* === EVEN Brand Kit · v1.1 (calibrare restraint) === */
  --midnight: #1C2340;
  --sage: #7A9B92;          /* brand kit standard (era #5F8A82) */
  --paper: #FAF8F2;         /* NEW · card surface — mai luminos decât bg */
  --linen: #F1F0EC;         /* răcit (era #F5F3EE) */
  --pebble: #E8E5DC;        /* desaturat (era #E0DACC) — doar plate/band */
  --stone: #D6D2C7;         /* răcit (era #D4CEC0) */
  --gold: #C8A96E;          /* rar — italic-cheie în H1/H2 + dark band stats */
  --gold-ink: #8A6D3B;      /* gold pe fundal deschis — WCAG AA */
  --gold-light: #dbbe91;
  --slate-navy: #3B5A7A;
  --warm-white: #E8E5DC;    /* alias pentru --pebble */

  /* Alias pentru compatibilitate */
  --navy: #1C2340;
  --navy-soft: #253060;
  --white: #ffffff;

  /* Gri neutru (UI utilitar) */
  --gray-50: #F1F0EC;
  --gray-100: #e9e7e1;
  --gray-200: #d8d5cc;
  --gray-300: #bfbab0;
  --gray-400: #9a9590;
  --gray-500: #6b6560;
  --gray-600: #4a4640;
  --gray-700: #2e2a25;

  /* Accente per flux */
  --accent-rezidential: #c66b3d;
  --accent-rezidential-soft: #f6e7dd;
  --accent-comercial: #3B5A7A;
  --accent-comercial-soft: #e3edf5;
  --accent-terenuri: #45693d;
  --accent-terenuri-soft: #e3ede0;
  --accent-proiecte: #C8A96E;
  --accent-proiecte-soft: #f5ecda;

  /* Semantic — brand-aligned (Moss, Gold, Burnt Sienna) */
  --success: #5A7A52;
  --warning: #C8A96E;
  --danger: #A8593D;

  /* Shadows — soft, difuze */
  --shadow-sm: 0 1px 2px rgba(28, 35, 64, 0.04);
  --shadow-md: 0 4px 16px rgba(28, 35, 64, 0.06);
  --shadow-lg: 0 12px 40px rgba(28, 35, 64, 0.08);
  --shadow-xl: 0 24px 64px rgba(28, 35, 64, 0.12);

  /* Typography */
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;

  /* Layout */
  --max-w: 1280px;
  --nav-h: 74px;

  /* Radius — organic, pebble-like */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-pill: 999px;

  --transition: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--midnight);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--midnight);
  letter-spacing: 0.005em;
  line-height: 1.15;
}

h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--midnight);
  letter-spacing: -0.005em;
  line-height: 1.3;
}

h1 { font-size: 4rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

/* Highlight — italic pe UN cuvânt într-un H1/H2.
   Culoarea: GOLD (singurul highlight gold pe light mode, momentul de impact al brandului).
   Pentru em în lede/body/card — italic ink, fără culoare (se setează în context). */
.highlight,
h1 em, h2 em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  color: var(--gold-ink);
}

/* Em în context non-titlu: italic, ink, fără culoare */
p em, li em, blockquote em, .lede em, .card-title em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  color: inherit;
}

/* Signature font — Mrs Saint Delafield, doar pe class explicit */
.signature {
  font-family: 'Mrs Saint Delafield', cursive;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--midnight);
  letter-spacing: 0.005em;
}

a {
  color: var(--midnight);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--sage); }

img { max-width: 100%; display: block; }

button { font-family: var(--font-body); cursor: pointer; border: none; }

/* ============================================
   CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}

/* Primar — Midnight + Stone. Default CTA pe light */
.btn-primary {
  background: var(--midnight);
  color: var(--stone);
}
.btn-primary:hover {
  background: var(--navy-soft);
  color: var(--stone);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Primar pe fundal dark — Gold + Midnight */
.btn-primary-dark {
  background: var(--gold);
  color: var(--midnight);
}
.btn-primary-dark:hover {
  background: var(--gold-light);
  color: var(--midnight);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Premium — rar, pagini speciale. Alias păstrat pentru btn-gold */
.btn-gold {
  background: var(--gold);
  color: var(--midnight);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--midnight);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Secundar — outline Sage */
.btn-outline {
  background: transparent;
  color: var(--midnight);
  border-color: var(--sage);
}
.btn-outline:hover {
  background: var(--warm-white);
  border-color: var(--midnight);
  color: var(--midnight);
}

.btn-outline-light {
  background: transparent;
  color: var(--stone);
  border-color: rgba(214, 210, 199, 0.4);
}
.btn-outline-light:hover {
  border-color: var(--stone);
  background: rgba(214, 210, 199, 0.08);
  color: var(--stone);
}

.btn-ghost {
  background: transparent;
  color: var(--midnight);
}
.btn-ghost:hover { background: var(--warm-white); }

.btn-pill { border-radius: var(--r-pill); padding-left: 28px; padding-right: 28px; }

.btn-full { width: 100%; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 240, 236, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(28, 35, 64, 0.08);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.navbar.nav-scrolled {
  height: 62px;
  background: rgba(241, 240, 236, 0.99);
  box-shadow: 0 2px 20px rgba(28, 35, 64, 0.09);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark-svg {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}
.logo-type-svg {
  height: 18px;
  width: auto;
}

/* Footer: logomark SVG apare în Stone (warm off-white) */
.logo-svg-footer {
  filter: brightness(0) invert(0.88) sepia(0.15) saturate(0.5);
}
.logo .logo-mark {
  width: 32px;
  height: 32px;
  background: var(--midnight);
  color: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}
.logo-accent { color: var(--sage); }

/* Logo pe fundal dark (footer, hero) */
.logo-light { color: var(--stone); }
.logo-mark-light {
  background: var(--stone) !important;
  color: var(--midnight) !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  padding: 9px 15px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--sage);
  border-radius: 1px;
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--midnight); }
.nav-link:hover::after { width: 20px; }
.nav-link.active {
  color: var(--midnight);
  font-weight: 600;
}
.nav-link.active::after { width: 20px; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-fav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--navy);
  font-size: 18px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.nav-fav:hover { color: var(--sage); background: var(--gray-50); }

.nav-fav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--sage);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-sans);
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  font-size: 22px;
  color: var(--navy);
  padding: 6px 10px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(160deg, #141929, #1C2340);
  color: var(--stone);
  padding: 72px 0 28px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer h4 {
  color: var(--stone);
  font-size: 11px;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.footer-brand p {
  color: rgba(214, 210, 199, 0.65);
  margin-top: 16px;
  font-size: 14px;
  max-width: 320px;
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: rgba(214, 210, 199, 0.7);
  font-size: 14px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-tagline {
  font-family: 'Mrs Saint Delafield', cursive !important;
  font-weight: 400 !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  color: var(--stone) !important;
  margin-top: 20px !important;
  letter-spacing: 0.005em !important;
  opacity: 0.92;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(95, 138, 130, 0.15);
  color: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid rgba(95, 138, 130, 0.2);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--midnight);
  border-color: var(--gold);
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 8px;
  color: rgba(214, 210, 199, 0.75);
}
.footer-contact i { color: var(--sage); margin-right: 8px; width: 16px; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(214, 210, 199, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(214, 210, 199, 0.45);
  /* hidden admin knock target — keep rapid taps from selecting text, zooming
     or triggering the iOS long-press callout menu */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
}
.badge-vanzare { background: var(--accent-rezidential-soft); color: var(--accent-rezidential); }
.badge-inchiriere { background: var(--accent-comercial-soft); color: var(--accent-comercial); }
.badge-rezidential { background: var(--accent-rezidential-soft); color: var(--accent-rezidential); }
.badge-comercial { background: var(--accent-comercial-soft); color: var(--accent-comercial); }
.badge-teren { background: var(--accent-terenuri-soft); color: var(--accent-terenuri); }
.badge-proiect { background: var(--accent-proiecte-soft); color: #a07c26; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.status-pre-vanzare { background: #3e6b8c; }
.status-construire { background: #d88c2a; }
.status-finalizat { background: #2e7d5b; }

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  background: var(--linen);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--gray-100);
}
.page-header h1 {
  margin-bottom: 8px;
}
.page-header .subtitle {
  color: var(--gray-500);
  font-size: 15px;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs a:hover { color: var(--navy); }

/* ============================================
   IMAGE PLACEHOLDERS (când lipsesc poze)
   ============================================ */
.img-placeholder {
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 14px;
}
.img-placeholder::before {
  content: "\f03e";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-size: 32px;
  opacity: 0.6;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  transition: var(--transition);
}
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(95, 138, 130, 0.15);
}
textarea { resize: vertical; min-height: 100px; }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.section {
  padding: 72px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  h1 { font-size: 2.75rem; }
  h2 { font-size: 1.85rem; }
  .section { padding: 56px 0; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.6rem; }
  .container { padding: 0 16px; }
}

/* ---------- SCROLL TO TOP ---------- */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--midnight);
  color: var(--stone);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 80;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.scroll-top-btn:hover {
  background: var(--gold);
  color: var(--midnight);
}

/* ---------- SKELETON ---------- */
.skeleton-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}
.skeleton-img {
  height: 200px;
}
.skeleton-body {
  padding: 20px;
}
.skeleton-line {
  height: 16px;
  margin-bottom: 10px;
  border-radius: 4px;
}
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-40 { width: 40%; }

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, background 0.3s;
}
.wa-float:hover {
  background: #1ebe5a;
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
}
.wa-float svg {
  display: block;
}
@media (max-width: 760px) {
  .wa-float { bottom: 80px; left: 18px; width: 48px; height: 48px; }
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: var(--midnight);
  color: var(--stone);
  padding: 14px 20px;
  border-top: 1px solid rgba(214, 210, 199, 0.18);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -12px 40px rgba(28, 35, 64, 0.18);
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 240px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(214, 210, 199, 0.85);
}
.cookie-banner-text strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  color: var(--stone);
  margin-bottom: 2px;
  letter-spacing: -0.005em;
}
.cookie-banner-text a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(200, 169, 110, 0.5);
  text-underline-offset: 3px;
}
.cookie-banner-text a:hover { color: var(--stone); }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 10px 22px;
  border: 1px solid rgba(214, 210, 199, 0.35);
  background: transparent;
  color: var(--stone);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.cookie-btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--midnight);
}
.cookie-btn-primary:hover {
  background: #d6b97e;
  border-color: #d6b97e;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--linen);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-md);
  padding: 16px 24px 24px;
  z-index: 99;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--gray-100);
}
