/* ==========================================================================
   ANROM — Antreprenoriatul Național Român
   Theme: gold ground, deep navy structure, cream reading surfaces.
   Loaded after Bootstrap 5.3.
   ========================================================================== */

:root {
  --navy:        #14243D;
  --navy-2:      #1D3557;
  --navy-soft:   #2A3F5F;
  --gold:        #FFD700;
  --gold-warm:   #E9BC38;
  --gold-deep:   #A67C00;
  --gold-pale:   #F6E7B4;
  --cream:       #FCFAF4;
  --cream-2:     #F6F1E4;
  --ink:         #222C3A;
  --muted:       #5D6877;
  --line:        #E2DAC4;
  --line-soft:   #EEE8D8;
  --burgundy:    #7A1F2B;

  --sans:  "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Oswald", "Segoe UI", system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 1px 2px rgba(20, 36, 61, .06);
  --shadow:    0 2px 10px rgba(20, 36, 61, .08);
  --shadow-lg: 0 12px 34px rgba(20, 36, 61, .14);

  --radius: 3px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: #F2C94C;
  background-image:
    linear-gradient(rgba(255, 215, 0, .34), rgba(214, 168, 32, .40)),
    url("../img/background-auriu.jpg");
  background-size: auto, 760px auto;
  background-attachment: fixed;
  background-position: center top;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

h1 { font-size: clamp(1.95rem, 1.4rem + 1.9vw, 2.8rem); line-height: 1.15; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.2; }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.08rem; }

p { margin-bottom: 1.05rem; }

a { color: var(--navy-2); text-decoration-color: rgba(29, 53, 87, .32); text-underline-offset: 3px; }
a:hover, a:focus { color: var(--burgundy); text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--navy-2);
  outline-offset: 2px;
  border-radius: 2px;
}

.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

.ico { flex: 0 0 auto; vertical-align: -.15em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--navy); color: #fff; padding: .7rem 1.2rem;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

/* --------------------------------------------------------------------------
   Utility bar
   -------------------------------------------------------------------------- */

.utility-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  border-bottom: 1px solid rgba(255, 215, 0, .2);
}
.utility-bar .container { padding-top: .42rem; padding-bottom: .42rem; }

.utility-contact li { display: flex; align-items: center; gap: .4rem; }
.utility-contact a, .utility-contact span { color: rgba(255, 255, 255, .82); text-decoration: none; }
.utility-contact a:hover { color: var(--gold); }
.utility-contact .ico { color: var(--gold-warm); }

