/* ============================================================
   JATAYU RISE — GLOBAL STYLESHEET
   style.css
   Deep Emerald · Antique Gold · Warm Parchment · Editorial
   ============================================================ */

/* ── 1. GOOGLE FONTS IMPORT ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&family=DM+Sans:wght@300;400;500&display=swap');

/* ── 2. DESIGN TOKENS ── */
:root {
  /* Backgrounds */
  --bg-deep:      #062D29;
  --bg-deeper:    #041F1D;
  --bg-dark-card: rgba(4, 31, 29, 0.85);
  --bg-overlay:   rgba(4, 31, 29, 0.72);

  /* Parchment */
  --parchment:       #F3E6CB;
  --parchment-muted: #D9C8A7;
  --parchment-light: #FAF4E8;
  --parchment-dark:  #C5B08A;

  /* Gold */
  --gold:        #C69B58;
  --gold-soft:   #D7B77A;
  --gold-pale:   #EDD9A3;
  --gold-glow:   rgba(198, 155, 88, 0.22);
  --gold-border: rgba(198, 155, 88, 0.35);
  --gold-bright: rgba(198, 155, 88, 0.75);

  /* Accent */
  --terracotta:      #9E5744;
  --terracotta-soft: #B8725F;

  /* Text */
  --text-light:      #F5E8D0;
  --text-light-muted:#C8BBA8;
  --text-dark:       #1D2925;
  --text-dark-muted: #4A5E59;

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', 'DM Sans', -apple-system, sans-serif;

  /* Spacing Scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Borders & Radius */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --border-gold: 1px solid var(--gold-border);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --transition:  all 0.35s var(--ease-smooth);

  /* Layout */
  --header-h: 72px;
  --max-w:    1280px;
  --section-pad: 5rem 2rem;
}

/* ── 3. RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  /* Subtle paper grain texture via CSS */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: var(--font-sans);
}

/* ── 4. TYPOGRAPHY UTILITIES ── */
.serif { font-family: var(--font-serif); }

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 500;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; }

.overline {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.overline-dark {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-brand-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  margin-bottom: 1.15rem;
}

.hero-brand-name {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  line-height: 1.3;
}

.hero-brand-est {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.9;
  line-height: 1.3;
}

.hero-brand-reg {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-pale);
  opacity: 0.75;
  line-height: 1.3;
  user-select: text;
}

/* ── 5. LAYOUT UTILITIES ── */
.container {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section {
  padding: var(--section-pad);
}

.section--parchment {
  background-color: var(--parchment);
  color: var(--text-dark);
}

.section--darker {
  background-color: var(--bg-deeper);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }

.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }

/* ── 6. SECTION TITLES ── */
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.section-title h2.dark {
  color: var(--text-dark);
}

.section-title p {
  font-size: 1.05rem;
  color: var(--text-light-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-title p.dark {
  color: var(--text-dark-muted);
}

.title-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.title-line::before,
.title-line::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--gold-border);
}

/* ── 7. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.9rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-deeper);
  border: 1px solid var(--gold);
}

.btn-gold:hover {
  background: var(--gold-soft);
  box-shadow: 0 0 20px var(--gold-glow), 0 4px 14px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--gold-border);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  box-shadow: 0 0 14px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(29,41,37,0.35);
}

.btn-outline-dark:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-1px);
}

.btn-text {
  color: var(--gold-soft);
  padding: 0;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-soft);
  transition: width 0.3s ease;
}

.btn-text:hover::after { width: 100%; }

/* ── 8. CARDS ── */
.card {
  background: var(--bg-dark-card);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 0 28px var(--gold-glow), 0 12px 32px rgba(0,0,0,0.45);
}

.card-parchment {
  background: var(--parchment-light);
  border: 1px solid var(--parchment-dark);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  overflow: hidden;
  transition: var(--transition);
}

.card-parchment:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 0 22px var(--gold-glow), 0 10px 28px rgba(0,0,0,0.18);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-deeper);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-smooth);
}

.card:hover .card-img-wrap img,
.card-parchment:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.4rem;
}

/* Image placeholder fill when image is missing */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #041F1D 0%, #0A3D37 50%, #062D29 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-border);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.img-placeholder-parchment {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #D9C8A7 0%, #E8D8B8 50%, #F3E6CB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── 9. GOLD ACCENT DIVIDER ── */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-border);
}

.gold-divider-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

/* ── 10. BADGE / TAG ── */
.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 2px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--gold-border);
  color: var(--gold-soft);
  background: rgba(198, 155, 88, 0.08);
}

.tag-dark {
  border-color: rgba(158,87,68,0.35);
  color: var(--terracotta);
  background: rgba(158,87,68,0.08);
}

