/* ============================================================
   CHAMBERS & ASSOCIATES — SINGLE ANNOUNCEMENT
   Pure CSS — No Frameworks
   ============================================================ */

/* ——— Root Variables ——— */
:root {
  --bg-dark: #0D0B09;
  --bg-card: rgba(20, 18, 15, 0.82);
  --bg-card-border: rgba(200, 169, 126, 0.12);
  --parchment: #F5F2ED;
  --parchment-dim: rgba(245, 242, 237, 0.65);
  --gold: #C8A97E;
  --gold-muted: rgba(200, 169, 126, 0.5);
  --text-body: rgba(245, 242, 237, 0.78);
  --text-muted: rgba(245, 242, 237, 0.45);
  --divider: rgba(200, 169, 126, 0.2);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-serif: 'Crimson Text', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-gentle: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ——— Reset ——— */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

::selection {
  background: rgba(200, 169, 126, 0.3);
  color: var(--parchment);
}

/* ——— Body & Background Layer ——— */
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--parchment);
  background: var(--bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.quill-content {
    white-space: pre-wrap; /* preserve spaces + line breaks */
    line-height: 1.5; /* match Quill spacing */
    font-family: inherit; /* match your site font */
    font-size: inherit;
}
    /* Make empty lines visible */ 
    .quill-content p {
        margin: 0 0 1em 0; /* spacing between paragraphs */
        min-height: 1em; /* ensures <p><br></p> shows as a blank line */
    }

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(13, 11, 9, 0.25) 0%, rgba(13, 11, 9, 0.7) 40%, rgba(13, 11, 9, 0.95) 80%, rgba(13, 11, 9, 1) 100%),
    url('images/flag-bg.jpg') center 15% / cover no-repeat;
  pointer-events: none;
}

/* ——— Corner Flourishes ——— */
.corner-flourish {
  position: fixed;
  width: 80px;
  height: 80px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1.2s ease 1.8s forwards;
}

.corner-flourish::before,
.corner-flourish::after {
  content: '';
  position: absolute;
  background: var(--gold);
}

/* Top-left: L shape */
.corner-tl { top: 30px; left: 30px; }
.corner-tl::before { top: 0; left: 0; width: 1px; height: 60px; opacity: 0.2; }
.corner-tl::after  { top: 0; left: 0; width: 60px; height: 1px; opacity: 0.2; }

/* Top-right: reversed L */
.corner-tr { top: 30px; right: 30px; }
.corner-tr::before { top: 0; right: 0; width: 1px; height: 60px; opacity: 0.2; }
.corner-tr::after  { top: 0; right: 0; width: 60px; height: 1px; opacity: 0.2; }

/* Bottom-left: L upside down */
.corner-bl { bottom: 30px; left: 30px; }
.corner-bl::before { bottom: 0; left: 0; width: 1px; height: 60px; opacity: 0.2; }
.corner-bl::after  { bottom: 0; left: 0; width: 60px; height: 1px; opacity: 0.2; }

/* Bottom-right: reversed L upside down */
.corner-br { bottom: 30px; right: 30px; }
.corner-br::before { bottom: 0; right: 0; width: 1px; height: 60px; opacity: 0.2; }
.corner-br::after  { bottom: 0; right: 0; width: 60px; height: 1px; opacity: 0.2; }

@media (max-width: 768px) {
  .corner-flourish { display: none; }
}

/* ——— Navigation ——— */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background-color 0.4s var(--ease-smooth), backdrop-filter 0.4s var(--ease-smooth);
}

.navbar.scrolled {
  background-color: rgba(13, 11, 9, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--parchment);
}

.logo-amp {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gold-muted);
}

.logo-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.55);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-smooth);
}

.nav-links a:hover {
  color: var(--parchment);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  width: 100%;
}

/* Mobile menu button */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-menu-btn span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--parchment);
  transition: all 0.3s ease;
}

.nav-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.nav-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

@media (max-width: 768px) {
  .nav-menu-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(13, 11, 9, 0.97);
    backdrop-filter: blur(10px);
    padding: 16px 32px;
    border-top: 1px solid var(--bg-card-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.35s var(--ease-smooth);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(245, 242, 237, 0.05);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }
}