.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-opt {
  display: inline-block;
  padding: .16rem .55rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .09em;
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: background-color .15s, color .15s, border-color .15s;
}
.lang-opt:hover { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.lang-opt.is-active {
  color: var(--navy); background: var(--gold);
  border-color: var(--gold); cursor: default;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: relative;
  background:
    radial-gradient(115% 150% at 50% -30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #FFE45C 0%, #FFD700 45%, #EFC323 100%);
  border-bottom: 1px solid rgba(166, 124, 0, .35);
}
.masthead .container {
  padding-top: 1.6rem; padding-bottom: 1.35rem;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
}

.masthead-brand {
  display: flex; align-items: center; gap: 1.25rem;
  text-decoration: none; color: inherit;
}
.masthead-brand:hover { color: inherit; }

.crest {
  display: grid; place-items: center;
  width: 96px; height: 96px; flex: 0 0 96px;
  background: radial-gradient(circle at 50% 45%, #fffdf5 0%, #fdf6df 62%, #f3e6bd 100%);
  border: 1px solid rgba(166, 124, 0, .45);
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(120, 88, 0, .28), inset 0 0 0 4px rgba(255, 255, 255, .65);
}
.crest img {
  width: 78px; height: auto; display: block;
  mix-blend-mode: multiply;
}

.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--display);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.7rem);
  font-weight: 700; line-height: 1;
  letter-spacing: .10em;
  color: var(--navy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
.brand-rule {
  display: block; height: 2px; width: 100%; margin: .45rem 0 .4rem;
  background: linear-gradient(90deg, rgba(20, 36, 61, 0), var(--navy) 18%, var(--navy) 82%, rgba(20, 36, 61, 0));
}
.brand-sub {
  font-family: var(--display);
  font-size: clamp(.95rem, .8rem + .5vw, 1.2rem);
  font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: #4A3A08;
}
.brand-sub-en {
  font-family: var(--display);
  font-size: .8rem; letter-spacing: .05em; font-style: italic;
  color: #6B5514; margin-top: .15rem;
}

.masthead-motto {
  margin: 0; text-align: center;
  font-size: .78rem; letter-spacing: .05em;
  color: #5B4710;
}

/* --------------------------------------------------------------------------
   Main navigation
   -------------------------------------------------------------------------- */

.mainnav {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid rgba(0, 0, 0, .2);
  padding: 0;
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 1030;
}
.mainnav .navbar-nav { gap: 0; }

.mainnav .nav-link {
  position: relative;
  padding: .82rem 1.02rem;
  color: rgba(255, 255, 255, .86);
  font-size: .84rem; font-weight: 600;
  letter-spacing: .075em; text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: color .16s, background-color .16s, border-color .16s;
}
.mainnav .nav-link:hover,
.mainnav .nav-link:focus {
  color: #fff; background: rgba(255, 255, 255, .07); border-bottom-color: rgba(255, 215, 0, .5);
}
.mainnav .nav-link.active {
  color: var(--gold); background: rgba(0, 0, 0, .22); border-bottom-color: var(--gold);
}

.mainnav .navbar-toggler {
  display: flex; align-items: center; gap: .6rem;
  margin: .55rem 0;
  padding: .4rem .8rem;
  color: #fff;
  border: 1px solid rgba(255, 215, 0, .5);
  border-radius: var(--radius);
}
.mainnav .navbar-toggler:focus { box-shadow: none; }
.mainnav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFD700' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.3em; height: 1.3em;
}
.toggler-label {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold);
}

@media (max-width: 991.98px) {
  .mainnav { position: static; }
  .mainnav .navbar-collapse { padding-bottom: .5rem; }
  .mainnav .nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-left: 3px solid transparent;
    padding: .68rem .4rem;
  }
  .mainnav .nav-link.active { border-left-color: var(--gold); border-bottom-color: rgba(255,255,255,.08); }
}

/* --------------------------------------------------------------------------
   Main layout
   -------------------------------------------------------------------------- */

.site-main { padding: 2.1rem 0 3rem; }

.breadcrumb-bar {
  font-size: .8rem; letter-spacing: .04em;
  color: #4A3A08;
  margin-bottom: .85rem;
}
.breadcrumb-bar a { color: #3E3007; text-decoration: none; font-weight: 600; }
.breadcrumb-bar a:hover { color: var(--burgundy); text-decoration: underline; }
.breadcrumb-bar span { margin: 0 .4rem; }
.breadcrumb-bar .current { color: #6B5514; margin-left: 0; }

/* Content surface -------------------------------------------------------- */

.panel {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.35rem, .9rem + 1.6vw, 2.6rem);
  margin-bottom: 1.6rem;
}
.panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 40%, var(--gold-pale));
  border-radius: var(--radius) var(--radius) 0 0;
}
.panel--plain::before { display: none; }
.panel--tight { padding: clamp(1.1rem, .8rem + 1vw, 1.7rem); }

.page-head { margin-bottom: 1.6rem; }
.page-head h1 { margin-bottom: .5rem; }
.page-head .lead-text {
  font-family: var(--display);
  font-size: 1.16rem; font-style: italic; line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.page-head::after {
  content: ""; display: block; width: 72px; height: 3px; margin-top: 1.05rem;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

/* Long-form copy --------------------------------------------------------- */

.prose { font-size: 1.035rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--navy); font-weight: 700; }
.prose em { color: #3A4655; }

.prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 3.5rem;
  line-height: .82;
  font-weight: 700;
  color: var(--gold-deep);
  margin: .12em .12em 0 0;
}
.prose.no-drop > p:first-of-type::first-letter {
  float: none; font-size: inherit; line-height: inherit;
  font-weight: inherit; color: inherit; margin: 0;
}

blockquote.pull {
  margin: 1.6rem 0;
  padding: .3rem 0 .3rem 1.4rem;
  border-left: 3px solid var(--gold);
  font-family: var(--display);
  font-size: 1.22rem; font-style: italic; line-height: 1.5;
  color: var(--navy-2);
}

.section-rule {
  border: 0; height: 1px; margin: 2rem 0;
  background: linear-gradient(90deg, var(--line), rgba(226, 218, 196, 0));
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: .5rem;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.sidebar { position: sticky; top: 5.2rem; }
@media (max-width: 991.98px) { .sidebar { position: static; } }

.side-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.35rem;
  overflow: hidden;
}

.side-title {
  margin: 0;
  padding: .72rem 1.05rem;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--sans);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 2px solid var(--gold);
}