.tag-lang {
  border-color: rgba(198,155,88,0.4);
  color: var(--gold);
  background: transparent;
}

/* ── 11. FILTER CHIPS ── */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.chip {
  padding: 0.4rem 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--gold-border);
  color: var(--text-light-muted);
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.chip:hover,
.chip.active {
  background: var(--gold);
  color: var(--bg-deeper);
  border-color: var(--gold);
}

/* ── 12. QUOTE BLOCK ── */
.quote-strip {
  background-color: var(--bg-deeper);
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-strip blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

.quote-strip blockquote::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: -1.5rem;
  font-size: 5rem;
  color: var(--gold-glow);
  font-family: var(--font-serif);
  line-height: 1;
}

.quote-strip cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  position: relative;
  z-index: 2;
}

.quote-parchment {
  background-color: var(--parchment);
  color: var(--text-dark);
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-parchment blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  color: var(--text-dark);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── 13. HEADER ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: rgba(4, 31, 29, 0.9);
  border-bottom: 1px solid rgba(198, 155, 88, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.site-header.scrolled {
  background: rgba(4, 31, 29, 0.97);
  border-bottom-color: var(--gold-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-logo-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

.site-logo-sub {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 2px;
}

/* Main Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--gold-soft);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  overflow: hidden;
}

.lang-btn {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.65rem;
  color: var(--text-light-muted);
  background: transparent;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--gold);
  color: var(--bg-deeper);
}

.lang-btn:not(.active):hover {
  color: var(--gold-soft);
}

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

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-light);
  transition: var(--transition);
  transform-origin: center;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 31, 29, 0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav .nav-link {
  font-size: 1rem;
  letter-spacing: 0.15em;
}

.mobile-lang-switcher {
  margin-top: 1rem;
}

/* ── 14. FOOTER ── */
.site-footer {
  background: var(--bg-deeper);
  border-top: 1px solid var(--gold-border);
  padding: 4rem 2rem 2rem;
  color: var(--text-light-muted);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(198, 155, 88, 0.12);
}

.footer-brand .site-logo {
  margin-bottom: 1.2rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.8;
  max-width: 260px;
  color: var(--text-light-muted);
}

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--gold-soft);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light-muted);
  font-size: 0.75rem;
  transition: var(--transition);
}

.footer-social-icon:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light-muted);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom-legal {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-reg-id {
  font-size: 0.68rem;
  color: var(--text-light-muted);
  opacity: 0.8;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.3;
}

.footer-content-mgr {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(198, 155, 88, 0.35);
  transition: color 0.3s;
}

.footer-content-mgr:hover {
  color: var(--gold-border);
}

/* ── 15. PAGE HERO (shared) ── */
.page-hero {
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 4rem) 2rem 4rem;
  position: relative;
  background: var(--bg-deeper);
  border-bottom: 1px solid var(--gold-border);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(198, 155, 88, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(6, 45, 41, 0.8) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.page-hero h1 {
  margin-top: 0.75rem;
  margin-bottom: 1.2rem;
  color: var(--text-light);
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-light-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── 16. SCROLL REVEAL (JS adds classes) ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── 17. SKIP LINK (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--gold);
  color: var(--bg-deeper);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ── 18. FORMS ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-dark-muted);
}

.form-control {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--parchment-dark);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: var(--transition);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-control::placeholder {
  color: var(--text-dark-muted);
  opacity: 0.6;
}

.form-control-dark {
  background: rgba(4, 31, 29, 0.5);
  border: 1px solid var(--gold-border);
  color: var(--text-light);
}

.form-control-dark:focus {
  border-color: var(--gold);
  background: rgba(4, 31, 29, 0.8);
}

.form-control-dark::placeholder {
  color: var(--text-light-muted);
  opacity: 0.5;
}

.form-error {
  font-size: 0.72rem;
  color: var(--terracotta-soft);
  display: none;
}

.form-group.has-error .form-control {
  border-color: var(--terracotta);
}

.form-group.has-error .form-error {
  display: block;
}

/* ── 19. MODAL ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 31, 29, 0.9);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--parchment-light);
  color: var(--text-dark);
  border-radius: var(--radius-md);
  border: 1px solid var(--parchment-dark);
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s var(--ease-smooth);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-dark-muted);
  cursor: pointer;
  transition: background 0.2s;
  background: transparent;
  border: none;
  font-size: 1.2rem;
}

.modal-close:hover {
  background: rgba(0,0,0,0.08);
  color: var(--text-dark);
}

.modal-body {
  padding: 2.5rem;
}

/* ── 19b. INQUIRY CONFIRMATION MODAL (Formal & Editorial) ── */
.inquiry-modal-backdrop {
  z-index: 999;
}

.inquiry-modal-card {
  max-width: 530px;
  background: var(--parchment-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(4, 31, 29, 0.45), 0 0 0 1px rgba(198, 155, 88, 0.25);
  overflow: hidden;
  text-align: center;
  padding: 0;
}

.inquiry-modal-header {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deeper) 100%);
  padding: 2.4rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--gold-border);
}