/* ——— Document Wrapper ——— */
.document-wrapper {
  position: relative;
  z-index: 2;
  padding: 140px 20px 60px;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .document-wrapper {
    padding: 170px 40px 80px;
  }
}

/* ——— The Document ——— */
.document {
  max-width: 780px;
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  padding: 52px 36px;
  opacity: 0;
  animation: docFadeIn 1s var(--ease-gentle) 0.2s forwards;
}

@media (min-width: 768px) {
  .document {
    padding: 72px 64px;
  }
}

@media (min-width: 1024px) {
  .document {
    padding: 80px 80px;
  }
}

/* ——— Document Header ——— */
.doc-header {
  text-align: center;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeSlideUp 0.7s var(--ease-gentle) 0.5s forwards;
}

.doc-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 20px;
}

.doc-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--parchment);
  max-width: 620px;
  margin: 0 auto;
}

/* ——— Emblem ——— */
.doc-emblem {
  display: flex;
  justify-content: center;
  margin: 32px 0;
  opacity: 0;
  animation: emblemReveal 1.2s var(--ease-gentle) 0.8s forwards;
}

.doc-emblem img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(200, 169, 126, 0.15));
  transition: filter 0.6s ease, transform 0.6s var(--ease-smooth);
}

.doc-emblem img:hover {
  filter: drop-shadow(0 0 60px rgba(200, 169, 126, 0.3));
  transform: scale(1.04);
}

@media (min-width: 768px) {
  .doc-emblem img {
    width: 170px;
    height: 170px;
  }
}

/* ——— Divider ——— */
.doc-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 40px;
  max-width: 300px;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.1s forwards;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--divider);
}

.divider-diamond {
  color: var(--gold-muted);
  font-size: 8px;
  line-height: 1;
}

/* ——— Document Body ——— */
.doc-body {
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-gentle) 1.2s forwards;
}

.doc-body .lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.75;
  color: var(--parchment-dim);
  margin-bottom: 32px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#doc-body .annc-body h1 {
    color: #ffcc01 !important;
}

.doc-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.8vw, 26px);
  letter-spacing: -0.01em;
  color: var(--parchment);
  margin-top: 40px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.doc-body h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 1px;
  background: var(--divider);
}

.doc-body p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(14px, 1.7vw, 15.5px);
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 16px;
}

.doc-body strong {
  font-weight: 500;
  color: var(--parchment);
}

.doc-body ul {
  list-style: none;
  margin: 20px 0 24px;
  padding-left: 4px;
}

.doc-body ul li {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(14px, 1.7vw, 15.5px);
  line-height: 1.85;
  color: var(--text-body);
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

.doc-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--gold-muted);
  border-radius: 50%;
  opacity: 0.6;
}

.doc-body a {
  color: var(--gold);
  text-decoration: none;
  /*border-bottom: 1px solid transparent; */
  transition: border-color 0.3s ease;
}

.doc-body a:hover {
  border-bottom-color: var(--gold-muted);
}

/* ——— Document Footer / Signature Block ——— */
.doc-footer {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 36px;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-gentle) 1.5s forwards;
}

@media (min-width: 768px) {
  .doc-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.signature-block {
  flex-shrink: 0;
}

.sig-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.sig-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--parchment);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.sig-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-top: 4px;
}

.sig-date {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}

.doc-meta {
  text-align: left;
}

@media (min-width: 768px) {
  .doc-meta {
    text-align: right;
  }
}

.doc-meta p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-muted);
}

.doc-meta a {
  color: var(--gold-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.doc-meta a:hover {
  color: var(--gold);
}

/* ——— Site Footer ——— */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(245, 242, 237, 0.06);
  padding: 28px 32px;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.site-footer p,
.site-footer a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  color: rgba(245, 242, 237, 0.3);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--parchment);
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer-links span {
  color: rgba(245, 242, 237, 0.12);
}

@media (min-width: 768px) {
  .site-footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ——— Keyframes ——— */
@keyframes docFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes emblemReveal {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ——— Reduced Motion ——— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


