/* ==========================================================================
   Corishta — brand stylesheet
   Bootstrap 5.3 provides grid, spacing, components; this file layers the
   brand's visual identity on top of it.
   ========================================================================== */

:root {
  --c-forest: #1f3d3a;
  --c-forest-dark: #142826;
  --c-forest-light: #2c534f;
  --c-terracotta: #f7565e;
  --c-terracotta-dark: #bd1b18;
  --c-cream: #faf6f0;
  --c-cream-deep: #f2eadf;
  --c-sand: #ede2d3;
  --c-ink: #23201c;
  --c-muted: #6b6259;
  --c-line: #e4dccf;
  --c-white: #ffffff;
  --c-success: #4a7c59;
  --font-display: 'Outfit', 'Georgia', serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-lg: 1.1rem;
  --radius-md: 0.7rem;
  --radius-sm: 0.4rem;
  --shadow-soft: 0 10px 30px rgba(20, 40, 38, 0.08);
  --shadow-card: 0 4px 18px rgba(20, 40, 38, 0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background-color: var(--c-cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-forest-dark);
  letter-spacing: -0.01em;
}

h4, h5, h6 { font-family: var(--font-body); font-weight: 700; }

a { color: var(--c-forest); text-decoration: none; }
a:hover { color: var(--c-terracotta-dark); }

.skip-link {
  position: absolute; top: 0; left: 0; z-index: 2000;
  background: var(--c-forest); color: #fff; padding: .6rem 1rem;
}

:focus-visible {
  outline: 3px solid var(--c-terracotta);
  outline-offset: 2px;
}

.section { padding: 4.5rem 0; }
.section-sm { padding: 2.75rem 0; }
@media (max-width: 767.98px) {
  .section { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }
}

.section-cream { background: var(--c-cream); }
.section-sand { background: var(--c-sand); }
.section-forest { background: var(--c-forest); color: #eef3f1; }
.section-forest h2, .section-forest h3 { color: #fff; }
.section-forest .text-muted-on-forest { color: #b9cbc7; }

.eyebrow {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--c-terracotta-dark);
  display: inline-block; margin-bottom: .6rem;
}
.section-forest .eyebrow { color: #e7b79a; }

.lead-muted { color: var(--c-muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--c-terracotta); border-color: var(--c-terracotta); color: #fff;
  font-weight: 500; padding: .65rem 1.4rem; border-radius: var(--radius-sm);
}
.btn-brand:hover, .btn-brand:focus {
  background: var(--c-terracotta-dark); border-color: var(--c-terracotta-dark); color: #fff;
}
.btn-brand-outline {
  border: 2px solid var(--c-forest); color: var(--c-forest); font-weight: 700;
  padding: .6rem 1.4rem; border-radius: var(--radius-sm); background: transparent;
}
.btn-brand-outline:hover { background: var(--c-forest); color: #fff; }
.btn-outline-nav {
  border: 1.5px solid var(--c-forest); color: var(--c-forest); font-weight: 600;
  border-radius: var(--radius-sm);
}
.btn-outline-nav:hover { background: var(--c-forest); color: #fff; }
.btn-lang {
  border: 1.5px solid var(--c-line); background: #fff; color: var(--c-forest);
  font-weight: 700; font-size: .82rem; padding: .35rem .7rem; border-radius: var(--radius-sm);
}
.btn-lg-brand { padding: .85rem 2rem; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
  background: rgba(250, 246, 240, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-line);
  position: sticky; top: 0; z-index: 1030;
}
.navbar { padding: .85rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--c-forest-dark); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--c-forest); color: #fff; font-family: var(--font-display);
  font-size: 1.05rem;
}
.main-nav .nav-link {
  color: var(--c-ink); font-weight: 600; padding: .5rem .9rem; border-radius: var(--radius-sm);
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--c-forest); background: var(--c-sand); }

/* Three-column nav: [left spacer] [menu center] [actions right] */
.site-nav-cols { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; width: 100%; }
.site-nav-col { min-width: 0; display: flex; align-items: center; }
.site-nav-col--left { justify-content: flex-start; }
.site-nav-col--right { justify-content: flex-end; }
.main-nav--center { justify-content: center; margin: 0; }
.mobile-nav .nav-link { font-size: 1.05rem; padding: .65rem 0; color: var(--c-ink); font-weight: 600; border-bottom: 1px solid var(--c-line); }
.mobile-nav .nav-link.active { color: var(--c-terracotta-dark); }
.offcanvas { background: var(--c-cream); }

.breadcrumb-bar { background: var(--c-sand); padding: .6rem 0; }
.breadcrumb-bar .breadcrumb { font-size: .85rem; margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--c-forest) 0%, var(--c-forest-dark) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(200,114,79,.28), transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .lead-muted { color: #cfe0db; }

.hero-search-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  padding: 1.5rem; color: var(--c-ink);
}

/* ---------- Stats ---------- */
.stat-number { font-family: var(--font-display); font-size: 2.4rem; color: var(--c-forest); font-weight: 700; }

/* ---------- Cards ---------- */
.card-soft {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 1.75rem; height: 100%;
}
.icon-tile {
  width: 3rem; height: 3rem; border-radius: var(--radius-md); background: var(--c-sand);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--c-forest);
  margin-bottom: 1rem;
}
.category-card {
  border-radius: var(--radius-lg); overflow: hidden; position: relative; color: #fff;
  min-height: 220px; display: flex; align-items: flex-end; box-shadow: var(--shadow-card);
}
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.category-card::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,40,38,.85), rgba(20,40,38,.1)); z-index: 1;
}
.category-card .category-body { position: relative; z-index: 2; padding: 1.25rem; }

