/* ==========================================================================
   Българско правно общество — Shared Stylesheet
   Palette derived from the organization's logo (Lady Justice woodcut):
   warm beige paper tones + dark green ink.
   ========================================================================== */

:root {
  /* Beige family */
  --beige-50:  #faf7f0;
  --beige-100: #f4eee0;
  --beige-200: #ebe1cb;
  --beige-300: #ddcfae;

  /* Dark green family (sampled from logo ink ~#3b433b) */
  --green-900: #1f2b23;
  --green-800: #263a2f;
  --green-700: #33473a;
  --green-600: #435c4b;
}

:root {
  --green-500: #5a7864;
  --green-400: #7c9686;
  --gold-line: #c9b78c; /* subtle divider tone, kept within beige family */

  --text-main: var(--green-900);
  --text-muted: #5b6a60;
  --bg-page: var(--beige-50);
  --bg-alt: var(--beige-100);
  --bg-card: #ffffff;
  --border-soft: var(--beige-300);

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --radius: 4px;
  --shadow-card: 0 2px 10px rgba(31, 43, 35, 0.08);
  --container-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.65;
  font-size: 17px;
}

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

a {
  color: var(--green-700);
  text-decoration: none;
}
a:hover { color: var(--green-900); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--green-900);
  line-height: 1.25;
  margin-top: 0;
  font-weight: 700;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-600);
  margin-bottom: 10px;
  display: inline-block;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--beige-50);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container-width);
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--green-900);
}
.brand:hover { text-decoration: none; color: var(--green-900); }

.brand img {
  height: 52px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

nav.main-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

nav.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-800);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--green-900);
  border-bottom-color: var(--green-600);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-900);
  position: relative;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 4px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--beige-100) 0%, var(--beige-50) 60%);
  padding: 76px 0 84px;
  border-bottom: 1px solid var(--border-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { margin-bottom: 18px; }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 54ch;
}

.hero-image {
  display: flex;
  justify-content: center;
}
.hero-image img {
  max-height: 340px;
  width: auto;
  filter: drop-shadow(0 12px 24px rgba(31,43,35,0.12));
}

.btn-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid var(--green-800);
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--green-800);
  color: var(--beige-50);
}
.btn-primary:hover {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--beige-50);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--green-800);
}
.btn-secondary:hover {
  background: var(--beige-200);
  text-decoration: none;
}

/* ---------- Sections ---------- */
section { padding: 70px 0; }
section.alt { background: var(--bg-alt); }

.section-head { max-width: 68ch; margin-bottom: 40px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.divider {
  width: 64px;
  height: 3px;
  background: var(--gold-line);
  margin: 18px 0 28px;
}
.centered .divider { margin-left: auto; margin-right: auto; }

/* Card grid */
.grid {
  display: grid;
  gap: 28px;
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
.card .num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--green-500);
  font-weight: 700;
  margin-bottom: 10px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

/* Objectives list (About page) */
.objectives {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: objective;
}
.objectives li {
  counter-increment: objective;
  position: relative;
  padding: 18px 0 18px 56px;
  border-bottom: 1px solid var(--border-soft);
}
.objectives li:last-child { border-bottom: none; }
.objectives li::before {
  content: counter(objective, lower-roman);
  position: absolute;
  left: 0;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--beige-50);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Placeholder callouts — clearly marked editable content */
.placeholder {
  position: relative;
  border: 1.5px dashed var(--green-400);
  background: repeating-linear-gradient(
    135deg,
    rgba(90,120,100,0.05),
    rgba(90,120,100,0.05) 10px,
    rgba(90,120,100,0.02) 10px,
    rgba(90,120,100,0.02) 20px
  );
  border-radius: var(--radius);
  padding: 24px;
}
.placeholder-tag {
  display: inline-block;
  background: var(--green-700);
  color: var(--beige-50);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

/* CTA band */
.cta-band {
  background: var(--green-800);
  color: var(--beige-50);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--beige-50); }
.cta-band p { color: var(--beige-200); max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary {
  background: var(--beige-50);
  color: var(--green-900);
  border-color: var(--beige-50);
}
.cta-band .btn-primary:hover {
  background: var(--beige-200);
  border-color: var(--beige-200);
}

/* News / resource list */
.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border-soft);
}
.news-item:last-child { border-bottom: none; }
.news-date {
  font-family: var(--font-serif);
  color: var(--green-600);
  font-weight: 700;
  font-size: 0.95rem;
}
.news-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-700);
  background: var(--beige-200);
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 8px;
}

/* Membership tiers */
.tier {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.tier.featured { border: 2px solid var(--green-700); }
.tier-price {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--green-800);
  margin: 6px 0 18px;
}
.tier ul { padding-left: 20px; margin: 0 0 24px; flex-grow: 1; }
.tier li { margin-bottom: 8px; }

/* Team */
.team-member { text-align: center; }
.team-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--beige-200);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-600);
  font-family: var(--font-serif);
  font-size: 2rem;
  border: 3px solid var(--bg-card);
  box-shadow: var(--shadow-card);
}
.team-member h4 { margin-bottom: 2px; }
.team-role { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}
.contact-detail .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--beige-200);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}
.contact-detail h4 { margin-bottom: 2px; font-size: 1rem; }
.contact-detail p { margin: 0; color: var(--text-muted); }

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: block;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--bg-card);
  color: var(--text-main);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-600);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--green-800);
}
.socials a:hover { background: var(--beige-200); text-decoration: none; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--green-900);
  color: var(--beige-200);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: var(--beige-50);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-grid a { color: var(--beige-200); }
.footer-grid a:hover { color: #fff; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand img { height: 40px; }
.footer-brand span {
  font-family: var(--font-serif);
  color: var(--beige-50);
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(244,238,224,0.15);
  padding-top: 22px;
  font-size: 0.85rem;
  color: var(--beige-300);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  background: var(--beige-100);
  border-bottom: 1px solid var(--border-soft);
  padding: 52px 0;
}
.page-header h1 { margin-bottom: 12px; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.1rem; }
}

@media (max-width: 720px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--beige-50);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    padding: 16px 24px;
    gap: 14px;
    display: none;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
}
