/*
Theme Name: FIH Microsite
Theme URI: https://ferrettifih.it/
Author: Sodali & Co
Author URI: https://sodali.com/
Description: Ferretti International Holdings – trilingual investor microsite
Version: 2.3.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: fih
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --navy:       #070b14;
  --navy-mid:   #0e1524;
  --navy-light: #182035;
  --gold:       #c9a84c;
  --gold-light: #e2c97e;
  --gold-dim:   rgba(201,168,76,0.25);
  --white:      #f7f3ec;
  --white-dim:  rgba(247,243,236,0.65);
  --white-faint:rgba(247,243,236,0.12);
  --border:     rgba(201,168,76,0.30);
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans:  'Montserrat', 'Helvetica Neue', sans-serif;
  --max-w:      1200px;
  --section-pad:100px 0;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--white);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.15rem; font-weight: 500; font-family: var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

p { margin-bottom: 1.2em; color: var(--white-dim); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}

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

.gold-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0 2rem;
}

.gold-rule--center { margin-left: auto; margin-right: auto; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7,11,20,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

#site-header.scrolled {
  background: rgba(7,11,20,0.98);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}

.site-logo__main {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

.site-logo__sub {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

/* Primary Nav */
#primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

#primary-nav a {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color var(--transition);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

#primary-nav a:hover,
#primary-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-switcher a,
.lang-switcher span {
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-switcher a {
  color: var(--white-dim);
  padding: 2px 4px;
}

.lang-switcher a.current,
.lang-switcher a:hover { color: var(--gold); }

.lang-switcher span { color: var(--border); }

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 30%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(14,21,36,0.8) 0%, transparent 70%),
    linear-gradient(160deg, #0a0f1e 0%, #070b14 50%, #060910 100%);
}


.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__kicker {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gold);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
  color: var(--white);
}

.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__desc {
  font-size: 0.9rem;
  color: var(--white-dim);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.hero__scroll::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header--center { text-align: center; }
.section-header--center .gold-rule { margin-left: auto; margin-right: auto; }

/* ============================================================
   SECTION BODY TEXT – justified alignment
   Applied to containers directly so it cascades to all children
   (catches p, div, span, and bare text regardless of wrapper tag)
   ============================================================ */
.section-body,
.section-body p,
.section-body li,
.section-body div,
.faq-answer__inner,
.faq-answer__inner p,
.faq-answer__inner li,
.faq-answer__inner div,
.candidate-card__bio,
.candidate-card__intro {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* Preserve left-alignment for CJK (Chinese) since CJK justify can look awkward
   with very short lines — uncomment if needed
body.lang-zh .section-body,
body.lang-zh .section-body p,
body.lang-zh .faq-answer__inner,
body.lang-zh .faq-answer__inner p {
  text-align: justify;
  text-justify: inter-ideograph;
} */

/* ============================================================
   CONTENT SECTIONS (Solicitation, Promotor, Candidates, Issuer)
   ============================================================ */
.content-section {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
}

.content-section:nth-child(even) {
  background: var(--navy-mid);
}

.content-section .two-col {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 5rem;
  align-items: start;
}

.content-section .two-col.reversed { direction: rtl; }
.content-section .two-col.reversed > * { direction: ltr; }

.section-visual {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--navy-light);
  overflow: hidden;
  border: 1px solid var(--border);
}

.section-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.section-visual::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 60px;
  height: 60px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

/* ============================================================
   CANDIDATES
   ============================================================ */
#candidates {
  background: var(--navy-mid);
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
}

/* Stack cards vertically, one per row */
.candidates-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
  border: 1px solid var(--border);
}

.candidate-card + .candidate-card {
  border-top: 1px solid var(--border);
}

/* Each card: photo column left, content right */
.candidate-card {
  background: var(--navy);
  display: grid;
  grid-template-columns: 200px 1fr;
  transition: background var(--transition);
}

.candidate-card:hover { background: var(--navy-light); }

/* LEFT COLUMN: photo + name/surname */
.candidate-card__left {
  padding: 2rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.candidate-card__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
  background: var(--navy-light);
}

.candidate-card__photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--navy-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-dim);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.candidate-card__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin: 0;
}