.side-list li + li { border-top: 1px solid var(--line-soft); }

.side-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .72rem 1.05rem;
  color: var(--navy);
  font-size: .93rem; font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.side-link .side-ico { color: var(--gold-deep); display: flex; }
.side-link .side-label { flex: 1 1 auto; }
.side-link .side-chev { color: var(--line); font-size: 1.15rem; line-height: 1; }
.side-link:hover {
  background: var(--cream-2);
  border-left-color: var(--gold);
  color: var(--burgundy);
}
.side-link:hover .side-chev { color: var(--gold-deep); }
.side-link.is-active {
  background: linear-gradient(90deg, rgba(255, 215, 0, .2), rgba(255, 215, 0, .04));
  border-left-color: var(--gold-deep);
  color: var(--navy);
}
.side-link.is-active .side-chev { color: var(--gold-deep); }

.side-cta {
  background: var(--navy);
  color: rgba(255, 255, 255, .84);
  border: 1px solid var(--navy);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow);
}
.side-cta-title {
  font-family: var(--display);
  font-size: 1.22rem; color: var(--gold); margin-bottom: .4rem;
}
.side-cta-text { font-size: .88rem; line-height: 1.6; margin-bottom: .9rem; }

.side-contact-list li {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .6rem 1.05rem;
  font-size: .87rem;
  color: var(--muted);
}
.side-contact-list li + li { border-top: 1px solid var(--line-soft); }
.side-contact-list .ico { color: var(--gold-deep); margin-top: .18rem; }
.side-contact-list a { color: var(--navy-2); text-decoration: none; }
.side-contact-list a:hover { color: var(--burgundy); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-anrom, .btn-anrom-outline, .btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .68rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color .16s, color .16s, border-color .16s, transform .12s;
}
.btn-anrom { background: var(--gold); color: var(--navy); border-color: var(--gold-deep); }
.btn-anrom:hover { background: #FFE04D; color: var(--navy); transform: translateY(-1px); }

.btn-gold { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.btn-gold:hover { background: var(--navy-2); color: var(--gold); transform: translateY(-1px); }

.btn-anrom-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-anrom-outline:hover { background: var(--navy); color: var(--gold); }

.btn-anrom:disabled, .btn-anrom[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* --------------------------------------------------------------------------
   Home page
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(20, 36, 61, .97), rgba(29, 53, 87, .93)),
    url("../img/background-auriu.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  border: 1px solid var(--navy);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(1.7rem, 1.1rem + 2.4vw, 3.1rem);
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -70px;
  width: 300px; height: 300px;
  background: url("../img/logo_anrom.png") no-repeat center / contain;
  opacity: .055;
  filter: invert(1);
  pointer-events: none;
}
.hero-kicker {
  display: block;
  font-family: var(--display);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .7rem;
}
.hero h1 { font-family: var(--display); color: #fff; margin-bottom: .9rem; max-width: 22ch; }
.hero-text {
  font-size: 1.03rem; line-height: 1.72;
  color: rgba(255, 255, 255, .84);
  max-width: 62ch; margin-bottom: 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; position: relative; z-index: 1; }
.hero .btn-anrom-outline { color: var(--gold); border-color: rgba(255, 215, 0, .55); }
.hero .btn-anrom-outline:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); }
.fact {
  background: var(--cream);
  padding: 1.15rem 1.1rem;
}
.fact-value {
  display: block;
  font-size: 2.05rem; font-weight: 700; line-height: 1;
  color: var(--gold-deep);
  margin-bottom: .3rem;
}
.fact-label {
  display: block;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); margin-bottom: .35rem;
}
.fact-note { font-size: .84rem; line-height: 1.5; color: var(--muted); margin: 0; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 1.1rem; }
.pillar {
  display: flex; flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--gold-deep);
}
.pillar h3 { margin-bottom: .45rem; }
.pillar p {
  font-family: var(--display);
  font-size: .9rem; font-weight: 400; line-height: 1.6;
  color: var(--muted); margin-bottom: .85rem; flex: 1 1 auto;
}
.pillar-more {
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-deep); display: inline-flex; align-items: center; gap: .35rem;
}

