/* =============================================================
   Classy theme overlay — loaded after styles.css.
   Palette: ink navy / antique gold / ivory.
   Type: Playfair Display (display) + Inter (body).
   ============================================================= */

:root {
  --ink: #241a35;
  --ink-2: #2e2344;
  --gold: #6d28c9;
  --gold-dark: #55219c;
  --gold-pale: #d9c6f2;
  --ivory: #faf9fc;
  --paper: #ffffff;
  --text: #2e3440;
  --text-muted: #6f7680;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --shadow-soft: 0 6px 24px rgba(22, 32, 46, 0.08);
  --shadow-lift: 0 14px 34px rgba(22, 32, 46, 0.16);
}

body {
  font-family: var(--sans);
  color: var(--text);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5,
.section-heading,
.hidtext,
.portfolio-modal .modal-content h2 {
  font-family: var(--serif) !important;
  color: var(--ink);
  font-weight: 600;
}

.page-section h2.section-heading,
.page-section .section-heading.h2 {
  font-size: 2.6rem;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 1.1rem;
}

/* short gold rule under section headings */
.page-section h2.section-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 2px;
  background: var(--gold);
}

.page-section h3.section-subheading,
.page-section .section-subheading.h3 {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  line-height: 1.7;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.hidtext {
  font-size: 2rem;
  letter-spacing: 0.03em;
}

@media (min-width: 768px) {
  .hidtext { font-size: 2.4rem; }
}

.text-muted { color: var(--text-muted) !important; }

/* ---------- Navbar ---------- */

#mainNav {
  background-color: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid rgba(22, 32, 46, 0.08);
  box-shadow: 0 2px 18px rgba(22, 32, 46, 0.06);
}

#mainNav .navbar-nav .nav-item .nav-link {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  position: relative;
  padding-bottom: 0.4rem;
}

#mainNav .navbar-nav .nav-item .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.25s ease;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active {
  color: var(--gold-dark);
}

#mainNav .navbar-nav .nav-item .nav-link:hover::after,
#mainNav .navbar-nav .nav-item .nav-link.active::after {
  width: 60%;
}

#mainNav .navbar-toggler {
  background-color: var(--ink);
  border: none;
  letter-spacing: 0.1em;
}

/* purple brand bar at the very top */
.fixed-vtop, .bar0, #bar0 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1031;
  height: 15px;
  background: linear-gradient(90deg, #55219c 0%, #7300fe 50%, #55219c 100%) !important;
}

/* keep the navbar clear of the brand bar */
#mainNav.fixed-top {
  top: 15px;
}

/* ---------- Mobile menu button ---------- */

@media (max-width: 991.98px) {
  #mainNav > .container {
    flex-wrap: wrap;
    justify-content: center;
  }

  #mainNav .navbar-brand {
    margin-right: 0;
  }

  #mainNav .navbar-toggler {
    flex-basis: 92%;
    margin: 0.75rem auto 0.25rem;
    padding: 1rem 1.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-align: center;
    color: var(--gold-dark);
    background-color: #ffffff;
    border: 2px solid var(--gold-dark);
    border-radius: 6px;
  }

  #mainNav .navbar-toggler:hover,
  #mainNav .navbar-toggler:focus {
    color: #ffffff;
    background-color: var(--gold-dark);
  }

  /* center the collapsed menu links */
  #mainNav .navbar-nav {
    text-align: center;
  }

  #mainNav .navbar-nav .nav-item {
    display: block;
  }

  #mainNav .navbar-nav .nav-item .nav-link {
    display: inline-block;
    padding: 0.65rem 0 0.55rem;
  }
}

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