.candidate-card__role {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

/* RIGHT: intro text vertically centred */
.candidate-card__top {
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
}

.candidate-card__intro {
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.8;
  text-align: justify;
  hyphens: auto;
}

/* Responsive */
@media (max-width: 700px) {
  .candidate-card {
    grid-template-columns: 1fr;
  }
  .candidate-card__left  { border-right: none; border-bottom: 1px solid var(--border); flex-direction: row; align-items: center; }
  .candidate-card__photo,
  .candidate-card__photo-placeholder { width: 80px; aspect-ratio: 1/1; flex-shrink: 0; }
  .candidate-card__top { padding: 1.5rem; }
}

/* ============================================================
   DOCUMENTS SECTION
   ============================================================ */
#documents {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
}

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

.doc-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: var(--white-faint);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--transition);
  group: true;
}

.doc-link:hover {
  background: var(--navy-light);
  border-color: var(--gold);
  transform: translateX(4px);
}

.doc-link__icon {
  width: 36px;
  height: 44px;
  flex-shrink: 0;
  position: relative;
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-link__icon::after {
  content: 'PDF';
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.doc-link__text {
  flex: 1;
}

.doc-link__title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.15rem;
  transition: color var(--transition);
}

.doc-link:hover .doc-link__title { color: var(--gold-light); }

.doc-link__meta {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.doc-link__arrow {
  width: 20px;
  height: 20px;
  border-right: 1px solid var(--gold);
  border-top: 1px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.doc-link:hover .doc-link__arrow { opacity: 1; }

/* ============================================================
   FAQ SECTION
   ============================================================ */
#faq {
  background: var(--navy-mid);
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
}

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  transition: color var(--transition);
}

.faq-question:hover { color: var(--gold-light); }

.faq-question[aria-expanded="true"] { color: var(--gold-light); }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-icon::before { top: 9px; left: 0; right: 0; height: 1px; }
.faq-icon::after  { left: 9px; top: 0; bottom: 0; width: 1px; }

.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}

.faq-answer.open { max-height: 2000px; }

.faq-answer__inner {
  padding-bottom: 1.75rem;
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.8;
}

/* ============================================================
   CONTACTS SECTION
   ============================================================ */
#contacts {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.contact-block {
  background: var(--navy);
  padding: 2.5rem 2rem;
}

.contact-block__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.contact-block__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.contact-block__detail {
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.7;
}

.contact-block__detail a { color: var(--white-dim); }
.contact-block__detail a:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 3rem 5%;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-logo__main {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.footer-logo__sub {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-top: 2px;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--white-dim);
  opacity: 0.5;
  text-align: center;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-legal a { color: var(--white-dim); opacity: 0.6; }
.footer-legal a:hover { color: var(--gold); opacity: 1; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2000;
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 1.25rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--white-dim);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

#cookie-banner.visible { transform: translateY(0); }

.cookie-banner__actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
}

.btn--ghost {
  background: transparent;
  color: var(--white-dim);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--white-faint);
  color: var(--white);
}

/* ============================================================
   LANGUAGE FLAG CLASSES (Polylang / WPML)
   ============================================================ */
.lang-en .lang-en-text,
.lang-it .lang-it-text,
.lang-zh .lang-zh-text { display: block; }

/* ============================================================
   SCROLL FADE-IN ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  /* Failsafe: if JS hasn't added .visible within 3s, force visible anyway.
     Prevents content being permanently hidden if IntersectionObserver fails
     (mobile Safari scroll-lock edge cases, slow JS init, blocked JS, etc.) */
  animation: fih-fade-in-failsafe 0s ease 3s forwards;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none; /* JS handled it normally, no need for failsafe */
}

@keyframes fih-fade-in-failsafe {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger children – supports unlimited items via JS */
.stagger > {
  /* nothing — children rules below */
}
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  /* Same failsafe for staggered children */
  animation: fih-fade-in-failsafe 0s ease 3s forwards;
}
.stagger.visible > * {
  opacity: 1;
  transform: none;
  animation: none;
}

