/* ==========================================================================
   MCon & Associates — Design System
   Palette:  navy #142238 (authority) · gold #B4923D (premium accent)
             brown #6E4A34 (from mark) · cream #FAF8F4 · ink #1F2430
   Type:     Fraunces (display serif, headings) / Inter (body) /
             IBM Plex Mono (statute-style labels, figures)
   Signature: fine "ledger rule" hairlines + statute-style "§" section
              markers — a nod to the firm's finance-ledger and legal-code
              world, used as structure rather than decoration.
   ========================================================================== */

:root {
  --navy: #142238;
  --navy-deep: #0D1729;
  --gold: #B4923D;
  --gold-light: #D8BD7C;
  --brown: #6E4A34;
  --cream: #FAF8F4;
  --grey-bg: #F1EFEA;
  --ink: #1F2430;
  --ink-soft: #545B6B;
  --line: #E3DFD5;
  --white: #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, Segoe UI, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 4px;
  --shadow-soft: 0 12px 32px -16px rgba(20, 34, 56, 0.18);
  --shadow-card: 0 2px 0 rgba(20, 34, 56, 0.04), 0 16px 40px -24px rgba(20, 34, 56, 0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.65;
}

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

h1 { font-weight: 500; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

::selection { background: var(--gold-light); color: var(--navy-deep); }

.container-xl { max-width: 1240px; margin-inline: auto; padding-inline: 1.25rem; }

/* -------------------------------------------------- Eyebrow / statute marker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "§";
  font-size: 1rem;
  color: var(--brown);
}

/* -------------------------------------------------- Ledger rule texture */
.ledger-rules {
  position: relative;
}
.ledger-rules::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(180, 146, 61, 0.10) 0,
    rgba(180, 146, 61, 0.10) 1px,
    transparent 1px,
    transparent 34px
  );
  pointer-events: none;
}

/* -------------------------------------------------- Buttons */
.btn-gold {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  padding: 0.72rem 1.6rem;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-deep); }

.btn-outline-cream {
  border: 1px solid rgba(250, 248, 244, 0.45);
  color: var(--cream);
  padding: 0.7rem 1.55rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.2s ease;
}
.btn-outline-cream:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(255,255,255,0.03); }

.btn-navy {
  background: var(--navy);
  border: 1px solid var(--navy);
  color: var(--cream);
  font-weight: 600;
  padding: 0.72rem 1.6rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--gold-light); }

.btn-outline-navy {
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 0.7rem 1.55rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.2s ease;
}
.btn-outline-navy:hover { background: var(--navy); color: var(--cream); }

/* -------------------------------------------------- Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .navbar-brand img { height: 42px; }
.site-header .nav-link {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.5rem 0.85rem !important;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--navy); }
.site-header .nav-link.active { border-bottom: 2px solid var(--gold); }

/* -------------------------------------------------- Hero */
.hero {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--cream);
  padding: 6.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}
.hero h1, .hero-slide-bg h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  line-height: 1.12;
}
.hero-slide-bg h1 { max-width: 15ch; }
.hero .lead, .hero-slide-bg .lead { color: rgba(250, 248, 244, 0.78); font-size: 1.12rem; max-width: 46ch; }
.hero .trust-strip, .hero-slide-bg .trust-strip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  border-top: 1px solid rgba(216, 189, 124, 0.25);
  padding-top: 1.1rem;
  margin-top: 2.5rem;
}

/* -------------------------------------------------- Full-width hero slider */
.hero-slider { position: relative; }
.hero-slide-bg {
  position: relative;
  min-height: 620px;
  background-color: var(--navy-deep);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,23,41,0.94) 0%, rgba(13,23,41,0.84) 42%, rgba(13,23,41,0.52) 72%, rgba(13,23,41,0.22) 100%);
}
.hero-slide-bg .container-xl { z-index: 1; }
@media (max-width: 767.98px) {
  .hero-slide-bg { min-height: 560px; }
  .hero-slide-overlay { background: linear-gradient(180deg, rgba(13,23,41,0.75) 0%, rgba(13,23,41,0.92) 55%, rgba(13,23,41,0.96) 100%); }
}

/* -------------------------------------------------- Section rhythm */
section { padding: 5rem 0; }
.section-grey { background: var(--grey-bg); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-heading { max-width: 62ch; }
.section-heading p { color: var(--ink-soft); font-size: 1.05rem; }

/* -------------------------------------------------- Cards */
.value-card, .service-card, .industry-card, .expert-card, .approach-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.value-card:hover, .service-card:hover, .industry-card:hover, .expert-card:hover, .approach-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
  border-color: var(--gold-light);
}
.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grey-bg);
  color: var(--brown);
  border-radius: var(--radius);
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}
.service-card .card-icon { color: var(--gold); background: var(--navy); }