.inquiry-modal-card .modal-close {
  color: var(--gold-soft);
  z-index: 10;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 1.4rem;
}

.inquiry-modal-card .modal-close:hover {
  background: rgba(198, 155, 88, 0.18);
  color: var(--parchment-light);
}

.inquiry-modal-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 155, 88, 0.22) 0%, rgba(4, 31, 29, 0.85) 70%);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 24px rgba(198, 155, 88, 0.35);
}

.inquiry-modal-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.inquiry-modal-brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.4rem;
}

.inquiry-modal-tag {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--parchment);
  background: rgba(198, 155, 88, 0.18);
  border: 1px solid rgba(198, 155, 88, 0.35);
  padding: 0.22rem 0.85rem;
  border-radius: 12px;
}

.inquiry-modal-body {
  padding: 2.1rem 2.25rem 2.25rem;
  color: var(--text-dark);
}

.inquiry-modal-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--bg-deep);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.inquiry-modal-divider {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 1.25rem;
}

.inquiry-modal-message {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-dark-muted);
  margin-bottom: 1.5rem;
}

.inquiry-modal-notice-box {
  background: rgba(198, 155, 88, 0.12);
  border: 1px solid rgba(198, 155, 88, 0.35);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.75rem;
  text-align: left;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.inquiry-modal-notice-icon {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.inquiry-modal-notice-content {
  flex: 1;
}

.inquiry-modal-notice-text {
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.inquiry-modal-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid rgba(158, 87, 68, 0.45);
  transition: var(--transition);
}

.inquiry-modal-email-link:hover {
  color: var(--bg-deep);
  border-bottom-color: var(--bg-deep);
}

.inquiry-modal-actions {
  display: flex;
  justify-content: center;
}

.inquiry-modal-actions .btn {
  min-width: 200px;
  padding: 0.75rem 2rem;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

/* ── 20. STATUS BADGES ── */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.status-published  { background: rgba(6, 45, 41, 0.12); color: #2D7A5A; border: 1px solid rgba(45,122,90,0.3); }
.status-draft      { background: rgba(198,155,88,0.1); color: var(--gold); border: 1px solid var(--gold-border); }
.status-archived   { background: rgba(100,100,100,0.1); color: #7A8884; border: 1px solid rgba(120,136,132,0.3); }

/* ── 21. NOTIFICATION TOAST ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-deeper);
  border: 1px solid var(--gold-border);
  color: var(--text-light);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  max-width: 320px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { border-color: rgba(45, 122, 90, 0.5); }
.toast.error   { border-color: rgba(158, 87, 68, 0.5); }

/* ── 22. SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deeper); }
::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── 23. SELECTION ── */
::selection {
  background: var(--gold-glow);
  color: var(--gold-pale);
}

/* ── 24. PREFERS REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── 25. FEATURED PARTNER CARD & ECAPITAL LOGO ── */
.featured-partner-card {
  background: rgba(250, 244, 232, 0.7);
  border: 1px solid rgba(198, 155, 88, 0.35);
  border-radius: 4px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.featured-partner-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.featured-partner-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-top: 0.25rem;
  line-height: 1.2;
}

.featured-partner-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.featured-partner-footer {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(198, 155, 88, 0.2);
}

.featured-partner-address {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.featured-partner-address .address-link {
  color: var(--text-dark-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s;
}

.featured-partner-address .address-link:hover {
  color: var(--gold);
}

.ecapital-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 24px;
}

.ecapital-logo-img {
  display: block;
  max-width: 200px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.ecapital-logo-divider {
  width: 48px;
  height: 1px;
  background: rgba(198, 155, 88, 0.45);
  margin-top: 14px;
}

@media (max-width: 768px) {
  .featured-partner-card {
    padding: 1.75rem 1.25rem;
  }
  .featured-partner-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .ecapital-logo-wrap {
    margin-bottom: 20px;
  }
  .ecapital-logo-img {
    max-width: 160px;
    max-height: 72px;
  }
}

/* ── 22. ANCHOR SCROLL MARGINS (Header Offset) ── */
#form,
#public-online-interviews,
#public-interviews,
#field-notes,
#read,
#featured-partner {
  scroll-margin-top: calc(var(--header-h, 72px) + 1.5rem);
}