/* Respect users who've requested reduced motion — skip animation entirely */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
.stagger.visible > *:nth-child(1)  { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2)  { transition-delay: 0.10s; }
.stagger.visible > *:nth-child(3)  { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(4)  { transition-delay: 0.20s; }
.stagger.visible > *:nth-child(5)  { transition-delay: 0.25s; }
.stagger.visible > *:nth-child(6)  { transition-delay: 0.30s; }
.stagger.visible > *:nth-child(7)  { transition-delay: 0.35s; }
.stagger.visible > *:nth-child(8)  { transition-delay: 0.40s; }
.stagger.visible > *:nth-child(9)  { transition-delay: 0.45s; }
.stagger.visible > *:nth-child(10) { transition-delay: 0.50s; }
.stagger.visible > *:nth-child(n+11) { transition-delay: 0.55s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --section-pad: 70px 0; }

  #primary-nav { display: none; position: absolute; top: 80px; left:0; right:0; flex-direction: column; background: var(--navy-mid); border-bottom: 1px solid var(--border); padding: 2rem 5%; gap: 1.5rem; }
  #primary-nav.open { display: flex; }

  .nav-toggle { display: flex; }

  .lang-switcher { border-left: none; padding-left: 0; }

  .content-section .two-col { grid-template-columns: 1fr; gap: 3rem; }
  .content-section .two-col.reversed { direction: ltr; }

  .footer-inner { justify-content: center; text-align: center; }
  .footer-legal { justify-content: center; }
}

@media (max-width: 600px) {
  :root { --section-pad: 50px 0; }
  h1 { font-size: 2rem; }
  .documents-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DISCLAIMER GATE MODAL
   ============================================================ */
.fih-disclaimer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.fih-disclaimer[hidden] { display: none; }

.fih-disclaimer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.fih-disclaimer__card {
  position: relative;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--navy-mid, #0e1524);
  border: 1px solid var(--gold-accent, #c9a84c);
  padding: 3rem 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.fih-disclaimer__title {
  font-family: var(--font-serif, "Cormorant Garamond", serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--white, #f7f3ec);
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

.fih-disclaimer__rule {
  width: 60px;
  height: 2px;
  background: var(--gold-accent, #c9a84c);
  margin-bottom: 1.75rem;
}

.fih-disclaimer__body {
  color: var(--white, #f7f3ec);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  text-align: justify;
  hyphens: auto;
}

/* Force readable text colour — overrides any inline color styles from
   content pasted from Word/PDF which commonly arrives with light-grey colours */
.fih-disclaimer__body,
.fih-disclaimer__body p,
.fih-disclaimer__body span,
.fih-disclaimer__body strong,
.fih-disclaimer__body b,
.fih-disclaimer__body em,
.fih-disclaimer__body i,
.fih-disclaimer__body u,
.fih-disclaimer__body li,
.fih-disclaimer__body ul,
.fih-disclaimer__body ol,
.fih-disclaimer__body div {
  color: var(--white, #f7f3ec) !important;
}

/* Preserve link styling separately so URLs remain visually distinct */
.fih-disclaimer__body a {
  color: var(--gold-accent, #c9a84c) !important;
  text-decoration: underline;
}
.fih-disclaimer__body a:hover {
  color: var(--gold-light, #e2c97e) !important;
}

.fih-disclaimer__body p { margin-bottom: 1em; }
.fih-disclaimer__body p:last-child { margin-bottom: 0; }

.fih-disclaimer__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.fih-disclaimer__btn {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-sans, "Montserrat", sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--gold-accent, #c9a84c);
  transition: all 0.25s ease;
  display: inline-block;
}

.fih-disclaimer__btn--accept {
  background: var(--gold-accent, #c9a84c);
  color: var(--navy, #070b14);
}
.fih-disclaimer__btn--accept:hover {
  background: var(--gold-light, #e2c97e);
  border-color: var(--gold-light, #e2c97e);
}

.fih-disclaimer__btn--decline {
  background: transparent;
  color: var(--gold-accent, #c9a84c);
}
.fih-disclaimer__btn--decline:hover {
  background: var(--gold-accent, #c9a84c);
  color: var(--navy, #070b14);
}

/* Chinese font applied per-panel so the right font shows when user switches language in the modal */
.fih-disclaimer__panel[data-lang="zh"] {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* In-modal language picker */
.fih-disclaimer__langs {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.fih-disclaimer__lang-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--white-dim, rgba(247, 243, 236, 0.65));
  font-family: var(--font-sans, "Montserrat", sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fih-disclaimer__lang-btn:hover {
  color: var(--gold-light, #e2c97e);
}

.fih-disclaimer__lang-btn.is-active {
  color: var(--gold-accent, #c9a84c);
  border-color: var(--gold-accent, #c9a84c);
}

@media (max-width: 600px) {
  .fih-disclaimer__card { padding: 2rem 1.5rem 1.75rem; }
  .fih-disclaimer__title { font-size: 1.6rem; }
  .fih-disclaimer__actions { flex-direction: column; }
  .fih-disclaimer__btn { min-width: 0; width: 100%; }
}