/* ---------- Profile cards ---------- */
.profile-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card); height: 100%; transition: transform .15s ease, box-shadow .15s ease;
}
.profile-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.profile-card-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--c-sand); }
.profile-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-card-badges { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .35rem; z-index: 2; }
.profile-fav-btn {
  position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: rgba(255,255,255,.92); border: none; display: flex;
  align-items: center; justify-content: center; font-size: 1.1rem; color: var(--c-terracotta);
}
.profile-fav-btn.active { background: var(--c-terracotta); color: #fff; }
.online-dot {
  position: absolute; bottom: .6rem; left: .6rem; z-index: 2; background: rgba(20,40,38,.85);
  color: #b8f0c9; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 1rem;
  display: flex; align-items: center; gap: .35rem;
}
.online-dot::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #4ade80; display: inline-block; }
.badge-verified { background: var(--c-forest); color: #fff; font-weight: 600; font-size: .7rem; padding: .3rem .55rem; }
.badge-compat { background: var(--c-terracotta); color: #fff; font-weight: 700; font-size: .7rem; padding: .3rem .55rem; }
.profile-card-body { padding: 1rem 1.1rem 1.2rem; }
.profile-card-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--c-forest-dark); }
.profile-card-meta { color: var(--c-muted); font-size: .88rem; }
.profile-card-intro { font-size: .88rem; color: var(--c-ink); margin: .5rem 0 .8rem; }
.interest-pill {
  display: inline-block; background: var(--c-sand); color: var(--c-forest-dark); font-size: .72rem;
  font-weight: 600; padding: .25rem .6rem; border-radius: 1rem; margin: 0 .3rem .3rem 0;
}

/* ---------- Profile detail page ---------- */
.profile-hero-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 3/4; }
.profile-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-row { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--c-line); }
.detail-row:last-child { border-bottom: none; }
.compat-ring {
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: conic-gradient(var(--c-terracotta) calc(var(--pct,80) * 1%), var(--c-sand) 0);
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--c-forest-dark);
}
.compat-ring span { background: #fff; width: 3.4rem; height: 3.4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .95rem; }

/* ---------- Steps ---------- */
.step-number {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--c-forest); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Testimonials ---------- */
.story-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 1.75rem; height: 100%; }
.story-avatars { display: flex; align-items: center; }
.story-avatars img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-card); }
.story-avatars img + img { margin-left: -1rem; }

/* ---------- Forms ---------- */
.form-label { font-weight: 700; font-size: .9rem; color: var(--c-forest-dark); }
.form-control, .form-select {
  border-radius: var(--radius-sm); border-color: var(--c-line); padding: .65rem .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--c-forest); box-shadow: 0 0 0 .2rem rgba(31,61,58,.15);
}
.auth-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 2.25rem; }
.form-check-input:checked { background-color: var(--c-forest); border-color: var(--c-forest); }
.progress-steps { display: flex; gap: .4rem; margin-bottom: 1.5rem; }
.progress-steps .step-bar { flex: 1; height: .35rem; border-radius: 1rem; background: var(--c-line); }
.progress-steps .step-bar.active { background: var(--c-terracotta); }

/* ---------- Filters (discover) ---------- */
.filter-panel { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.5rem; }
.offcanvas-filters { background: var(--c-cream); }

/* ---------- FAQ ---------- */
.accordion-button { font-weight: 700; color: var(--c-forest-dark); }
.accordion-button:not(.collapsed) { background: var(--c-sand); color: var(--c-forest-dark); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(31,61,58,.15); }

/* ---------- Messages UI ---------- */
.chat-shell { border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-card); }
.chat-list { max-height: 560px; overflow-y: auto; border-right: 1px solid var(--c-line); }
.chat-list-item { display: flex; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--c-line); cursor: pointer; }
.chat-list-item.active, .chat-list-item:hover { background: var(--c-sand); }
.chat-list-item img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.chat-window { display: flex; flex-direction: column; height: 560px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1.25rem; background: var(--c-cream); }
.bubble { max-width: 75%; padding: .6rem .95rem; border-radius: 1rem; margin-bottom: .6rem; font-size: .92rem; }
.bubble-them { background: #fff; border: 1px solid var(--c-line); border-bottom-left-radius: .25rem; }
.bubble-me { background: var(--c-forest); color: #fff; margin-left: auto; border-bottom-right-radius: .25rem; }
.chat-input-bar { border-top: 1px solid var(--c-line); padding: .85rem; background: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-forest-dark); color: #cfe0db; padding: 4rem 0 2rem; }
.footer-brand { color: #fff !important; margin-bottom: .9rem; }
.footer-brand .brand-mark { background: var(--c-terracotta); }
.footer-about { color: #a9c1bc; font-size: .9rem; max-width: 34ch; }
.footer-heading { font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #e7b79a; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #cfe0db; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.social-icon {
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(255,255,255,.08);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700;
}
.social-icon:hover { background: var(--c-terracotta); color: #fff; }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 2.5rem 0 1.5rem; }
.footer-copy { color: #a9c1bc; font-size: .85rem; }
.newsletter-form .form-control { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.newsletter-form .form-control::placeholder { color: #a9c1bc; }

/* ---------- Misc ---------- */
.divider-dot::before { content: "·"; margin: 0 .4rem; color: var(--c-line); }
.trust-badge-row img, .trust-badge-row .trust-chip {
  display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--c-line);
  border-radius: 2rem; padding: .4rem .9rem; font-size: .82rem; font-weight: 600; color: var(--c-forest-dark);
}
.app-mockup { border-radius: 1.75rem; box-shadow: var(--shadow-soft); max-width: 260px; }

::selection { background: var(--c-terracotta); color: #fff; }

@media (max-width: 575.98px) {
  .hero h1 { font-size: 2rem; }
  .display-lg { font-size: 2rem; }
}