/* -------------------------------------------------- Process steps */
.process-step { position: relative; padding-left: 0; }
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
}
.process-step:not(:last-child) {
  border-right: 1px solid var(--line);
}

/* -------------------------------------------------- Testimonials */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.testimonial-card .stars { color: var(--gold); letter-spacing: 0.15em; }
.testimonial-card .quote-mark { font-family: var(--font-display); font-size: 3rem; color: var(--gold-light); line-height: 0.5; display: block; margin-bottom: 0.5rem; }

/* -------------------------------------------------- Rich-text article body (Quill output) */
.article-body h1, .article-body h2, .article-body h3 { margin-top: 1.6em; margin-bottom: 0.6em; }
.article-body p { margin-bottom: 1.1em; color: var(--ink); }
.article-body ul, .article-body ol { margin-bottom: 1.1em; padding-left: 1.4em; }
.article-body blockquote { border-left: 3px solid var(--gold); padding-left: 1rem; color: var(--ink-soft); font-style: italic; margin: 1.5em 0; }
.article-body img { max-width: 100%; border-radius: var(--radius); margin: 1em 0; }
.article-body a { text-decoration: underline; }

/* -------------------------------------------------- FAQ accordion */
.accordion-item { border: 1px solid var(--line); border-radius: var(--radius) !important; margin-bottom: 0.7rem; overflow: hidden; }
.accordion-button { font-family: var(--font-body); font-weight: 600; color: var(--navy); background: var(--white); }
.accordion-button:not(.collapsed) { background: var(--grey-bg); color: var(--navy); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--gold); }
.accordion-button::after { filter: sepia(1) saturate(2) hue-rotate(0deg); }

/* -------------------------------------------------- Footer */
.site-footer { background: var(--navy-deep); color: rgba(250, 248, 244, 0.7); padding: 4.5rem 0 0; }
.site-footer h6 { color: var(--gold-light); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer a { color: rgba(250, 248, 244, 0.7); }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 3rem; padding: 1.5rem 0; font-size: 0.85rem; }

/* -------------------------------------------------- WhatsApp / back-to-top floats */
.float-btn {
  position: fixed;
  right: 1.5rem;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  z-index: 1050;
  transition: transform 0.2s ease;
}
.float-btn:hover { transform: translateY(-3px); }
.whatsapp-btn { bottom: 5.5rem; background: #25D366; color: #fff; font-size: 1.6rem; }
.back-to-top { bottom: 1.5rem; background: var(--navy); color: var(--gold-light); font-size: 1.2rem; opacity: 0; pointer-events: none; }
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* -------------------------------------------------- Forms */
.form-control, .form-select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180, 146, 61, 0.15); }
.form-label { font-weight: 500; font-size: 0.9rem; color: var(--navy); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-card); }

/* -------------------------------------------------- Hero carousel */
#heroCarousel .carousel-indicators { bottom: 0.5rem; }
#heroCarousel .carousel-indicators [data-bs-target] { background-color: var(--gold); opacity: 0.5; width: 8px; height: 8px; border-radius: 50%; }
#heroCarousel .carousel-indicators .active { opacity: 1; }
#heroCarousel .carousel-control-prev, #heroCarousel .carousel-control-next { width: 4%; opacity: 0.6; }
#heroCarousel .carousel-control-prev:hover, #heroCarousel .carousel-control-next:hover { opacity: 1; }

/* -------------------------------------------------- Admin panel */
.admin-shell { display: flex; min-height: 100vh; background: var(--grey-bg); }
.admin-sidebar { width: 250px; background: var(--navy-deep); color: rgba(250, 248, 244, 0.75); flex-shrink: 0; }
.admin-sidebar a { display: block; color: rgba(250, 248, 244, 0.75); padding: 0.7rem 1.4rem; font-size: 0.92rem; border-left: 3px solid transparent; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.05); color: var(--gold-light); border-left-color: var(--gold); }
.admin-sidebar .brand { padding: 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.08); color: var(--white); font-family: var(--font-display); font-size: 1.1rem; }
.admin-main { flex: 1; padding: 2rem; }
.admin-stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.admin-stat-card .stat-value { font-family: var(--font-display); font-size: 2.1rem; color: var(--navy); }
.admin-stat-card .stat-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

@media (max-width: 767.98px) {
  .admin-sidebar { position: fixed; left: -260px; top: 0; bottom: 0; z-index: 1100; transition: left 0.2s ease; }
  .admin-sidebar.open { left: 0; }
  .process-step:not(:last-child) { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 2rem; margin-bottom: 2rem; }
}