/* --------------------------------------------------------------------------
   Lists, cards, timeline
   -------------------------------------------------------------------------- */

.list-marked { list-style: none; padding: 0; margin: 0; }
.list-marked > li {
  position: relative;
  padding: .52rem 0 .52rem 1.7rem;
  border-bottom: 1px solid var(--line-soft);
}
.list-marked > li:last-child { border-bottom: 0; }
.list-marked > li::before {
  content: ""; position: absolute; left: .22rem; top: 1.16rem;
  width: 7px; height: 7px;
  background: var(--gold); border: 1px solid var(--gold-deep);
  transform: rotate(45deg);
}

.list-numbered { list-style: none; counter-reset: anrom; padding: 0; margin: 0; }
.list-numbered > li {
  position: relative; counter-increment: anrom;
  padding: .55rem 0 .55rem 2.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.list-numbered > li:last-child { border-bottom: 0; }
.list-numbered > li::before {
  content: counter(anrom, decimal-leading-zero);
  position: absolute; left: 0; top: .62rem;
  font-family: var(--display); font-size: .95rem; font-weight: 700;
  color: var(--gold-deep);
  width: 1.9rem; text-align: left;
  border-right: 1px solid var(--line);
  padding-right: .5rem;
}

.sublist { list-style: none; padding: .55rem 0 .1rem 0; margin: 0; }
.sublist > li {
  position: relative; padding: .3rem 0 .3rem 1.25rem;
  font-size: .95rem; color: #3A4655;
}
.sublist > li::before {
  content: "▪"; position: absolute; left: .1rem; top: .28rem; color: var(--gold-deep);
}

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  height: 100%;
}
.info-card h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.info-card p { font-size: .92rem; line-height: 1.62; color: var(--muted); margin: 0; }
.info-card .card-ico {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: .65rem;
  background: var(--gold-pale); color: var(--gold-deep);
  border-radius: 50%;
}

.timeline { position: relative; list-style: none; padding: 0; margin: 0; }
.timeline::before {
  content: ""; position: absolute; left: 4.7rem; top: .5rem; bottom: .5rem;
  width: 1px; background: var(--line);
}
.timeline > li { position: relative; display: flex; gap: 1.5rem; padding: .75rem 0; }
.timeline .tl-year {
  flex: 0 0 4rem; text-align: right;
  font-family: var(--display); font-size: 1.25rem; font-weight: 700;
  color: var(--gold-deep); line-height: 1.45;
}
.timeline .tl-body { flex: 1 1 auto; padding-left: .35rem; }
.timeline .tl-body h3 { font-size: 1.06rem; margin-bottom: .22rem; }
.timeline .tl-body p { font-size: .92rem; color: var(--muted); margin: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: calc(4.7rem - 4px); top: 1.35rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--navy);
  z-index: 1;
}
@media (max-width: 575.98px) {
  .timeline::before, .timeline > li::before { display: none; }
  .timeline > li { flex-direction: column; gap: .1rem; }
  .timeline .tl-year { text-align: left; }
}

.person {
  display: flex; align-items: center; gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  height: 100%;
}
.person-monogram {
  flex: 0 0 52px; width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: var(--display); font-size: 1.2rem; font-weight: 700;
  letter-spacing: .02em;
}
.person-name { font-family: var(--display); font-size: 1.14rem; font-weight: 700; color: var(--navy); display: block; }
.person-role { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }

.callout {
  background: linear-gradient(180deg, #FFFBEA, #FDF6DE);
  border: 1px solid var(--gold-warm);
  border-left: 4px solid var(--gold-deep);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  font-size: .93rem; line-height: 1.62;
  color: #4A3A08;
}
.callout p:last-child { margin-bottom: 0; }
.callout h3 { font-size: 1.08rem; margin-bottom: .4rem; }

.note-muted {
  font-size: .85rem; line-height: 1.6; color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: .9rem; margin-top: 1.3rem;
}

.empty-state {
  text-align: center;
  padding: 2.4rem 1.2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--cream-2);
}
.empty-state h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.empty-state p { font-size: .93rem; color: var(--muted); max-width: 46ch; margin: 0 auto; }

/* Definition-style contact rows ------------------------------------------ */

.detail-list { margin: 0; }
.detail-list > div {
  display: flex; flex-wrap: wrap; gap: .3rem 1rem;
  padding: .62rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt {
  flex: 0 0 8.5rem;
  font-size: .76rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: .16rem;
}
.detail-list dd { flex: 1 1 14rem; margin: 0; color: var(--ink); }
.detail-list dd a { text-decoration: none; }
.detail-list dd a:hover { text-decoration: underline; }

.agency-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  height: 100%;
}
.agency-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.agency-card .office {
  display: block; font-size: .82rem; color: var(--muted); margin-bottom: .5rem;
}
.agency-card a { font-size: .9rem; text-decoration: none; font-weight: 600; }
.agency-card a:hover { text-decoration: underline; }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li + li { border-top: 1px solid var(--line-soft); }
.link-list a {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .2rem;
  text-decoration: none; font-weight: 600; font-size: .95rem;
}
.link-list a:hover { color: var(--burgundy); }
.link-list .ico { color: var(--gold-deep); }
.link-list .ext { margin-left: auto; font-size: .74rem; color: var(--muted); font-weight: 400; }

/* --------------------------------------------------------------------------
   Registration & forms
   -------------------------------------------------------------------------- */

.doc-step {
  display: flex; gap: 1.1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.doc-step:last-child { border-bottom: 0; }
.doc-num {
  flex: 0 0 42px; width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
  border-radius: 50%;
  font-family: var(--display); font-size: 1.15rem; font-weight: 700;
}
.doc-body { flex: 1 1 auto; }
.doc-body h3 { font-size: 1.12rem; margin-bottom: .28rem; }
.doc-body p { font-size: .93rem; color: var(--muted); margin-bottom: .7rem; }
.doc-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem; }
.step {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem;
}
.step-index {
  display: inline-block;
  font-family: var(--display); font-size: .95rem; font-weight: 700;
  color: var(--navy); background: var(--gold);
  width: 26px; height: 26px; line-height: 26px; text-align: center;
  border-radius: 50%; margin-bottom: .6rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.step p { font-size: .88rem; color: var(--muted); margin: 0; }

/* Form controls ---------------------------------------------------------- */

.form-section {
  font-size: 1.1rem;
  padding-bottom: .45rem;
  margin: 1.4rem 0 .1rem;
  border-bottom: 2px solid var(--gold);
}
.row > .col-12:first-child .form-section { margin-top: 0; }
.form-section-note { font-size: .86rem; color: var(--muted); margin: .35rem 0 0; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }

.form-label {
  font-size: .8rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: .3rem;
}
.req { color: var(--burgundy); font-weight: 700; }

.form-control, .form-select {
  border: 1px solid #CFC7B0;
  border-radius: var(--radius);
  background: #fff;
  padding: .55rem .75rem;
  font-size: .96rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, .28);
}
.form-control.is-invalid, .form-select.is-invalid {
  border-color: var(--burgundy);
  background-image: none;
}
.form-control::placeholder { color: #A79E8A; }
.form-text { font-size: .82rem; color: var(--muted); margin-top: .28rem; }

.field-error {
  font-size: .83rem; font-weight: 600; color: var(--burgundy);
  margin-top: .28rem;
  display: flex; align-items: center; gap: .3rem;
}
.field-error::before { content: "!"; display: inline-grid; place-items: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--burgundy); color: #fff; font-size: .68rem; font-weight: 700; }

.field-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: .8rem .95rem .55rem;
}
.field-group.has-error { border-color: var(--burgundy); }
.field-group legend {
  float: none; width: auto; padding: 0 0 .45rem;
  border-bottom: 1px solid var(--line-soft); margin-bottom: .55rem;
}
.field-group .form-check { margin-bottom: .35rem; }
.form-check-label { font-size: .93rem; color: var(--ink); }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.form-check-input:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(255, 215, 0, .28); }

