/********** Home-page style content sections (pages other than index.html) ************/
/* Wrap a section in .site-section > .fx-panel to get the home page look:
   rounded panel, label chip, large heading with orange highlight, photo cards. */

.site-section {
  --fx-orange: #F47820;
  --fx-text: #1d120c;
  --fx-muted: #6b5d55;
  --fx-line: rgba(29, 18, 12, .12);
  --fx-panel: #ffffff;
  --fx-surface: #fbf6ef;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 3vw, 36px) 0;
  font-family: 'Inter Tight', 'Rubik', sans-serif;
}

html[data-theme="dark"] .site-section {
  --fx-text: #fbf3e6;
  --fx-muted: #c2ada0;
  --fx-line: rgba(244, 120, 32, .22);
  --fx-panel: #170a05;
  --fx-surface: #22120b;
}

.site-section .fx-panel {
  padding: clamp(28px, 4vw, 26px) clamp(16px, 3vw, 36px);
  border: 1px solid var(--fx-line);
  border-radius: 36px;
  background: var(--fx-panel);
}

.site-section .fx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border: 1px solid var(--fx-line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--fx-text);
}

.site-section .fx-chip .fa { font-size: 9px; color: var(--fx-orange); }

.site-section .fx-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 28px;
}

.site-section .fx-heading-row p { max-width: 420px; margin: 0; font-size: 14px; line-height: 1.55; color: var(--fx-muted); }

.site-section .fx-display {
  margin: 0;
  font-family: 'Inter Tight', 'Rubik', sans-serif;
  font-size: clamp(34px, 5.2vw, 72px);
  font-weight: 400 !important;
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: none;
  color: var(--fx-text) !important;
}

.site-section .fx-display em { font-style: normal; color: var(--fx-orange); }

/* Leader photo cards */
.site-section .fx-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.site-section .fx-leader { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 16px; background: #e9e6ef; }
.site-section .fx-leader img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.site-section .fx-leader:hover img { transform: scale(1.04); }

.site-section .fx-leader-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(0deg, rgba(30, 8, 0, .85), rgba(30, 8, 0, 0));
  color: #fff;
}

.site-section .fx-leader-name { font-size: 18px; line-height: 1.15; letter-spacing: -.02em; }
.site-section .fx-leader-role { margin-top: 2px; font-size: 12.5px; color: rgba(255, 255, 255, .85); }

.site-section a.fx-leader-in {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FBF3E6;
  color: #E2531A;
  text-decoration: none;
}

.site-section a.fx-leader-in:hover { background: #fff; color: #E2531A; }

/* About text + quote */
.site-section .fx-about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  margin-top: clamp(32px, 4vw, 48px);
}

.site-section .fx-about-text p { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: var(--fx-muted); }
.site-section .fx-about-text b { color: var(--fx-text); font-weight: 600; }

.site-section .fx-quote-card {
  margin: 0;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(160deg, #F47820, #E2531A);
  color: #fff;
}

.site-section .fx-quote-card .fa { font-size: 26px; opacity: .85; }
.site-section .fx-quote-card p { margin: 12px 0 0; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.03em; color: #fff; }

@media (max-width: 991.98px) {
  .site-section .fx-team-grid { grid-template-columns: repeat(2, 1fr); }
  .site-section .fx-about-grid { grid-template-columns: 1fr; }
}

/********** Home-page style for the main "bg-amgs" content section on inner pages ************/
body:not(.home) .bg-amgs {
  --fx-orange: #F47820;
  --fx-text: #1d120c;
  --fx-muted: #6b5d55;
  --fx-line: rgba(29, 18, 12, .12);
  --fx-panel: #ffffff;
  --fx-surface: #fbf6ef;
  width: auto;
  margin: clamp(32px, 5vw, 64px) clamp(16px, 3vw, 36px) 0;
  padding: clamp(8px, 2vw, 24px) clamp(4px, 1.5vw, 16px);
  border: 1px solid var(--fx-line);
  border-radius: 36px;
  font-family: 'Inter Tight', 'Rubik', sans-serif;
}

html body:not(.home) .bg-amgs,
html[data-theme="dark"] body:not(.home) .bg-amgs { background: var(--fx-panel); }

html[data-theme="dark"] body:not(.home) .bg-amgs {
  --fx-text: #fbf3e6;
  --fx-muted: #c2ada0;
  --fx-line: rgba(244, 120, 32, .22);
  --fx-panel: #170a05;
  --fx-surface: #22120b;
}

body:not(.home) .bg-amgs p,
body:not(.home) .bg-amgs li { font-size: 15px; line-height: 1.7; color: var(--fx-muted); }

body:not(.home) .bg-amgs h1,
body:not(.home) .bg-amgs h2.display-4,
body:not(.home) .bg-amgs .display-4,
body:not(.home) .bg-amgs .display-5 {
  font-family: 'Inter Tight', 'Rubik', sans-serif;
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 400 !important;
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: none !important;
  color: var(--fx-text) !important;
}

/* Intro statement under the image */
body:not(.home) .bg-amgs .col-lg-7 > h4.text-primary {
  margin-bottom: 18px !important;
  font-family: 'Inter Tight', 'Rubik', sans-serif;
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 400 !important;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-transform: none !important;
  color: var(--fx-text) !important;
}

body:not(.home) .bg-amgs .text-primary { color: var(--fx-orange) !important; }

body:not(.home) .bg-amgs .col-lg-5 > img { border-radius: 20px; }

/* Feature boxes become cards */
body:not(.home) .bg-amgs .content-box { background: transparent; }

body:not(.home) .bg-amgs .col-lg-6.content-box > p {
  height: calc(100% - 12px);
  margin-bottom: 12px !important;
  padding: 18px;
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  background: var(--fx-surface);
  font-size: 14px;
}

body:not(.home) .bg-amgs .content-box b.text-primary {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: none !important;
}

/* "The AMGS Advantage" highlight */
body:not(.home) .bg-amgs .col-lg-12.content-box > p:only-child {
  margin-bottom: 0 !important;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(160deg, #F47820, #E2531A);
  color: rgba(255, 255, 255, .92);
}

body:not(.home) .bg-amgs .col-lg-12.content-box > p:only-child b.text-primary { color: #fff !important; font-size: 18px; }

/********** "Active minds behind our solutions" experts section (same as home page) ************/
.site-experts .fx-quote-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.site-experts .fx-quote {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  background: #ffffff;
  color: #1d120c;
}

html[data-theme="dark"] .site-experts .fx-quote { background: #FBF3E6; }

.site-experts .fx-quote-head { display: flex; align-items: center; gap: 10px; }
.site-experts .fx-quote-head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #ece2d6; }
.site-experts .fx-quote-name { font-size: 14px; font-weight: 600; line-height: 1.25; color: #1d120c; }
.site-experts .fx-quote-role { font-size: 11.5px; line-height: 1.35; color: #7a6a60; }
.site-experts .fx-quote .fa-quote-right { font-size: 20px; color: #F47820; }
.site-experts .fx-quote p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #5d4f47; }

@media (max-width: 1199.98px) { .site-experts .fx-quote-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .site-experts .fx-quote-grid { grid-template-columns: 1fr; } }