.btn-primary,
.btn-primary:focus,
.btn-check:focus + .btn-primary {
  color: #fff;
  background-color: var(--ink);
  background-image: none;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 0.7rem 1.8rem;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:active,
.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary {
  color: #fff;
  background-color: var(--gold-dark);
  background-image: none;
  border-color: var(--gold-dark);
}

.btn-primary:focus,
.btn-check:focus + .btn-primary {
  box-shadow: 0 0 0 0.2rem rgba(109, 40, 201, 0.35);
}

.btn-xl {
  padding: 1rem 2.6rem;
  font-size: 0.95rem;
}

/* ---------- Hero counter band ---------- */

.ybar {
  background-color: rebeccapurple;
  background-image: linear-gradient(140deg, #5b1f9e 0%, #4a1585 55%, #6a22b5 100%);
  border-top: 1px solid rgba(217, 198, 242, 0.4);
  border-bottom: 1px solid rgba(217, 198, 242, 0.4);
}

.counternumber {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold-pale);
  font-size: 2.6em;
  letter-spacing: 0.02em;
}

.textbox1, .textbox2 {
  font-family: var(--sans);
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.12em;
  transform: none;
}

/* ---------- Ambient background effect ---------- */

#bgfx {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* height set by script: ends at the Multilingual support block */
  z-index: -1;
  pointer-events: none;
  image-rendering: pixelated;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}

/* ---------- Sections ---------- */

.bg-light {
  background-color: rgba(248, 246, 241, 0.45) !important;
}

section.page-section:nth-of-type(even) {
  background-color: rgba(255, 255, 255, 0.45);
}

hr.dashed {
  border: none;
  border-top: 1px solid rgba(109, 40, 201, 0.45);
  opacity: 1;
  width: 90px;
  margin: 2.5rem auto;
  border-radius: 0;
}

/* ---------- Cards / portfolio items ---------- */

.portfolio-item {
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(22, 32, 46, 0.05);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.portfolio-item .portfolio-link { overflow: hidden; display: block; }

.portfolio-item .portfolio-link img {
  transition: transform 0.45s ease;
}

.portfolio-item:hover .portfolio-link img {
  transform: scale(1.035);
}

.portfolio-caption {
  background-color: var(--paper) !important;
}

.portfolio-caption .portfolio-caption-heading {
  font-family: var(--serif) !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.portfolio-caption .portfolio-caption-subheading {
  font-family: var(--sans) !important;
  font-style: normal !important;
  font-size: 0.9rem;
  color: var(--text-muted) !important;
}

/* compact feature cards */
#welcome .portfolio-caption {
  padding: 1rem 1.1rem 1.15rem;
}

#welcome .portfolio-caption .portfolio-caption-heading {
  font-size: 1.05rem !important;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

#welcome .portfolio-caption .portfolio-caption-subheading {
  font-size: 0.82rem;
  line-height: 1.55;
}

/* equal-height cards so rows line up despite longer copy */
#welcome .row > [class*="col-"] {
  display: flex;
}

#welcome .portfolio-item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#welcome .portfolio-item .portfolio-caption {
  flex: 1;
}

/* general imagery */
.img-fluid.rounded,
.fldlmt,
video.fldlmt {
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

/* ---------- Testimonials ---------- */

.team-member img {
  border: 4px solid var(--gold-pale);
  box-shadow: var(--shadow-soft);
}

.team-member h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
}

.team-member p.text-muted {
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ---------- Brand strip ---------- */

.img-brand {
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.img-brand:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---------- Modals ---------- */

.portfolio-modal .modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(16, 24, 35, 0.35);
}

.portfolio-modal .modal-content img {
  border-radius: 8px;
}

/* modal body copy in a warm reading serif */
.portfolio-modal .modal-content p {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-modal .modal-content p.item-intro {
  font-family: var(--sans);
  font-style: normal;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

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

.footer {
  background-color: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--sans);
  letter-spacing: 0.06em;
  border-top: 3px solid var(--gold);
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.footer .link-dark {
  color: var(--gold-pale) !important;
  transition: color 0.25s ease;
}

.footer .link-dark:hover {
  color: #fff !important;
}