.form-check-consent {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem .95rem .8rem 2.4rem;
}
.form-check-consent .form-check-input { margin-left: -1.6rem; margin-top: .28rem; }

.form-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem;
  margin-top: 1.7rem; padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.form-privacy { font-size: .82rem; color: var(--muted); flex: 1 1 18rem; margin: 0; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert-anrom {
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid;
}
.alert-anrom h2, .alert-anrom h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.alert-anrom p:last-child { margin-bottom: 0; }
.alert-ok {
  background: #F1F8F0; border-color: #A8C9A2; border-left: 4px solid #4E7A45; color: #2C4728;
}
.alert-ok h2, .alert-ok h3 { color: #2C4728; }
.alert-bad {
  background: #FDF2F2; border-color: #E0B4B4; border-left: 4px solid var(--burgundy); color: #5C1720;
}
.alert-bad h2, .alert-bad h3 { color: var(--burgundy); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
  margin-top: 1rem;
}
.footer-crestline {
  height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 30%, var(--gold) 70%, var(--gold-deep));
}

.footer-brand { display: flex; align-items: center; gap: .85rem; margin-bottom: .9rem; }
.footer-crest {
  width: 54px; height: auto;
  background: var(--cream); border-radius: 50%; padding: 5px;
  border: 1px solid rgba(255, 215, 0, .45);
}
.footer-name {
  display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 700;
  color: var(--gold); letter-spacing: .12em; line-height: 1;
}
.footer-sub {
  display: block; font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-top: .25rem;
}
.footer-blurb { font-size: .87rem; line-height: 1.65; color: rgba(255, 255, 255, .68); }
.footer-legal-note {
  font-size: .78rem; line-height: 1.55; color: rgba(255, 255, 255, .48);
  border-top: 1px solid rgba(255, 255, 255, .12); padding-top: .7rem; margin-bottom: 0;
}

.footer-title {
  font-family: var(--sans);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  padding-bottom: .5rem; margin-bottom: .8rem;
  border-bottom: 1px solid rgba(255, 215, 0, .3);
}
.footer-list li { margin-bottom: .42rem; }
.footer-list a {
  color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .88rem;
}
.footer-list a:hover { color: var(--gold); text-decoration: underline; }

.footer-agencies li {
  padding: .45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem;
}
.footer-agencies li:last-child { border-bottom: 0; }
.agency-name { font-weight: 600; color: rgba(255, 255, 255, .88); font-size: .87rem; flex: 1 1 11rem; }
.agency-office { font-size: .8rem; color: rgba(255, 255, 255, .5); }
.agency-mail { font-size: .8rem; color: var(--gold-warm); text-decoration: none; flex-basis: 100%; }
.agency-mail:hover { color: var(--gold); text-decoration: underline; }

.footer-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  padding: 1.05rem 0;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .8rem; color: rgba(255, 255, 255, .55);
}
.footer-bank .mono { color: rgba(255, 255, 255, .74); }

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */

.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1040;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: background-color .16s, transform .16s;
}
.to-top:hover { background: var(--navy-2); transform: translateY(-2px); }
.to-top[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  body { background: #fff; color: #000; }
  .utility-bar, .mainnav, .sidebar, .site-footer, .to-top, .skip-link,
  .hero-actions, .form-actions, .breadcrumb-bar { display: none !important; }
  .panel, .hero { box-shadow: none; border: 1px solid #999; background: #fff; }
  .hero { color: #000; }
  .hero h1, .hero-text { color: #000; }
  .masthead { background: #fff; border-bottom: 2px solid #000; }
  .col-lg-8, .col-xl-9 { width: 100%; max-width: 100%; flex: 0 0 100%; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
